/* ============================================================
   LEGACY 360 — LP Institucional
   Build production: vanilla CSS, mobile-first, OKLCH, sem framework.
   Foundation: tokens + componentes + seções + responsive + a11y.
   ============================================================ */

/* ============================================================
   FONTES SELF-HOSTED (woff2 variable, ~96KB total)
   ============================================================ */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/spacegrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   TOKENS — Sistema OKLCH completo
   ============================================================ */

:root {
  color-scheme: dark;

  /* Brand */
  --color-bg:               oklch(11.5% 0.005 264);
  --color-purple:           oklch(38.5% 0.135 280);
  --color-purple-hover:     oklch(44%   0.14  280);
  --color-purple-active:    oklch(33%   0.12  280);
  --color-purple-focus:     oklch(60%   0.18  280);
  --color-green:            oklch(78%   0.18  150);
  --color-white:            oklch(98%   0.003 264);

  /* Layers */
  --layer-0:                oklch(11.5% 0.005 264);
  --layer-1:                oklch(13.5% 0.008 280);
  --layer-2:                oklch(15.5% 0.01  280);
  --layer-3:                oklch(18%   0.012 280);
  --layer-deep:             oklch(8%    0     0);

  /* Bordas */
  --border-subtle:          oklch(20%   0.012 280);
  --border-emphasis:        oklch(28%   0.03  280);
  --border-light:           oklch(88%   0.005 280);

  /* Neutros */
  --neutral-50:             oklch(98%   0.003 264);
  --neutral-100:            oklch(92%   0.005 280);
  --neutral-200:            oklch(85%   0.008 280);
  --neutral-500:            oklch(45%   0.01  280);
  --neutral-700:            oklch(28%   0.015 280);
  --neutral-900:            oklch(15%   0.012 280);

  /* Texto */
  --text-on-dark:           var(--color-white);
  --text-secondary-dark:    oklch(72% 0.008 280);
  --text-tertiary-dark:     oklch(55% 0.01  280);
  --text-on-light:          var(--neutral-700);
  --text-secondary-light:   var(--neutral-500);

  /* Detalhes */
  --color-selection-bg:     oklch(38.5% 0.135 280 / 0.4);
  --color-selection-fg:     var(--color-white);
  --color-focus-ring:       oklch(60% 0.18 280 / 0.6);

  /* Fontes */
  --font-display:           "Space Grotesk", "SF Pro Display", -apple-system, sans-serif;
  --font-body:              "DM Sans", "Inter", -apple-system, system-ui, sans-serif;

  /* Tipografia (clamp fluido) */
  --fs-display-xl:          clamp(3rem,    4vw + 2rem,    5.5rem);
  --fs-display-lg:          clamp(2.25rem, 3vw + 1rem,    4rem);
  --fs-display-md:          clamp(2rem,    2.5vw + 0.5rem,3rem);
  --fs-headline:            clamp(1.5rem,  1.5vw + 0.5rem,2rem);
  --fs-subhead:             clamp(1.25rem, 0.5vw + 1rem,  1.5rem);
  --fs-body-lg:             clamp(1.125rem,0.25vw + 1rem, 1.1875rem);
  --fs-body:                1rem;
  --fs-body-sm:             0.875rem;
  --fs-label:               clamp(0.75rem,  0.1vw + 0.7rem, 0.8125rem);
  --fs-eyebrow:             clamp(0.6875rem,0.05vw + 0.65rem,0.75rem);
  --fs-kpi-md:              clamp(2.5rem,   2vw + 1rem,    3.5rem);

  /* Grid */
  --container-max:          1200px;
  --pad-x-mob:              24px;
  --pad-x-tablet:           48px;
  --pad-x-desk:             96px;
  --space-section:          160px;
  --space-section-mob:      96px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 128px;
  --space-13: 160px;

  /* Motion */
  --ease-out-strong:        cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-soft:          cubic-bezier(0.16, 1, 0.3, 1);
  --dur-press:              100ms;
  --dur-fast:               160ms;
  --dur-base:               200ms;
  --dur-medium:             400ms;
  --dur-slow:               500ms;
  --dur-hero:               700ms;

  /* z-index */
  --z-nav:                  100;
  --z-top:                  9999;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--color-selection-bg);
  color: var(--color-selection-fg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--layer-0);
}
::-webkit-scrollbar-thumb {
  background: var(--border-emphasis);
  border: 2px solid var(--layer-0);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

[data-kpi], .tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-purple);
  color: var(--color-white);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: var(--z-top);
}
.skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-fade-in] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad-x-mob);
}
@media (min-width: 768px)  { .container { padding-inline: var(--pad-x-tablet); } }
@media (min-width: 1024px) { .container { padding-inline: var(--pad-x-desk);   } }

.section {
  padding-block: var(--space-section-mob);
  position: relative;
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-section); }
}

.section--light {
  background: var(--neutral-50);
  color: var(--text-on-light);
}
.section--light h1,
.section--light h2,
.section--light h3 {
  color: var(--text-on-light);
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */

.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.t-headline {
  font-family: var(--font-body);
  font-size: var(--fs-headline);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-subhead {
  font-family: var(--font-body);
  font-size: var(--fs-subhead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 640px;
}
.t-body-lg {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: 1.55;
}
.t-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  line-height: 1.55;
}
.t-label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.t-kpi-md {
  font-family: var(--font-display);
  font-size: var(--fs-kpi-md);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

.c-purple        { color: var(--color-purple); }
.c-green         { color: var(--color-green); }
.c-secondary     { color: var(--text-secondary-dark); }
.c-sec-light     { color: var(--text-secondary-light); }

/* ============================================================
   FADE-IN ENTRANCE (JS-driven via IntersectionObserver)
   ============================================================ */

[data-fade-in] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-medium) var(--ease-out-strong),
              transform var(--dur-medium) var(--ease-out-strong);
}
[data-fade-in].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: oklch(11.5% 0.005 264 / 0.7);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out-strong),
              background var(--dur-base) var(--ease-out-strong);
}
.nav.is-scrolled {
  background: oklch(11.5% 0.005 264 / 0.92);
  border-bottom-color: var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  height: 22px;
  width: auto;
}
.nav__links {
  display: none;
  gap: var(--space-7);
  list-style: none;
}
@media (min-width: 1024px) {
  .nav__links { display: flex; }
}
.nav__links a {
  color: var(--text-secondary-dark);
  transition: color var(--dur-fast) var(--ease-out-strong);
}
.nav__links a:hover { color: var(--color-white); }
.nav__cta {
  display: none;
}
@media (min-width: 768px) {
  .nav__cta { display: inline-flex; }
}

/* ============================================================
   BOTÕES
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 18px 32px;
  background: var(--color-purple);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background var(--dur-fast) var(--ease-out-strong);
}
.btn-primary:hover { background: var(--color-purple-hover); }
.btn-primary:active {
  background: var(--color-purple-active);
  transform: scale(0.97);
  transition: transform var(--dur-press) ease-out, background var(--dur-fast);
}
.btn-primary--small {
  padding: 12px 20px;
  font-size: 0.75rem;
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 18px 0;
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out-strong);
}
.btn-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: calc(100% - 18px);
  height: 1px;
  background: var(--text-secondary-dark);
  transform-origin: left;
  transition: background var(--dur-fast) var(--ease-out-strong);
}
.btn-secondary .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-strong);
}
.btn-secondary:hover { color: var(--color-white); }
.btn-secondary:hover::after { background: var(--color-white); }
.btn-secondary:hover .arrow { transform: translateX(4px); }
.btn-secondary:active { opacity: 0.85; }

.section--light .btn-secondary {
  color: var(--text-on-light);
}
.section--light .btn-secondary::after {
  background: var(--text-secondary-light);
}
.section--light .btn-secondary:hover {
  color: var(--text-on-light);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 768px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
    gap: var(--space-7);
  }
}

/* ============================================================
   EYEBROW
   ============================================================ */

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: var(--color-purple);
}
.eyebrow::before {
  content: "· ";
  opacity: 0.7;
}

/* ============================================================
   SEÇÃO 1 — HERO
   ============================================================ */

.hero {
  padding-block: var(--space-section-mob);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--space-section); }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 80%;
  background: url("/assets/textures/topo-roxa.jpg") no-repeat top right / cover;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (min-width: 1024px) {
  .hero::before { opacity: 0.12; }
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__h1 {
  margin-bottom: var(--space-6);
  max-width: 980px;
}
.hero__sub {
  color: var(--text-secondary-dark);
  max-width: 640px;
  margin-bottom: var(--space-8);
}
.hero__anchor {
  margin-top: var(--space-10);
  padding: var(--space-6);
  background: var(--layer-2);
  border: 1px solid var(--border-subtle);
  max-width: 760px;
}
@media (min-width: 1024px) {
  .hero__anchor {
    padding: var(--space-7) var(--space-8);
    margin-top: var(--space-11);
  }
}
.hero__anchor-label {
  display: block;
  color: var(--text-secondary-dark);
  margin-bottom: var(--space-4);
}
.hero__anchor-text {
  color: var(--text-on-dark);
}
.hero__anchor-text strong {
  color: var(--color-white);
  font-weight: 600;
}
.hero__anchor-text .num {
  color: var(--color-green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SEÇÃO 2 — MANIFESTO
   ============================================================ */

.manifesto {
  padding-block: var(--space-section-mob);
}
@media (min-width: 1024px) {
  .manifesto { padding-block: var(--space-section); }
}
.manifesto__inner {
  max-width: 760px;
}
.manifesto__h2 {
  margin-bottom: var(--space-8);
}
.manifesto__p {
  color: var(--text-secondary-dark);
  margin-bottom: var(--space-6);
}
.manifesto__p--strong {
  color: var(--color-white);
  font-weight: 500;
}
.manifesto__p:last-child {
  margin-bottom: 0;
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 500;
  line-height: 0.9;
  color: var(--color-purple);
  float: left;
  margin: 6px 14px 0 0;
  padding-top: 6px;
}
@media (min-width: 1024px) {
  .dropcap::first-letter {
    font-size: 5.5rem;
    margin: 4px 16px 0 0;
  }
}

/* ============================================================
   SEÇÃO 2.5 — PULL-QUOTE
   ============================================================ */

.pullquote {
  padding-block: var(--space-11);
  text-align: center;
}
@media (min-width: 1024px) {
  .pullquote { padding-block: var(--space-13); }
}
.pullquote__inner {
  max-width: 720px;
  margin-inline: auto;
}
.pullquote__eyebrow {
  display: block;
  color: var(--color-purple);
  margin-bottom: var(--space-7);
}
.pullquote__eyebrow::before { content: "· "; opacity: 0.7; }
.pullquote__text {
  color: var(--color-white);
}
.section--light .pullquote__text {
  color: var(--text-on-light);
}

/* ============================================================
   SEÇÃO 3 — ESCOPO (fundo claro, hierarquia decrescente)
   ============================================================ */

.escopo__header {
  margin-bottom: var(--space-10);
}
@media (min-width: 1024px) {
  .escopo__header { margin-bottom: var(--space-12); }
}
.escopo__h2 { margin-bottom: var(--space-5); }
.escopo__sub { color: var(--text-secondary-light); }

.escopo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
}
@media (min-width: 768px) {
  .escopo__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10) var(--space-9);
  }
}
@media (min-width: 1024px) {
  .escopo__grid { gap: var(--space-11) var(--space-10); }
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-light);
}
.benefit__num {
  color: var(--color-purple);
  margin-bottom: var(--space-2);
}
.benefit__title {
  color: var(--text-on-light);
  margin-bottom: var(--space-2);
}
.benefit__title--xl { font-family: var(--font-display); font-size: var(--fs-display-md); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
.benefit__title--lg { font-family: var(--font-body); font-size: var(--fs-headline); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.benefit__title--md { font-family: var(--font-body); font-size: var(--fs-subhead); font-weight: 500; line-height: 1.3; }
.benefit__title--sm { font-family: var(--font-body); font-size: var(--fs-body-lg); font-weight: 500; line-height: 1.4; }

.benefit__body { color: var(--text-secondary-light); }

/* ============================================================
   SEÇÃO 4 — CASES (hierarquia diferenciada)
   ============================================================ */

.cases {
  position: relative;
  overflow: hidden;
}
.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/textures/topo-preta.jpg") no-repeat center / cover;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}
@media (min-width: 1024px) {
  .cases::before { opacity: 0.06; }
}
.cases__inner { position: relative; z-index: 1; }
.cases__header { margin-bottom: var(--space-10); }
@media (min-width: 1024px) {
  .cases__header { margin-bottom: var(--space-12); }
}
.cases__h2 { margin-bottom: var(--space-5); }
.cases__sub { color: var(--text-secondary-dark); }

.cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .cases__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "medical medical"
      "unimed goat"
      "ressonare ressonare";
    gap: var(--space-6);
  }
}
.case--medical   { grid-area: medical; }
.case--unimed    { grid-area: unimed; }
.case--goat      { grid-area: goat; }
.case--ressonare { grid-area: ressonare; }

.case {
  background: var(--layer-2);
  border: 1px solid var(--border-subtle);
  padding: var(--space-6);
  transition: background var(--dur-base) var(--ease-out-strong),
              border-color var(--dur-base) var(--ease-out-strong);
}
@media (min-width: 768px) {
  .case { padding: var(--space-7); }
}
@media (min-width: 1024px) {
  .case { padding: var(--space-8); }
}
.case:hover {
  background: var(--layer-3);
  border-color: var(--border-emphasis);
}
.case__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}
.case__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.case__name {
  color: var(--color-white);
  letter-spacing: 0.08em;
}
.case__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) {
  .case__kpis {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
.case--medical .case__kpis,
.case--goat .case__kpis,
.case--ressonare .case__kpis {
  /* fica auto-fit definido acima */
}
.kpi-case {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.kpi-case__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw + 0.5rem, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  font-variant-numeric: tabular-nums lining-nums;
}
.kpi-case__value--green { color: var(--color-green); }
.kpi-case__label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary-dark);
  line-height: 1.4;
}

.quote {
  position: relative;
  padding-left: var(--space-7);
  margin-top: var(--space-6);
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: -4px;
  top: -16px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-purple);
  font-weight: 500;
}
.quote__text {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-on-dark);
}
.quote__source {
  display: block;
  margin-top: var(--space-5);
  color: var(--text-secondary-dark);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quote__source::before {
  content: "──── ";
  color: var(--border-emphasis);
  letter-spacing: -0.1em;
}
.quote__source-name {
  color: var(--color-white);
  font-weight: 500;
}

/* Ressonare: KPIs em linha horizontal sem grid de KPI tradicional */
.case--ressonare .case__kpis {
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .case--ressonare .case__kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   SEÇÃO 5 — INFRAESTRUTURA (fundo claro, zigue-zague)
   ============================================================ */

.infra__header { margin-bottom: var(--space-10); }
@media (min-width: 1024px) {
  .infra__header { margin-bottom: var(--space-12); }
}
.infra__h2 { margin-bottom: var(--space-5); }
.infra__sub { color: var(--text-secondary-light); }

.infra__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}
@media (min-width: 768px) {
  .infra__list { gap: var(--space-11); }
}
.infra__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .infra__item {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-10);
  }
  .infra__item:nth-child(even) > .infra__content {
    grid-column: 2;
  }
}
.infra__num {
  color: var(--color-purple);
}
.infra__title {
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: var(--fs-headline);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: var(--space-2);
}
.infra__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.infra__closing {
  margin-top: var(--space-12);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
@media (min-width: 1024px) {
  .infra__closing { margin-top: var(--space-13); }
}

/* ============================================================
   SEÇÃO 6 — SOCIEDADE (timeline hierarquia invertida)
   ============================================================ */

.sociedade {
  position: relative;
  overflow: hidden;
}
.sociedade::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("/assets/textures/topo-roxa.jpg") no-repeat right center / cover;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (min-width: 1024px) {
  .sociedade::before { opacity: 0.08; }
}
.sociedade__inner { position: relative; z-index: 1; }
.sociedade__header { margin-bottom: var(--space-10); }
@media (min-width: 1024px) {
  .sociedade__header { margin-bottom: var(--space-12); }
}
.sociedade__h2 { margin-bottom: var(--space-5); }
.sociedade__sub { color: var(--text-secondary-dark); }

.timeline {
  display: flex;
  flex-direction: column;
}
.timeline__item {
  padding-block: var(--space-9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .timeline__item { padding-block: var(--space-10); }
}
.timeline__item:last-child {
  border-bottom: none;
}
.timeline__item:first-child {
  padding-top: 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-9);
}
@media (min-width: 1024px) {
  .timeline__item:first-child { padding-top: var(--space-10); }
}
.timeline__index {
  display: block;
  color: var(--text-secondary-dark);
}
.timeline__name {
  color: var(--color-white);
  margin-block: var(--space-3);
}
.timeline__body {
  color: var(--text-secondary-dark);
  max-width: 520px;
}

/* ============================================================
   SEÇÃO 7 — FILTRO (hover atenua coluna oposta)
   ============================================================ */

.filtro__header { margin-bottom: var(--space-10); }
@media (min-width: 1024px) {
  .filtro__header { margin-bottom: var(--space-12); }
}
.filtro__h2 { margin-bottom: var(--space-5); }
.filtro__sub { color: var(--text-secondary-dark); }

.filtro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 768px) {
  .filtro__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-11);
  }
}

.filtro__col {
  transition: opacity 300ms var(--ease-out-strong);
}
@media (hover: hover) and (pointer: fine) {
  .filtro__grid:has(.filtro__col--yes:hover) .filtro__col--no  { opacity: 0.5; }
  .filtro__grid:has(.filtro__col--no:hover)  .filtro__col--yes { opacity: 0.5; }
}
.filtro__col-label {
  display: block;
  margin-bottom: var(--space-7);
}
.filtro__col--yes .filtro__col-label { color: var(--color-green); }
.filtro__col--no  .filtro__col-label { color: var(--text-secondary-dark); }

.filtro__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.filtro__item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-on-dark);
}
.filtro__item:last-child { border-bottom: none; }
.filtro__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 2px;
}
.filtro__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.filtro__col--yes .filtro__icon { color: var(--color-green); }
.filtro__col--no  .filtro__icon { color: var(--text-tertiary-dark); }

/* ============================================================
   SEÇÃO 8 — QUEM ESTÁ POR TRÁS
   ============================================================ */

.bio {
  position: relative;
  overflow: hidden;
}
.bio__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 1024px) {
  .bio__inner {
    grid-template-columns: 55fr 45fr;
    gap: var(--space-11);
  }
}

/* Mobile: foto vem primeiro */
.bio__visual { order: -1; }
@media (min-width: 1024px) {
  .bio__visual { order: 0; }
}

.bio__name { margin-bottom: var(--space-4); }
.bio__role {
  display: block;
  color: var(--color-purple);
  margin-bottom: var(--space-7);
}
.bio__role::before { content: "· "; opacity: 0.7; }

.bio__quote {
  padding: var(--space-6) 0;
  margin-bottom: var(--space-7);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.bio__quote-text {
  color: var(--color-white);
}

.bio__body p {
  color: var(--text-secondary-dark);
  margin-bottom: var(--space-5);
}
.bio__body p:last-child {
  color: var(--text-on-dark);
  font-weight: 500;
  margin-bottom: 0;
}

.bio__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--layer-2);
  background-image: url("/assets/textures/topo-roxa.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-7);
  overflow: hidden;
}
.bio__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-purple);
  opacity: 0.22;
  mix-blend-mode: multiply;
}
.bio__photo-label {
  position: relative;
  z-index: 2;
  color: var(--text-secondary-dark);
}

.bio__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-7);
}
@media (min-width: 768px) {
  .bio__kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bio__kpi {
  background: var(--layer-0);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.bio__kpi-value {
  color: var(--color-white);
  font-variant-numeric: tabular-nums lining-nums;
}
.bio__kpi-label {
  color: var(--text-secondary-dark);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.bio__clients-label {
  display: block;
  color: var(--text-secondary-dark);
  margin-bottom: var(--space-5);
}
.bio__clients-label::before { content: "· "; opacity: 0.7; }

.bio__clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-7);
  align-items: center;
}
@media (min-width: 1024px) {
  .bio__clients {
    grid-template-columns: repeat(2, 1fr);
  }
}
.bio__client-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  opacity: 0.65;
  filter: brightness(0) invert(1);
  transition: opacity var(--dur-base) var(--ease-out-strong);
  object-fit: contain;
  object-position: left center;
}
.bio__client-logo:hover { opacity: 1; }

/* ============================================================
   SEÇÃO 9 — CTA FINAL
   ============================================================ */

.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 110%;
  max-width: 1100px;
  transform: translate(-50%, -50%);
  background: url("/assets/textures/topo-roxa.jpg") no-repeat center / cover;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (min-width: 1024px) {
  .cta-final::before { opacity: 0.20; }
}
.cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-inline: auto;
}
.cta-final__h2 {
  margin-bottom: var(--space-7);
}
.cta-final__sub {
  color: var(--text-secondary-dark);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}
.cta-final .cta-row {
  justify-content: center;
}

/* ============================================================
   RODAPÉ
   ============================================================ */

.footer {
  background: var(--layer-deep);
  padding-block: var(--space-11) var(--space-9);
  border-top: 1px solid var(--border-subtle);
}
.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-7);
}
@media (min-width: 1024px) {
  .footer__logo {
    height: 32px;
    margin-bottom: var(--space-8);
  }
}
.footer__divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: var(--space-6);
  max-width: 280px;
}
.footer__meta {
  color: var(--text-tertiary-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .footer__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
  }
  .footer__meta-sep {
    display: inline;
    color: var(--border-emphasis);
  }
}
.footer__meta-sep {
  display: none;
}
.footer__meta a {
  color: var(--text-secondary-dark);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}
.footer__meta a:hover { border-bottom-color: var(--color-purple); }

/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-nav);
  background: var(--color-purple);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--dur-base) var(--ease-out-strong),
              transform var(--dur-base) var(--ease-out-strong),
              background var(--dur-fast);
  border-radius: 0;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--color-purple-hover); }
.back-to-top:active { transform: scale(0.95); }
