/* Zenta — fundação de movimento v0.1. Experimental; ainda não importada pelo site. */
:root {
  --zenta-motion-duration-response: 160ms;
  --zenta-motion-duration-transition: 300ms;
  --zenta-motion-duration-enter: 700ms;
  --zenta-motion-duration-hero-line: 900ms;
  --zenta-motion-duration-light: 1800ms;
  --zenta-motion-duration-image: 1900ms;
  --zenta-motion-duration-sequence-max: 2000ms;
  --zenta-motion-stagger-line: 170ms;
  --zenta-motion-ease-out: cubic-bezier(.16, 1, .3, 1);
  --zenta-motion-ease-standard: cubic-bezier(.25, .46, .45, .94);
  --zenta-motion-distance-enter: 24px;
  --zenta-motion-distance-magnet-x: 4px;
  --zenta-motion-distance-magnet-y: 3px;
  --zenta-motion-scale-image-start: 1.035;
}
/* Cancelamento sem extinguir mensagens ou estados essenciais. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --zenta-motion-duration-response: 0ms;
    --zenta-motion-duration-transition: 0ms;
    --zenta-motion-duration-enter: 0ms;
    --zenta-motion-duration-hero-line: 0ms;
    --zenta-motion-duration-light: 0ms;
    --zenta-motion-duration-image: 0ms;
    --zenta-motion-stagger-line: 0ms;
    --zenta-motion-distance-enter: 0px;
    --zenta-motion-distance-magnet-x: 0px;
    --zenta-motion-distance-magnet-y: 0px;
    --zenta-motion-scale-image-start: 1;
  }
}

/* R3: direção de r2 com H1 e ações disponíveis desde o primeiro frame. */
.hero-copy { animation: none; }
html[data-hero-motion="on"] .hero-word { display: inline-block; vertical-align: bottom; }
html[data-hero-motion="on"] .hero-word > span { display: inline-block; }
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-copy > .eyebrow {
  animation: heroReveal var(--zenta-motion-duration-enter) var(--zenta-motion-ease-out) both;
}
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-word > span {
  animation: heroLine var(--zenta-motion-duration-hero-line) var(--zenta-motion-ease-out) both;
  animation-delay: calc(90ms + var(--hero-line, 0) * var(--zenta-motion-stagger-line));
}
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-copy > .lead {
  animation: heroReveal var(--zenta-motion-duration-enter) var(--zenta-motion-ease-out) 650ms both;
}
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-copy > .hero-actions {
  animation: heroActions var(--zenta-motion-duration-enter) var(--zenta-motion-ease-out) 850ms both;
}
@keyframes heroLine {
  from { transform: translate3d(-12px, var(--zenta-motion-distance-enter), 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes heroReveal {
  from { opacity: .85; transform: translate3d(0, var(--zenta-motion-distance-enter), 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes heroActions {
  from { opacity: .9; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-shade::after {
  content: ""; position: absolute; inset: -30%; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255,224,156,.03) 38%, rgba(255,224,156,.24) 48%, rgba(215,167,47,.1) 55%, transparent 67%);
  animation: heroLight var(--zenta-motion-duration-light) var(--zenta-motion-ease-standard) 100ms both;
}
@keyframes heroLight {
  0% { opacity: 0; transform: translate3d(-55%, 0, 0); }
  25% { opacity: 1; }
  70% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(55%, 0, 0); }
}
html[data-hero-motion="on"][data-hero-intro="playing"] .hero-visual img {
  animation: heroImage var(--zenta-motion-duration-image) var(--zenta-motion-ease-out) both;
}
@keyframes heroImage {
  from { transform: scale(var(--zenta-motion-scale-image-start)); }
  to { transform: scale(1); }
}
html[data-hero-motion="on"] .hero-actions .meeting-link {
  transition: transform var(--zenta-motion-duration-response) ease-out, background-color var(--zenta-motion-duration-response) ease-out;
}
html[data-hero-motion] .hero-actions:focus-within { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html[data-hero-motion] .hero-copy > :is(.eyebrow, .lead, .hero-actions),
  html[data-hero-motion] .hero-word > span,
  html[data-hero-motion] .hero-shade::after,
  html[data-hero-motion] .hero-visual img { animation: none !important; opacity: 1; transform: none; }
  html[data-hero-motion] .hero-shade::after { display: none; }
  html[data-hero-motion] .hero-actions .meeting-link { transition: none; transform: none !important; }
}

/* R2: presença maior, texto opaco e passagem de destaque finita. */
#como-ajudamos {
  --zenta-motion-distance-reading: 24px;
  --zenta-motion-duration-reading: 1800ms;
  --zenta-motion-duration-reading-accent: 1800ms;
  --zenta-motion-stagger-group: 240ms;
  --zenta-motion-ease-reading: cubic-bezier(.22, .61, .36, 1);
}
#como-ajudamos .editorial-list > li { position: relative; isolation: isolate; padding-left: 3rem; --situation-delay: 0ms; }
#como-ajudamos .situation-number {
  position: absolute; left: 0; top: 2.1rem; color: #795708;
  font: 700 .75rem/1.5 Arial, Helvetica, sans-serif; letter-spacing: .08em;
  transform-origin: left center;
}
#como-ajudamos .editorial-list > li::after {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px;
  background: #795708; opacity: .55; transform: scaleX(.12); transform-origin: left center; pointer-events: none;
}
#como-ajudamos .editorial-list > li::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(215,167,47,.13), rgba(215,167,47,.045) 50%, transparent 90%);
  opacity: 0;
}
html[data-situations-motion="on"] #como-ajudamos [data-situation-entered="entering"] {
  animation: situationsIn var(--zenta-motion-duration-reading) var(--zenta-motion-ease-reading) var(--situation-delay, 0ms) both;
}
html[data-situations-motion="on"] #como-ajudamos li[data-situation-entered="entering"]::after {
  animation: situationsLine var(--zenta-motion-duration-reading-accent) cubic-bezier(.45,0,.55,1) var(--situation-delay) both;
}
html[data-situations-motion="on"] #como-ajudamos li[data-situation-entered="entering"]::before {
  animation: situationsWash var(--zenta-motion-duration-reading) ease-in-out var(--situation-delay) both;
}
html[data-situations-motion="on"] #como-ajudamos li[data-situation-entered="entering"] .situation-number {
  animation: situationsNumber var(--zenta-motion-duration-reading) var(--zenta-motion-ease-reading) var(--situation-delay) both;
}
@keyframes situationsIn {
  from { transform: translate3d(0, var(--zenta-motion-distance-reading), 0); }
  to { transform: none; }
}
@keyframes situationsLine {
  0% { opacity: .35; transform: scaleX(.02); }
  55% { opacity: .9; transform: scaleX(1); }
  100% { opacity: .55; transform: scaleX(.12); }
}
@keyframes situationsWash {
  0% { opacity: 0; transform: translate3d(-12px, 0, 0); }
  30%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(12px, 0, 0); }
}
@keyframes situationsNumber {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@media (min-width: 761px) {
  #como-ajudamos .editorial-list li:nth-child(3), #como-ajudamos .editorial-list li:nth-child(4) { --situation-delay: var(--zenta-motion-stagger-group); }
  #como-ajudamos .editorial-list li:nth-child(5), #como-ajudamos .editorial-list li:nth-child(6) { --situation-delay: calc(2 * var(--zenta-motion-stagger-group)); }
}
@media (hover: hover) and (pointer: fine) {
  #como-ajudamos .editorial-list > li:hover { background: linear-gradient(90deg, rgba(215,167,47,.055), transparent 85%); }
  #como-ajudamos .editorial-list > li:hover .situation-number { color: var(--ink); }
}
@media (max-width: 760px) {
  #como-ajudamos .editorial-list > li { padding-left: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-situations-motion] #como-ajudamos [data-situation-entered],
  html[data-situations-motion] #como-ajudamos li::after,
  html[data-situations-motion] #como-ajudamos li::before,
  html[data-situations-motion] #como-ajudamos .situation-number { animation: none !important; transform: none; }
  html[data-situations-motion] #como-ajudamos li::after { transform: scaleX(.12); opacity: .55; }
  html[data-situations-motion] #como-ajudamos li::before { display: none; }
}

/* Ofertas r1: luz nas fotografias, conteúdo e semântica preservados. */
.offer { --offer-duration: 1600ms; --offer-ease: cubic-bezier(.22,.61,.36,1); }
.offer-grid > article { position: relative; --offer-delay: 0ms; }
.offer-grid > article::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px;
  background: #795708; transform: scaleX(.18); transform-origin: left center; opacity: .6; pointer-events: none;
}
.offer-visual figcaption { z-index: 3; }
.offer-visual::before, .offer-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; }
.offer-visual::before { background: linear-gradient(115deg,transparent 15%,rgba(255,225,161,.24) 45%,transparent 70%); }
.offer-visual::after {
  background: radial-gradient(circle at var(--offer-x,50%) var(--offer-y,50%),rgba(255,225,161,.35),rgba(215,167,47,.08) 38%,transparent 70%);
  transition: opacity var(--zenta-motion-duration-transition) ease-out;
}
html[data-offers-motion="on"] .offer-grid > article[data-offer-entered="entering"] {
  animation: offerIn var(--offer-duration) var(--offer-ease) var(--offer-delay) both;
}
html[data-offers-motion="on"] .offer-grid > article[data-offer-entered="entering"]::before {
  animation: offerBorder var(--offer-duration) var(--zenta-motion-ease-standard) var(--offer-delay) both;
}
html[data-offers-motion="on"] article[data-offer-entered="entering"] .offer-visual::before {
  animation: offerPass var(--offer-duration) ease-in-out var(--offer-delay) both;
}
html[data-offers-motion="on"] article[data-offer-entered="entering"] .offer-visual img {
  animation: offerImage var(--offer-duration) var(--zenta-motion-ease-out) var(--offer-delay) both;
}
@keyframes offerIn { from { transform: translate3d(0,var(--zenta-motion-distance-enter),0); } to { transform: none; } }
@keyframes offerImage { from { transform: scale(var(--zenta-motion-scale-image-start)); } to { transform: scale(1); } }
@keyframes offerBorder { 0% { transform: scaleX(.02); } 60% { transform: scaleX(1); } 100% { transform: scaleX(.18); } }
@keyframes offerPass { 0% { opacity: 0; transform: translate3d(-60%,0,0); } 35%,60% { opacity: 1; } 100% { opacity: 0; transform: translate3d(60%,0,0); } }
@media(min-width:761px){ .offer-grid > article:nth-child(2) { --offer-delay: 200ms; } }
@media(hover:hover) and (pointer:fine){
  html[data-offers-motion="on"] .offer-visual[data-offer-hover="true"]::after { opacity: 1; }
  html[data-offers-motion="on"] article[data-offer-entered="done"] .offer-visual img { transition: transform 600ms var(--zenta-motion-ease-out); }
  html[data-offers-motion="on"] article[data-offer-entered="done"] .offer-visual[data-offer-hover="true"] img { transform: scale(1.025); }
}
@media(prefers-reduced-motion:reduce){
  html[data-offers-motion] .offer-grid > article,
  html[data-offers-motion] .offer-grid > article::before,
  html[data-offers-motion] .offer-visual img,
  html[data-offers-motion] .offer-visual::before,
  html[data-offers-motion] .offer-visual::after { animation: none !important; transition: none !important; transform: none !important; }
  html[data-offers-motion] .offer-visual::before, html[data-offers-motion] .offer-visual::after { display: none; }
  html[data-offers-motion] .offer-grid > article::before { transform: scaleX(.18) !important; }
}

/* Relato e resultados: contexto visível, valores reais e realce editorial. */
.experience, .about { --proof-duration: 1600ms; --proof-ease: cubic-bezier(.22,.61,.36,1); }
#experience-title, .case-copy, .about-grid > figure, .about-grid > div, .founder-stories-grid > article { --proof-delay: 0ms; }
.case-copy, .about-grid > div { --proof-delay: 180ms; }
.case-copy { position: relative; }
.case-copy::before {
  content: ''; position: absolute; left: -1px; top: 0; width: 2px; height: 100%;
  background: #795708; opacity: .65; transform-origin: top center; pointer-events: none;
}
.about figure { position: relative; }
.about figure::after {
  content: ''; position: absolute; inset: 12px; border: 1px solid rgba(215,167,47,.8); pointer-events: none;
}
.founder-stories-grid > article { display: flex; flex-direction: column; }
.founder-stories h3 {
  min-height: 10rem; font-size: clamp(1.4rem,2vw,1.8rem); line-height: 1.3; letter-spacing: -.025em;
}
.founder-stories .result-value {
  display: inline-block; position: relative; font-size: clamp(3.2rem,5.5vw,5rem); line-height: 1.05;
  color: var(--ink); vertical-align: baseline; letter-spacing: -.045em;
}
.founder-stories .result-value[data-result-kind="baseline"] {
  font-size: clamp(2.4rem,4vw,3.5rem); color: var(--muted);
}
.founder-stories .result-value[data-result-kind="outcome"]::after {
  content: ''; position: absolute; left: 0; bottom: -.08em; width: 100%; height: 3px;
  background: #795708; transform-origin: left center; pointer-events: none;
}
.founder-stories .case-context { margin-top: auto; }
html[data-evidence-motion="on"] [data-evidence-entered="entering"] {
  animation: evidenceIn var(--proof-duration) var(--proof-ease) var(--proof-delay) both;
}
html[data-evidence-motion="on"] .case-copy[data-evidence-entered="entering"]::before {
  animation: evidenceRule var(--proof-duration) var(--proof-ease) var(--proof-delay) both;
}
html[data-evidence-motion="on"] .about figure[data-evidence-entered="entering"] img {
  animation: evidencePortrait var(--proof-duration) var(--zenta-motion-ease-out) var(--proof-delay) both;
}
html[data-evidence-motion="on"] .about figure[data-evidence-entered="entering"]::after {
  animation: evidenceFrame var(--proof-duration) var(--proof-ease) var(--proof-delay) both;
}
html[data-evidence-motion="on"] article[data-evidence-entered="entering"] .result-value[data-result-kind="outcome"]::after {
  animation: evidenceUnderline var(--proof-duration) var(--proof-ease) var(--proof-delay) both;
}
@keyframes evidenceIn { from { transform: translate3d(0,var(--zenta-motion-distance-enter),0); } to { transform: none; } }
@keyframes evidenceRule { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes evidencePortrait { from { transform: scale(var(--zenta-motion-scale-image-start)); } to { transform: scale(1); } }
@keyframes evidenceFrame { from { transform: scale(.96); } to { transform: scale(1); } }
@keyframes evidenceUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media(min-width:761px){ .founder-stories-grid > article:nth-child(2) { --proof-delay: 200ms; } }
@media(max-width:760px){
  .founder-stories h3 { min-height: 0; }
  .case-copy::before { display: none; }
  .case-copy { padding-top: 1.5rem; border-top: 2px solid #795708; }
}
@media(prefers-reduced-motion:reduce){
  html[data-evidence-motion] [data-evidence-entered],
  html[data-evidence-motion] .case-copy::before,
  html[data-evidence-motion] .about figure img,
  html[data-evidence-motion] .about figure::after,
  html[data-evidence-motion] .result-value::after { animation: none !important; transform: none !important; }
}

/* Método: percurso editorial; todos os conteúdos permanecem opacos. */
.process, .principles { --method-duration: 1800ms; --method-ease: cubic-bezier(.22,.61,.36,1); }
.process-list li, .principles li { position: relative; --method-delay: 0ms; }
.process-list li { border-top-color: var(--line); }
.process-list li::before {
 content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 3px;
 background: #795708; transform-origin: left; pointer-events: none;
}
.process-list span { position: relative; padding-left: 1.2rem; border-bottom-color: var(--line); }
.process-list span::before {
 content: ''; position: absolute; left: 0; top: .35em; width: .5rem; height: .5rem;
 background: #795708; border-radius: 50%; pointer-events: none;
}
.process blockquote { border-left: 3px solid #795708; padding-left: 1.5rem; }
.principles li { padding-left: 1.5rem; }
.principles li::before {
 content: ''; position: absolute; left: 0; top: 1.55rem; width: 3px; height: 1.5rem;
 background: #d7a72f; transform-origin: top; pointer-events: none;
}
.principles strong { color: #f5edda; }
html[data-method-motion="on"] [data-method-entered="entering"] {
 animation: methodIn var(--method-duration) var(--method-ease) var(--method-delay,0ms) both;
}
html[data-method-motion="on"] .process-list li[data-method-entered="entering"]::before {
 animation: methodLine var(--method-duration) var(--method-ease) var(--method-delay) both;
}
html[data-method-motion="on"] .process-list li[data-method-entered="entering"] > span::before {
 animation: methodDot var(--method-duration) var(--method-ease) var(--method-delay) both;
}
html[data-method-motion="on"] .principles li[data-method-entered="entering"]::before {
 animation: methodMark var(--method-duration) var(--method-ease) both;
}
@keyframes methodIn { from { transform: translate3d(0,24px,0); } to { transform: none; } }
@keyframes methodLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes methodDot { 0% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(121,87,8,.2); } 45% { transform: scale(1.3); box-shadow: 0 0 0 8px rgba(121,87,8,.12); } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
@keyframes methodMark { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media(min-width:761px){
 .process-list li:nth-child(2) { --method-delay: 200ms; }
 .process-list li:nth-child(3) { --method-delay: 400ms; }
 .process-list li:nth-child(4) { --method-delay: 600ms; }
}
@media(prefers-reduced-motion:reduce){
 html[data-method-motion] [data-method-entered],
 html[data-method-motion] .process-list li::before,
 html[data-method-motion] .process-list span::before,
 html[data-method-motion] .principles li::before { animation: none !important; transform: none !important; }
}

html[data-nav-layout="stable"] { scroll-padding-top: calc(var(--nav-header-height,92px) + 16px); }
html[data-nav-layout="stable"] .site-header { position: fixed; z-index: 20; background: #18211e; color: var(--paper); }
.site-header nav { position: relative; isolation: isolate; gap: .3rem; }
.site-header nav a { position: relative; padding: .55rem .7rem; border-radius: 2px; }
.site-header nav a[data-nav-highlight], .site-header nav a[data-nav-highlight]:hover { color: #18211e; text-decoration: none; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: .25em; }
.nav-pill { position: absolute; pointer-events: none; z-index: 0; background: #dfbc68; border-radius: 2px; transform-origin: top left; }
.nav-pill[hidden] { display: none; }
@media(max-width:760px){
 .site-header nav { gap: .15rem .2rem; }
 .site-header nav a { padding: .5rem .4rem; }
}
@media(prefers-reduced-motion:reduce){ .nav-pill { animation: none !important; } }
@media(max-width:760px){
 html[data-nav-layout="stable"] { scroll-padding-top: 16px; }
 html[data-nav-layout="stable"] .site-header { position: absolute; }
}

.nav-pill-track { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }

/* A pílula pertence à rolagem; hover e foco apenas sinalizam o link. */
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
html[data-nav-motion="on"] { scroll-behavior: smooth; }
html[data-nav-motion="off"] { scroll-behavior: auto; }
@media(prefers-reduced-motion:reduce){ html[data-nav-enhanced] { scroll-behavior: auto !important; } }

/* Conteúdo e contrato originais; apresentação derivada de estados existentes. */
#contact-form { padding: clamp(1.1rem,2.5vw,2rem); border: 1px solid #cbc9bc; border-top: 3px solid #795708; background: #faf8f1; }
#contact-form .field { position: relative; }
#contact-form :is(input:not([type="checkbox"]),textarea) { transition: border-color 200ms ease,box-shadow 200ms ease; }
#contact-form :is(input,textarea):focus-visible { outline: 2px solid #795708; outline-offset: 3px; border-color: #795708; box-shadow: 0 0 0 6px rgba(121,87,8,.07); }
#contact-form .field:focus-within label { color: #795708; }
#contact-form :is(input,textarea)[aria-invalid="true"] { background: #fff8f5; }
#contact-form #form-status { position: relative; display: flex; align-items: center; min-height: 6rem; padding: 1rem 1rem 1rem 2.7rem; border-left: 3px solid #797b72; background: #eeede5; line-height: 1.5; margin-bottom: 1rem; }
#contact-form #form-status::before { content: ''; position: absolute; left: 1rem; width: .55rem; height: .55rem; background: #797b72; }
#contact-form #form-status:empty { background: transparent; border-color: transparent; }
#contact-form #form-status:empty::before { display: none; }
#contact-form[data-contact-state="sending"] #form-status { border-color: #795708; background: #f2ead3; }
#contact-form[data-contact-state="sending"] #form-status::before { width: .7rem; height: .7rem; background: transparent; border: 2px solid #c7b477; border-top-color: #795708; border-radius: 50%; animation: contactSpin 900ms linear infinite; }
#contact-form[data-contact-state="received"] #form-status { color: #244e39; background: #e6eee4; border-color: #34593e; }
#contact-form[data-contact-state="received"] #form-status::before { width: .45rem; height: .8rem; background: transparent; border: solid #34593e; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -.25rem; }
#contact-form:is([data-contact-state="failure"],[data-contact-state="invalid"]) #form-status { color: #852323; background: #f6e8e1; border-color: #852323; }
#contact-form:is([data-contact-state="failure"],[data-contact-state="invalid"]) #form-status::before { background: #852323; }
#contact-form button[type="submit"] { position: relative; width: 100%; min-height: 56px; padding-inline: 2.8rem; transition: background-color 200ms ease,transform 160ms ease; }
#contact-form button[type="submit"]:enabled:active { transform: scale(.985); }
#contact-form[data-contact-state="sending"] button[type="submit"] { opacity: .85; }
#contact-form[data-contact-state="sending"] button[type="submit"]::after { content: ''; position: absolute; right: 1.1rem; top: calc(50% - .5rem); width: 1rem; height: 1rem; border: 2px solid #a5822d; border-top-color: #18211e; border-radius: 50%; animation: contactSpin 900ms linear infinite; }
@keyframes contactSpin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce){ #contact-form *,#contact-form *::before,#contact-form *::after { animation: none !important; transition: none !important; } }
/* Controles exclusivos da cópia demonstrativa. */
.contact-demo { grid-column: 1/-1; border: 1px dashed #797b72; background: #eeeade; padding: 1rem; margin-bottom: 1rem; font: .85rem/1.5 system-ui,sans-serif; }
.contact-demo p { margin: 0 0 .75rem; }
.contact-demo-controls { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.contact-demo label { font-size: .8rem; }
.contact-demo select,.contact-demo button { font: inherit; min-height: 40px; padding: .5rem .7rem; max-width: 100%; }
.contact-demo select { background: #fff; color: #18211e; border: 1px solid #797b72; }
.contact-demo button { background: #18211e; color: #f4f2eb; }
.contact-demo-note { color: #56594f; font: .78rem/1.5 system-ui,sans-serif; margin: .5rem 0; }
.contact-grid:has(.contact-demo) { row-gap: 1.5rem; }
.contact-demo { margin-bottom: 0; }
@media(max-width:760px){ #contact-form #form-status { min-height: 9rem; } }

/* Ajuste de composição em telefones estreitos: idioma não compete com os links. */
@media(max-width:350px){
 .site-header .header-tools { grid-template-columns: minmax(0,1fr); gap: .6rem; }
 .site-header nav { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
 .site-header .idioma-seletor { justify-self: start; max-width: 145px; }
}

/* A introdução acompanha o formulário abaixo do cabeçalho fixo, inclusive após trocar idioma. */
@media(min-width:761px){
 html[data-nav-layout="stable"] .contact-intro { top: calc(var(--nav-header-height,92px) + 1.5rem); }
}

/* O cabeçalho acomoda os rótulos completos, sem depender da largura editorial do corpo. */
@media(min-width:761px){
 html[data-nav-layout="stable"] .site-header { --shell: min(1240px,calc(100% - 48px)); }
 html[data-nav-layout="stable"] .header-inner { gap: 1.25rem; }
 html[data-nav-layout="stable"] .header-inner > .brand { flex-shrink: 0; }
 html[data-nav-layout="stable"] .header-tools { flex-wrap: nowrap; flex-shrink: 0; gap: 1rem; }
 html[data-nav-layout="stable"] .site-header nav { flex-wrap: nowrap; }
 html[data-nav-layout="stable"] .site-header nav a { white-space: nowrap; }
 html[data-nav-layout="stable"] .header-tools .idioma-seletor { flex-shrink: 0; }
}
@media(min-width:761px) and (max-width:1279px){
 html[data-nav-layout="stable"] .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1.25rem; padding-block: .8rem; }
 html[data-nav-layout="stable"] .header-tools { grid-column: 1/-1; grid-row: 2; width: 100%; order: initial; justify-content: space-between; }
 html[data-nav-layout="stable"] .header-meeting { grid-column: 2; grid-row: 1; margin-left: 0; }
 html[data-nav-layout="stable"] .hero { padding-top: 12rem; }
}
@media(min-width:761px) and (max-width:900px){
 html[data-nav-layout="stable"] .header-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem; }
 html[data-nav-layout="stable"] .header-tools .idioma-seletor { justify-self: end; }
}

/* Respiro entre linhas de tamanhos diferentes, preservando a proximidade do sublinhado ao número. */
.founder-stories h3 { line-height: 1.6; }
.founder-stories .result-value { margin-bottom: .12em; }
/* Trilhas compartilhadas alinham a hierarquia das duas provas sem alturas fixas por idioma. */
@supports(grid-template-rows:subgrid){
 @media(min-width:761px){
  .founder-stories-grid { grid-template-rows: auto auto auto; row-gap: 0; }
  .founder-stories-grid > article { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  .founder-stories h3 { min-height: 0; margin-bottom: 1.5rem; }
  .founder-stories-grid > article > p:not(.case-context) { margin-bottom: 1.5rem; }
  .founder-stories .case-context { margin-top: 0; }
 }
}

/* O foco do atalho precisa ficar acima do cabeçalho, sem mudar o fluxo. */
.skip-link { z-index: 30; }
/* Contorno reconhecível contra o fundo externo do formulário. */
#contact-form :is(input[type="text"],input[type="email"],input[type="tel"],textarea):not([aria-invalid="true"]):not(:focus-visible) { border-color: var(--muted); }
