/*
Theme Name: Maciel Ramos
Author: Maciel Ramos
Description: Portfólio autoral de Maciel Ramos.
Version: 0.5.0
Text Domain: maciel-ramos
*/

:root {
  --mr-black: #000000;
  --mr-white: #ffffff;
  --mr-orange: #ff7700;
  --mr-canvas: #d8d8d4;
  --mr-surface: #ffffff;
  --mr-surface-subtle: #f2f2f2;
  --mr-border: #d4d4d4;
  --mr-text: #000000;
  --mr-muted: #777777;
  --mr-error: #ba1a1a;
  --mr-dark-canvas: #292929;
  --mr-dark-surface: #111111;
  --mr-dark-elevated: #1a1a1a;
  --mr-gray: var(--mr-muted);
  --mr-line: var(--mr-border);
  --mr-gutter: clamp(20px, 3.35vw, 64px);
  --mr-radius-section: 28px;
  --mr-radius-project: 24px;
  --mr-radius-module: 18px;
  --mr-radius-control: 999px;
  --mr-radius: var(--mr-radius-project);
  --mr-ease: 420ms cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  --mr-canvas: var(--mr-dark-canvas);
  --mr-surface: var(--mr-dark-surface);
  --mr-surface-subtle: var(--mr-dark-elevated);
  --mr-border: #424242;
  --mr-text: #f7f7f4;
  --mr-muted: #aaaaaa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-kerning: normal; font-feature-settings: "kern" 1; overflow-x: hidden; text-rendering: optimizeLegibility; }
::selection { background: var(--mr-orange); color: var(--mr-black); }
a, button { transition: color var(--mr-ease), background-color var(--mr-ease), transform var(--mr-ease), opacity var(--mr-ease); }

.mr-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(0,0,0,.12);
  display: flex;
  height: 76px;
  justify-content: space-between;
  padding: 0 var(--mr-gutter);
  position: sticky;
  top: 0;
  z-index: 30;
}
.mr-brand { align-items: center; color: #000; display: flex; gap: 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.mr-brand img { display: block; height: 42px; width: 42px; }
.mr-brand--wordmark img { height: auto; width: clamp(145px, 15vw, 205px); }
.mr-nav { align-items: center; display: flex; gap: clamp(18px, 2.5vw, 42px); font-size: 13px; font-weight: 600; text-transform: lowercase; }
.mr-nav a { color: inherit; position: relative; text-decoration: none; }
.mr-nav a::after { background: var(--mr-orange); bottom: -6px; content: ""; height: 3px; left: 0; position: absolute; transform: scaleX(0); transform-origin: right; transition: transform var(--mr-ease); width: 100%; }
.mr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.mr-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - 76px);
  padding: 34px var(--mr-gutter) 42px;
}
.mr-hero__eyebrow { font-size: 12px; grid-column: 1 / 6; letter-spacing: .02em; text-transform: uppercase; }
.mr-hero__title { align-self: center; font-size: clamp(54px, 8vw, 150px); font-weight: 700; grid-column: 1 / 13; letter-spacing: normal; line-height: .82; margin: 0; max-width: 11ch; }
.mr-hero__bottom { align-items: end; display: grid; grid-column: 1 / 13; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.mr-hero__intro { font-size: clamp(20px, 2vw, 34px); grid-column: 6 / 12; letter-spacing: normal; line-height: 1.1; margin: 0; }
.mr-hero__action { grid-column: 12 / 13; justify-self: end; }

.mr-circle {
  align-items: center;
  background: var(--mr-orange);
  border: 0;
  border-radius: 50%;
  color: #000;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 25px;
  height: 64px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 64px;
}
.mr-circle:hover { background: #000; color: #fff; transform: rotate(45deg); }
.mr-circle:focus-visible { outline: 3px solid var(--mr-orange); outline-offset: 4px; }

.mr-work { background: #000; color: #fff; padding: 110px var(--mr-gutter) 140px; }
.mr-section-head { align-items: end; display: flex; justify-content: space-between; margin-bottom: 54px; }
.mr-section-head h2 { font-size: clamp(42px, 5vw, 86px); letter-spacing: normal; line-height: .9; margin: 0; }
.mr-section-head p { color: #aaa; font-size: 13px; margin: 0; }
.mr-work-grid.wp-block-post-template { counter-reset: project; display: grid !important; gap: 70px 18px; grid-template-columns: repeat(12, minmax(0,1fr)); }
.mr-work-grid > li { counter-increment: project; grid-column: span 6; }
.mr-work-grid > li:nth-child(3n) { grid-column: span 12; }
.mr-project-card { margin: 0; }
.mr-project-card figure { background: #171717; border-radius: var(--mr-radius); margin: 0 0 18px; overflow: hidden; }
.mr-project-card img { aspect-ratio: 16 / 9; display: block; object-fit: cover; transition: transform 900ms cubic-bezier(.22,1,.36,1), filter var(--mr-ease); width: 100%; }
.mr-project-card a:hover img { transform: scale(1.025); }
.mr-project-meta { align-items: baseline; display: grid; gap: 12px; grid-template-columns: 34px 1fr auto; }
.mr-project-meta::before { color: #888; content: counter(project, decimal-leading-zero); font-size: 11px; }
.mr-project-meta h3 { font-size: clamp(21px, 2vw, 32px); letter-spacing: normal; margin: 0; }
.mr-project-meta h3 a { color: #fff; text-decoration: none; }
.mr-project-meta p { color: #999; font-size: 12px; margin: 0; }

.mr-profile { display: grid; gap: 28px; grid-template-columns: repeat(12, minmax(0,1fr)); padding: 140px var(--mr-gutter); }
.mr-profile__label { font-size: 12px; grid-column: 1 / 3; text-transform: uppercase; }
.mr-profile__media { align-self: start; border-radius: 18px; grid-column: 1 / 4; margin: 0; overflow: hidden; }
.mr-profile__media img { aspect-ratio: 3 / 4; display: block; object-fit: cover; width: 100%; }
.mr-profile__text { font-size: clamp(31px, 4.4vw, 74px); font-weight: 700; grid-column: 4 / 13; letter-spacing: normal; line-height: .98; margin: 0; }
.mr-profile__services { border-top: 1px solid var(--mr-line); display: grid; font-size: 13px; gap: 16px; grid-column: 4 / 13; grid-template-columns: repeat(3,1fr); margin-top: 55px; padding-top: 20px; }

.mr-footer { background: var(--mr-orange); color: #000; min-height: 72svh; padding: 60px var(--mr-gutter) 34px; position: relative; }
.mr-footer__main { align-items: end; display: grid; gap: clamp(36px, 5vw, 90px); grid-template-columns: 2fr 1fr; min-height: calc(72svh - 150px); padding-bottom: 100px; }
.mr-footer__link { color: #000; display: block; font-size: clamp(54px, 9vw, 160px); font-weight: 700; letter-spacing: normal; line-height: .86; margin: 0; text-decoration: none; }
.mr-footer__bottom { align-items: end; bottom: 30px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; left: var(--mr-gutter); position: absolute; right: var(--mr-gutter); }
.mr-footer__bottom img { height: auto; width: clamp(180px, 22vw, 340px); }
.mr-footer__bottom > img { justify-self: end; }
.mr-footer__social { align-self: center; display: flex; flex-direction: column; gap: 8px; }
.mr-footer__social a { color: #000; display: flex; font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; justify-content: space-between; padding: 10px 0; text-decoration: none; }
.mr-footer__social a span { font-size: 12px; font-weight: 400; }
.mr-footer__social a:hover { opacity: .55; }

.mr-system { padding: 70px var(--mr-gutter) 140px; }
.mr-system__intro { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); margin-bottom: 130px; }
.mr-system__kicker { font-size: 12px; grid-column: 1 / 4; text-transform: uppercase; }
.mr-system__title { font-size: clamp(62px, 10vw, 178px); grid-column: 1 / 11; letter-spacing: normal; line-height: .76; margin: 100px 0 55px; }
.mr-system__lead { font-size: clamp(22px,2.5vw,40px); grid-column: 5 / 12; letter-spacing: normal; line-height: 1.08; }
.mr-system-section { border-top: 1px solid #000; display: grid; gap: 40px; grid-template-columns: repeat(12,minmax(0,1fr)); padding: 28px 0 120px; }
.mr-system-section__title { font-size: 13px; grid-column: 1 / 4; margin: 0; text-transform: uppercase; }
.mr-system-section__body { grid-column: 4 / 13; }
.mr-swatches { display: grid; gap: 12px; grid-template-columns: repeat(3,1fr); }
.mr-swatch { align-items: flex-end; aspect-ratio: 1; display: flex; font-size: 12px; padding: 18px; }
.mr-type-display { font-size: clamp(58px,9vw,150px); font-weight: 700; letter-spacing: normal; line-height: .82; margin: 0 0 70px; }
.mr-type-row { align-items: end; border-top: 1px solid var(--mr-line); display: grid; gap: 20px; grid-template-columns: 1fr 150px; padding: 24px 0 42px; }
.mr-type-row p { margin: 0; }
.mr-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }
.mr-pill { background: #000; border-radius: 999px; color: #fff; display: inline-flex; font-size: 13px; padding: 17px 24px; text-decoration: none; }

@media (max-width: 760px) {
  .mr-header { height: 64px; }
  .mr-brand--wordmark img { height: auto; width: 128px; }
  .mr-nav { gap: 17px; }
  .mr-nav a:nth-child(2), .mr-nav a:nth-child(3) { display: none; }
  .mr-hero { min-height: calc(100svh - 64px); padding-top: 24px; }
  .mr-hero__eyebrow { grid-column: 1 / 10; }
  .mr-hero__title { font-size: clamp(56px,20vw,92px); line-height: .84; }
  .mr-hero__intro { grid-column: 1 / 11; }
  .mr-hero__action { grid-column: 11 / 13; }
  .mr-circle { height: 54px; width: 54px; }
  .mr-work { padding-bottom: 90px; padding-top: 80px; }
  .mr-section-head { align-items: start; flex-direction: column; gap: 18px; }
  .mr-work-grid > li, .mr-work-grid > li:nth-child(3n) { grid-column: span 12; }
  .mr-work-grid.wp-block-post-template { gap: 55px; }
  .mr-project-meta { grid-template-columns: 28px 1fr; }
  .mr-project-meta p { display: none; }
  .mr-profile { padding-bottom: 90px; padding-top: 90px; }
  .mr-profile__label { grid-column: 1 / 13; }
  .mr-profile__media, .mr-profile__text, .mr-profile__services { grid-column: 1 / 13; }
  .mr-profile__media { margin-top: 8px; }
  .mr-profile__services { grid-template-columns: 1fr; }
  .mr-footer { min-height: 62svh; }
  .mr-footer__main { align-items: start; gap: 42px; grid-template-columns: 1fr; min-height: auto; padding-bottom: 130px; }
  .mr-footer__link { font-size: clamp(54px, 18vw, 92px); }
  .mr-footer__social { align-self: auto; }
  .mr-footer__social a { font-size: 17px; }
  .mr-footer__bottom img { height: auto; width: 150px; }
  .mr-footer__bottom { align-items: start; grid-template-columns: 1fr auto; }
  .mr-system { padding-top: 45px; }
  .mr-system__intro { margin-bottom: 80px; }
  .mr-system__kicker, .mr-system__title, .mr-system__lead { grid-column: 1 / 13; }
  .mr-system__title { margin: 70px 0 35px; }
  .mr-system-section { padding-bottom: 80px; }
  .mr-system-section__title, .mr-system-section__body { grid-column: 1 / 13; }
  .mr-swatches { grid-template-columns: 1fr; }
  .mr-swatch { aspect-ratio: 16 / 7; }
}

/* Correção de composição: camadas internas, seções em fluxo contínuo. */
.mr-hero { padding-bottom: 42px; }
.mr-work,
.mr-profile,
.mr-footer {
  box-shadow: none;
  margin-top: 12px;
  position: relative;
  z-index: auto;
}
.mr-work::before,
.mr-profile::before,
.mr-footer::before { display: none; }
.mr-work-grid > li,
.mr-work-grid > li:nth-child(3n) { grid-column: span 6; }
.mr-work-grid > li:nth-child(1) { order: 1; }
.mr-work-grid > li:nth-child(4) { order: 2; }
.mr-work-grid > li:nth-child(2) { order: 3; }
.mr-work-grid > li:nth-child(3) { order: 4; }
.mr-work-grid > li:nth-child(5) { order: 5; }
.mr-work-grid > li:nth-child(6) { order: 6; }

@media (max-width: 760px) {
  .mr-hero { padding-bottom: 42px; }
  .mr-work, .mr-profile, .mr-footer { margin-top: 7px; }
  .mr-work-grid > li,
  .mr-work-grid > li:nth-child(3n) { grid-column: span 12; }
}

/* Grid natural: Bronzoni + Ocapitel abrem a seleção. */
.mr-work-grid > li { order: initial !important; }
.mr-work-grid > li {
  margin-block-start: 0 !important;
}

/* Footer reveal: a última camada permanece sob o conteúdo. */
.mr-header,
.mr-hero,
.mr-work,
.mr-profile {
  position: relative;
  z-index: 2;
}
.mr-header { position: sticky; z-index: 30; }
.mr-footer {
  bottom: 12px;
  height: min(500px, 52svh);
  left: 12px;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: fixed;
  right: 12px;
  z-index: 1;
}
.mr-profile,
.mr-system { margin-bottom: calc(min(500px, 52svh) + 12px); }
.mr-footer__link { margin-top: 9vh; }

@media (max-width: 760px) {
  .mr-footer {
    bottom: 7px;
    height: 48svh;
    left: 7px;
    right: 7px;
  }
  .mr-profile,
  .mr-system { margin-bottom: calc(48svh + 7px); }
  .mr-footer__link { margin-top: 7vh; }
}

/* Transição sticky: o contato sobe sobre o perfil, sem espaçador. */
.wp-block-html:has(> .mr-profile) { display: contents; }
.mr-profile {
  margin-bottom: 0;
  min-height: calc(100svh - 24px);
  position: sticky;
  top: 12px;
  z-index: 1;
}
.mr-footer {
  bottom: auto;
  height: auto;
  left: auto;
  margin: 0;
  min-height: 72svh;
  overflow: visible;
  position: relative;
  right: auto;
  z-index: 4;
}
.mr-system { margin-bottom: 0; }
.mr-footer__link { margin-top: 16vh; }

@media (max-width: 760px) {
  .mr-profile {
    min-height: calc(100svh - 14px);
    top: 7px;
  }
  .mr-footer {
    height: auto;
    left: auto;
    min-height: 62svh;
    right: auto;
  }
  .mr-footer__link { margin-top: 12vh; }
}

/* Palco único para a transição Perfil → Contato. */
.wp-block-html:has(> .mr-profile) { display: block; }
.mr-transition {
  position: relative;
  z-index: 2;
}
.mr-transition .mr-profile {
  margin: 12px 0 0;
  min-height: calc(100svh - 24px);
  position: sticky;
  top: 12px;
  z-index: 1;
}
.mr-transition .mr-footer {
  margin: 0;
  min-height: 72svh;
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .mr-transition .mr-profile {
    margin-top: 14px;
    min-height: calc(100svh - 14px);
    top: 7px;
  }
  .mr-transition .mr-footer { min-height: 62svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* DLS v0.4 — soft modular shell */
body {
  background: #d8d8d4;
  padding: 12px;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.mr-header {
  border: 0;
  border-radius: 24px 24px 0 0;
  height: 86px;
  padding-inline: clamp(24px, 3vw, 52px);
  position: sticky;
  top: 12px;
}
.mr-nav {
  background: #f2f2f2;
  border-radius: 999px;
  gap: 6px;
  padding: 5px;
}
.mr-nav a {
  border-radius: 999px;
  padding: 9px 15px;
}
.mr-nav a::after { display: none; }
.mr-nav a:hover { background: #000; color: #fff; }
.mr-hero {
  background: #fff;
  border-radius: 0 0 28px 28px;
  min-height: calc(100svh - 110px);
  padding-inline: clamp(24px, 3vw, 52px);
  padding-bottom: 110px;
  position: relative;
  z-index: 0;
}
.mr-profile-stage .mr-transition .mr-footer { z-index: 1; }
.mr-hero__title { max-width: none; }
.mr-work {
  background: #f2f2f2;
  border-radius: 28px;
  color: #000;
  box-shadow: 0 -20px 55px rgba(0,0,0,.14);
  margin-top: -54px;
  padding-inline: clamp(24px, 3vw, 52px);
  position: relative;
  z-index: 3;
}
.mr-section-head p { color: #646464; }
.mr-project-card figure {
  background: #f0f0f0;
  border-radius: 24px;
}
.mr-project-card img { filter: saturate(.94); }
.mr-project-card a:hover img { filter: saturate(1.08); }
.mr-project-meta h3 a { color: #000; }
.mr-project-meta p, .mr-project-meta::before { color: #777; }
.mr-profile {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 -20px 55px rgba(0,0,0,.12);
  margin-top: -46px;
  padding-inline: clamp(24px, 3vw, 52px);
  position: relative;
  z-index: 5;
}
.mr-profile__services span {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
}
.mr-footer {
  border-radius: 28px;
  box-shadow: 0 -20px 55px rgba(0,0,0,.14);
  margin-top: -42px;
  position: relative;
  z-index: 7;
}
.mr-work::before,
.mr-profile::before,
.mr-footer::before {
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  width: 38px;
}
.mr-footer::before { background: rgba(0,0,0,.45); }
.mr-system {
  background: #fff;
  border-radius: 0 0 28px 28px;
  padding-inline: clamp(24px, 3vw, 52px);
}
.mr-system-section {
  background: #f2f2f2;
  border: 0;
  border-radius: 26px;
  margin-bottom: 12px;
  padding: clamp(24px, 3vw, 46px);
}
.mr-swatch { border-radius: 20px; }
.mr-type-row {
  background: #fff;
  border: 0;
  border-radius: 18px;
  margin-bottom: 8px;
  padding: 24px;
}
.mr-circle { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.mr-pill { padding: 19px 28px; }

@media (max-width: 760px) {
  body { padding: 7px; }
  .mr-header { border-radius: 19px 19px 0 0; height: 68px; top: 7px; }
  .mr-nav { background: transparent; padding: 0; }
  .mr-nav a { padding: 8px 10px; }
  .mr-hero { border-radius: 0 0 20px 20px; min-height: calc(100svh - 82px); }
  .mr-hero { padding-bottom: 82px; }
  .mr-work, .mr-profile, .mr-footer { border-radius: 20px; margin-top: -25px; }
  .mr-project-card figure { border-radius: 18px; }
  .mr-system { border-radius: 0 0 20px 20px; }
  .mr-system-section { border-radius: 20px; padding: 22px; }
}

/* Revelação da abertura → Trabalhos. A abertura forma a camada inferior
   enquanto a seleção de projetos sobe sobre ela durante o scroll. */
.mr-hero {
  min-height: calc(100svh - 24px);
  position: sticky;
  top: 12px;
  z-index: 1;
}
.mr-work {
  border: 1px solid #d4d4d4;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .mr-hero {
    min-height: calc(100svh - 14px);
    top: 7px;
  }
}

/* Hover próprio do símbolo: movimento suave, sem cápsula preenchida. */
.mr-nav .mr-brand--symbol,
.mr-nav .mr-brand--symbol:hover,
html[data-theme="dark"] .mr-nav .mr-brand--symbol:hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.mr-nav .mr-brand--symbol::before {
  display: none;
}

.mr-nav .mr-brand--symbol:hover img {
  animation: mr-orange-wiggle 680ms cubic-bezier(.22, 1, .36, 1);
}

/* PROJECT COVER — autoridade final. */
.mr-case {
  background: var(--mr-surface);
  border: 0;
  border-radius: 0 0 var(--mr-radius-section) var(--mr-radius-section);
  margin-top: 0;
  overflow: hidden;
  padding: 0 0 clamp(80px, 9vw, 150px);
}

.mr-case .mr-case__hero {
  border-radius: 0 0 var(--mr-radius-section) var(--mr-radius-section);
  color: var(--mr-white);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  min-height: min(880px, calc(100svh - 110px));
  overflow: hidden;
  padding: clamp(24px, 3vw, 52px);
  position: relative;
}

.mr-case .mr-case__back {
  align-self: start;
  color: var(--mr-white);
  font-size: 12px;
  grid-column: 1 / 6;
  grid-row: 1;
  text-transform: uppercase;
}

.mr-case .mr-case__hero-content {
  align-self: end;
  display: grid;
  gap: clamp(26px, 3vw, 48px);
  grid-column: 1 / 11;
  grid-row: 3;
  margin: clamp(110px, 20vh, 250px) 0 0;
  max-width: 1180px;
}

.mr-case .mr-case__title {
  color: var(--mr-white);
  font-size: clamp(64px, 9vw, 154px);
  letter-spacing: -.045em;
  line-height: .82;
  margin: 0;
  max-width: 10ch;
}

.mr-case .mr-case__summary {
  align-items: end;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(250px, 1.25fr) minmax(330px, 1fr);
}

.mr-case .mr-case__summary > p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1.25;
  margin: 0;
  max-width: 46ch;
}

.mr-case .mr-case__facts {
  display: grid;
  gap: 0;
}

.mr-case .mr-case__facts div {
  border-color: rgba(255, 255, 255, .34);
  gap: 18px;
  grid-template-columns: 82px 1fr;
  padding: 11px 0;
}

.mr-case .mr-case__facts span { color: rgba(255, 255, 255, .62); }
.mr-case .mr-case__facts strong { color: var(--mr-white); }

.mr-case > .wp-block-post-content,
.mr-case > .mr-case__end {
  margin-left: clamp(24px, 3vw, 52px);
  margin-right: clamp(24px, 3vw, 52px);
}

.mr-case > .wp-block-post-content {
  margin-top: clamp(18px, 2vw, 32px);
}

@media (max-width: 760px) {
  .mr-case {
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    padding-top: 0;
  }

  .mr-case .mr-case__hero {
    border-radius: 0 0 20px 20px;
    min-height: calc(100svh - 82px);
    padding: 22px;
  }

  .mr-case .mr-case__back { grid-column: 1 / -1; }

  .mr-case .mr-case__hero-content {
    gap: 28px;
    grid-column: 1 / -1;
    margin-top: 120px;
  }

  .mr-case .mr-case__title {
    font-size: clamp(58px, 19vw, 94px);
    line-height: .84;
    margin: 0;
  }

  .mr-case .mr-case__summary {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .mr-case .mr-case__summary > p { font-size: 17px; }

  .mr-case .mr-case__facts div {
    grid-template-columns: 76px 1fr;
    padding: 9px 0;
  }

  .mr-case > .wp-block-post-content,
  .mr-case > .mr-case__end {
    margin-left: 7px;
    margin-right: 7px;
  }

  .mr-case > .wp-block-post-content { margin-top: 7px; }
}

/* Project cover — editorial, image-led opening inspired by Russells' Walk Kit. */
.mr-case {
  background: var(--mr-surface);
  border: 0;
  border-radius: 0 0 var(--mr-radius-section) var(--mr-radius-section);
  margin-top: 0;
  overflow: hidden;
  padding: 0 0 clamp(80px, 9vw, 150px);
}

.mr-case__hero {
  border-radius: 0 0 var(--mr-radius-section) var(--mr-radius-section);
  color: var(--mr-white);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  min-height: min(880px, calc(100svh - 110px));
  overflow: hidden;
  padding: clamp(24px, 3vw, 52px);
  position: relative;
}

.mr-case__cover,
.mr-case__shade {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  inset: 0;
  margin: 0;
  position: absolute;
}

.mr-case__cover {
  height: 100%;
  width: 100%;
  z-index: -2;
}

.mr-case__cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mr-case__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .04) 38%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .24) 0%, transparent 58%);
  pointer-events: none;
  z-index: -1;
}

.mr-case__back {
  align-self: start;
  color: var(--mr-white);
  font-size: 12px;
  grid-column: 1 / 6;
  grid-row: 1;
  text-transform: uppercase;
}

.mr-case__back:hover { color: var(--mr-orange); }

.mr-case__hero-content {
  align-self: end;
  display: grid;
  gap: clamp(26px, 3vw, 48px);
  grid-column: 1 / 11;
  grid-row: 3;
  margin: clamp(110px, 20vh, 250px) 0 0;
  max-width: 1180px;
}

.mr-case__title {
  color: var(--mr-white);
  font-size: clamp(64px, 9vw, 154px);
  letter-spacing: -.045em;
  line-height: .82;
  margin: 0;
  max-width: 10ch;
}

.mr-case__summary {
  align-items: end;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(250px, 1.25fr) minmax(330px, 1fr);
}

.mr-case__summary > p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1.25;
  margin: 0;
  max-width: 46ch;
}

.mr-case__facts { display: grid; gap: 0; }

.mr-case__facts div {
  border-color: rgba(255, 255, 255, .34);
  gap: 18px;
  grid-template-columns: 82px 1fr;
  padding: 11px 0;
}

.mr-case__facts span { color: rgba(255, 255, 255, .62); }
.mr-case__facts strong { color: var(--mr-white); }

.mr-case > .wp-block-post-content,
.mr-case > .mr-case__end {
  margin-left: clamp(24px, 3vw, 52px);
  margin-right: clamp(24px, 3vw, 52px);
}

.mr-case > .wp-block-post-content {
  margin-top: clamp(18px, 2vw, 32px);
}

html[data-theme="dark"] .mr-case__facts div {
  border-color: rgba(255, 255, 255, .34);
}

html[data-theme="dark"] .mr-case__facts span {
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 760px) {
  .mr-case {
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    padding-top: 0;
  }

  .mr-case__hero {
    border-radius: 0 0 20px 20px;
    min-height: calc(100svh - 82px);
    padding: 22px;
  }

  .mr-case__back { grid-column: 1 / -1; }

  .mr-case__hero-content {
    gap: 28px;
    grid-column: 1 / -1;
    margin-top: 120px;
  }

  .mr-case__title {
    font-size: clamp(58px, 19vw, 94px);
    line-height: .84;
    margin: 0;
  }

  .mr-case__summary {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .mr-case__summary > p { font-size: 17px; }

  .mr-case__facts div {
    grid-template-columns: 76px 1fr;
    padding: 9px 0;
  }

  .mr-case > .wp-block-post-content,
  .mr-case > .mr-case__end {
    margin-left: 7px;
    margin-right: 7px;
  }

  .mr-case > .wp-block-post-content { margin-top: 7px; }
}

@keyframes mr-orange-wiggle {
  0% { transform: translate(1px, -2px); }
  24% { transform: translate(3px, -4px); }
  48% { transform: translate(-1px, -1px); }
  72% { transform: translate(2px, -3px); }
  100% { transform: translate(1px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .mr-nav .mr-brand--symbol:hover img {
    animation: none;
  }
}

/* Rodapé experimental: contatos à esquerda, convite à direita. */
.mr-footer,
.mr-transition .mr-footer {
  display: block;
}

.mr-footer-composition {
  background: var(--mr-orange);
  border-radius: var(--mr-radius-section);
  color: var(--mr-black);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  height: 100%;
  overflow: hidden;
}

.mr-footer-contacts,
.mr-footer-invite {
  min-width: 0;
  padding: clamp(32px, 4vw, 64px);
}

.mr-footer-contacts {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.mr-footer-contacts__brand {
  align-self: start;
  display: inline-block;
  width: clamp(120px, 12vw, 184px);
}

.mr-footer-contacts__brand img {
  display: block;
  height: auto;
  width: 100%;
}

.mr-footer-contacts__group {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mr-footer-contacts__group span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-footer-contacts__group a {
  color: inherit;
  font-size: clamp(23px, 2.2vw, 38px);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.mr-footer-contacts__social {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mr-footer-contacts__social a {
  align-items: center;
  background: var(--mr-black);
  border-radius: var(--mr-radius-control);
  color: var(--mr-white);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  min-height: 50px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
}

.mr-footer-contacts__social a:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-footer-contacts__social a:active {
  transform: scale(.97);
}

.mr-footer-contacts__social svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.mr-footer-contacts__legal {
  font-size: 12px;
}

.mr-footer-invite {
  align-content: center;
  border-left: 1px solid rgba(0, 0, 0, .24);
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.mr-footer-invite h2 {
  font-size: clamp(46px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: .96;
  margin: 0;
  max-width: 13ch;
}

.mr-footer-invite .mr-footer-cta__button {
  align-self: auto;
  background: var(--mr-black);
  color: var(--mr-white);
  font-size: clamp(20px, 1.7vw, 28px);
  grid-column: auto;
  max-width: none;
  min-height: 92px;
  width: 100%;
}

.mr-footer-invite .mr-footer-cta__button:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

html[data-theme="dark"] .mr-footer-contacts__brand img {
  filter: none;
}

@media (max-width: 760px) {
  .mr-footer-composition {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .mr-footer-contacts,
  .mr-footer-invite {
    padding: 28px 22px;
  }

  .mr-footer-contacts {
    gap: 28px;
    grid-template-rows: auto auto auto auto;
  }

  .mr-footer-contacts__group a {
    font-size: clamp(22px, 7vw, 30px);
  }

  .mr-footer-invite {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .24);
    gap: 28px;
  }

  .mr-footer-invite h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .mr-footer-invite .mr-footer-cta__button {
    min-height: 72px;
  }
}

/* LIQUID BUTTONS — autoridade cromática final. */
.mr-nav a {
  --mr-liquid-base: transparent;
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
}

.mr-pill,
.mr-contact-submit,
.mr-projects-cta {
  --mr-liquid-base: var(--mr-orange);
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  background: var(--mr-liquid-base);
}

.mr-footer-cta__button,
.mr-footer-contacts__social a {
  --mr-liquid-base: var(--mr-black);
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
  background: var(--mr-liquid-base);
}

.mr-nav a:hover,
.mr-pill:hover,
.mr-contact-submit:hover,
.mr-projects-cta:hover,
.mr-footer-cta__button:hover,
.mr-footer-contacts__social a:hover {
  background: var(--mr-liquid-base);
  color: var(--mr-liquid-hover-text);
}

html[data-theme="dark"] .mr-nav a {
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
}

/* HERO POSITIONING — nome na navbar, posicionamento na abertura. */
.mr-hero__title {
  font-size: clamp(62px, 7vw, 126px);
  line-height: .88;
  max-width: 15ch;
}

.mr-hero__intro {
  grid-column: 1 / 7;
}

.mr-hero__action {
  grid-column: 9 / 13;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .mr-hero__title {
    font-size: clamp(48px, 15vw, 76px);
    line-height: .9;
    max-width: 12ch;
  }

  .mr-hero__bottom {
    align-items: start;
    gap: 26px;
  }

  .mr-hero__intro,
  .mr-hero__action {
    grid-column: 1 / 13;
  }
}

/* Fresta entre a abertura e o acervo de trabalhos. */
.mr-hero-transition > .mr-work {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .mr-hero-transition > .mr-work {
    margin-top: 14px;
  }
}

/* Contatos do rodapé como blocos tipográficos equivalentes. */
.mr-footer-contacts {
  grid-template-rows: auto 1fr auto;
}

.mr-footer-contacts__links {
  align-self: center;
  display: grid;
  gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 52px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mr-footer-contacts__links .mr-footer-contacts__group:first-child {
  grid-column: 1 / -1;
}

.mr-footer-contacts__group {
  align-self: auto;
}

.mr-footer-contacts__group a {
  display: inline-block;
  font-size: clamp(20px, 1.8vw, 31px);
  line-height: 1.05;
  width: fit-content;
}

.mr-footer-contacts__group a:hover {
  opacity: .55;
}

@media (max-width: 760px) {
  .mr-footer-contacts__links {
    gap: 24px;
  }

  .mr-footer-contacts__group a {
    font-size: clamp(21px, 6.5vw, 28px);
  }
}

/* Hover líquido inspirado na mecânica observada na Russells. */
.mr-nav a,
.mr-pill,
.mr-contact-submit,
.mr-projects-cta,
.mr-footer-cta__button,
.mr-footer-contacts__social a {
  --mr-liquid-base: transparent;
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.mr-nav a::before,
.mr-pill::before,
.mr-contact-submit::before,
.mr-projects-cta::before,
.mr-footer-cta__button::before,
.mr-footer-contacts__social a::before {
  background: var(--mr-liquid-fill);
  border-radius: 50%;
  content: "";
  height: 220%;
  left: -25%;
  pointer-events: none;
  position: absolute;
  top: -60%;
  transform: translate3d(0, 76%, 0);
  transition: transform 650ms cubic-bezier(.3, 1, .3, 1);
  width: 150%;
  z-index: 0;
}

.mr-nav a > span,
.mr-nav a > img,
.mr-pill > span,
.mr-contact-submit > span,
.mr-projects-cta > span,
.mr-footer-cta__button > span,
.mr-footer-contacts__social a > span,
.mr-footer-contacts__social a > svg {
  position: relative;
  transition: color 650ms cubic-bezier(.3, 1, .3, 1) 120ms, filter 650ms cubic-bezier(.3, 1, .3, 1) 120ms, transform var(--mr-ease);
  z-index: 1;
}

.mr-nav a:hover,
.mr-pill:hover,
.mr-contact-submit:hover,
.mr-projects-cta:hover,
.mr-footer-cta__button:hover,
.mr-footer-contacts__social a:hover {
  background: var(--mr-liquid-base);
  color: var(--mr-liquid-hover-text);
}

.mr-nav a:hover::before,
.mr-pill:hover::before,
.mr-contact-submit:hover::before,
.mr-projects-cta:hover::before,
.mr-footer-cta__button:hover::before,
.mr-footer-contacts__social a:hover::before {
  transform: translate3d(0, 0, 0);
}

.mr-nav a {
  --mr-liquid-base: transparent;
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
}

.mr-pill,
.mr-contact-submit,
.mr-projects-cta {
  --mr-liquid-base: var(--mr-orange);
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  background: var(--mr-liquid-base);
}

.mr-footer-cta__button,
.mr-footer-contacts__social a {
  --mr-liquid-base: var(--mr-black);
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
  background: var(--mr-liquid-base);
}

html[data-theme="dark"] .mr-nav a {
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
}

.mr-nav .mr-brand:hover img {
  filter: invert(1);
}

html[data-theme="dark"] .mr-nav .mr-brand:hover img {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .mr-nav a::before,
  .mr-pill::before,
  .mr-contact-submit::before,
  .mr-projects-cta::before,
  .mr-footer-cta__button::before,
  .mr-footer-contacts__social a::before {
    transition-duration: 0ms;
  }
}

/* Proporção final do convite: headline 2/3 + ação 1/3. */
.mr-footer-cta {
  align-content: center;
  align-items: center;
  column-gap: clamp(44px, 6vw, 110px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.mr-footer-cta h2 {
  font-size: clamp(46px, 5vw, 80px);
  grid-column: 1 / 9;
  line-height: .98;
  max-width: 15ch;
}

.mr-footer-cta__button {
  align-self: center;
  font-size: clamp(22px, 2vw, 31px);
  grid-column: 9 / 13;
  min-height: 104px;
  padding: 14px 16px 14px clamp(28px, 3vw, 48px);
}

.mr-footer-cta__button span:last-child {
  font-size: 28px;
  height: 68px;
  width: 68px;
}

@media (max-width: 760px) {
  .mr-footer-cta {
    align-content: end;
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .mr-footer-cta h2,
  .mr-footer-cta__button {
    grid-column: 1;
  }

  .mr-footer-cta h2 {
    font-size: clamp(40px, 12vw, 58px);
    max-width: 12ch;
  }

  .mr-footer-cta__button {
    font-size: 20px;
    min-height: 72px;
    padding: 10px 12px 10px 24px;
    width: 100%;
  }

  .mr-footer-cta__button span:last-child {
    font-size: 23px;
    height: 50px;
    width: 50px;
  }
}

/* Alternância de tema como controle utilitário, sem competir com o menu. */
.mr-theme-toggle,
html[data-theme="dark"] .mr-theme-toggle {
  background: transparent;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  color: var(--mr-text);
  height: 30px;
  margin-left: 2px;
  opacity: .68;
  transition: background-color var(--mr-ease), border-color var(--mr-ease), opacity var(--mr-ease);
  width: 30px;
}

.mr-theme-toggle span,
html[data-theme="dark"] .mr-theme-toggle span {
  background: currentColor;
  height: 8px;
  opacity: .78;
  width: 8px;
}

.mr-theme-toggle:hover,
html[data-theme="dark"] .mr-theme-toggle:hover {
  background: var(--mr-surface-subtle);
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  opacity: 1;
}

.mr-theme-toggle:hover span,
html[data-theme="dark"] .mr-theme-toggle:hover span {
  transform: scale(1.15);
}

@media (max-width: 760px) {
  .mr-theme-toggle,
  html[data-theme="dark"] .mr-theme-toggle {
    height: 28px;
    width: 28px;
  }
}

/* Rodapé mais compacto e CTA sem quebra de linha. */
.mr-transition {
  padding-bottom: calc(68svh + 12px);
}

.mr-transition .mr-footer {
  height: 68svh;
}

.mr-footer-cta {
  min-height: 52svh;
  padding-bottom: clamp(28px, 3vw, 48px);
  padding-top: clamp(28px, 3vw, 48px);
}

.mr-transition .mr-footer-cta {
  min-height: 0;
}

.mr-footer-cta__button,
.mr-footer-cta__button span:first-child {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mr-transition {
    padding-bottom: calc(78svh + 7px);
  }

  .mr-transition .mr-footer {
    height: 78svh;
  }

  .mr-footer-cta {
    min-height: 56svh;
    padding-bottom: 24px;
    padding-top: 24px;
  }

  .mr-transition .mr-footer-cta {
    min-height: 0;
  }
}

/* FINAL DLS PRODUCT OVERRIDES — manter no fim do arquivo.
   Garante que o produto e a documentação consumam os mesmos tokens. */
body {
  background: var(--mr-canvas);
  color: var(--mr-text);
}

.mr-header,
html[data-theme="dark"] .mr-header {
  background: transparent;
  border: 0;
}

.mr-hero,
.mr-process,
.mr-profile,
.mr-projects-page,
.mr-case,
.mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-work,
.mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-project-card figure,
.mr-case-media {
  border-radius: var(--mr-radius-project);
}

.mr-profile__media,
.mr-profile__services span,
.mr-contact-form input,
.mr-contact-form textarea {
  border-radius: var(--mr-radius-module);
}

.mr-process-card {
  border: 0;
  border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0;
}

.mr-section-head p,
.mr-project-meta p,
.mr-project-meta::before,
.mr-case__facts span,
.mr-system-note {
  color: var(--mr-muted);
}

.mr-work .mr-project-meta h3 a,
.mr-project-card a,
.mr-case__back {
  color: var(--mr-text);
}

.mr-header .mr-nav,
.mr-nav a,
.mr-pill,
.mr-contact-submit,
.mr-projects-cta {
  border-radius: var(--mr-radius-control);
}

.mr-pill {
  background: var(--mr-orange);
  color: var(--mr-black);
}

.mr-pill:hover {
  background: var(--mr-black);
  color: var(--mr-white);
}

html[data-theme="dark"] .mr-pill {
  background: var(--mr-orange);
  color: var(--mr-black);
}

html[data-theme="dark"] .mr-pill:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-circle,
.mr-theme-toggle,
.mr-contact-close {
  border-radius: 50%;
}

.mr-nav a:active,
.mr-pill:active,
.mr-contact-submit:active,
.mr-projects-cta:active,
.mr-circle:active,
.mr-theme-toggle:active,
.mr-contact-close:active {
  transform: scale(.96);
  transition-duration: 90ms;
}

.mr-pill[aria-disabled="true"],
.mr-projects-cta[aria-disabled="true"],
.mr-nav a[aria-disabled="true"],
.mr-contact-submit:disabled,
.mr-circle:disabled,
.mr-theme-toggle:disabled,
.mr-contact-close:disabled {
  cursor: not-allowed;
  opacity: .35;
  pointer-events: none;
}

.mr-contact-form input,
.mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  border-color: transparent;
  color: var(--mr-text);
  min-height: 56px;
}

.mr-contact-form input:hover,
.mr-contact-form textarea:hover {
  border-color: var(--mr-muted);
}

.mr-contact-form input:focus,
.mr-contact-form textarea:focus {
  border-color: var(--mr-orange);
  box-shadow: 0 0 0 2px var(--mr-orange);
}

.mr-contact-form input[aria-invalid="true"],
.mr-contact-form textarea[aria-invalid="true"] {
  border-color: var(--mr-error);
  box-shadow: none;
}

.mr-contact-form input:disabled,
.mr-contact-form textarea:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.mr-project-card a:focus-visible,
.mr-footer__social a:focus-visible,
.mr-case__back:focus-visible,
.mr-nav a:focus-visible,
.mr-pill:focus-visible,
.mr-contact-submit:focus-visible,
.mr-projects-cta:focus-visible,
.mr-theme-toggle:focus-visible,
.mr-contact-close:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 4px;
}

.mr-project-card a:active img {
  transform: scale(1.01);
}

.mr-process-card:active {
  transform: translateY(-6px);
}

html[data-theme="dark"] .mr-hero,
html[data-theme="dark"] .mr-process,
html[data-theme="dark"] .mr-profile,
html[data-theme="dark"] .mr-projects-page,
html[data-theme="dark"] .mr-case,
html[data-theme="dark"] .mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-work,
html[data-theme="dark"] .mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-contact-drawer {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-contact-form input,
html[data-theme="dark"] .mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  color: var(--mr-text);
}

@media (max-width: 760px) {
  .mr-hero,
  .mr-work,
  .mr-process,
  .mr-profile,
  .mr-footer,
  .mr-projects-page,
  .mr-case,
  .mr-system {
    border-radius: var(--mr-radius-section);
  }

  .mr-project-card figure,
  .mr-case-media {
    border-radius: var(--mr-radius-project);
  }

  .mr-profile__media,
  .mr-profile__services span,
  .mr-contact-form input,
  .mr-contact-form textarea {
    border-radius: var(--mr-radius-module);
  }

  .mr-process-card {
    border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0;
  }

  .mr-projects-cta,
  .mr-pill {
    border-radius: var(--mr-radius-control);
  }
}

/* Página individual de projeto. */
.mr-case {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 28px;
  color: #000;
  margin-top: 82px;
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) var(--mr-gutter) clamp(100px, 12vw, 180px);
}
.mr-case__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: clamp(70px, 10vw, 150px);
}
.mr-case__back {
  color: inherit;
  font-size: 13px;
  grid-column: 1 / 4;
  text-decoration: none;
}
.mr-case__back:hover { color: var(--mr-orange); }
.mr-case__title {
  font-size: clamp(68px, 12vw, 200px);
  font-weight: 700;
  grid-column: 1 / 13;
  letter-spacing: normal;
  line-height: .78;
  margin: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
}
.mr-case__summary {
  display: grid;
  gap: 30px;
  grid-column: 5 / 13;
  grid-template-columns: 1.2fr 1fr;
}
.mr-case__summary > p {
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.08;
  margin: 0;
}
.mr-case__summary .wp-block-post-excerpt__more-text { display: none; }
.mr-case__facts { display: grid; gap: 20px; }
.mr-case__facts div { border-top: 1px solid #d4d4d4; display: grid; gap: 8px; grid-template-columns: 80px 1fr; padding-top: 12px; }
.mr-case__facts span { color: #777; font-size: 11px; text-transform: uppercase; }
.mr-case__facts strong { font-size: 13px; font-weight: 600; }
.mr-case-body { display: grid; gap: 18px; }
.mr-case-media { border-radius: 24px; margin: 0; overflow: hidden; }
.mr-case-media img { aspect-ratio: 16 / 9; display: block; object-fit: cover; width: 100%; }
.mr-case-media video {
  aspect-ratio: 16 / 9;
  background: #0ba2dc;
  display: block;
  object-fit: cover;
  width: 100%;
}
.mr-case-pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.mr-case-trio { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.mr-case-text {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: clamp(90px, 10vw, 150px) 0;
}
.mr-case-text span { font-size: 12px; grid-column: 1 / 4; text-transform: uppercase; }
.mr-case-text p { font-size: clamp(28px, 4vw, 66px); font-weight: 700; grid-column: 4 / 13; line-height: .98; margin: 0; }
.mr-case-text--right p { grid-column: 6 / 13; }
.mr-case-credits {
  border-top: 1px solid #d4d4d4;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: clamp(80px, 9vw, 140px);
  padding-top: 24px;
}
.mr-case-credits > span {
  font-size: 12px;
  grid-column: 1 / 4;
  text-transform: uppercase;
}
.mr-case-credits > div {
  display: grid;
  gap: 12px;
  grid-column: 5 / 13;
}
.mr-case-credits p {
  display: grid;
  font-size: clamp(18px, 2vw, 28px);
  gap: 8px;
  grid-template-columns: minmax(140px, .7fr) 1.3fr;
  line-height: 1.12;
  margin: 0;
}
.mr-case-credits strong { font-weight: 600; }
.mr-case__end { display: grid; gap: 24px; margin-top: clamp(100px, 13vw, 190px); }
.mr-case__end .mr-pill { justify-self: start; }
.mr-case__end .mr-projects-cta { margin-top: 0; }

html[data-theme="dark"] .mr-case { background: #111; border-color: #3b3b3b; color: #f7f7f4; }
html[data-theme="dark"] .mr-case__facts div { border-color: #424242; }
html[data-theme="dark"] .mr-case__facts span { color: #aaa; }
html[data-theme="dark"] .mr-case-credits { border-color: #424242; }

@media (max-width: 760px) {
  .mr-case { border-radius: 20px; margin-top: 68px; padding-top: 72px; }
  .mr-case__back,
  .mr-case__title,
  .mr-case__summary { grid-column: 1 / 13; }
  .mr-case__title { font-size: clamp(64px, 22vw, 110px); margin: 70px 0 50px; }
  .mr-case__summary { grid-template-columns: 1fr; }
  .mr-case-pair,
  .mr-case-trio { grid-template-columns: 1fr; }
  .mr-case-media { border-radius: 18px; }
  .mr-case-text span,
  .mr-case-text p,
  .mr-case-text--right p { grid-column: 1 / 13; }
  .mr-case-text p { font-size: clamp(30px, 9vw, 48px); }
  .mr-case-credits > span,
  .mr-case-credits > div { grid-column: 1 / 13; }
  .mr-case-credits p { grid-template-columns: 1fr; }
}

/* Ajuste das legendas da home e acesso ao acervo completo. */
.mr-work .mr-project-meta {
  grid-template-columns: 34px minmax(0, 1fr) minmax(100px, 220px);
}
.mr-work .mr-project-meta h3 {
  min-width: 0;
  white-space: nowrap;
}
.mr-work .mr-project-meta h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr-work .mr-project-meta .wp-block-post-excerpt {
  min-width: 0;
  overflow: hidden;
}
.mr-work .mr-project-meta .wp-block-post-excerpt__excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mr-work__more {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(70px, 8vw, 120px);
}

@media (max-width: 760px) {
  .mr-work .mr-project-meta { grid-template-columns: 28px minmax(0, 1fr); }
  .mr-work__more { justify-content: stretch; }
  .mr-work__more .mr-pill { width: 100%; }
}

/* DLS v0.8 — documentação funcional. */
.mr-dls { padding-bottom: 180px; }
.mr-dls-index {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 130px;
}
.mr-dls-index a {
  align-items: center;
  background: #f2f2f2;
  border-radius: 999px;
  color: #000;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
}
.mr-dls-index a span { color: #777; font-size: 11px; }
.mr-dls-index a:hover { background: #000; color: #fff; }
.mr-dls-index a:hover span { color: #aaa; }
.mr-dls .mr-system-section { scroll-margin-top: 100px; }
.mr-dls-section-lead { font-size: clamp(21px, 2.2vw, 34px); line-height: 1.12; margin: 0 0 48px; max-width: 34ch; }
.mr-dls-subtitle { font-size: 13px; margin: 80px 0 24px; text-transform: uppercase; }

.mr-dls-principles { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.mr-dls-principles article { background: #fff; border-radius: 20px; min-height: 280px; padding: 24px; }
.mr-dls-principles span { color: #777; font-size: 11px; }
.mr-dls-principles h3 { font-size: clamp(28px, 3vw, 46px); margin: 70px 0 18px; }
.mr-dls-principles p { font-size: 15px; line-height: 1.35; margin: 0; }

.mr-token-grid { display: grid; gap: 12px; }
.mr-token-grid--brand { grid-template-columns: repeat(3, 1fr); }
.mr-token-card { background: #fff; border-radius: 20px; overflow: hidden; }
.mr-token-card__color { background: var(--token); color: var(--token-text); min-height: 240px; }
.mr-token-card__info { padding: 22px; }
.mr-token-card__info h3 { font-size: 25px; margin: 0 0 8px; }
.mr-token-card__info code { color: #777; font-size: 12px; }
.mr-token-card__info p { font-size: 14px; line-height: 1.35; margin: 30px 0 18px; }
.mr-token-card__info small { color: #777; display: block; font-size: 11px; }

.mr-semantic-table { border-top: 1px solid #d4d4d4; }
.mr-semantic-row { align-items: center; border-bottom: 1px solid #d4d4d4; display: grid; gap: 20px; grid-template-columns: 1.1fr 64px 100px 2fr; min-height: 76px; padding: 12px 0; }
.mr-semantic-row--head { color: #777; font-size: 11px; min-height: 44px; text-transform: uppercase; }
.mr-semantic-row strong { font-size: 15px; }
.mr-semantic-row i { background: var(--swatch); border: 1px solid rgba(0,0,0,.12); border-radius: 50%; height: 38px; width: 38px; }
.mr-semantic-row code { font-size: 12px; }
.mr-semantic-row p { font-size: 14px; margin: 0; }
.mr-process-tokens { border-radius: 20px; overflow: hidden; }
.mr-process-tokens div { align-items: center; background: var(--process); display: flex; justify-content: space-between; min-height: 82px; padding: 20px 24px; }
.mr-process-tokens span { font-size: 24px; font-weight: 700; }
.mr-process-tokens code { font-size: 12px; }

.mr-spec-table { border-top: 1px solid #d4d4d4; }
.mr-spec-table > div { border-bottom: 1px solid #d4d4d4; display: grid; gap: 18px; grid-template-columns: 90px minmax(0, 1fr) 180px 220px; padding: 32px 0; }
.mr-spec-table span { color: #777; font-size: 11px; text-transform: uppercase; }
.mr-spec-table code, .mr-spec-table p { align-self: end; font-size: 12px; margin: 0; }
.mr-spec-display { font-size: clamp(48px, 7vw, 110px); line-height: .8; }
.mr-spec-headline { font-size: clamp(32px, 4vw, 64px); line-height: .9; }
.mr-spec-body { font-size: 22px; font-weight: 400; line-height: 1.15; }
.mr-spec-nav { font-size: 15px; font-weight: 600; }
.mr-spec-label { font-size: 12px; font-weight: 400; letter-spacing: .02em; }

.mr-dls-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.mr-dls-metrics article { background: #fff; border-radius: 20px; min-height: 230px; padding: 22px; }
.mr-dls-metrics strong { display: block; font-size: clamp(32px, 3.5vw, 58px); line-height: .9; margin-bottom: 48px; }
.mr-dls-metrics span { font-size: 14px; font-weight: 600; }
.mr-dls-metrics p { color: #777; font-size: 12px; line-height: 1.35; }
.mr-radius-specimens { align-items: end; display: grid; gap: 14px; grid-template-columns: repeat(5, 1fr); }
.mr-radius-specimens div { display: grid; gap: 14px; }
.mr-radius-specimens i { background: var(--mr-orange); display: block; height: 110px; }
.mr-radius-specimens span { font-size: 12px; }

.mr-state-group { border-top: 1px solid #d4d4d4; margin-top: 72px; padding-top: 22px; }
.mr-state-group > h3 { font-size: 15px; margin: 0 0 30px; }
.mr-state-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, 1fr); }
.mr-state-grid > div { align-items: flex-start; background: #fff; border-radius: 18px; display: flex; flex-direction: column; gap: 32px; min-height: 150px; padding: 16px; }
.mr-state-grid > div > span:first-child { color: #777; font-size: 11px; text-transform: uppercase; }
.mr-demo-button {
  align-items: center;
  background: var(--mr-orange);
  border: 0;
  border-radius: 999px;
  color: #000;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  gap: 14px;
  justify-content: space-between;
  min-height: 48px;
  padding: 6px 6px 6px 18px;
  width: 100%;
}
.mr-demo-button b { font-weight: 600; }
.mr-demo-button i { align-items: center; border: 1px solid currentColor; border-radius: 50%; display: flex; font-style: normal; height: 34px; justify-content: center; width: 34px; }
.mr-demo-button.is-hover { background: #000; color: #fff; }
.mr-demo-button.is-hover i { transform: rotate(45deg); }
.mr-demo-button.is-pressed { background: #222; color: #fff; transform: scale(.97); }
.mr-demo-button.is-focus { outline: 3px solid var(--mr-orange); outline-offset: 3px; }
.mr-demo-button:disabled, .mr-demo-icon:disabled { cursor: not-allowed; opacity: .35; }
.mr-demo-icon { align-items: center; background: var(--mr-orange); border: 0; border-radius: 50%; display: flex; font-size: 23px; height: 54px; justify-content: center; width: 54px; }
.mr-demo-icon.is-hover { background: #000; color: #fff; transform: rotate(45deg); }
.mr-demo-icon.is-pressed { background: #222; color: #fff; transform: scale(.92); }
.mr-demo-icon.is-focus { outline: 3px solid var(--mr-orange); outline-offset: 3px; }
.mr-demo-nav { border-radius: 999px; color: #000; display: inline-flex; font-size: 13px; font-weight: 600; padding: 10px 15px; text-decoration: none; }
.mr-demo-nav.is-hover { background: #000; color: #fff; }
.mr-demo-nav.is-pressed { background: #222; color: #fff; transform: scale(.96); }
.mr-demo-nav.is-focus { outline: 3px solid var(--mr-orange); outline-offset: 3px; }
.mr-demo-nav.is-disabled { opacity: .35; }

.mr-form-state-grid { display: grid; gap: 28px 12px; grid-template-columns: repeat(3, 1fr); }
.mr-form-state-grid label { display: grid; gap: 10px; }
.mr-form-state-grid label > span { color: #777; font-size: 11px; text-transform: uppercase; }
.mr-form-state-grid input { background: #fff; border: 1px solid transparent; border-radius: 16px; color: #000; font: inherit; font-size: 15px; min-height: 56px; outline: none; padding: 0 18px; width: 100%; }
.mr-form-state-grid input.is-hover { border-color: #777; }
.mr-form-state-grid input.is-focus { border-color: var(--mr-orange); box-shadow: 0 0 0 2px var(--mr-orange); }
.mr-form-state-grid input.is-error { border-color: #ba1a1a; }
.mr-form-state-grid input:disabled { cursor: not-allowed; opacity: .4; }
.mr-form-state-grid small { color: #ba1a1a; font-size: 11px; }
.mr-form-rules { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.mr-form-rules p { border-top: 1px solid #d4d4d4; display: grid; font-size: 12px; gap: 8px; margin: 0; padding: 14px 0; }

.mr-card-doc-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.mr-card-doc-grid article > span, .mr-process-doc article > span { color: #777; display: block; font-size: 11px; margin-bottom: 12px; text-transform: uppercase; }
.mr-card-doc-grid figure { border-radius: 24px; margin: 0 0 16px; overflow: hidden; }
.mr-card-doc-grid img { aspect-ratio: 16 / 9; display: block; object-fit: cover; transition: transform var(--mr-ease); width: 100%; }
.mr-card-doc-grid article.is-hover img { transform: scale(1.025); }
.mr-card-doc-grid article > div { display: grid; gap: 10px; grid-template-columns: 30px 1fr auto; }
.mr-card-doc-grid small { color: #777; font-size: 11px; }
.mr-card-doc-grid strong { font-size: 22px; }
.mr-process-doc { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; overflow: hidden; padding-top: 12px; }
.mr-process-doc article > div { align-items: center; background: #ff7700; border-radius: 22px 22px 0 0; display: grid; gap: 14px; grid-template-columns: 34px 1fr; min-height: 140px; padding: 22px; transition: transform var(--mr-ease); }
.mr-process-doc article.is-hover > div { transform: translateY(-10px); }
.mr-process-doc strong { font-size: 42px; }
.mr-process-doc p { font-size: 13px; grid-column: 2; margin: 0; }

.mr-theme-doc { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mr-theme-doc article { border-radius: 22px; min-height: 330px; padding: 24px; }
.mr-theme-doc--light { background: #fff; color: #000; }
.mr-theme-doc--dark { background: #111; color: #fff; }
.mr-theme-doc article > span { font-size: 12px; text-transform: uppercase; }
.mr-theme-doc article > div { display: flex; gap: 8px; margin: 80px 0 35px; }
.mr-theme-doc i { border-radius: 50%; height: 38px; width: 38px; }
.mr-theme-doc--light i:nth-child(1) { background: #fff; border: 1px solid #d4d4d4; }
.mr-theme-doc--light i:nth-child(2) { background: #d8d8d4; }
.mr-theme-doc--light i:nth-child(3), .mr-theme-doc--dark i:nth-child(3) { background: #ff7700; }
.mr-theme-doc--dark i:nth-child(1) { background: #111; border: 1px solid #444; }
.mr-theme-doc--dark i:nth-child(2) { background: #292929; }
.mr-theme-doc strong { font-size: 24px; }
.mr-theme-doc p { font-size: 13px; max-width: 32ch; }
.mr-dls-rules { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
.mr-dls-rules p { border-top: 1px solid #d4d4d4; font-size: 13px; margin: 0; padding: 16px 0; }

html[data-theme="dark"] .mr-dls-index a,
html[data-theme="dark"] .mr-dls-principles article,
html[data-theme="dark"] .mr-token-card,
html[data-theme="dark"] .mr-dls-metrics article,
html[data-theme="dark"] .mr-state-grid > div { background: #202020; color: #f7f7f4; }
html[data-theme="dark"] .mr-semantic-table,
html[data-theme="dark"] .mr-semantic-row,
html[data-theme="dark"] .mr-spec-table,
html[data-theme="dark"] .mr-spec-table > div,
html[data-theme="dark"] .mr-state-group,
html[data-theme="dark"] .mr-form-rules p,
html[data-theme="dark"] .mr-dls-rules p { border-color: #424242; }
html[data-theme="dark"] .mr-dls-index a { color: #f7f7f4; }
html[data-theme="dark"] .mr-dls-index a:hover { background: #fff; color: #000; }
html[data-theme="dark"] .mr-form-state-grid input { background: #272727; color: #fff; }
html[data-theme="dark"] .mr-demo-nav { color: #fff; }
html[data-theme="dark"] .mr-demo-nav.is-hover,
html[data-theme="dark"] .mr-demo-nav.is-pressed { background: #fff; color: #000; }

@media (max-width: 900px) {
  .mr-dls-index { grid-template-columns: repeat(2, 1fr); }
  .mr-token-grid--brand,
  .mr-dls-principles,
  .mr-dls-metrics { grid-template-columns: repeat(2, 1fr); }
  .mr-state-grid { grid-template-columns: repeat(2, 1fr); }
  .mr-spec-table > div { grid-template-columns: 80px 1fr; }
  .mr-spec-table code, .mr-spec-table p { grid-column: 2; }
}

@media (max-width: 760px) {
  .mr-dls { padding-bottom: 100px; }
  .mr-dls-index,
  .mr-token-grid--brand,
  .mr-dls-principles,
  .mr-dls-metrics,
  .mr-form-state-grid,
  .mr-card-doc-grid,
  .mr-process-doc,
  .mr-theme-doc { grid-template-columns: 1fr; }
  .mr-semantic-row { gap: 10px; grid-template-columns: 1fr 42px 80px; padding: 16px 0; }
  .mr-semantic-row p { grid-column: 1 / 4; }
  .mr-semantic-row--head span:last-child { display: none; }
  .mr-radius-specimens { grid-template-columns: repeat(2, 1fr); }
  .mr-state-grid { grid-template-columns: 1fr; }
  .mr-form-rules { grid-template-columns: repeat(2, 1fr); }
  .mr-dls-rules { grid-template-columns: 1fr; }
}

/* DLS v0.8 — camada de conformidade do produto.
   As regras abaixo conectam os componentes reais aos tokens documentados. */
body {
  background: var(--mr-canvas);
  color: var(--mr-text);
}

.mr-header,
html[data-theme="dark"] .mr-header {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.mr-hero,
.mr-process,
.mr-profile,
.mr-projects-page,
.mr-case,
.mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-work,
.mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-project-card figure,
.mr-case-media,
.mr-card-doc-grid figure,
.mr-project-specimen figure {
  border-radius: var(--mr-radius-project);
}

.mr-profile__media,
.mr-profile__services span,
.mr-contact-form input,
.mr-contact-form textarea,
.mr-state-grid > div {
  border-radius: var(--mr-radius-module);
}

.mr-process-card,
.mr-system-process > div,
.mr-process-doc article > div {
  border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0;
}

.mr-section-head p,
.mr-project-meta p,
.mr-project-meta::before,
.mr-case__facts span,
.mr-system-note {
  color: var(--mr-muted);
}

.mr-work .mr-project-meta h3 a,
.mr-project-card a,
.mr-case__back {
  color: var(--mr-text);
}

.mr-header .mr-nav {
  border-radius: var(--mr-radius-control);
}

.mr-nav a,
.mr-pill,
.mr-contact-submit,
.mr-projects-cta,
.mr-demo-button,
.mr-demo-nav {
  border-radius: var(--mr-radius-control);
}

.mr-pill {
  background: var(--mr-orange);
  color: var(--mr-black);
}
.mr-pill:hover {
  background: var(--mr-black);
  color: var(--mr-white);
}
html[data-theme="dark"] .mr-pill {
  background: var(--mr-orange);
  color: var(--mr-black);
}
html[data-theme="dark"] .mr-pill:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-circle,
.mr-theme-toggle,
.mr-contact-close,
.mr-demo-icon {
  border-radius: 50%;
}

/* Estado pressionado compartilhado. */
.mr-nav a:active,
.mr-pill:active,
.mr-contact-submit:active,
.mr-projects-cta:active,
.mr-circle:active,
.mr-theme-toggle:active,
.mr-contact-close:active {
  transform: scale(.96);
  transition-duration: 90ms;
}

/* Estado desabilitado compartilhado. */
.mr-pill[aria-disabled="true"],
.mr-projects-cta[aria-disabled="true"],
.mr-nav a[aria-disabled="true"],
.mr-contact-submit:disabled,
.mr-circle:disabled,
.mr-theme-toggle:disabled,
.mr-contact-close:disabled {
  cursor: not-allowed;
  opacity: .35;
  pointer-events: none;
}

/* Campos reais seguem os mesmos estados documentados. */
.mr-contact-form input,
.mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  border-color: transparent;
  color: var(--mr-text);
  min-height: 56px;
}
.mr-contact-form input:hover,
.mr-contact-form textarea:hover { border-color: var(--mr-muted); }
.mr-contact-form input:focus,
.mr-contact-form textarea:focus {
  border-color: var(--mr-orange);
  box-shadow: 0 0 0 2px var(--mr-orange);
}
.mr-contact-form input[aria-invalid="true"],
.mr-contact-form textarea[aria-invalid="true"] {
  border-color: var(--mr-error);
  box-shadow: none;
}
.mr-contact-form input:disabled,
.mr-contact-form textarea:disabled {
  cursor: not-allowed;
  opacity: .4;
}

/* Links editoriais recebem foco sem assumir aparência de botão. */
.mr-project-card a:focus-visible,
.mr-footer__social a:focus-visible,
.mr-case__back:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 4px;
}

/* Interações de cards documentadas. */
.mr-project-card a:active img { transform: scale(1.01); }
.mr-process-card:active { transform: translateY(-6px); }

/* Dark mode consome os mesmos tokens sem duplicar papéis semânticos. */
html[data-theme="dark"] body { background: var(--mr-canvas); color: var(--mr-text); }
html[data-theme="dark"] .mr-header,
html[data-theme="dark"] .mr-hero,
html[data-theme="dark"] .mr-process,
html[data-theme="dark"] .mr-profile,
html[data-theme="dark"] .mr-projects-page,
html[data-theme="dark"] .mr-case,
html[data-theme="dark"] .mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}
html[data-theme="dark"] .mr-header { background: transparent; }
html[data-theme="dark"] .mr-work,
html[data-theme="dark"] .mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  color: var(--mr-text);
}
html[data-theme="dark"] .mr-contact-drawer {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}
html[data-theme="dark"] .mr-contact-form input,
html[data-theme="dark"] .mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  color: var(--mr-text);
}

@media (max-width: 760px) {
  .mr-hero,
  .mr-work,
  .mr-process,
  .mr-profile,
  .mr-footer,
  .mr-projects-page,
  .mr-case,
  .mr-system {
    border-radius: var(--mr-radius-section);
  }
  .mr-project-card figure,
  .mr-case-media { border-radius: var(--mr-radius-project); }
  .mr-process-card { border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0; }
}

/* Refinamento editorial: planos separados por contorno, sem sombras ou
   puxadores decorativos, e legendas subordinadas às imagens. */
.mr-profile,
.mr-footer {
  border: 1px solid #d4d4d4;
  box-shadow: none;
}
.mr-work::before,
.mr-profile::before,
.mr-footer::before {
  display: none;
}
.mr-project-meta h3 {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
}
.mr-project-meta p,
.mr-project-meta::before {
  color: #777;
}

/* Processo: faixas empilhadas inspiradas em fichas de sistema. */
.mr-process {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 28px;
  margin-top: 24px;
  padding: clamp(90px, 10vw, 150px) clamp(24px, 3vw, 52px) clamp(100px, 12vw, 170px);
  position: relative;
  z-index: 4;
}
.mr-process__head {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: clamp(58px, 7vw, 100px);
}
.mr-process__label {
  font-size: 12px;
  grid-column: 1 / 3;
  text-transform: uppercase;
}
.mr-process__head h2 {
  font-size: clamp(42px, 5.5vw, 86px);
  font-weight: 700;
  grid-column: 4 / 13;
  letter-spacing: normal;
  line-height: .92;
  margin: 0;
}
.mr-process__cards { position: relative; }
.mr-process-card {
  align-items: center;
  border: 0;
  border-radius: 22px;
  display: grid;
  gap: 24px;
  grid-template-columns: 54px minmax(0, 1fr) minmax(240px, 4fr);
  min-height: 136px;
  padding: 24px clamp(24px, 3vw, 44px);
  position: relative;
}
.mr-process-card + .mr-process-card { margin-top: -18px; }
.mr-process-card:nth-child(1) { z-index: 1; }
.mr-process-card:nth-child(2) { z-index: 2; }
.mr-process-card:nth-child(3) { z-index: 3; }
.mr-process-card:nth-child(4) { z-index: 4; }
.mr-process-card:nth-child(5) { z-index: 5; }
.mr-process-card__number { font-size: 12px; }
.mr-process-card h3 {
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: .9;
  margin: 0;
}
.mr-process-card p {
  font-size: clamp(16px, 1.6vw, 23px);
  justify-self: end;
  line-height: 1.15;
  margin: 0;
  max-width: 30ch;
}
.mr-process-card--light { background: #fff; color: #000; }
.mr-process-card--gray { background: #e7e7e7; color: #000; }
.mr-process-card--orange { background: var(--mr-orange); border-color: #d86400; color: #000; }
.mr-process-card--dark { background: #000; border-color: #333; color: #fff; }

@media (max-width: 760px) {
  .mr-process {
    border-radius: 20px;
    margin-top: 14px;
    padding-bottom: 100px;
  }
  .mr-process__label,
  .mr-process__head h2 { grid-column: 1 / 13; }
  .mr-process-card {
    align-items: start;
    border-radius: 18px;
    gap: 12px 18px;
    grid-template-columns: 34px 1fr;
    min-height: 174px;
    padding: 22px;
  }
  .mr-process-card + .mr-process-card { margin-top: -12px; }
  .mr-process-card h3 { font-size: clamp(34px, 11vw, 50px); }
  .mr-process-card p {
    grid-column: 2;
    justify-self: start;
  }
}

/* Variação cromática temporária baseada na referência de faixas. */
.mr-process-card {
  border-radius: 22px 22px 0 0;
  cursor: default;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.mr-process-card:hover {
  transform: translateY(-10px);
  z-index: 10;
}
.mr-process-card::after {
  background: inherit;
  bottom: -11px;
  content: "";
  height: 12px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}
.mr-process-card p {
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .mr-process-card p {
    opacity: 0;
    transform: translateY(7px);
  }
  .mr-process-card:hover p {
    opacity: 1;
    transform: translateY(0);
  }
}
.mr-process-card:nth-child(1) { background: #fff0e3; color: #111; }
.mr-process-card:nth-child(2) { background: #ffc38f; color: #111; }
.mr-process-card:nth-child(3) { background: #ff7700; color: #111; }
.mr-process-card:nth-child(4) { background: #c95500; color: #fff; }
.mr-process-card:nth-child(5) { background: #642600; color: #fff; }

.mr-process {
  overflow: hidden;
  padding-bottom: 0;
}

/* Perfil → Contato: o rodapé permanece sob a página e é descoberto quando
   o Perfil, como uma tampa, deixa a viewport. */
.mr-transition {
  padding-bottom: calc(72svh + 12px);
  position: relative;
  z-index: auto;
}
.mr-transition .mr-profile {
  margin: 12px 0 0;
  position: relative;
  top: auto;
  z-index: 2;
}
.mr-transition .mr-footer {
  bottom: 12px;
  height: 72svh;
  left: 12px;
  margin: 0;
  min-height: 0;
  position: fixed;
  right: 12px;
  width: auto;
  z-index: 1;
}
.mr-hero-transition {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .mr-transition { padding-bottom: calc(62svh + 7px); }
  .mr-transition .mr-profile { margin-top: 7px; }
  .mr-transition .mr-footer {
    bottom: 7px;
    height: 62svh;
    left: 7px;
    right: 7px;
  }
}

@media (max-width: 760px) {
  .mr-process-card { border-radius: 18px 18px 0 0; }
}

/* A profundidade do rodapé muda apenas quando a tampa Perfil é alcançada. */
.mr-transition .mr-footer { z-index: 0; }
.mr-transition .mr-footer {
  transform: translateY(calc(100% + 12px));
  transition: transform 620ms cubic-bezier(.22, 1, .36, 1);
}
body.mr-profile-stage .mr-transition .mr-footer {
  transform: translateY(0);
  z-index: 1;
}

/* Cards de Processo em sangria até os limites horizontais da seção. */
.mr-process {
  --mr-process-gutter: clamp(24px, 3vw, 52px);
  padding-left: var(--mr-process-gutter);
  padding-right: var(--mr-process-gutter);
}
.mr-process__cards {
  margin-left: calc(var(--mr-process-gutter) * -1);
  margin-right: calc(var(--mr-process-gutter) * -1);
}

@media (max-width: 760px) {
  .mr-transition .mr-footer { transform: translateY(calc(100% + 7px)); }
  body.mr-profile-stage .mr-transition .mr-footer { transform: translateY(0); }
}

/* Painel lateral de contato — desktop. */
.mr-contact-layer {
  inset: 0;
  pointer-events: none;
  position: fixed;
  transition: visibility 0s linear 650ms;
  visibility: hidden;
  z-index: 100;
}
.mr-contact-layer[aria-hidden="false"] {
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}
.mr-contact-backdrop {
  backdrop-filter: blur(0);
  background: rgba(0, 0, 0, .54);
  border: 0;
  inset: 0;
  opacity: .22;
  padding: 0;
  position: absolute;
  transition: opacity 420ms ease, backdrop-filter 650ms cubic-bezier(.22, 1, .36, 1);
  width: 100%;
}
.mr-contact-layer[aria-hidden="false"] .mr-contact-backdrop {
  backdrop-filter: blur(6px);
  opacity: 1;
}
.mr-contact-drawer {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 28px;
  display: grid;
  gap: clamp(34px, 4vw, 64px);
  grid-template-columns: minmax(220px, .78fr) minmax(340px, 1.22fr);
  height: calc(100svh - 48px);
  left: 50%;
  max-width: 940px;
  opacity: 0;
  overflow-y: auto;
  padding: clamp(34px, 4vw, 64px);
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, calc(-50% + 28vh), 0) scale(.975);
  transition: opacity 620ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1);
  width: min(calc(100vw - 48px), 940px);
}
.mr-contact-layer[aria-hidden="false"] .mr-contact-drawer {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.mr-contact-close {
  align-items: center;
  background: #000;
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 28px;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 52px;
}
.mr-contact-close:hover { background: var(--mr-orange); color: #000; transform: rotate(90deg); }
.mr-contact-intro { align-self: start; padding-top: 6px; }
.mr-contact-intro > span { font-size: 11px; text-transform: uppercase; }
.mr-contact-intro h2 {
  font-size: clamp(42px, 4.5vw, 72px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: .88;
  margin: clamp(44px, 10vh, 110px) 0 28px;
}
.mr-contact-intro p { font-size: 16px; line-height: 1.35; margin: 0; max-width: 34ch; }
.mr-contact-form { align-self: center; display: grid; gap: 12px; padding-top: 54px; }
.mr-contact-form label { font-size: 14px; margin-top: 8px; }
.mr-contact-form label span { color: #777; font-size: 11px; text-transform: uppercase; }
.mr-contact-form input,
.mr-contact-form textarea {
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #000;
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 18px 20px;
  resize: vertical;
  width: 100%;
}
.mr-contact-form input:focus,
.mr-contact-form textarea:focus { border-color: var(--mr-orange); }
.mr-contact-submit {
  align-items: center;
  background: var(--mr-orange);
  border: 0;
  border-radius: 999px;
  color: #000;
  display: flex;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  justify-content: space-between;
  margin-top: 12px;
  padding: 17px 20px 17px 24px;
}
.mr-contact-submit span:last-child {
  align-items: center;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.mr-contact-submit:hover { background: #000; color: #fff; }
.mr-contact-submit:hover span:last-child { border-color: #fff; }
.mr-contact-status { font-size: 12px; line-height: 1.3; margin: 0; min-height: 32px; }
body.mr-contact-open { overflow: hidden; }

@media (max-width: 760px) {
  .mr-contact-layer { display: none; }
}

/* Acervo completo de projetos. */
.mr-projects-page {
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 28px;
  min-height: calc(100svh - 100px);
  overflow: hidden;
  padding: clamp(72px, 9vw, 140px) var(--mr-gutter) clamp(90px, 11vw, 160px);
}
.mr-projects-intro {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-bottom: clamp(80px, 10vw, 150px);
}
.mr-projects-intro__label {
  font-size: 12px;
  grid-column: 1 / 3;
  text-transform: uppercase;
}
.mr-projects-intro h1 {
  font-size: clamp(64px, 11vw, 190px);
  font-weight: 700;
  grid-column: 3 / 13;
  letter-spacing: normal;
  line-height: .78;
  margin: 0;
}
.mr-projects-intro__text {
  font-size: clamp(20px, 2.2vw, 34px);
  grid-column: 6 / 11;
  line-height: 1.08;
  margin: 24px 0 0;
}
.mr-projects-intro__count {
  align-self: end;
  font-size: 13px;
  grid-column: 12 / 13;
  justify-self: end;
  margin: 24px 0 0;
}
.mr-archive-grid.wp-block-post-template {
  align-items: start;
  counter-reset: archive-project;
  display: grid !important;
  gap: clamp(60px, 7vw, 110px) 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.mr-archive-grid > li {
  align-self: start;
  counter-increment: archive-project;
  margin: 0 !important;
  margin-block-start: 0 !important;
  min-width: 0;
  padding: 0;
}
.mr-archive-grid .mr-project-card {
  display: block;
  margin: 0;
}
.mr-archive-grid .mr-project-card,
.mr-archive-grid .mr-project-card figure {
  width: 100%;
}
.mr-archive-grid .mr-project-card figure {
  aspect-ratio: 16 / 9;
  background: #eee;
  margin: 0 0 18px;
}
.mr-archive-grid .mr-project-card figure a,
.mr-archive-grid .mr-project-card figure img {
  display: block;
  height: 100%;
  width: 100%;
}
.mr-archive-grid .mr-project-card figure img {
  aspect-ratio: auto;
  object-fit: cover;
}
.mr-archive-grid .mr-project-meta {
  align-items: start;
  grid-template-columns: 34px minmax(0, 1fr);
}
.mr-archive-grid .mr-project-meta::before { content: counter(archive-project, decimal-leading-zero); }
.mr-archive-grid .mr-project-meta h2 {
  font-size: clamp(21px, 2vw, 32px);
  grid-column: 2;
  grid-row: 1;
  letter-spacing: normal;
  line-height: 1;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}
.mr-archive-grid .mr-project-meta h2 a {
  color: #000;
  text-decoration: none;
}
.mr-archive-grid .mr-project-meta .wp-block-post-excerpt {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.mr-archive-grid .mr-project-meta .wp-block-post-excerpt__excerpt {
  line-height: 1.35;
}
.mr-projects-cta {
  align-items: center;
  background: var(--mr-orange);
  border-radius: 28px;
  color: #000;
  display: flex;
  justify-content: space-between;
  margin-top: clamp(100px, 13vw, 190px);
  padding: clamp(34px, 5vw, 72px);
  text-decoration: none;
}
.mr-projects-cta span:first-child { font-size: clamp(32px, 5vw, 78px); font-weight: 700; line-height: .9; }
.mr-projects-cta span:last-child { align-items: center; border: 1px solid #000; border-radius: 50%; display: flex; font-size: 28px; height: 64px; justify-content: center; width: 64px; }
.mr-projects-cta:hover { background: #000; color: #fff; }
.mr-projects-cta:hover span:last-child { border-color: #fff; transform: rotate(45deg); }

@media (max-width: 760px) {
  .mr-projects-page { border-radius: 20px; padding-top: 70px; }
  .mr-projects-intro__label,
  .mr-projects-intro h1,
  .mr-projects-intro__text { grid-column: 1 / 13; }
  .mr-projects-intro h1 { font-size: clamp(62px, 23vw, 104px); }
  .mr-projects-intro__text { margin-top: 4px; }
  .mr-projects-intro__count { grid-column: 1 / 13; justify-self: start; margin-top: 0; }
  .mr-archive-grid.wp-block-post-template { grid-template-columns: 1fr; }
  .mr-archive-grid .mr-project-meta h2 { white-space: normal; }
  .mr-projects-cta { border-radius: 20px; }
  .mr-projects-cta span:last-child { font-size: 22px; height: 52px; width: 52px; }
}

/* Componentes de documentação do DLS v0.6. */
.mr-brand-specimen { background: #fff; border-radius: 20px; padding: clamp(28px, 6vw, 90px); }
.mr-brand-specimen img { display: block; height: auto; width: 100%; }
.mr-brand-variants { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; }
.mr-brand-specimen--stacked { align-items: center; display: flex; }
.mr-system-note { color: #5e5e5e; font-size: 13px; margin: 24px 0 0; max-width: 680px; }
.mr-swatches--four { grid-template-columns: repeat(4, 1fr); }
.mr-type-sample { margin: 0; }
.mr-type-sample--headline { font-size: clamp(28px, 4vw, 58px); font-weight: 700; letter-spacing: normal; line-height: 1; }
.mr-type-sample--body { font-size: 20px; max-width: 620px; }
.mr-type-sample--nav { font-size: 18px; font-weight: 600; text-transform: lowercase; }
.mr-layer-demo { background: #d8d8d4; border-radius: 20px; display: grid; gap: 12px; margin-top: 34px; padding: 12px; }
.mr-layer-demo div { align-items: end; background: #fff; border-radius: 16px; display: flex; font-size: 12px; min-height: 110px; padding: 18px; }
.mr-layer-demo div:nth-child(2) { background: #f2f2f2; }
.mr-layer-demo div:nth-child(3) { background: #ff7700; }
.mr-nav-specimen { align-items: center; background: #fff; border-radius: 20px; display: flex; justify-content: space-between; padding: 18px; }
.mr-nav-specimen__brand { font-size: 18px; font-weight: 600; }
.mr-nav-specimen nav { background: #f2f2f2; border-radius: 999px; display: flex; gap: 6px; padding: 5px; }
.mr-nav-specimen a { border-radius: 999px; color: #000; font-size: 13px; font-weight: 600; padding: 9px 15px; text-decoration: none; }
.mr-nav-specimen a:hover { background: #000; color: #fff; }
.mr-system-process { overflow: hidden; padding-top: 10px; }
.mr-system-process > div { align-items: center; border-radius: 18px 18px 0 0; display: grid; gap: 18px; grid-template-columns: 42px 1fr; min-height: 92px; padding: 18px 24px; position: relative; transition: transform var(--mr-ease); }
.mr-system-process > div + div { margin-top: -12px; }
.mr-system-process > div:hover { transform: translateY(-8px); z-index: 8; }
.mr-system-process > div:nth-child(1) { background: #fff0e3; z-index: 1; }
.mr-system-process > div:nth-child(2) { background: #ffc38f; z-index: 2; }
.mr-system-process > div:nth-child(3) { background: #ff7700; z-index: 3; }
.mr-system-process > div:nth-child(4) { background: #c95500; color: #fff; z-index: 4; }
.mr-system-process > div:nth-child(5) { background: #642600; color: #fff; z-index: 5; }
.mr-system-process span { font-size: 11px; }
.mr-system-process strong { font-size: clamp(28px, 4vw, 54px); font-weight: 700; line-height: .9; }
.mr-project-specimen figure { background: #eee; border-radius: 24px; margin: 0 0 18px; overflow: hidden; }
.mr-project-specimen img { aspect-ratio: 16 / 9; display: block; object-fit: cover; width: 100%; }
.mr-project-specimen > div { align-items: baseline; display: grid; gap: 12px; grid-template-columns: 34px 1fr auto; }
.mr-project-specimen span, .mr-project-specimen small { color: #777; font-size: 11px; }
.mr-project-specimen strong { font-size: clamp(18px, 1.5vw, 24px); font-weight: 700; }

@media (max-width: 760px) {
  .mr-swatches--four { grid-template-columns: 1fr; }
  .mr-brand-variants { grid-template-columns: 1fr; }
  .mr-nav-specimen { align-items: flex-start; flex-direction: column; gap: 24px; }
  .mr-nav-specimen nav { width: 100%; }
  .mr-nav-specimen a { flex: 1; text-align: center; }
  .mr-type-row { grid-template-columns: 1fr; }
}

/* Diagramação final do rodapé: mensagem 2/3 + contatos 1/3. */
.mr-footer .mr-footer__link { margin-top: 0; }

/* Alternância de tema. */
.mr-theme-toggle {
  align-items: center;
  background: #000;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}
.mr-theme-toggle span {
  background: #fff;
  border-radius: 50%;
  display: block;
  height: 12px;
  transition: background-color var(--mr-ease), transform var(--mr-ease);
  width: 12px;
}
.mr-theme-toggle:hover span { transform: scale(1.35); }
.mr-theme-toggle:focus-visible { outline: 3px solid var(--mr-orange); outline-offset: 3px; }

.mr-theme-specimen { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mr-theme-specimen > div { align-items: flex-end; border-radius: 20px; display: flex; justify-content: space-between; min-height: 220px; padding: 22px; }
.mr-theme-specimen > div:first-child { background: #fff; border: 1px solid #d8d8d8; color: #000; }
.mr-theme-specimen > div:last-child { background: #111; color: #fff; }
.mr-theme-specimen span { font-size: clamp(22px, 3vw, 44px); font-weight: 700; }
.mr-theme-specimen strong { font-size: 12px; font-weight: 400; }

html,
body,
.mr-header,
.mr-hero,
.mr-work,
.mr-process,
.mr-profile,
.mr-projects-page,
.mr-system,
.mr-system-section,
.mr-type-row,
.mr-contact-drawer,
.mr-contact-form input,
.mr-contact-form textarea,
.mr-nav,
.mr-project-card figure {
  transition: background-color var(--mr-ease), border-color var(--mr-ease), color var(--mr-ease);
}

html[data-theme="dark"] body { background: #292929; color: #f7f7f4; }
html[data-theme="dark"] .mr-header,
html[data-theme="dark"] .mr-hero,
html[data-theme="dark"] .mr-profile,
html[data-theme="dark"] .mr-projects-page,
html[data-theme="dark"] .mr-system { background: #111; color: #f7f7f4; }
html[data-theme="dark"] .mr-work,
html[data-theme="dark"] .mr-system-section { background: #1a1a1a; color: #f7f7f4; }
html[data-theme="dark"] .mr-process { background: #151515; color: #f7f7f4; }
html[data-theme="dark"] .mr-header,
html[data-theme="dark"] .mr-work,
html[data-theme="dark"] .mr-process,
html[data-theme="dark"] .mr-profile,
html[data-theme="dark"] .mr-projects-page,
html[data-theme="dark"] .mr-contact-drawer { border-color: #3b3b3b; }
html[data-theme="dark"] .mr-brand img,
html[data-theme="dark"] .mr-footer__bottom img,
html[data-theme="dark"] .mr-brand-specimen img { filter: invert(1); }
html[data-theme="dark"] .mr-nav { background: #252525; }
html[data-theme="dark"] .mr-nav a { color: #fff; }
html[data-theme="dark"] .mr-nav a:hover { background: #fff; color: #000; }
html[data-theme="dark"] .mr-nav .mr-brand:hover {
  background: #fff;
  border-color: transparent;
  color: #000;
}
html[data-theme="dark"] .mr-nav .mr-brand:hover img { filter: none; }
html[data-theme="dark"] .mr-theme-toggle { background: #fff; }
html[data-theme="dark"] .mr-theme-toggle span { background: #000; }
html[data-theme="dark"] .mr-section-head p,
html[data-theme="dark"] .mr-project-meta p,
html[data-theme="dark"] .mr-project-meta::before,
html[data-theme="dark"] .mr-system-note,
html[data-theme="dark"] .mr-project-specimen span,
html[data-theme="dark"] .mr-project-specimen small { color: #aaa; }
html[data-theme="dark"] .mr-project-meta h3 a,
html[data-theme="dark"] .mr-project-card a,
html[data-theme="dark"] .mr-system a:not(.mr-circle):not(.mr-pill) { color: #f7f7f4; }
html[data-theme="dark"] .mr-project-card figure,
html[data-theme="dark"] .mr-archive-grid .mr-project-card figure,
html[data-theme="dark"] .mr-project-specimen figure { background: #242424; }
html[data-theme="dark"] .mr-profile__services { border-color: #424242; }
html[data-theme="dark"] .mr-profile__services span,
html[data-theme="dark"] .mr-type-row,
html[data-theme="dark"] .mr-brand-specimen,
html[data-theme="dark"] .mr-nav-specimen { background: #202020; color: #f7f7f4; }
html[data-theme="dark"] .mr-contact-drawer { background: #151515; color: #f7f7f4; }
html[data-theme="dark"] .mr-contact-form input,
html[data-theme="dark"] .mr-contact-form textarea { background: #272727; color: #fff; }
html[data-theme="dark"] .mr-contact-form input::placeholder,
html[data-theme="dark"] .mr-contact-form textarea::placeholder { color: #999; }
html[data-theme="dark"] .mr-contact-close { background: #fff; color: #000; }
html[data-theme="dark"] .mr-pill { background: #fff; color: #000; }
html[data-theme="dark"] .mr-layer-demo { background: #292929; }
html[data-theme="dark"] .mr-layer-demo div { background: #111; color: #fff; }
html[data-theme="dark"] .mr-layer-demo div:nth-child(2) { background: #1a1a1a; }
html[data-theme="dark"] .mr-layer-demo div:nth-child(3) { background: var(--mr-orange); color: #000; }
html[data-theme="dark"] .mr-nav-specimen nav { background: #292929; }
html[data-theme="dark"] .mr-nav-specimen a { color: #fff; }
html[data-theme="dark"] .mr-nav-specimen a:hover { background: #fff; color: #000; }
html[data-theme="dark"] .mr-footer { color: #000; }

@media (max-width: 760px) {
  .mr-theme-toggle { height: 32px; width: 32px; }
  .mr-theme-specimen { grid-template-columns: 1fr; }
}

/* Sistema unificado de botões:
   ícone = círculo · texto = cápsula · texto + ícone = cápsula com círculo interno. */
:root {
  --mr-control-height: 54px;
  --mr-control-icon: 38px;
}

.mr-circle,
.mr-theme-toggle,
.mr-contact-close {
  border-radius: 50%;
}

.mr-pill,
.mr-contact-submit,
.mr-projects-cta {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 600;
  justify-content: space-between;
  min-height: var(--mr-control-height);
  text-decoration: none;
}

.mr-pill {
  background: #000;
  color: #fff;
  gap: 22px;
  padding: 8px 8px 8px 24px;
}

.mr-pill > span:last-child,
.mr-contact-submit > span:last-child,
.mr-projects-cta > span:last-child {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: var(--mr-control-icon);
  justify-content: center;
  transition: transform var(--mr-ease);
  width: var(--mr-control-icon);
}

.mr-pill:hover > span:last-child,
.mr-contact-submit:hover > span:last-child,
.mr-projects-cta:hover > span:last-child {
  transform: rotate(45deg);
}

.mr-contact-submit {
  padding: 8px 8px 8px 24px;
}

.mr-projects-cta {
  background: var(--mr-orange);
  border-radius: 999px;
  color: #000;
  padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px) clamp(30px, 4vw, 64px);
  width: 100%;
}
.mr-projects-cta span:first-child {
  font-size: clamp(30px, 4vw, 66px);
  line-height: .92;
}
.mr-projects-cta span:last-child {
  height: clamp(54px, 6vw, 84px);
  width: clamp(54px, 6vw, 84px);
}

.mr-circle:focus-visible,
.mr-pill:focus-visible,
.mr-contact-submit:focus-visible,
.mr-projects-cta:focus-visible,
.mr-contact-close:focus-visible,
.mr-theme-toggle:focus-visible,
.mr-nav a:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 3px;
}

html[data-theme="dark"] .mr-pill { background: #fff; color: #000; }

@media (max-width: 760px) {
  :root { --mr-control-height: 50px; --mr-control-icon: 34px; }
  .mr-projects-cta {
    border-radius: 999px;
    padding: 16px 16px 16px 28px;
  }
  .mr-projects-cta span:first-child { font-size: clamp(26px, 8vw, 42px); }
}

/* Navbar flutuante: menu centralizado, independente das camadas da página. */
.wp-block-template-part:has(.mr-header) { display: contents; }
.mr-header {
  align-items: center;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  display: flex;
  height: auto;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: fixed;
  right: auto;
  top: 24px;
  transform: translateX(-50%);
  width: auto;
  z-index: 80;
}
.mr-nav {
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(242, 242, 242, .78);
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: none;
  gap: 4px;
  padding: 5px;
  white-space: nowrap;
}
.mr-nav .mr-brand {
  border: 1px solid transparent;
  margin-right: clamp(8px, 1.4vw, 20px);
  padding: 7px 12px;
}
.mr-nav .mr-brand--wordmark img { width: clamp(110px, 10vw, 150px); }
.mr-nav .mr-brand:hover {
  background: #000;
  border-color: transparent;
  color: #fff;
}
.mr-nav .mr-brand:hover img { filter: invert(1); }
.mr-nav a { padding: 9px 15px; }

html[data-theme="dark"] .mr-header { background: transparent; border: 0; }
html[data-theme="dark"] .mr-nav {
  background: rgba(37, 37, 37, .76);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

/* Recorte superior: a primeira superfície começa abaixo da navbar. */
.mr-hero-transition { padding-top: 82px; }
.mr-hero {
  border-radius: 28px;
  min-height: calc(100svh - 106px);
  top: 94px;
}
.mr-projects-page,
.mr-system {
  border-radius: 28px;
  margin-top: 82px;
}

@media (max-width: 760px) {
  .mr-header {
    height: auto;
    left: 50%;
    right: auto;
    top: 14px;
  }
  .mr-nav .mr-brand { margin-right: 2px; padding: 6px 8px; }
  .mr-nav .mr-brand--wordmark img { width: 88px; }
  .mr-nav {
    backdrop-filter: blur(16px) saturate(140%);
    background: rgba(242, 242, 242, .82);
    padding: 4px;
  }
  .mr-nav a { display: block !important; padding: 8px 10px; }
  html[data-theme="dark"] .mr-nav { background: rgba(37, 37, 37, .82); }
  .mr-hero-transition { padding-top: 68px; }
  .mr-hero {
    border-radius: 20px;
    min-height: calc(100svh - 82px);
    top: 75px;
  }
  .mr-projects-page,
  .mr-system {
    border-radius: 20px;
    margin-top: 68px;
  }
}

/* PRODUCT DLS AUTHORITY — este bloco deve permanecer como a última regra. */
body { background: var(--mr-canvas); color: var(--mr-text); }
.mr-header,
html[data-theme="dark"] .mr-header { background: transparent; border: 0; }

.mr-hero,
.mr-process,
.mr-profile,
.mr-projects-page,
.mr-case,
.mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-work,
.mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
}

.mr-project-card figure,
.mr-case-media { border-radius: var(--mr-radius-project); }

.mr-profile__media,
.mr-profile__services span,
.mr-contact-form input,
.mr-contact-form textarea { border-radius: var(--mr-radius-module); }

.mr-process-card {
  border: 0;
  border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0;
}

.mr-section-head p,
.mr-project-meta p,
.mr-project-meta::before,
.mr-case__facts span,
.mr-system-note { color: var(--mr-muted); }

.mr-work .mr-project-meta h3 a,
.mr-project-card a,
.mr-case__back { color: var(--mr-text); }

.mr-header .mr-nav,
.mr-nav a,
.mr-pill,
.mr-contact-submit,
.mr-projects-cta { border-radius: var(--mr-radius-control); }

.mr-pill,
html[data-theme="dark"] .mr-pill {
  background: var(--mr-orange);
  color: var(--mr-black);
}

.mr-pill:hover { background: var(--mr-black); color: var(--mr-white); }
html[data-theme="dark"] .mr-pill:hover { background: var(--mr-white); color: var(--mr-black); }

.mr-circle,
.mr-theme-toggle,
.mr-contact-close { border-radius: 50%; }

.mr-nav a:active,
.mr-pill:active,
.mr-contact-submit:active,
.mr-projects-cta:active,
.mr-circle:active,
.mr-theme-toggle:active,
.mr-contact-close:active {
  transform: scale(.96);
  transition-duration: 90ms;
}

.mr-pill[aria-disabled="true"],
.mr-projects-cta[aria-disabled="true"],
.mr-nav a[aria-disabled="true"],
.mr-contact-submit:disabled,
.mr-circle:disabled,
.mr-theme-toggle:disabled,
.mr-contact-close:disabled {
  cursor: not-allowed;
  opacity: .35;
  pointer-events: none;
}

.mr-contact-form input,
.mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  border-color: transparent;
  color: var(--mr-text);
  min-height: 56px;
}

.mr-contact-form input:hover,
.mr-contact-form textarea:hover { border-color: var(--mr-muted); }

.mr-contact-form input:focus,
.mr-contact-form textarea:focus {
  border-color: var(--mr-orange);
  box-shadow: 0 0 0 2px var(--mr-orange);
}

.mr-contact-form input[aria-invalid="true"],
.mr-contact-form textarea[aria-invalid="true"] {
  border-color: var(--mr-error);
  box-shadow: none;
}

.mr-contact-form input:disabled,
.mr-contact-form textarea:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.mr-project-card a:focus-visible,
.mr-footer__social a:focus-visible,
.mr-case__back:focus-visible,
.mr-nav a:focus-visible,
.mr-pill:focus-visible,
.mr-contact-submit:focus-visible,
.mr-projects-cta:focus-visible,
.mr-theme-toggle:focus-visible,
.mr-contact-close:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 4px;
}

.mr-project-card a:active img { transform: scale(1.01); }
.mr-process-card:active { transform: translateY(-6px); }

html[data-theme="dark"] .mr-hero,
html[data-theme="dark"] .mr-process,
html[data-theme="dark"] .mr-profile,
html[data-theme="dark"] .mr-projects-page,
html[data-theme="dark"] .mr-case,
html[data-theme="dark"] .mr-system {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-work,
html[data-theme="dark"] .mr-system-section {
  background: var(--mr-surface-subtle);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-contact-drawer {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-contact-form input,
html[data-theme="dark"] .mr-contact-form textarea {
  background: var(--mr-surface-subtle);
  color: var(--mr-text);
}

@media (max-width: 760px) {
  .mr-hero,
  .mr-work,
  .mr-process,
  .mr-profile,
  .mr-footer,
  .mr-projects-page,
  .mr-case,
  .mr-system { border-radius: var(--mr-radius-section); }

  .mr-project-card figure,
  .mr-case-media { border-radius: var(--mr-radius-project); }

  .mr-profile__media,
  .mr-profile__services span,
  .mr-contact-form input,
  .mr-contact-form textarea { border-radius: var(--mr-radius-module); }

  .mr-process-card {
    border-radius: var(--mr-radius-module) var(--mr-radius-module) 0 0;
  }

  .mr-projects-cta,
  .mr-pill { border-radius: var(--mr-radius-control); }
}

/* Rodapé em dois planos: convite + faixa final revelada pelo scroll. */
.mr-transition {
  padding-bottom: calc(78svh + 12px);
}

.mr-transition .mr-footer {
  background: transparent;
  border: 0;
  bottom: 12px;
  display: grid;
  gap: 8px;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 78svh;
  overflow: visible;
  padding: 0;
}

.mr-footer-cta {
  align-content: end;
  background: var(--mr-orange);
  border-radius: var(--mr-radius-section);
  color: var(--mr-black);
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 0;
  padding: clamp(32px, 4vw, 64px);
}

.mr-footer-cta__eyebrow {
  align-self: start;
  font-size: 12px;
  font-weight: 600;
  grid-column: 1 / 4;
  margin: 0;
  text-transform: lowercase;
}

.mr-footer-cta h2 {
  font-size: clamp(42px, 5.8vw, 92px);
  font-weight: 700;
  grid-column: 1 / 9;
  letter-spacing: normal;
  line-height: .92;
  margin: 0;
  max-width: 14ch;
}

.mr-footer-cta__button {
  align-items: center;
  align-self: end;
  background: var(--mr-black);
  border: 1px solid var(--mr-black);
  border-radius: var(--mr-radius-control);
  color: var(--mr-white);
  display: flex;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 600;
  grid-column: 9 / 13;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 12px 10px 30px;
  text-decoration: none;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
}

.mr-footer-cta__button span:last-child {
  align-items: center;
  background: var(--mr-white);
  border-radius: 50%;
  color: var(--mr-black);
  display: flex;
  flex: 0 0 auto;
  font-size: 25px;
  height: 54px;
  justify-content: center;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
  width: 54px;
}

.mr-footer-cta__button:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-footer-cta__button:hover span:last-child {
  background: var(--mr-black);
  color: var(--mr-white);
  transform: rotate(45deg);
}

.mr-footer-cta__button:active {
  transform: scale(.98);
}

.mr-footer-cta__button:focus-visible {
  outline: 3px solid var(--mr-black);
  outline-offset: 4px;
}

.mr-footer-bar {
  align-items: stretch;
  background: var(--mr-surface);
  border: 1px solid var(--mr-border);
  border-radius: var(--mr-radius-section);
  color: var(--mr-text);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(210px, 1.4fr) minmax(200px, auto) auto minmax(240px, 1.5fr);
  padding: 12px;
}

.mr-footer-chip {
  align-items: center;
  background: var(--mr-surface-subtle);
  border: 1px solid transparent;
  border-radius: var(--mr-radius-control);
  color: var(--mr-text);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 58px;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--mr-ease), border-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
}

a.mr-footer-chip:hover,
.mr-footer-chip--social a:hover {
  background: var(--mr-text);
  color: var(--mr-surface);
}

a.mr-footer-chip:active,
.mr-footer-chip--social a:active {
  transform: scale(.97);
}

a.mr-footer-chip:focus-visible,
.mr-footer-chip--social a:focus-visible {
  outline: 3px solid var(--mr-orange);
  outline-offset: 2px;
}

.mr-footer-chip--brand {
  padding-left: 25px;
  padding-right: 25px;
}

.mr-footer-chip--brand img {
  display: block;
  filter: none;
  height: auto;
  width: 112px;
}

.mr-footer-chip--brand:hover img {
  filter: invert(1);
}

.mr-footer-chip--statement {
  justify-content: flex-start;
  text-align: left;
}

.mr-footer-chip--social {
  gap: 5px;
  padding: 5px;
}

.mr-footer-chip--social a {
  border-radius: var(--mr-radius-control);
  color: inherit;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
}

.mr-footer-chip--legal {
  font-weight: 400;
}

html[data-theme="dark"] .mr-footer-bar {
  background: var(--mr-surface);
  border-color: var(--mr-border);
  color: var(--mr-text);
}

html[data-theme="dark"] .mr-footer-chip {
  background: var(--mr-surface-subtle);
  color: var(--mr-text);
}

html[data-theme="dark"] a.mr-footer-chip:hover,
html[data-theme="dark"] .mr-footer-chip--social a:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

html[data-theme="dark"] .mr-footer-chip--brand img {
  filter: invert(1);
}

html[data-theme="dark"] .mr-footer-chip--brand:hover img {
  filter: none;
}

@media (max-width: 1100px) {
  .mr-footer-bar {
    grid-template-columns: auto 1fr 1fr;
  }

  .mr-footer-chip--statement { display: none; }
  .mr-footer-chip--legal { grid-column: span 2; }
}

@media (max-width: 760px) {
  .mr-transition {
    padding-bottom: calc(86svh + 7px);
  }

  .mr-transition .mr-footer {
    bottom: 7px;
    gap: 7px;
    height: 86svh;
  }

  .mr-footer-cta {
    align-content: end;
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .mr-footer-cta__eyebrow,
  .mr-footer-cta h2,
  .mr-footer-cta__button {
    grid-column: 1;
  }

  .mr-footer-cta h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .mr-footer-cta__button {
    min-height: 66px;
    padding-left: 22px;
  }

  .mr-footer-cta__button span:last-child {
    height: 46px;
    width: 46px;
  }

  .mr-footer-bar {
    border-radius: var(--mr-radius-section);
    grid-template-columns: 1fr 1fr;
    padding: 7px;
  }

  .mr-footer-chip {
    min-height: 50px;
    padding: 10px 14px;
  }

  .mr-footer-chip--brand,
  .mr-footer-chip[href^="mailto:"] {
    grid-column: span 1;
  }

  .mr-footer-chip--brand img {
    width: 88px;
  }

  .mr-footer-chip--social,
  .mr-footer-chip--legal {
    grid-column: 1 / -1;
  }

  .mr-footer-chip--legal {
    font-size: 12px;
  }
}

/* O mesmo rodapé também funciona em páginas sem o palco de revelação. */
.mr-footer {
  background: transparent;
  border: 0;
  display: grid;
  gap: 8px;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.mr-footer-cta {
  min-height: 62svh;
}

.mr-transition .mr-footer-cta {
  min-height: 0;
}

@media (max-width: 760px) {
  .mr-footer {
    gap: 7px;
  }

  .mr-footer-cta {
    min-height: 64svh;
  }

  .mr-transition .mr-footer-cta {
    min-height: 0;
  }
}

/* Faixa final aberta: elementos soltos, sem painel externo. */
.mr-footer-bar,
html[data-theme="dark"] .mr-footer-bar {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
}

.mr-footer-chip--brand,
html[data-theme="dark"] .mr-footer-chip--brand {
  background: transparent;
  border: 0;
  border-radius: 0;
  justify-content: flex-start;
  padding-left: clamp(12px, 2vw, 28px);
  padding-right: clamp(12px, 2vw, 28px);
}

a.mr-footer-chip--brand:hover,
html[data-theme="dark"] a.mr-footer-chip--brand:hover {
  background: transparent;
  color: inherit;
  opacity: .55;
}

.mr-footer-chip--statement,
.mr-footer-chip--legal,
html[data-theme="dark"] .mr-footer-chip--statement,
html[data-theme="dark"] .mr-footer-chip--legal {
  background: transparent;
  border: 0;
}

.mr-footer-chip--social,
html[data-theme="dark"] .mr-footer-chip--social {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0;
}

.mr-footer-chip--social a {
  align-items: center;
  background: var(--mr-surface-subtle);
  border: 1px solid transparent;
  display: flex;
  gap: 9px;
  justify-content: center;
  min-height: 58px;
  padding-left: 18px;
  padding-right: 18px;
}

.mr-footer-chip--social svg {
  fill: currentColor;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

html[data-theme="dark"] .mr-footer-chip--social a {
  background: var(--mr-surface-subtle);
}

@media (max-width: 760px) {
  .mr-footer-bar,
  html[data-theme="dark"] .mr-footer-bar {
    padding-top: 0;
  }

  .mr-footer-chip--brand,
  html[data-theme="dark"] .mr-footer-chip--brand {
    padding-left: 12px;
  }

  .mr-footer-chip--social a {
    min-height: 50px;
    padding: 12px 14px;
  }
}

/* Alinhamento final da faixa utilitária. */
.mr-footer-bar,
html[data-theme="dark"] .mr-footer-bar {
  align-items: center;
  column-gap: 12px;
  grid-template-columns: repeat(5, auto);
  justify-content: center;
  margin-inline: auto;
  max-width: 1500px;
  width: 100%;
}

.mr-footer-chip--social,
html[data-theme="dark"] .mr-footer-chip--social {
  display: contents;
}

.mr-footer-chip--legal,
html[data-theme="dark"] .mr-footer-chip--legal {
  background: var(--mr-surface-subtle);
  border: 1px solid transparent;
  border-radius: var(--mr-radius-control);
  min-height: 58px;
  padding-left: 22px;
  padding-right: 22px;
}

.mr-behance-mark text {
  fill: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1.4px;
}

@media (max-width: 1100px) {
  .mr-footer-bar,
  html[data-theme="dark"] .mr-footer-bar {
    grid-template-columns: repeat(3, auto);
    row-gap: 12px;
  }
}

@media (max-width: 760px) {
  .mr-footer-bar,
  html[data-theme="dark"] .mr-footer-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    padding-right: 0;
  }

  .mr-footer-chip--brand,
  html[data-theme="dark"] .mr-footer-chip--brand {
    justify-content: center;
    padding-left: 12px;
  }

  .mr-footer-chip--legal,
  html[data-theme="dark"] .mr-footer-chip--legal {
    grid-column: 1 / -1;
    min-height: 50px;
  }
}

/* CTA FOOTER — autoridade final de proporção. */
.mr-footer-cta {
  align-content: center;
  align-items: center;
  column-gap: clamp(44px, 6vw, 110px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.mr-footer-cta h2 {
  font-size: clamp(46px, 5vw, 80px);
  grid-column: 1 / 9;
  line-height: .98;
  max-width: 15ch;
}

.mr-footer-cta__button {
  align-self: center;
  font-size: clamp(22px, 2vw, 31px);
  grid-column: 9 / 13;
  min-height: 104px;
  padding: 14px 16px 14px clamp(28px, 3vw, 48px);
}

.mr-footer-cta__button span:last-child {
  font-size: 28px;
  height: 68px;
  width: 68px;
}

@media (max-width: 760px) {
  .mr-footer-cta {
    align-content: end;
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .mr-footer-cta h2,
  .mr-footer-cta__button {
    grid-column: 1;
  }

  .mr-footer-cta h2 {
    font-size: clamp(40px, 12vw, 58px);
    max-width: 12ch;
  }

  .mr-footer-cta__button {
    font-size: 20px;
    min-height: 72px;
    padding: 10px 12px 10px 24px;
    width: 100%;
  }

  .mr-footer-cta__button span:last-child {
    font-size: 23px;
    height: 50px;
    width: 50px;
  }
}

/* THEME TOGGLE — autoridade visual final. */
.mr-theme-toggle,
html[data-theme="dark"] .mr-theme-toggle {
  background: transparent;
  border: 0;
  color: var(--mr-text);
  height: 30px;
  margin-left: 2px;
  opacity: 1;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
  width: 30px;
}

.mr-theme-toggle span,
html[data-theme="dark"] .mr-theme-toggle span {
  background: currentColor;
  height: 7px;
  opacity: 1;
  width: 7px;
}

.mr-theme-toggle:hover {
  background: var(--mr-black);
  color: var(--mr-white);
}

html[data-theme="dark"] .mr-theme-toggle:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-theme-toggle:hover span,
html[data-theme="dark"] .mr-theme-toggle:hover span {
  transform: scale(1);
}

@media (max-width: 760px) {
  .mr-theme-toggle,
  html[data-theme="dark"] .mr-theme-toggle {
    height: 28px;
    width: 28px;
  }
}

/* FOOTER CTA — autoridade final de altura e composição. */
.mr-transition {
  padding-bottom: calc(68svh + 12px);
}

.mr-transition .mr-footer {
  height: 68svh;
}

.mr-footer-cta {
  min-height: 52svh;
  padding-bottom: clamp(28px, 3vw, 48px);
  padding-top: clamp(28px, 3vw, 48px);
}

.mr-transition .mr-footer-cta {
  min-height: 0;
}

.mr-footer-cta__button,
.mr-footer-cta__button span:first-child {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mr-transition {
    padding-bottom: calc(78svh + 7px);
  }

  .mr-transition .mr-footer {
    height: 78svh;
  }

  .mr-footer-cta {
    min-height: 56svh;
    padding-bottom: 24px;
    padding-top: 24px;
  }

  .mr-transition .mr-footer-cta {
    min-height: 0;
  }
}

/* Entrada editorial: movimento curto, sequencial e sem bloquear a interface. */
.mr-motion-ready .mr-nav,
.mr-motion-ready .mr-hero,
.mr-motion-ready .mr-hero__eyebrow,
.mr-motion-ready .mr-hero__title,
.mr-motion-ready .mr-hero__intro,
.mr-motion-ready .mr-hero__action,
.mr-motion-ready .mr-projects-intro > *,
.mr-motion-ready .mr-case__intro > *,
.mr-motion-ready .mr-system__intro > * {
  opacity: 0;
  transform: translateY(32px);
}

.mr-motion-ready .mr-nav {
  transform: translateY(-18px);
}

.mr-motion-ready .mr-hero {
  transform: translateY(22px);
}

.mr-entered .mr-nav,
.mr-entered .mr-hero,
.mr-entered .mr-hero__eyebrow,
.mr-entered .mr-hero__title,
.mr-entered .mr-hero__intro,
.mr-entered .mr-hero__action,
.mr-entered .mr-projects-intro > *,
.mr-entered .mr-case__intro > *,
.mr-entered .mr-system__intro > * {
  opacity: 1;
  transform: translateY(0);
  transition-duration: 720ms;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.mr-entered .mr-nav { transition-delay: 40ms; }
.mr-entered .mr-hero { transition-delay: 80ms; }
.mr-entered .mr-hero__eyebrow,
.mr-entered .mr-projects-intro > :nth-child(1),
.mr-entered .mr-case__intro > :nth-child(1),
.mr-entered .mr-system__intro > :nth-child(1) { transition-delay: 160ms; }
.mr-entered .mr-hero__title,
.mr-entered .mr-projects-intro > :nth-child(2),
.mr-entered .mr-case__intro > :nth-child(2),
.mr-entered .mr-system__intro > :nth-child(2) { transition-delay: 230ms; }
.mr-entered .mr-hero__intro,
.mr-entered .mr-projects-intro > :nth-child(3),
.mr-entered .mr-case__intro > :nth-child(3),
.mr-entered .mr-system__intro > :nth-child(3) { transition-delay: 300ms; }
.mr-entered .mr-hero__action,
.mr-entered .mr-case__intro > :nth-child(4),
.mr-entered .mr-system__intro > :nth-child(4) { transition-delay: 370ms; }

@media (prefers-reduced-motion: reduce) {
  .mr-nav,
  .mr-hero,
  .mr-hero__eyebrow,
  .mr-hero__title,
  .mr-hero__intro,
  .mr-hero__action,
  .mr-projects-intro > *,
  .mr-case__intro > *,
  .mr-system__intro > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FOOTER COMPOSITION — autoridade final do experimento. */
.mr-footer,
.mr-transition .mr-footer {
  display: block;
}

.mr-footer-composition {
  background: var(--mr-orange);
  border-radius: var(--mr-radius-section);
  color: var(--mr-black);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  height: 100%;
  overflow: hidden;
}

.mr-footer-contacts,
.mr-footer-invite {
  min-width: 0;
  padding: clamp(32px, 4vw, 64px);
}

.mr-footer-contacts {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.mr-footer-contacts__brand {
  align-self: start;
  display: inline-block;
  width: clamp(120px, 12vw, 184px);
}

.mr-footer-contacts__brand img {
  display: block;
  height: auto;
  width: 100%;
}

.mr-footer-contacts__group {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mr-footer-contacts__group span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mr-footer-contacts__group a {
  color: inherit;
  font-size: clamp(23px, 2.2vw, 38px);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.mr-footer-contacts__social {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mr-footer-contacts__social a {
  align-items: center;
  background: var(--mr-black);
  border-radius: var(--mr-radius-control);
  color: var(--mr-white);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 9px;
  min-height: 50px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background-color var(--mr-ease), color var(--mr-ease), transform var(--mr-ease);
}

.mr-footer-contacts__social a:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-footer-contacts__social a:active {
  transform: scale(.97);
}

.mr-footer-contacts__social svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.mr-footer-contacts__legal {
  font-size: 12px;
}

.mr-footer-invite {
  align-content: center;
  border-left: 1px solid rgba(0, 0, 0, .24);
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}

.mr-footer-invite h2 {
  font-size: clamp(46px, 5vw, 80px);
  font-weight: 700;
  letter-spacing: normal;
  line-height: .96;
  margin: 0;
  max-width: 13ch;
}

.mr-footer-invite .mr-footer-cta__button {
  align-self: auto;
  background: var(--mr-black);
  color: var(--mr-white);
  font-size: clamp(20px, 1.7vw, 28px);
  grid-column: auto;
  max-width: none;
  min-height: 92px;
  width: 100%;
}

.mr-footer-invite .mr-footer-cta__button:hover {
  background: var(--mr-white);
  color: var(--mr-black);
}

html[data-theme="dark"] .mr-footer-contacts__brand img {
  filter: none;
}

@media (max-width: 760px) {
  .mr-footer-composition {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .mr-footer-contacts,
  .mr-footer-invite {
    padding: 28px 22px;
  }

  .mr-footer-contacts {
    gap: 28px;
    grid-template-rows: auto auto auto auto;
  }

  .mr-footer-contacts__group a {
    font-size: clamp(22px, 7vw, 30px);
  }

  .mr-footer-invite {
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .24);
    gap: 28px;
  }

  .mr-footer-invite h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .mr-footer-invite .mr-footer-cta__button {
    min-height: 72px;
  }
}

/* LIQUID BUTTONS — autoridade final no fim da cascata. */
.mr-nav a {
  --mr-liquid-base: transparent;
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
}

.mr-pill,
.mr-contact-submit,
.mr-projects-cta {
  --mr-liquid-base: var(--mr-orange);
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  background: var(--mr-liquid-base);
}

.mr-footer-cta__button,
.mr-footer-contacts__social a {
  --mr-liquid-base: var(--mr-black);
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
  background: var(--mr-liquid-base);
}

.mr-nav a:hover,
.mr-pill:hover,
.mr-contact-submit:hover,
.mr-projects-cta:hover,
.mr-footer-cta__button:hover,
.mr-footer-contacts__social a:hover {
  background: var(--mr-liquid-base);
  color: var(--mr-liquid-hover-text);
}

html[data-theme="dark"] .mr-nav a {
  --mr-liquid-fill: var(--mr-white);
  --mr-liquid-hover-text: var(--mr-black);
}

/* HERO POSITIONING — autoridade final. */
.mr-hero__title {
  font-size: clamp(62px, 7vw, 126px);
  line-height: .88;
  max-width: 15ch;
}

.mr-hero__intro {
  grid-column: 1 / 7;
}

.mr-hero__action {
  grid-column: 9 / 13;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

@media (max-width: 760px) {
  .mr-hero__title {
    font-size: clamp(48px, 15vw, 76px);
    line-height: .9;
    max-width: 12ch;
  }

  .mr-hero__bottom {
    align-items: start;
    gap: 26px;
  }

  .mr-hero__intro,
  .mr-hero__action {
    grid-column: 1 / 13;
  }
}

/* Fresta final entre abertura e trabalhos. */
.mr-hero-transition > .mr-work {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .mr-hero-transition > .mr-work {
    margin-top: 14px;
  }
}

/* FOOTER CONTACT LINKS — autoridade final. */
.mr-footer-contacts {
  grid-template-rows: auto 1fr auto;
}

.mr-footer-contacts__links {
  align-self: center;
  display: grid;
  gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 52px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mr-footer-contacts__links .mr-footer-contacts__group:first-child {
  grid-column: 1 / -1;
}

.mr-footer-contacts__group {
  align-self: auto;
}

.mr-footer-contacts__group a {
  display: inline-block;
  font-size: clamp(20px, 1.8vw, 31px);
  line-height: 1.05;
  width: fit-content;
}

.mr-footer-contacts__group a:hover {
  opacity: .55;
}

@media (max-width: 760px) {
  .mr-footer-contacts__links {
    gap: 24px;
  }

  .mr-footer-contacts__group a {
    font-size: clamp(21px, 6.5vw, 28px);
  }
}

/* Links editoriais: sublinhado permanente com varredura no hover. */
.mr-footer-contacts__group a {
  position: relative;
  text-decoration: none;
}

.mr-footer-contacts__group a::after {
  background: currentColor;
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(1);
  transform-origin: right center;
  width: 100%;
}

.mr-footer-contacts__group a:hover {
  opacity: 1;
}

.mr-footer-contacts__group a:hover::after {
  animation: mr-underline-sweep 680ms cubic-bezier(.3, 1, .3, 1);
}

@keyframes mr-underline-sweep {
  0% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  42% {
    transform: scaleX(0);
    transform-origin: right center;
  }
  43% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mr-footer-contacts__group a:hover::after {
    animation: none;
  }
}

/* Dupla de ações da abertura. */
.mr-hero__bottom {
  align-items: end;
}

.mr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / 9;
}

.mr-hero__actions .mr-hero__action {
  flex: 0 0 auto;
  grid-column: auto;
  justify-self: auto;
  min-width: clamp(190px, 16vw, 250px);
  width: auto;
}

.mr-hero__actions .mr-pill--secondary {
  --mr-liquid-base: transparent;
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  background: var(--mr-liquid-base);
  border: 1px solid var(--mr-black);
  color: var(--mr-black);
}

html[data-theme="dark"] .mr-hero__actions .mr-pill--secondary {
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  border-color: var(--mr-white);
  color: var(--mr-white);
}

.mr-hero__actions .mr-pill--secondary:hover,
.mr-hero__actions .mr-pill--secondary:hover > span {
  color: var(--mr-white);
}

@media (max-width: 760px) {
  .mr-hero__actions {
    grid-column: 1 / 13;
    width: 100%;
  }

  .mr-hero__actions .mr-hero__action {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Ações ancoradas na base útil da head no desktop. */
@media (min-width: 761px) {
  .mr-hero {
    padding-bottom: clamp(24px, 3vw, 52px);
  }

  .mr-hero__bottom,
  .mr-hero__actions {
    align-self: end;
    margin-bottom: 0;
  }
}

/* Divisor do rodapé: 75% da altura, centralizado entre as duas áreas. */
.mr-footer-composition {
  position: relative;
}

.mr-footer-invite {
  border-left: 0;
}

.mr-footer-composition::after {
  background: #c95500;
  content: "";
  height: 75%;
  left: 41.6667%;
  pointer-events: none;
  position: absolute;
  top: 12.5%;
  width: 1px;
}

@media (max-width: 760px) {
  .mr-footer-composition::after {
    display: none;
  }

  .mr-footer-invite {
    border-top-color: #c95500;
  }
}

/* Rodapé mais leve: ação principal branca, mantendo contraste tipográfico. */
.mr-footer-invite .mr-footer-cta__button {
  --mr-liquid-base: var(--mr-white);
  --mr-liquid-fill: var(--mr-black);
  --mr-liquid-hover-text: var(--mr-white);
  background: var(--mr-white);
  border-color: var(--mr-white);
  color: var(--mr-black);
}

.mr-footer-invite .mr-footer-cta__button:hover,
.mr-footer-invite .mr-footer-cta__button:hover > span {
  background: var(--mr-white);
  color: var(--mr-white);
}

/* Paleta clara do rodapé sobre o laranja. */
.mr-footer-composition,
.mr-footer-contacts__group a,
.mr-footer-invite h2 {
  color: var(--mr-white);
}

.mr-footer-contacts__brand img,
html[data-theme="dark"] .mr-footer-contacts__brand img {
  filter: invert(1);
}

.mr-footer-invite .mr-footer-cta__button {
  color: var(--mr-black);
}

/* Correção dos elementos internos no hover do CTA do rodapé. */
.mr-footer-invite .mr-footer-cta__button:hover > span:first-child {
  background: transparent;
  color: var(--mr-white);
}

.mr-footer-invite .mr-footer-cta__button:hover > span:last-child {
  background: var(--mr-white);
  border-color: transparent;
  color: var(--mr-black);
}

/* Círculo permanente da seta, sem outline externo no CTA. */
.mr-footer-invite .mr-footer-cta__button,
.mr-footer-invite .mr-footer-cta__button:hover {
  border: 0;
  outline: 0;
}

.mr-footer-invite .mr-footer-cta__button > span:last-child {
  background: var(--mr-black);
  border: 0;
  color: var(--mr-white);
}

.mr-footer-invite .mr-footer-cta__button:hover > span:last-child {
  background: var(--mr-white);
  color: var(--mr-black);
}

.mr-footer-invite .mr-footer-cta__button:focus-visible {
  outline: 3px solid var(--mr-white);
  outline-offset: 4px;
}

/* Botões laranja da home usam conteúdo branco; rodapé não participa. */
.mr-hero .mr-pill:not(.mr-pill--secondary),
.mr-work .mr-pill,
html[data-theme="dark"] .mr-hero .mr-pill:not(.mr-pill--secondary),
html[data-theme="dark"] .mr-work .mr-pill {
  color: var(--mr-white);
}

/* Contraste oficial das ações Signal Orange em todo o produto e no DLS. */
.mr-pill:not(.mr-pill--secondary),
.mr-contact-submit,
.mr-projects-cta,
.mr-demo-button,
.mr-demo-icon,
html[data-theme="dark"] .mr-pill:not(.mr-pill--secondary),
html[data-theme="dark"] .mr-contact-submit,
html[data-theme="dark"] .mr-projects-cta,
html[data-theme="dark"] .mr-demo-button,
html[data-theme="dark"] .mr-demo-icon {
  color: var(--mr-white);
}

.mr-pill:not(.mr-pill--secondary) > span:last-child,
.mr-contact-submit > span:last-child,
.mr-projects-cta > span:last-child,
.mr-demo-button i {
  border-color: var(--mr-white);
}

.mr-contact-close:hover {
  color: var(--mr-white);
}

/* Símbolo da laranja na navbar. */
.mr-nav .mr-brand--symbol {
  margin-right: clamp(8px, 1.4vw, 20px);
  padding: 5px 10px;
}

.mr-nav .mr-brand--symbol img {
  display: block;
  filter: none;
  height: 35px;
  object-fit: contain;
  transform: translate(1px, -2px);
  width: 33px;
}

.mr-nav .mr-brand--symbol:hover img,
html[data-theme="dark"] .mr-nav .mr-brand--symbol img,
html[data-theme="dark"] .mr-nav .mr-brand--symbol:hover img {
  filter: none;
}

@media (max-width: 760px) {
  .mr-nav .mr-brand--symbol {
    margin-right: 2px;
    padding: 4px 7px;
  }

  .mr-nav .mr-brand--symbol img {
    height: 30px;
    transform: translate(1px, -1.5px);
    width: 28px;
  }
}

/* SYMBOL HOVER — autoridade final. */
.mr-nav .mr-brand--symbol,
.mr-nav .mr-brand--symbol:hover,
html[data-theme="dark"] .mr-nav .mr-brand--symbol:hover {
  background: transparent;
  border-color: transparent;
  color: inherit;
}

.mr-nav .mr-brand--symbol::before {
  display: none;
}

.mr-nav .mr-brand--symbol:hover img {
  animation: mr-orange-wiggle 680ms cubic-bezier(.22, 1, .36, 1);
}
