/* ==========================================================================
   PEROVANO — estilos do site institucional
   Tokens conforme o guia de identidade visual (proposta inicial v1),
   com o fundo bege ajustado pelo cliente.
   ========================================================================== */

:root {
  /* Tokens de marca */
  --brand-primary: #101B2B;
  --brand-background: #F3F5F7;
  --brand-text: #182436;
  --brand-accent: #D4B284;

  /* Derivados para superfícies, estados e hierarquia */
  --surface: #FFFFFF;
  --brand-primary-deep: #0B1421;
  --brand-primary-hover: #243952;
  --brand-accent-hover: #E9CEA4;
  --text-muted: #586779;
  --on-dark: #EDF2F7;
  --on-dark-strong: #FFFFFF;
  --on-dark-muted: rgba(237, 242, 247, 0.78);
  --line: rgba(24, 36, 54, 0.14);
  --line-on-dark: rgba(237, 242, 247, 0.2);
  --disabled-bg: #DCE2E8;
  --disabled-text: #657386;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 8px;
  --header-h: 72px;
  --section-y: clamp(80px, 10vw, 152px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brand-text);
  background: var(--brand-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--brand-accent); color: var(--brand-text); }

:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-header :focus-visible { outline-color: var(--brand-accent); }

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

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 18px;
  background: var(--brand-accent); color: var(--brand-text);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */
h1, h2, h3 { color: var(--brand-primary); text-wrap: balance; }

h2 {
  font-size: clamp(2.125rem, 1.2rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kicker {
  display: block;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 54ch;
}

.text-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand-primary); color: var(--on-dark-strong); }
.btn--primary:hover { background: var(--brand-primary-hover); }

.btn--secondary { border-color: var(--brand-primary); color: var(--brand-primary); background: transparent; }
.btn--secondary:hover { background: var(--brand-primary); color: var(--on-dark-strong); }

.btn--accent { background: var(--brand-accent); color: var(--brand-text); }
.btn--accent:hover { background: var(--brand-accent-hover); }

.btn--outline-light { border-color: var(--line-on-dark); color: var(--on-dark-strong); background: transparent; }
.btn--outline-light:hover { border-color: var(--on-dark-strong); background: rgba(244, 242, 235, 0.08); }

.btn--small { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }

.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--disabled-bg); border-color: transparent; color: var(--disabled-text);
  cursor: not-allowed; pointer-events: none;
}

/* ---------- Marca (assinatura textual provisória) ---------- */
/* Quando o arquivo definitivo existir, troque o conteúdo de .brand por
   <img src="/assets/brand/…svg" alt="PEROVANO — Engenharia de software">.
   Veja README.md › Pendências. */
.brand {
  display: inline-flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--brand-primary);
  line-height: 1;
}
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; }
.brand__descriptor {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}
.brand img { height: 36px; width: auto; }
.brand--footer .brand__name { font-size: 1.5rem; }
.brand--footer .brand__descriptor { font-size: 0.6875rem; }

/* ---------- Cabeçalho (sempre em petróleo, contínuo com a abertura) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-primary);
  color: var(--on-dark-strong);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-on-dark); }
.site-header .brand { color: var(--on-dark-strong); }
.site-header .brand__descriptor { color: var(--brand-accent); }
.site-header .text-link { color: var(--on-dark-strong); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 32px;
  min-height: var(--header-h);
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav__list a {
  display: inline-block; padding: 8px 0;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  color: var(--on-dark-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav__list a:hover { color: var(--on-dark-strong); border-bottom-color: var(--brand-accent); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--on-dark-strong); cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 24px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  /* Sem JS o menu permanece visível e quebra linha; com JS vira painel. */
  .site-nav { flex-wrap: wrap; gap: 8px 24px; padding-bottom: 12px; }
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 8px var(--gutter) 32px;
    background: var(--brand-primary);
    border-bottom: 1px solid var(--line-on-dark);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a {
    display: block; padding: 18px 0; font-size: 1.25rem; color: var(--on-dark-strong);
    border-bottom: 1px solid var(--line-on-dark);
  }
  .js .site-nav .btn { width: 100%; background: var(--brand-accent); color: var(--brand-text); }
}

/* ==========================================================================
   Abertura — título em escala de cartaz + parede 3D com os projetos reais
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-primary);
  color: var(--on-dark-strong);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 9vh, 120px); }
.hero__content { max-width: min(660px, 52vw); }

.hero__title {
  color: var(--on-dark-strong);
  font-size: clamp(2.75rem, min(1rem + 5.2vw, 10.4vh), 5.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: initial;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line > span { display: block; }
.hero__line--accent > span { color: var(--brand-accent); }

.hero__lead {
  margin-top: clamp(24px, 3.4vh, 36px);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(32px, 4.5vh, 48px); }

/* Parede de projetos: decorativa (aria-hidden), mostra capturas reais do portfólio. */
.wall {
  position: absolute; z-index: 1;
  top: -12%; bottom: -12%; right: -16%;
  width: 64%;
  perspective: 1800px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 100%);
}
.wall__plane {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  transform: rotateX(var(--tilt-x, 38deg)) rotateY(var(--tilt-y, 0deg)) rotateZ(-24deg) scale(1.18);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.wall__col { position: relative; overflow: hidden; }
.wall__track { display: flex; flex-direction: column; gap: 22px; }
.wall__track img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 10px;
  background: var(--brand-primary-deep);
  box-shadow: 0 24px 48px -12px rgba(5, 18, 17, 0.55);
}

@media (max-width: 960px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero__content { max-width: 640px; }
  .hero__inner { padding-bottom: 300px; }
  .wall {
    top: auto; bottom: -120px; right: -30%; left: -10%;
    width: auto; height: 480px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .wall__plane { gap: 14px; transform: rotateX(42deg) rotateZ(-22deg) scale(1.05); }
  .wall__track { gap: 14px; }
  .hero__actions .btn { flex: 1 1 200px; }
}

/* Sequência de entrada: um único momento orquestrado. Sem movimento,
   tudo já nasce no estado final. */
@media (prefers-reduced-motion: no-preference) {
  .hero__line > span { animation: rise 1s var(--ease-out) both; }
  .hero__line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero__line:nth-child(3) > span { animation-delay: 0.16s; }
  .hero__line:nth-child(4) > span { animation-delay: 0.24s; }
  .hero__lead, .hero__actions { animation: fade-up 0.9s var(--ease-out) 0.45s both; }
  .hero__actions { animation-delay: 0.55s; }
  .wall { animation: wall-in 1.6s var(--ease-out) 0.1s both; }

  .wall__track { animation: drift var(--drift, 60s) linear infinite; }
  .wall__col:nth-child(1) .wall__track { --drift: 70s; }
  .wall__col:nth-child(2) .wall__track { --drift: 56s; animation-direction: reverse; }
  .wall__col:nth-child(3) .wall__track { --drift: 80s; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wall-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
/* A trilha contém a lista duas vezes; -50% (+ meio gap) fecha o laço sem salto. */
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--brand-primary); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark-strong); }
.section--dark .kicker { color: var(--brand-accent); }
.section--dark .lead { color: var(--on-dark-muted); }

.section__head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head h2 + .lead { margin-top: 24px; }

.split {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px; row-gap: 40px;
}
.split__aside { grid-column: 1 / span 5; }
.split__main { grid-column: 7 / span 6; }
.split__aside h2 + .lead { margin-top: 24px; }

@media (min-width: 961px) {
  .split__aside--sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__aside, .split__main { grid-column: 1; }
}

/* ==========================================================================
   Portfólio — cada janela percorre o site real conforme a rolagem
   ========================================================================== */
.works {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 56px);
}
/* Coluna da direita deslocada: ritmo editorial em vez de grade de cartões. */
@media (min-width: 821px) {
  .work:nth-child(even) { transform: translateY(clamp(80px, 12vw, 180px)); }
  .works { padding-bottom: clamp(80px, 12vw, 180px); }
}

.work__frame {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border-radius: 14px;
  padding: 0 6px 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 80px -32px rgba(20, 60, 58, 0.45),
    0 12px 24px -12px rgba(20, 60, 58, 0.25);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.work__frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 56px 96px -32px rgba(20, 60, 58, 0.55),
    0 16px 32px -12px rgba(20, 60, 58, 0.3);
}
.work__bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding-inline: 8px;
}
.work__url {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding-inline: 12px;
  font-size: 0.8125rem; color: var(--text-muted);
  background: rgba(29, 36, 36, 0.06); border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work__url svg { width: 12px; height: 12px; flex: none; opacity: 0.7; }
.work__screen {
  display: block;
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  background: var(--brand-primary-deep);
}
.work__screen img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto;
  will-change: transform;
}

.work__meta { margin-top: 28px; max-width: 52ch; }
.work__kind { font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); }
.work__meta h3 { margin-top: 6px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em; }
.work__meta p:not(.work__kind) { margin-top: 12px; color: var(--brand-text); }
.work__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 600; color: var(--brand-primary);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.work__link svg { width: 16px; height: 16px; }
.work__link:hover { text-decoration-thickness: 2px; }

@media (max-width: 820px) {
  .works { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Soluções ---------- */
.solution {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; row-gap: 12px;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.solution:last-child { border-bottom: 1px solid var(--line); }
.solution h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.solution p { max-width: 58ch; }
.solution__when { margin-top: 20px; }
.solution__when-label { display: block; margin-bottom: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--brand-primary); }
.solution__when li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  color: var(--text-muted); font-size: 1rem; max-width: 56ch;
}
.solution__when li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 10px; height: 2px; background: var(--brand-primary);
}
.solution__note { margin-top: 18px; font-size: 0.9375rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .solution { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Como trabalhamos (sequência real: numeração faz sentido) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-on-dark); }
.step__index {
  display: block; margin-bottom: 24px;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  color: var(--brand-accent);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.3125rem; }
.step p { margin-top: 12px; font-size: 1rem; color: var(--on-dark-muted); }
.step__outcome { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-on-dark); font-size: 0.9375rem; }
.step__outcome dt { font-weight: 600; color: var(--brand-accent); margin-bottom: 4px; }
.step__outcome dd { color: var(--on-dark-strong); }
.steps-note {
  margin-top: clamp(40px, 5vw, 64px); max-width: 64ch;
  font-size: 0.9375rem; color: var(--on-dark-muted);
}

@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- Sobre ---------- */
.prose p + p { margin-top: 20px; }
.prose p { max-width: 62ch; }
.prose p:first-child { font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); line-height: 1.45; color: var(--brand-primary); letter-spacing: -0.01em; }

.principles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  margin-top: 48px;
}
.principles > div { padding-block: 24px; border-top: 1px solid var(--line); }
.principles dt { font-weight: 600; color: var(--brand-primary); margin-bottom: 6px; }
.principles dd { color: var(--text-muted); font-size: 1rem; }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }

.profiles {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.profiles__name { font-weight: 600; color: var(--brand-primary); margin-right: auto; }

/* ---------- Contato ---------- */
.contact { position: relative; overflow: hidden; }
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1rem + 5.6vw, 6rem);
  line-height: 0.98; letter-spacing: -0.045em;
}
.contact .lead { margin-top: 28px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 40px; }
.contact__details {
  display: flex; flex-wrap: wrap; gap: 24px 56px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-on-dark);
}
.contact__details dt { font-size: 0.9375rem; font-weight: 600; color: var(--brand-accent); margin-bottom: 6px; }
.contact__details a { color: var(--on-dark-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__details a:hover { color: var(--brand-accent); }
.contact__shape {
  position: absolute; right: 0; bottom: 0; width: min(28vw, 400px); height: auto;
  fill: var(--brand-accent);
}
@media (max-width: 1100px) { .contact__shape { display: none; } }
@media (max-width: 560px) { .contact__actions .btn { width: 100%; } }

/* ---------- Rodapé ---------- */
.site-footer { padding-block: 72px 40px; }
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px 32px;
}
.site-footer__legal { margin-top: 20px; font-size: 0.9375rem; color: var(--text-muted); }
.site-footer h2 {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0;
  color: var(--text-muted); margin-bottom: 16px;
}
.site-footer li + li { margin-top: 10px; }
.site-footer li a {
  font-size: 0.9375rem; text-decoration: none; color: var(--brand-text); overflow-wrap: anywhere;
}
.site-footer li a:hover { color: var(--brand-primary); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--text-muted);
}
@media (max-width: 760px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Página legal (privacy.html) ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
.legal__inner { max-width: 760px; }
.legal__head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal__head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.legal__updated { margin-top: 16px; font-size: 0.9375rem; color: var(--text-muted); }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 14px 0; }
.legal li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 10px; height: 2px; background: var(--brand-primary);
}
.legal li.yes::before, .legal li.no::before {
  top: 0; width: auto; height: auto; background: none; font-weight: 700; color: var(--brand-primary);
}
.legal li.yes::before { content: "✓"; }
.legal li.no::before { content: "✕"; }
.legal a { color: var(--brand-primary); font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal .eyebrow { display: block; margin-bottom: 16px; font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); }
.callout {
  margin: 24px 0; padding: 20px 24px;
  background: var(--brand-accent); color: var(--brand-text); border-radius: var(--radius);
}

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

@media print {
  .site-header, .nav-toggle, .wall, .contact__shape { display: none; }
  .hero, .section--dark { background: none; color: var(--brand-text); }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 40px);
}
.post-card {
  display: flex; flex-direction: column;
  padding-block: 28px 36px;
  border-top: 2px solid var(--brand-primary);
}
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
}
.post-card__title {
  margin-top: 14px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
}
.post-card__title a { text-decoration: none; color: var(--brand-primary); }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-card__excerpt { margin-top: 12px; font-size: 1rem; color: var(--text-muted); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.home-blog__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px);
}
.home-blog__head h2 { max-width: 16ch; }

/* Índice do blog */
.blog-hero { background: var(--brand-primary); color: var(--on-dark-strong); padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 80px); }
.blog-hero__title {
  max-width: 14ch; color: var(--on-dark-strong);
  font-size: clamp(2.5rem, 1rem + 5vw, 5.25rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em;
}
.blog-hero__lead { margin-top: 28px; max-width: 58ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--on-dark-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  color: var(--on-dark-strong); border: 1.5px solid var(--line-on-dark); border-radius: 999px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--on-dark-strong); }
.chip[aria-pressed="true"] { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-text); }

.blog-list { padding-block: clamp(56px, 7vw, 96px) var(--section-y); }
.blog-group + .blog-group { margin-top: clamp(48px, 6vw, 80px); }
.blog-group[hidden] { display: none; }
.blog-group__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 8px; }

/* Artigo */
.post__header { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.9375rem; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 10px; opacity: 0.6; }
.breadcrumb a { color: var(--text-muted); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--brand-primary); }
.post__title {
  margin-top: 24px; max-width: 20ch;
  font-size: clamp(2.25rem, 1.1rem + 4vw, 4.25rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
}
.post__lead { margin-top: 24px; max-width: 60ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--text-muted); }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-muted);
}
.post__meta span:first-child { font-weight: 600; color: var(--brand-text); }

.post__layout {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  padding-bottom: var(--section-y);
}
.post__toc { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.post__toc h2 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--text-muted); margin-bottom: 12px; }
.post__toc ol { border-left: 2px solid var(--line); }
.post__toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 0.9375rem; line-height: 1.35; text-decoration: none; color: var(--text-muted);
}
.post__toc li a:hover, .post__toc li a[aria-current="true"] { color: var(--brand-primary); border-left-color: var(--brand-primary); }
@media (max-width: 1024px) {
  .post__layout { grid-template-columns: minmax(0, 1fr); }
  .post__toc { position: static; padding: 20px 24px; background: var(--surface); border-radius: var(--radius); }
  .post__toc ol { border-left: 0; }
  .post__toc li a { padding-left: 0; border-left: 0; margin-left: 0; }
}

.prose-article { max-width: 70ch; font-size: 1.125rem; line-height: 1.7; }
.prose-article > * + * { margin-top: 1.1em; }
.prose-article h2 {
  margin-top: 2.2em; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.03em;
}
.prose-article h3 { margin-top: 1.8em; font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem); }
.prose-article h2 + *, .prose-article h3 + * { margin-top: 0.6em; }
.prose-article > :first-child { margin-top: 0; }
.prose-article a { color: var(--brand-primary); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-article a:hover { text-decoration-thickness: 2px; }
.prose-article strong { font-weight: 600; color: var(--brand-text); }
.prose-article ul, .prose-article ol { padding-left: 0; }
.prose-article li { position: relative; padding-left: 28px; }
.prose-article li + li { margin-top: 0.5em; }
.prose-article ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.78em; width: 10px; height: 2px; background: var(--brand-primary);
}
.prose-article ol { counter-reset: item; }
.prose-article ol > li { counter-increment: item; }
.prose-article ol > li::before {
  content: counter(item) "."; position: absolute; left: 0; font-weight: 700; color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}
.prose-article blockquote {
  margin-inline: 0; padding: 20px 24px; border-left: 4px solid var(--brand-primary);
  background: var(--brand-accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.1875rem; line-height: 1.5; color: var(--brand-text);
}
.prose-article code {
  padding: 0.1em 0.35em; font-size: 0.9em; background: var(--surface); border-radius: 4px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.post-cta { background: var(--brand-primary); color: var(--on-dark-strong); padding-block: clamp(56px, 7vw, 96px); }
.post-cta__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.post-cta h2 { color: var(--on-dark-strong); font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.post-cta p { margin-top: 16px; max-width: 54ch; color: var(--on-dark-muted); }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: flex-end; }
@media (max-width: 900px) {
  .post-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .post-cta__actions { justify-content: flex-start; }
}
@media (max-width: 560px) { .post-cta__actions .btn { width: 100%; } }

.related__title { margin-bottom: clamp(24px, 3vw, 40px); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }

/* ---------- Aviso de cookies ---------- */
/* Superfície clara: contrasta com as seções em petróleo e com o fundo bege. */
.cookie-banner {
  position: fixed; z-index: 60;
  right: var(--gutter); bottom: var(--gutter);
  width: min(420px, calc(100% - var(--gutter) * 2));
  padding: 22px 24px 24px;
  background: var(--surface); color: var(--brand-text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 64px -16px rgba(5, 18, 17, 0.5), 0 2px 8px rgba(5, 18, 17, 0.12);
}
.cookie-banner :focus-visible { outline-color: var(--brand-primary); }
.cookie-banner__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--brand-primary); }
.cookie-banner__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.cookie-banner__text a { color: var(--brand-primary); font-weight: 600; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-banner__actions .btn { flex: 1 1 120px; }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: fade-up 0.5s var(--ease-out) 0.8s both; }
}

.link-button {
  padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--brand-primary); }

/* Blog: busca, cabeçalho dos grupos e páginas de categoria */
.blog-search { margin-top: 36px; max-width: 560px; }
.blog-search label { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--on-dark-strong); }
.blog-search input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 1.0625rem; color: var(--brand-text);
  background: var(--surface); border: 2px solid transparent; border-radius: var(--radius);
}
.blog-search input::placeholder { color: var(--text-muted); }
.blog-search input:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.blog-search + .chips { margin-top: 20px; }
.chip[aria-current="page"] { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-text); }
.post-card[hidden] { display: none; }

.blog-group__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-bottom: 8px;
}
.blog-group__head .blog-group__title { margin-bottom: 0; }
.blog-empty { padding: 24px; background: var(--surface); border-radius: var(--radius); color: var(--text-muted); }

.breadcrumb--dark { margin-bottom: 24px; }
.breadcrumb--dark ol { color: var(--on-dark-muted); }
.breadcrumb--dark a { color: var(--on-dark-muted); }
.breadcrumb--dark a:hover { color: var(--on-dark-strong); }

/* ==========================================================================
   Manifesto — as palavras acendem conforme a rolagem (JS); sem JS, texto pleno
   ========================================================================== */
.manifesto { padding-block: clamp(96px, 14vw, 200px); }
.manifesto__text {
  max-width: 22ch;
  font-size: clamp(2rem, 0.9rem + 4.2vw, 4.75rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.04em;
  color: var(--brand-primary);
  text-wrap: balance;
}
.manifesto__text .w { transition: opacity 0.25s linear; }

/* ==========================================================================
   Soluções — vitrine: texto à esquerda, palco fixo à direita
   ========================================================================== */
.solutions { position: relative; }
.showcase {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0 clamp(32px, 5vw, 80px);
  align-items: start;
}
.showcase__list { grid-column: 1; grid-row: 1; }
.showcase__stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: calc(var(--header-h) + 6vh);
  height: min(600px, calc(100vh - var(--header-h) - 12vh));
  border-radius: 20px;
  background: var(--brand-primary);
  overflow: hidden;
  isolation: isolate;
}
/* Formas da marca ao fundo do palco */
.showcase__stage::before, .showcase__stage::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
}
.showcase__stage::before {
  right: -8%; bottom: -14%; width: 52%; aspect-ratio: 1.4;
  background: var(--brand-accent); opacity: 0.16;
  border-radius: 40% 0 0 0;
}
.showcase__stage::after {
  left: -10%; top: -20%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(215, 230, 165, 0.12), transparent 65%);
}

.solution-item {
  min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 48px;
  transition: opacity 0.4s ease;
}
.solution-item h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.solution-item > p { margin-top: 16px; max-width: 48ch; font-size: 1.0625rem; }
.solution-item .solution__when { margin-top: 24px; }

/* Cenas: empilhadas no palco, só a ativa aparece */
.scene {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(20px, 3.5vw, 44px);
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s linear 0.5s;
}
.scene.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out), visibility 0s;
}
.scene > * { width: 100%; max-width: 560px; }

/* --- Cena 1: site se montando --- */
.mock-browser {
  position: relative;
  background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.5);
}
.mock-browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #E9E6DC; }
.mock-browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: #CFCABB; }
.mock-browser__bar i {
  margin-left: 10px; flex: 1; height: 20px; border-radius: 999px; background: var(--surface);
  font-style: normal; font-size: 0.6875rem; line-height: 20px; padding-left: 10px; color: var(--text-muted);
}
.mock-site { padding: 16px 18px 20px; }
.ms-nav { display: flex; align-items: center; gap: 10px; }
.ms-nav b { width: 64px; height: 10px; border-radius: 3px; background: var(--brand-primary); margin-right: auto; }
.ms-nav span { width: 34px; height: 6px; border-radius: 3px; background: #D5D1C4; }
.ms-nav em { width: 56px; height: 16px; border-radius: 4px; background: var(--brand-accent); }
.ms-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 22px; align-items: center; }
.ms-h1 { height: 16px; border-radius: 4px; background: var(--brand-primary); }
.ms-h1 + .ms-h1 { margin-top: 7px; }
.ms-h1--short { width: 70%; }
.ms-p { height: 7px; margin-top: 12px; border-radius: 3px; background: #D5D1C4; }
.ms-p + .ms-p { margin-top: 6px; }
.ms-p--short { width: 60%; }
.ms-btn {
  display: inline-block; margin-top: 14px; padding: 7px 12px; border-radius: 5px;
  font-size: 0.6875rem; font-weight: 600; color: var(--on-dark-strong); background: var(--brand-primary);
}
.ms-img {
  aspect-ratio: 1.15; border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 52%, var(--brand-accent) 52%),
    var(--brand-primary);
}
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ms-cards div { height: 46px; border-radius: 6px; background: #E9E6DC; border-top: 3px solid var(--brand-primary); }
.ms-cursor {
  position: absolute; left: 22%; top: 70%; width: 18px; height: 18px;
  clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 66% 92%, 44% 66%, 82% 66%);
  background: var(--brand-text); opacity: 0;
}
.ms-toast {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--brand-text);
  background: var(--brand-accent); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
}
.ms-toast span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }

/* --- Cena 2: painel --- */
.mock-app {
  display: grid; grid-template-columns: 48px 1fr; min-height: 340px;
  background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.5);
}
.ma-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; background: var(--brand-primary); }
.ma-side b { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-accent); margin-bottom: 8px; }
.ma-side span { width: 18px; height: 18px; border-radius: 5px; background: rgba(244, 242, 235, 0.18); }
.ma-side span.is-on { background: rgba(244, 242, 235, 0.6); }
.ma-main { padding: 16px 18px; min-width: 0; }
.ma-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.875rem; color: var(--brand-primary); }
.ma-top em { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }
.ma-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ma-kpis div { padding: 10px 12px; border-radius: 8px; background: #EAE7DD; }
.ma-kpis small { display: block; font-size: 0.6875rem; color: var(--text-muted); }
.ma-kpis strong { font-size: 1.375rem; letter-spacing: -0.02em; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.ma-chart { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 14px; padding: 10px; border-radius: 8px; background: #EAE7DD; }
.ma-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--brand-primary); transform-origin: bottom; }
.ma-chart span:last-child { background: #9DB86A; }
.ma-rows { margin-top: 12px; }
.ma-rows li {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 0; border-top: 1px solid var(--line); font-size: 0.75rem;
}
.ma-rows b { color: var(--brand-primary); }
.ma-rows span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-rows i { font-style: normal; font-weight: 600; font-size: 0.6875rem; padding: 3px 8px; border-radius: 999px; }
.ma-rows i.ok { background: var(--brand-accent); color: var(--brand-text); }
.ma-rows i.wait { background: #E5E1D4; color: var(--text-muted); }

/* --- Cena 3: fluxo de automação --- */
.flow { position: relative; display: grid; gap: 18px; }
.flow::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(215, 230, 165, 0.55) 0 6px, transparent 6px 12px);
}
.flow li {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 18px 12px 0;
  border-radius: 12px;
  background: rgba(244, 242, 235, 0.06);
  border: 1px solid var(--line-on-dark);
  color: var(--on-dark-strong);
}
.flow__icon {
  justify-self: center;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.875rem; font-weight: 700;
  background: var(--brand-primary); border: 2px solid var(--brand-accent); color: var(--brand-accent);
  position: relative; z-index: 1;
}
.flow strong { display: block; font-size: 0.9375rem; }
.flow small { display: block; font-size: 0.8125rem; color: var(--on-dark-muted); }
.flow em {
  font-style: normal; font-weight: 700; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8125rem;
  background: var(--brand-accent); color: var(--brand-text);
}

/* --- Cena 4: assistente de IA --- */
.mock-chat {
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.5);
}
.mc-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #E9E6DC; }
.mc-head b { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--brand-accent), #9DB86A); flex: none; }
.mc-head strong { display: block; font-size: 0.875rem; color: var(--brand-primary); }
.mc-head small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.mc-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 20px; min-height: 280px; }
.mc-msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 0.875rem; line-height: 1.45; }
.mc-msg--user { align-self: flex-end; background: var(--brand-primary); color: var(--on-dark-strong); border-bottom-right-radius: 4px; }
.mc-msg--bot { align-self: flex-start; background: #EAE7DD; color: var(--brand-text); border-bottom-left-radius: 4px; }
.mc-source {
  display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; color: var(--brand-primary); background: var(--brand-accent);
}
.mc-typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #EAE7DD; }
.mc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.mc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-actions span {
  padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  border: 1.5px solid var(--brand-primary); color: var(--brand-primary);
}

/* Animações das cenas: só com movimento permitido; sem isso, cada cena já
   aparece no estado final. As animações reiniciam quando a cena fica ativa. */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .ms-nav, .scene.is-active .ms-h1, .scene.is-active .ms-p,
  .scene.is-active .ms-btn, .scene.is-active .ms-img, .scene.is-active .ms-cards div {
    animation: build-in 0.6s var(--ease-out) both;
  }
  .scene.is-active .ms-nav { animation-delay: 0.1s; }
  .scene.is-active .ms-h1 { animation-delay: 0.3s; }
  .scene.is-active .ms-h1--short { animation-delay: 0.4s; }
  .scene.is-active .ms-p { animation-delay: 0.55s; }
  .scene.is-active .ms-p--short { animation-delay: 0.62s; }
  .scene.is-active .ms-btn { animation-delay: 0.75s; }
  .scene.is-active .ms-img { animation-delay: 0.5s; }
  .scene.is-active .ms-cards div:nth-child(1) { animation-delay: 0.9s; }
  .scene.is-active .ms-cards div:nth-child(2) { animation-delay: 1s; }
  .scene.is-active .ms-cards div:nth-child(3) { animation-delay: 1.1s; }
  .scene.is-active .ms-cursor { animation: cursor-click 1.4s var(--ease-out) 1.4s both; }
  .scene.is-active .ms-btn { animation: build-in 0.6s var(--ease-out) 0.75s both, btn-press 0.25s ease 2.5s; }
  .scene.is-active .ms-toast { animation: toast-in 0.5s var(--ease-out) 2.75s both; }

  .scene.is-active .ma-kpis div { animation: build-in 0.5s var(--ease-out) both; }
  .scene.is-active .ma-kpis div:nth-child(2) { animation-delay: 0.1s; }
  .scene.is-active .ma-kpis div:nth-child(3) { animation-delay: 0.2s; }
  .scene.is-active .ma-chart span { animation: bar-grow 0.8s var(--ease-out) both; }
  .scene.is-active .ma-chart span:nth-child(2) { animation-delay: 0.06s; }
  .scene.is-active .ma-chart span:nth-child(3) { animation-delay: 0.12s; }
  .scene.is-active .ma-chart span:nth-child(4) { animation-delay: 0.18s; }
  .scene.is-active .ma-chart span:nth-child(5) { animation-delay: 0.24s; }
  .scene.is-active .ma-chart span:nth-child(6) { animation-delay: 0.3s; }
  .scene.is-active .ma-chart span:nth-child(7) { animation-delay: 0.36s; }
  .scene.is-active .ma-chart span:nth-child(8) { animation-delay: 0.42s; }
  .scene.is-active .ma-rows li { animation: row-in 0.5s var(--ease-out) both; }
  .scene.is-active .ma-rows li:nth-child(1) { animation-delay: 0.7s; }
  .scene.is-active .ma-rows li:nth-child(2) { animation-delay: 0.85s; }
  .scene.is-active .ma-rows li:nth-child(3) { animation-delay: 1s; }

  .scene.is-active .flow::before { animation: flow-dash 0.9s linear infinite; }
  .scene.is-active .flow li { animation: flow-step 0.5s var(--ease-out) both; }
  .scene.is-active .flow li:nth-child(2) { animation-delay: 0.6s; }
  .scene.is-active .flow li:nth-child(3) { animation-delay: 1.2s; }
  .scene.is-active .flow li:nth-child(4) { animation-delay: 1.8s; }
  .scene.is-active .flow em { animation: check-pop 0.4s var(--ease-out) both; }
  .scene.is-active .flow li:nth-child(1) em { animation-delay: 0.35s; }
  .scene.is-active .flow li:nth-child(2) em { animation-delay: 0.95s; }
  .scene.is-active .flow li:nth-child(3) em { animation-delay: 1.55s; }
  .scene.is-active .flow li:nth-child(4) em { animation-delay: 2.15s; }

  .scene.is-active .mc-msg--user { animation: build-in 0.5s var(--ease-out) 0.2s both; }
  .scene.is-active .mc-typing { display: flex; animation: typing-life 1.4s steps(1) 0.8s both; }
  .scene.is-active .mc-typing span { animation: dot-bounce 0.9s ease-in-out infinite; }
  .scene.is-active .mc-typing span:nth-child(2) { animation-delay: 0.15s; }
  .scene.is-active .mc-typing span:nth-child(3) { animation-delay: 0.3s; }
  .scene.is-active .mc-msg--bot { animation: build-in 0.5s var(--ease-out) 2.2s both; }
  .scene.is-active .mc-source { animation: check-pop 0.4s var(--ease-out) 2.8s both; }
  .scene.is-active .mc-actions { animation: build-in 0.5s var(--ease-out) 3.2s both; }
}
@keyframes build-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes cursor-click {
  0% { opacity: 0; transform: translate(120px, 60px); }
  20% { opacity: 1; }
  80% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.9); }
}
@keyframes btn-press { 50% { transform: scale(0.94); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes flow-dash { to { background-position: 0 12px; } }
@keyframes flow-step {
  from { opacity: 0.25; border-color: var(--line-on-dark); }
  to { opacity: 1; }
}
@keyframes check-pop { from { opacity: 0; transform: scale(0.4); } 70% { transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes dot-bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-4px); opacity: 1; } }
/* O "digitando" aparece por um instante e some antes da resposta. */
@keyframes typing-life { 0% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; margin: -6px 0; } }
.mc-typing { overflow: hidden; }

/* Sem movimento: o "digitando" não aparece; a resposta já está pronta. */
@media (prefers-reduced-motion: reduce) {
  .ms-toast { opacity: 1; }
}

/* Cena dentro de cada item (criada pelo JS): usada no celular e no tablet */
.solution-item__stage { display: none; }

@media (min-width: 961px) {
  .js .solution-item:not(.is-active) { opacity: 0.32; }
}
@media (max-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .js .showcase__stage { display: none; }
  .showcase__stage { position: relative; top: auto; grid-row: 1; margin-bottom: 24px; height: 380px; }
  .showcase__list { grid-row: 2; }
  .solution-item { min-height: 0; padding-block: 0; margin-top: clamp(48px, 10vw, 72px); }
  .solution-item:first-child { margin-top: 0; }
  .js .solution-item__stage {
    display: block; position: relative; overflow: hidden; isolation: isolate;
    height: clamp(300px, 78vw, 420px); margin-bottom: 28px;
    border-radius: 18px; background: var(--brand-primary);
  }
  .solution-item__stage::before {
    content: ""; position: absolute; z-index: -1; right: -10%; bottom: -18%; width: 55%; aspect-ratio: 1.4;
    background: var(--brand-accent); opacity: 0.16; border-radius: 40% 0 0 0;
  }
  .scene { padding: 18px; }
  .scene > * { max-width: 460px; }
  .mock-app { min-height: 0; }
  .ma-chart { height: 64px; }
  .flow { gap: 10px; }
  .flow li { padding-block: 8px; }
  .mc-body { min-height: 0; padding-block: 12px; gap: 8px; }
}
@media (max-width: 480px) {
  .ms-cards { display: none; }
  .ma-rows li:nth-child(3) { display: none; }
  .flow small { display: none; }
  .mc-actions { display: none; }
}

/* ==========================================================================
   Como trabalhamos — linha do tempo que se desenha com a rolagem
   ========================================================================== */
.steps { position: relative; padding-top: 0; }
.js .steps::before, .js .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
}
.js .steps::before { background: var(--line-on-dark); }
.js .steps::after {
  background: var(--brand-accent);
  transform-origin: left; transform: scaleX(var(--progress, 1));
}
.js .steps .step { border-top-color: transparent; }
.js .step .step__index {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(215, 230, 165, 0.45);
  transition: color 0.4s ease, -webkit-text-stroke-color 0.4s ease;
}
.js .step.is-lit .step__index { color: var(--brand-accent); -webkit-text-stroke-color: var(--brand-accent); }
.js .step:not(.is-lit) h3, .js .step:not(.is-lit) p, .js .step:not(.is-lit) .step__outcome { opacity: 0.45; }
.js .step h3, .js .step p, .js .step .step__outcome { transition: opacity 0.4s ease; }
@media (max-width: 1024px) {
  .js .steps::before, .js .steps::after { display: none; }
  .js .steps .step { border-top-color: var(--line-on-dark); }
}
@media (prefers-reduced-motion: reduce) {
  .js .step .step__index { color: var(--brand-accent); -webkit-text-stroke: 0; }
  .js .step:not(.is-lit) h3, .js .step:not(.is-lit) p, .js .step:not(.is-lit) .step__outcome { opacity: 1; }
}

/* Contato: parede de projetos repetida, mais discreta */
.contact { isolation: isolate; }
.contact__inner { max-width: 760px; }
.wall--contact {
  z-index: 0; top: -20%; bottom: -20%; right: -10%; width: 50%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  animation: none;
}
.wall--contact .wall__plane { grid-template-columns: repeat(2, minmax(0, 1fr)); transform: rotateX(38deg) rotateZ(-24deg) scale(1.1); }
@media (max-width: 1100px) { .wall--contact { display: none; } }

/* Seletor de idioma (PT / EN) */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 36px; padding: 4px 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-decoration: none;
  color: var(--on-dark-strong);
  border: 1.5px solid var(--line-on-dark); border-radius: 999px;
  transition: border-color 0.15s, background-color 0.15s;
}
.lang-switch:hover { border-color: var(--brand-accent); background: rgba(244, 242, 235, 0.06); }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 1100px) {
  .js .site-nav .lang-switch { align-self: flex-start; min-height: 44px; padding-inline: 16px; }
}

/* PEROVANO 2026 — international consulting identity */
.hero__eyebrow { margin: 0 0 22px; color: var(--brand-accent); font-size: clamp(.72rem, .8vw, .875rem); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero__title { max-width: 1050px; letter-spacing: -.055em; }
.brand__descriptor { letter-spacing: .135em; }
.site-header .brand__descriptor { color: #D4B284; }
.hero { background-color: #101B2B; }
.hero::after { pointer-events: none; }
.btn--accent { box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.section__head .kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
@media (max-width: 700px) { .hero__eyebrow { letter-spacing: .105em; line-height: 1.6; } .brand__descriptor { font-size: .51rem; letter-spacing: .07em; } }


/* ========================================================================
   PEROVANO — corporate consulting redesign / homepage
   ======================================================================== */
.hero--consulting {
  display: block;
  min-height: auto;
  padding-top: clamp(56px,6vw,104px);
  background: #101b2b;
  background-image: radial-gradient(ellipse at 78% 20%, rgba(70,101,135,.24), transparent 50%);
}
.consulting-hero {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr);
  align-items: center;
  gap: clamp(48px,6vw,112px);
  min-height: 600px;
}
.consulting-hero__copy { position:relative; z-index:2; padding: 0 0 48px; }
.hero--consulting .hero__title {
  font-size:clamp(3.2rem,5.7vw,6.65rem);
  letter-spacing:-.069em;
  line-height:1.035;
  max-width: 11.6ch;
}
.hero--consulting .hero__title span { display:block; }
.hero--consulting .hero__title .consulting-hero__accent { color:#d4b284; }
.hero--consulting .hero__lead { max-width:55ch; font-size:clamp(1.05rem,1.5vw,1.3rem); line-height:1.75; }
.hero--consulting .hero__actions .btn { gap:18px; }
.consulting-hero__footnote { display:flex; align-items:center; gap:12px; margin-top:clamp(50px,7vw,96px); color:#a3b5c9; font-size:.7rem; letter-spacing:.15em; font-weight:700; }
.consulting-hero__dot { width:7px; height:7px; background:#d4b284; border-radius:50%; box-shadow:0 0 0 5px rgba(212,178,132,.1); }
.consulting-hero__visual {
  position:relative; min-width:0; height:clamp(390px,40vw,570px);
  border:1px solid rgba(223,231,241,.14);
  background:linear-gradient(145deg,#1c3048,#101c2d 74%);
  overflow:hidden;
  isolation:isolate;
}
.consulting-hero__visual::after { content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(110deg,transparent 45%,rgba(212,178,132,.07)); }
.consulting-hero__grid { position:absolute;inset:0;background-image:linear-gradient(rgba(199,217,235,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(199,217,235,.065) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(180deg,#000,transparent 95%); }
.consulting-hero__visual-label,.consulting-hero__index { position:absolute;color:#e0e8f2;z-index:5;letter-spacing:.13em;font-size:.66rem;font-weight:700; }
.consulting-hero__visual-label {left:28px;top:28px; }
.consulting-hero__visual-label span {color:#9cb0c5;}
.consulting-hero__index {right:28px;bottom:26px;color:#d4b284;}
.consulting-hero__screen { position:absolute;overflow:hidden;background:#fff;border:6px solid #dce5ee;border-radius:7px;box-shadow:0 34px 75px rgba(0,0,0,.44); }
.consulting-hero__screen img { width:100%;height:100%;object-fit:cover;object-position:top left; }
.consulting-hero__screen--main {left:13%;top:23%;width:88%;aspect-ratio:1.45;transform:perspective(1100px) rotateY(-13deg) rotateX(4deg);}
.consulting-hero__screen--secondary {left:-3%;bottom:14%;width:48%;aspect-ratio:1.45;transform:perspective(900px) rotateY(-9deg) rotateZ(-5deg);border-width:4px;}
.consulting-hero__footer { display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid rgba(225,236,245,.19);margin-top:30px; }
.consulting-hero__footer span { padding:21px 20px 23px 0;text-transform:uppercase;letter-spacing:.13em;font-size:.68rem;font-weight:700;color:#bdcbd9; }
.consulting-hero__footer span+span {border-left:1px solid rgba(225,236,245,.19);padding-left:28px;}
.consulting-intro { background:#e9eef2; color:#132237; padding:clamp(48px,6vw,90px) 0; }
.consulting-intro__inner { display:grid;grid-template-columns:1fr 2.1fr 1fr;gap:clamp(20px,3vw,65px);align-items:start;}
.consulting-intro__overline {font-size:.7rem;font-weight:700;letter-spacing:.14em;color:#7c674f;}
.consulting-intro h2 {font-size:clamp(1.55rem,2.4vw,2.75rem);letter-spacing:-.045em;line-height:1.15;}
.consulting-intro__inner>p:last-child {color:#526173;font-size:.93rem;line-height:1.65;border-left:2px solid #b38c54;padding-left:20px;}
.consulting-expertise {background:#fff;}
.consulting-expertise__heading {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:48px;align-items:end;margin-bottom:clamp(40px,5vw,70px);}
.consulting-expertise__heading h2 {max-width:16ch;}
.consulting-expertise__heading .lead {max-width:34ch;}
.consulting-expertise__grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.consulting-expertise__card {display:flex;flex-direction:column;align-items:flex-start;min-height:310px;background:#f3f5f7;border:1px solid #e0e6ec;padding:clamp(22px,2.7vw,40px);transition:transform .25s,border-color .25s,box-shadow .25s;}
.consulting-expertise__card:hover {transform:translateY(-5px);border-color:#afbbca;box-shadow:0 20px 38px rgba(14,31,51,.07);}
.consulting-expertise__number {font-size:.72rem;letter-spacing:.15em;color:#987447;font-weight:700;margin-bottom:auto;}
.consulting-expertise__card h3 {font-size:clamp(1.4rem,2vw,2rem);margin-top:58px;margin-bottom:14px;letter-spacing:-.035em;}
.consulting-expertise__card p {font-size:.94rem;color:#566579;line-height:1.6;}
.consulting-expertise__card a {font-size:1.5rem;line-height:1;text-decoration:none;color:#987447;margin-top:25px;transition:transform .2s;}
.consulting-expertise__card a:hover {transform:translate(3px,-3px);}
@media(max-width:1100px) {
  .consulting-hero {gap:35px;}
  .hero--consulting .hero__title {font-size:clamp(2.9rem,5.4vw,5.8rem);}
  .consulting-intro__inner {grid-template-columns:1fr 2fr;}
  .consulting-intro__inner>p:last-child {grid-column:2;}
}
@media(max-width:760px) {
  .hero--consulting {padding-top:52px;}
  .consulting-hero {display:flex;flex-direction:column;gap:30px;min-height:0;align-items:stretch;}
  .consulting-hero__copy {padding:0;}
  .hero--consulting .hero__title {font-size:clamp(2.85rem,10vw,5rem);max-width:12ch;}
  .hero--consulting .hero__lead {max-width:55ch;}
  .consulting-hero__footnote {margin-top:40px;}
  .consulting-hero__visual {height:clamp(315px,76vw,480px);}
  .consulting-hero__footer {margin-top:26px;}
  .consulting-hero__footer span {font-size:.6rem;letter-spacing:.05em;padding:15px 8px 15px 0;}
  .consulting-hero__footer span+span {padding-left:12px;}
  .consulting-intro__inner,.consulting-expertise__heading {display:block;}
  .consulting-intro__overline {margin-bottom:18px;}
  .consulting-intro__inner>p:last-child {margin-top:24px;}
  .consulting-expertise__heading .lead {margin-top:22px;}
  .consulting-expertise__grid {grid-template-columns:1fr;}
  .consulting-expertise__card {min-height:250px;}
  .consulting-expertise__card h3 {margin-top:40px;}
}
@media(prefers-reduced-motion:reduce){.consulting-expertise__card,.consulting-expertise__card a {transition:none;}}


/* VipDesk widget embedded in corporate contact section */
.contact > .container {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
}
.contact__inner { min-width: 0; }
.contact__title { font-size: clamp(2.7rem, 4.3vw, 5.25rem); }
.contact .lead { max-width: 48ch; line-height: 1.7; }
.contact__form-panel {
  min-width: 0; padding: clamp(20px, 3vw, 34px);
  background: #fff; color: #182436;
  border: 1px solid #e0e6ed; border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}
.contact__form-header { margin-bottom: 22px; }
.contact__form-eyebrow { display:block; margin-bottom:12px; font-size:.67rem; letter-spacing:.15em; font-weight:700; color:#8d6c3e; }
.contact__form-header h3 { margin:0 0 8px; color:#101b2b; font-size:clamp(1.4rem,2vw,1.75rem); letter-spacing:-.035em; }
.contact__form-header p { color:#5c6979; font-size:.875rem; line-height:1.55; }
.contact__widget { min-width:0; max-width:100%; }
.contact__widget .vd-lpform {
  max-width:100%; width:100%; margin:0; padding:0; border:0;
  border-radius:0; box-shadow:none; background:transparent;
}
.contact__widget .vd-lpform::before { display:none; }
.contact__widget :is(input,select,textarea,button) { max-width:100%; }
@media(max-width:1000px) {
  .contact > .container {grid-template-columns:minmax(0,1fr);gap:42px;}
  .contact__form-panel {width:100%;max-width:600px;}
  .contact__details {margin-top:40px;}
}
@media(max-width:600px) {
  .contact__form-panel {padding:22px 18px;}
  .contact__title {font-size:clamp(2.25rem,9vw,3.5rem);}
}


/* PEROVANO Core 07 — legible responsive brand lockups.
   Keep the mark separate from live text to avoid scaling tiny SVG typography. */
.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  line-height: 1;
  flex: 0 1 auto;
  min-width: 0;
}
.site-header .brand__symbol {
  display: block;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  object-fit: contain;
}
.site-footer .brand__symbol {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
}
.brand__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  white-space: nowrap;
}
.site-header .brand__name {
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: .075em;
  font-weight: 750;
  color: #fff;
}
.site-header .brand__descriptor {
  font-size: .655rem;
  line-height: 1.3;
  letter-spacing: .055em;
  font-weight: 650;
  color: #d4b284;
}
.site-footer .brand__name {
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: .075em;
  color: #101b2b;
}
.site-footer .brand__descriptor {
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .055em;
  color: #526173;
}
.site-header .brand__symbol,
.site-footer .brand__symbol { transition: opacity .2s ease; }
.site-header .brand:hover .brand__symbol,
.site-footer .brand:hover .brand__symbol { opacity: .85; }
@media (max-width: 1100px) {
  .site-header .brand { gap: 9px; }
  .site-header .brand__symbol { width: 45px; height: 45px; flex-basis: 45px; }
  .site-header .brand__name { font-size: 1.45rem; }
  .site-header .brand__descriptor { font-size: .59rem; letter-spacing: .025em; }
}
@media (max-width: 410px) {
  .site-header .brand { gap: 7px; }
  .site-header .brand__symbol { width: 39px; height: 39px; flex-basis: 39px; }
  .site-header .brand__name { font-size: 1.25rem; }
  .site-header .brand__descriptor { font-size: .52rem; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .brand__symbol,
  .site-footer .brand__symbol { transition: none; }
}
