.vet-case-page {
  color-scheme: only light;
  background: #052e1b;
}

.vet-case-page .nav {
  color: #fffdf8;
  text-shadow: 0 1px 18px rgba(5, 46, 27, 0.2);
  transition: color 0.35s ease, background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.vet-case-page.vet-past-hero .nav {
  color: #052e1b;
  background: rgba(247, 244, 237, 0.9);
  text-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.vet-case-page.menu-open .nav {
  color: #f4f4f2;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.vet-case-page .nav-cta {
  text-shadow: none;
}

.vet-case {
  --vet-forest: #052e1b;
  --vet-forest-2: #0a4327;
  --vet-green: #126838;
  --vet-green-soft: #5aba69;
  --vet-mint: #dfeade;
  --vet-ivory: #f7f4ed;
  --vet-white: #fffdf8;
  --vet-ink: #1e1814;
  --vet-muted: #67625d;
  --vet-line: rgba(5, 46, 27, 0.17);
  /* Grade igual à da Agromaxxi, o padrão das páginas de case: mesmo recuo
     lateral e container fluido com teto de 1600. Antes o recuo era 4.6vw com
     teto de 82 e o container travava em 1520, o que deixava as três páginas
     com bordas diferentes lado a lado. */
  --vet-pad: clamp(22px, 4.2vw, 76px);
  --vet-shell: min(1600px, calc(100% - (var(--vet-pad) * 2)));
  --vet-radius: clamp(16px, 1.8vw, 28px);
  --vet-display: "DM Sans", "Manrope", Arial, sans-serif;
  --vet-body: "Manrope", Arial, sans-serif;
  color: var(--vet-ink);
  background: var(--vet-ivory);
  font-family: var(--vet-body);
  font-size: 16px;
  line-height: 1.62;
  overflow: clip;
}

.vet-case *,
.vet-case *::before,
.vet-case *::after {
  box-sizing: border-box;
}

.vet-case img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.vet-case a {
  color: inherit;
  text-decoration: none;
}

.vet-case h1,
.vet-case h2,
.vet-case h3,
.vet-case p,
.vet-case figure,
.vet-case blockquote,
.vet-case dl,
.vet-case dd {
  margin: 0;
}

.vet-shell {
  width: var(--vet-shell);
  margin-inline: auto;
}

.vet-section {
  position: relative;
  padding-block: clamp(92px, 12vw, 190px);
}

.vet-case h1,
.vet-case h2,
.vet-case strong {
  font-family: var(--vet-display);
}

.vet-case h2 {
  max-width: 13ch;
  color: var(--vet-forest);
  font-size: clamp(44px, 6.4vw, 106px);
  font-weight: 540;
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.vet-case em {
  color: #8ddb90;
  font-style: italic;
  font-weight: 420;
}

.vet-eyebrow {
  display: block;
  color: var(--vet-green);
  font-family: var(--vet-body);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.vet-chapter {
  display: block;
  color: var(--vet-green);
  font-family: var(--vet-display);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.vet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  width: max-content;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vet-button__icon,
.vet-text-link span {
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.vet-button:hover,
.vet-button:focus-visible {
  transform: translateY(-2px);
}

.vet-button:hover .vet-button__icon,
.vet-button:focus-visible .vet-button__icon,
.vet-text-link:hover span,
.vet-text-link:focus-visible span {
  transform: translate(2px, -2px);
}

.vet-button:active {
  transform: scale(0.98);
}

.vet-button--light {
  color: var(--vet-forest);
  background: var(--vet-white);
  border-color: var(--vet-white);
}

.vet-button--light:hover,
.vet-button--light:focus-visible {
  color: var(--vet-white);
  background: var(--vet-green);
  border-color: var(--vet-green);
}

.vet-button--outline {
  color: var(--vet-white);
  background: rgba(5, 46, 27, 0.35);
  border-color: rgba(255, 253, 248, 0.62);
}

.vet-button--outline:hover,
.vet-button--outline:focus-visible {
  color: var(--vet-forest);
  background: var(--vet-white);
  border-color: var(--vet-white);
}

.vet-button:focus-visible,
.vet-text-link:focus-visible {
  outline: 3px solid #8ddb90;
  outline-offset: 4px;
}

.vet-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding-bottom: 8px;
  color: var(--vet-forest);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

/* Abertura: a primeira cena ocupa o quadro inteiro e estabelece os protagonistas. */
.vet-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 28px) var(--vet-pad) clamp(42px, 7vh, 78px);
  color: var(--vet-white);
  background: var(--vet-forest);
  overflow: hidden;
}

.vet-hero__image,
.vet-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vet-hero__image {
  object-fit: cover;
  object-position: center;
}

.vet-hero__shade {
  background:
    linear-gradient(180deg, rgba(5, 46, 27, 0.62) 0%, transparent 25%),
    linear-gradient(90deg, rgba(5, 46, 27, 0.96) 0%, rgba(5, 46, 27, 0.82) 33%, rgba(5, 46, 27, 0.12) 70%),
    linear-gradient(0deg, rgba(5, 46, 27, 0.5), transparent 48%);
}

.vet-hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  margin-inline: auto;
}

.vet-hero .vet-eyebrow {
  margin-bottom: clamp(16px, 2vh, 24px);
  color: #a8e4a3;
}

.vet-hero h1 {
  max-width: 1180px;
  color: var(--vet-white);
  font-size: clamp(52px, 7vw, 112px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

.vet-hero h1 em {
  display: inline;
  color: #a8e4a3;
  line-height: 1.1;
}

.vet-hero__intro {
  max-width: 570px;
  margin-top: clamp(20px, 3.2vh, 34px) !important;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(16px, 1.25vw, 20px);
}

.vet-hero .vet-button {
  margin-top: clamp(24px, 3.5vh, 38px);
}

/* Origem: copy editorial com os fatos do projeto, sem métricas inventadas. */
.vet-origin {
  background: var(--vet-ivory);
}

.vet-origin .vet-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(48px, 9vw, 160px);
}

.vet-origin__lead h2 {
  max-width: 10ch;
}

.vet-origin__lead > p {
  max-width: 620px;
  margin-top: 30px;
  color: var(--vet-green);
  font-family: var(--vet-display);
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.vet-origin__story {
  align-self: end;
  max-width: 570px;
  color: var(--vet-muted);
}

.vet-origin__story p + p {
  margin-top: 20px;
}

.vet-origin__story .vet-origin__statement {
  color: var(--vet-ink);
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 620;
  line-height: 1.42;
}

.vet-project-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.65fr 0.7fr;
  gap: 0;
  margin-top: clamp(58px, 8vw, 110px);
  padding-top: 26px;
  border-top: 1px solid var(--vet-line);
}

.vet-project-facts div {
  min-height: 104px;
  padding: 0 26px;
  border-left: 1px solid var(--vet-line);
}

.vet-project-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.vet-project-facts dt {
  margin-bottom: 13px;
  color: var(--vet-green);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vet-project-facts dd {
  max-width: 24ch;
  color: var(--vet-forest);
  font-family: var(--vet-display);
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

/* Resposta imediata: texto compacto ao lado da cena clínica vertical. */
.vet-response {
  background: #eef2e9;
}

.vet-response__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(46px, 8vw, 140px);
}

.vet-response__copy {
  padding-left: clamp(0px, 4vw, 70px);
}

.vet-response__copy .vet-chapter,
.vet-diagnosis__head .vet-chapter,
.vet-guidance__copy .vet-chapter,
.vet-recovery__head .vet-chapter,
.vet-final .vet-chapter {
  margin-bottom: 24px;
}

.vet-response__copy h2 {
  max-width: 9.5ch;
  font-size: clamp(48px, 5.6vw, 90px);
}

.vet-response__copy > p {
  max-width: 520px;
  margin-top: 30px;
  color: var(--vet-muted);
}

.vet-response blockquote {
  max-width: 420px;
  margin-top: clamp(50px, 7vw, 90px);
  padding-top: 22px;
  color: var(--vet-green);
  border-top: 1px solid var(--vet-line);
  font-family: var(--vet-display);
  font-size: clamp(24px, 2.35vw, 38px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.vet-media {
  position: relative;
}

.vet-media img {
  height: auto;
  border-radius: var(--vet-radius);
  box-shadow: 0 34px 80px rgba(5, 46, 27, 0.12);
}

.vet-media figcaption {
  max-width: 560px;
  margin-top: 18px;
  color: var(--vet-muted);
  font-size: 12px;
}

/* Diagnóstico: imagem ampla seguida por uma mudança de estado visual. */
.vet-diagnosis {
  background: var(--vet-white);
}

.vet-diagnosis__head {
  max-width: 1040px;
  margin-left: clamp(0px, 10vw, 170px);
}

.vet-diagnosis__head h2 {
  max-width: 12ch;
}

.vet-diagnosis__head > p {
  max-width: 610px;
  margin-top: 28px;
  color: var(--vet-muted);
  font-size: clamp(17px, 1.4vw, 21px);
}

.vet-diagnosis .vet-media {
  margin-top: clamp(50px, 7vw, 104px);
}

.vet-diagnosis__shift {
  display: grid;
  grid-template-columns: 0.65fr 0.65fr 1.7fr;
  gap: clamp(26px, 5vw, 84px);
  align-items: end;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--vet-line);
}

.vet-diagnosis__shift div span {
  display: block;
  margin-bottom: 8px;
  color: var(--vet-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.vet-diagnosis__shift div strong {
  color: var(--vet-forest);
  font-size: clamp(29px, 3.2vw, 54px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1;
}

.vet-diagnosis__shift div:nth-child(2) strong {
  color: var(--vet-green);
}

.vet-diagnosis__shift > p {
  max-width: 560px;
  justify-self: end;
  color: var(--vet-muted);
}

/* Jornada integrada: o texto permanece enquanto o monitor reúne as etapas. */
.vet-connected {
  background: var(--vet-mint);
}

.vet-connected__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(54px, 8vw, 136px);
  align-items: start;
}

.vet-connected__copy {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  padding-top: 10px;
}

.vet-connected__copy h2 {
  max-width: 9.5ch;
  margin-top: 26px;
  font-size: clamp(46px, 5.4vw, 88px);
}

.vet-connected__copy > p {
  max-width: 510px;
  margin-top: 30px;
  color: #4d5b51;
}

.vet-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(48px, 6vw, 82px);
  border-top: 1px solid rgba(5, 46, 27, 0.2);
}

.vet-path span {
  padding: 16px 12px 16px 0;
  color: var(--vet-forest);
  border-bottom: 1px solid rgba(5, 46, 27, 0.2);
  font-size: 12px;
  font-weight: 720;
}

.vet-connected__media img {
  box-shadow: 0 34px 84px rgba(5, 46, 27, 0.16);
}

/* Sistema visual: tipografia e cor aparecem como matéria, não como cartões. */
.vet-system {
  background: var(--vet-ivory);
}

.vet-system > .vet-shell > .vet-eyebrow {
  margin-bottom: 28px;
}

.vet-system__intro {
  max-width: 970px;
}

.vet-system__intro h2 {
  max-width: 11ch;
}

.vet-system__intro p {
  max-width: 630px;
  margin-top: 30px;
  color: var(--vet-muted);
  font-size: clamp(17px, 1.4vw, 21px);
}

.vet-palette {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr 1.25fr;
  min-height: 280px;
  margin-top: clamp(62px, 8vw, 112px);
  overflow: hidden;
  border-radius: var(--vet-radius);
}

.vet-swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding: 25px;
}

.vet-swatch span {
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vet-swatch b {
  font-family: var(--vet-body);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.vet-swatch--forest { color: #fffdf8; background: #052e1b; }
.vet-swatch--green { color: #fffdf8; background: #126838; }
.vet-swatch--mint { color: #052e1b; background: #dfeade; }
.vet-swatch--ivory { color: #052e1b; background: #fffdf8; }

.vet-type {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(44px, 8vw, 136px);
  align-items: end;
  margin-top: clamp(70px, 9vw, 126px);
  padding-top: 28px;
  border-top: 1px solid var(--vet-line);
}

.vet-type span {
  display: block;
  margin-bottom: 30px;
  color: var(--vet-green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vet-type strong {
  color: var(--vet-forest);
  font-size: clamp(48px, 7.4vw, 122px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.vet-type p {
  max-width: 400px;
  color: var(--vet-muted);
  font-size: clamp(18px, 1.65vw, 25px);
}

/* Orientação externa: os dispositivos assumem protagonismo. */
.vet-guidance {
  background: #eef2e9;
}

.vet-guidance__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 8vw, 134px);
}

.vet-guidance__copy h2 {
  max-width: 9.5ch;
  font-size: clamp(47px, 5.4vw, 88px);
}

.vet-guidance__copy > p {
  max-width: 500px;
  margin-top: 30px;
  color: var(--vet-muted);
}

.vet-guidance .vet-text-link {
  margin-top: 38px;
}

/* Recuperação: a imagem volta a respirar em largura total. */
.vet-recovery {
  background: var(--vet-white);
}

.vet-recovery__head {
  max-width: 990px;
}

.vet-recovery__head h2 {
  max-width: 11ch;
}

.vet-recovery__head > p {
  max-width: 650px;
  margin-top: 28px;
  color: var(--vet-muted);
  font-size: clamp(17px, 1.4vw, 21px);
}

.vet-recovery .vet-media {
  margin-top: clamp(50px, 7vw, 100px);
}

.vet-character-note {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(36px, 8vw, 132px);
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--vet-line);
}

.vet-character-note strong {
  color: var(--vet-green);
  font-size: clamp(24px, 2.5vw, 41px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.vet-character-note p {
  max-width: 620px;
  color: var(--vet-muted);
}

/* Encerramento: a volta para casa encontra o rodapé original da Criarte. */
.vet-case-ending {
  background: var(--vet-forest);
}

.vet-final {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 30px) var(--vet-pad) clamp(58px, 8vh, 92px);
  color: var(--vet-white);
  background: var(--vet-forest);
  overflow: hidden;
}

.vet-final > img,
.vet-final__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vet-final > img {
  object-fit: cover;
  object-position: center;
}

.vet-final__shade {
  background:
    linear-gradient(90deg, rgba(5, 46, 27, 0.94) 0%, rgba(5, 46, 27, 0.72) 36%, rgba(5, 46, 27, 0.05) 72%),
    linear-gradient(0deg, rgba(5, 46, 27, 0.58), transparent 55%);
}

.vet-final__content {
  position: relative;
  z-index: 1;
  width: min(760px, 54vw);
}

.vet-final .vet-chapter {
  color: #a8e4a3;
}

.vet-final h2 {
  max-width: 11ch;
  color: var(--vet-white);
  font-size: clamp(48px, 6vw, 98px);
}

.vet-final__content > p {
  max-width: 590px;
  margin-top: 28px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(16px, 1.25vw, 20px);
}

.vet-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.vet-case-ending .case-fim {
  color: #fffdf8;
  background: var(--vet-forest);
  border-top-color: rgba(255, 253, 248, 0.16);
}

.vet-case-ending .case-fim a.voltar {
  color: rgba(255, 253, 248, 0.66);
}

.vet-case-ending .case-fim a.voltar:hover,
.vet-case-ending .case-fim a.voltar:focus-visible {
  color: #a8e4a3;
}

.vet-case-ending .case-fim a.viva {
  color: var(--vet-forest);
  background: #a8e4a3;
}

.vet-case-ending .case-fim a.viva:hover,
.vet-case-ending .case-fim a.viva:focus-visible {
  color: var(--vet-white);
  background: var(--vet-green);
}

/* As entradas revelam a sequência narrativa e não controlam a rolagem. */
.vet-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.vet-reveal-media {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.vet-reveal.is-visible,
.vet-reveal-media.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .vet-origin .vet-shell,
  .vet-response__grid,
  .vet-connected__grid,
  .vet-guidance__grid {
    gap: 54px;
  }

  .vet-origin .vet-shell {
    grid-template-columns: 1fr 0.9fr;
  }

  .vet-response__grid,
  .vet-connected__grid {
    grid-template-columns: 0.75fr 1.25fr;
  }

  .vet-guidance__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .vet-project-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }

  .vet-project-facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .vet-palette {
    grid-template-columns: 1fr 1fr;
  }

  .vet-swatch {
    min-height: 210px;
  }
}

@media (max-width: 760px) {
  .vet-case {
    --vet-pad: 18px;
    --vet-radius: 16px;
  }

  .vet-case-page.vet-past-hero .nav {
    background: rgba(247, 244, 237, 0.94);
  }

  .vet-section {
    padding-block: 82px;
  }

  .vet-case h2 {
    max-width: none;
    font-size: clamp(40px, 12vw, 61px);
    letter-spacing: -0.065em;
    line-height: 0.96;
  }

  .vet-hero {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(215px, 31dvh) 1fr;
    align-items: stretch;
    padding: 0;
    background: var(--vet-forest);
  }

  .vet-hero__image {
    position: relative;
    grid-row: 1;
    width: 100%;
    height: auto;
    align-self: end;
    object-fit: contain;
    object-position: center;
  }

  .vet-hero__shade {
    grid-row: 1;
    height: 31dvh;
    background: linear-gradient(180deg, rgba(5, 46, 27, 0.45), transparent 35%, rgba(5, 46, 27, 0.78));
  }

  .vet-hero__content {
    grid-row: 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px var(--vet-pad) 38px;
    background: var(--vet-forest);
  }

  .vet-hero h1 {
    max-width: 12ch;
    font-size: clamp(43px, 13.2vw, 61px);
    line-height: 0.94;
  }

  .vet-hero__intro {
    max-width: 34ch;
    margin-top: 18px !important;
    font-size: 15px;
  }

  .vet-hero .vet-button {
    margin-top: 24px;
  }

  .vet-origin .vet-shell,
  .vet-response__grid,
  .vet-connected__grid,
  .vet-guidance__grid,
  .vet-type,
  .vet-character-note,
  .vet-diagnosis__shift {
    grid-template-columns: 1fr;
  }

  .vet-origin .vet-shell,
  .vet-response__grid,
  .vet-connected__grid,
  .vet-guidance__grid {
    gap: 48px;
  }

  .vet-origin__lead h2,
  .vet-response__copy h2,
  .vet-diagnosis__head h2,
  .vet-connected__copy h2,
  .vet-guidance__copy h2,
  .vet-recovery__head h2 {
    max-width: none;
  }

  .vet-origin__story {
    max-width: none;
  }

  .vet-project-facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
  }

  .vet-project-facts div,
  .vet-project-facts div:nth-child(3) {
    min-height: auto;
    padding: 22px 0;
    border-top: 1px solid var(--vet-line);
    border-left: 0;
  }

  .vet-response__copy {
    padding-left: 0;
  }

  .vet-response__copy {
    order: 1;
  }

  .vet-response .vet-media {
    order: 2;
  }

  .vet-media img,
  .vet-connected__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--vet-radius);
  }

  .vet-diagnosis__head {
    margin-left: 0;
  }

  .vet-diagnosis__shift {
    gap: 22px;
  }

  .vet-diagnosis__shift > p {
    justify-self: start;
    padding-top: 22px;
    border-top: 1px solid var(--vet-line);
  }

  .vet-connected__copy {
    position: static;
    padding-top: 0;
  }

  .vet-connected__media {
    order: 2;
  }

  .vet-palette {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .vet-swatch {
    min-height: 170px;
    padding: 18px;
  }

  .vet-type {
    gap: 52px;
  }

  .vet-type strong {
    font-size: clamp(43px, 13vw, 66px);
  }

  .vet-guidance .vet-media {
    order: 2;
  }

  .vet-guidance__copy {
    order: 1;
  }

  .vet-character-note {
    gap: 22px;
  }

  .vet-final {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto;
    align-items: stretch;
    padding: 0;
  }

  .vet-final > img {
    position: relative;
    grid-row: 1;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .vet-final__shade {
    display: none;
  }

  .vet-final__content {
    grid-row: 2;
    width: 100%;
    padding: 60px var(--vet-pad) 68px;
    background: var(--vet-forest);
  }

  .vet-final h2 {
    max-width: none;
    font-size: clamp(40px, 11.4vw, 58px);
  }

  .vet-final__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .vet-final__actions .vet-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vet-hero {
    grid-template-rows: minmax(190px, 27dvh) 1fr;
  }

  .vet-hero__shade {
    height: 27dvh;
  }

  .vet-hero__content {
    padding-top: 25px;
    padding-bottom: 30px;
  }

  .vet-hero .vet-eyebrow {
    margin-bottom: 12px;
  }

  .vet-hero h1 {
    font-size: clamp(39px, 12.4vw, 53px);
  }

  .vet-hero__intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .vet-button {
    min-height: 50px;
    padding-inline: 18px;
  }

  .vet-palette {
    grid-template-columns: 1fr;
  }

  .vet-swatch {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vet-case *,
  .vet-case *::before,
  .vet-case *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .vet-reveal,
  .vet-reveal-media {
    opacity: 1;
    transform: none;
  }

  .overlap-fim__inner {
    transform: none !important;
  }
}

/* Contraste travado no fim da cascata, inclusive para links já visitados. */
.vet-case a.vet-button.vet-button--light,
.vet-case a.vet-button.vet-button--light:link,
.vet-case a.vet-button.vet-button--light:visited {
  color: #052e1b !important;
  -webkit-text-fill-color: #052e1b !important;
  background-color: #a8e4a3 !important;
  border-color: #a8e4a3 !important;
}

.vet-case a.vet-button.vet-button--light *,
.vet-case a.vet-button.vet-button--light:visited * {
  color: #052e1b !important;
  -webkit-text-fill-color: #052e1b !important;
}

.vet-case a.vet-button.vet-button--light:hover,
.vet-case a.vet-button.vet-button--light:focus-visible {
  color: #052e1b !important;
  background-color: #fffdf8 !important;
  border-color: #fffdf8 !important;
}

.vet-case a.vet-button.vet-button--outline,
.vet-case a.vet-button.vet-button--outline:link,
.vet-case a.vet-button.vet-button--outline:visited {
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
  background-color: rgba(5, 46, 27, 0.72) !important;
  border-color: rgba(255, 253, 248, 0.72) !important;
}

.vet-case a.vet-button.vet-button--outline *,
.vet-case a.vet-button.vet-button--outline:visited * {
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
}

.vet-case a.vet-text-link,
.vet-case a.vet-text-link:link,
.vet-case a.vet-text-link:visited {
  color: #052e1b !important;
}

.vet-case-ending .case-fim a.viva,
.vet-case-ending .case-fim a.viva:link,
.vet-case-ending .case-fim a.viva:visited {
  color: #052e1b !important;
  background-color: #a8e4a3 !important;
}

.vet-case .vet-button .vet-button__label {
  display: inline-block !important;
  color: currentColor !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.vet-case .vet-button .vet-button__icon {
  display: inline-block !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================
   Camada de fundo — transição de cor entre seções

   As seções declaram a cor em `data-bg` e o JS as deixa transparentes; é a
   camada fixa atrás de tudo que anima. Aqui saem de cena as CAIXAS que
   envolvem as seções e continuariam pintando por cima da camada: sem isso a
   virada acontece atrás de um fundo opaco e não se vê nada.

   `.vet-final` entra na lista porque a fronteira da última virada começa
   quando o topo dele ainda está a 75% da tela — opaco, ele apareceria como um
   corte seco de verde entrando enquanto a camada ainda estava clara.
   ============================================================ */

.has-bg-layer.vet-case-page,
.has-bg-layer .vet-case,
.has-bg-layer .vet-final { background: transparent; }

/* Quebra de linha, mesmo tratamento já aplicado no Glee: `pretty` evita a
   última linha sozinha nos parágrafos corridos e `balance` equilibra os
   títulos e os parágrafos curtos de apoio. O navegador recalcula a cada
   largura, então vale em todos os breakpoints sem max-width por faixa. */
.vet-case p { text-wrap: pretty; }

.vet-case h1,
.vet-case h2,
.vet-case h3,
.vet-case .vet-lead,
.vet-case .vet-section > .vet-shell > p,
.vet-case blockquote { text-wrap: balance; }

/* O menu passa a acompanhar a camada: verde escuro (--proj-tinta) sobre as
   seções claras, claro sobre as escuras. Com isso a pílula clara que a página
   aplicava depois do hero sai de cena — ela era clara em QUALQUER seção, então
   na seção final (verde escuro) o menu ficava claro sobre fundo claro.
   Medido antes da correção: texto #f4f4f2 sobre pílula #f7f4ed, invisível. */
.has-bg-layer.vet-case-page.vet-past-hero .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-shadow: none;
}
