body {
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
p,h1,h2,h3 {
  margin: 0;
  text-wrap: pretty;
}
h1,h2,h3 {
  text-wrap: balance;
}
.container,.hero-grid {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.topnav {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 84px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-lockup {
  width: 174px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.desktop-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--fg);
}
.desktop-nav a:not(.nav-contact):hover::after,
.desktop-nav a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-contact {
  min-height: auto;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  color: var(--muted) !important;
}
.menu-toggle,
.menu-panel {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 2.5;
  min-height: 0;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(137, 81, 41, 0.24) 0%,
      rgba(137, 81, 41, 0.08) 24%,
      transparent 46%
    ),
    url('../../site/mrs-hero.jpg') right 56% / cover no-repeat;
}
.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  content: '';
}
.hero-grid {
  display: grid;
  align-items: center;
}
.hero-copy {
  max-width: 810px;
  padding-block: 112px 120px;
}
.eyebrow,
.section-label {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.hero h1 {
  max-width: 800px;
  margin: 0;
  font: 700 clamp(52px, 6.1vw, 88px)/0.93 var(--font-display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 570px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  background: none;
  font-size: 13px;
  font-weight: 700;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.hero .btn-primary {
  background: var(--bg);
  color: var(--fg);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.section {
  padding-block: 128px;
}
.manifesto-grid,
.integration-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(56px, 8vw, 120px);
}
.manifesto h2,
.section-intro h2,
.integration h2,
.team-overlay h2,
.news h2,
.contact h2 {
  margin: 0;
  font: 400 clamp(46px, 5vw, 72px)/0.98 var(--font-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.manifesto h2 span {
  display: block;
}

.manifesto-copy {
  align-self: end;
  max-width: 620px;
}
.section-label {
  color: var(--muted);
}
.manifesto-copy > p:not(.section-label) {
  margin: 0;
  color: #3c3f3c;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.48;
}
.manifesto-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.manifesto-aside div {
  display: grid;
  gap: 5px;
}
.manifesto-aside strong {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manifesto-aside span {
  color: var(--muted);
  font-size: 14px;
}

.areas {
  background: var(--surface);
}
.section-intro,
.news-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.section-intro p,
.news-intro p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.area-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas: 'featured second' 'featured third';
  border-top: 1px solid #bfc1bb;
}
.practice-group {
  position: relative;
  min-height: 270px;
  padding: 36px 8px 36px 40px;
  border-bottom: 1px solid #bfc1bb;
}
.practice-group + .practice-group {
  border-left: 1px solid #bfc1bb;
}
.practice-group-featured {
  grid-area: featured;
  min-height: 540px;
  padding: 52px 64px 48px 0;
}
.practice-group:nth-child(2) {
  grid-area: second;
}
.practice-group:nth-child(3) {
  grid-area: third;
}
.practice-index {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.practice-group:not(.practice-group-featured) .practice-index {
  margin-bottom: 24px;
}
.practice-group h3 {
  max-width: 520px;
  margin: 0;
  font: 400 clamp(30px, 3vw, 48px)/1 var(--font-display);
  letter-spacing: -0.03em;
}
.practice-group:not(.practice-group-featured) h3 {
  font-size: clamp(25px, 2.2vw, 34px);
}
.practice-group p {
  max-width: 520px;
  margin: 24px 0 30px;
  color: var(--muted);
  line-height: 1.7;
}
.practice-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.practice-group li {
  display: flex;
  gap: 12px;
  color: #343634;
  font-size: 14px;
}
.practice-group li::before {
  color: var(--accent);
  content: '/';
}

.integration {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}
.integration::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: min(38vw, 500px);
  aspect-ratio: 1;
  background: url('../../mrs-simbolo-web-otimizado.svg') center / contain no-repeat;
  content: '';
  opacity: 0.045;
}
.integration .eyebrow {
  color: rgba(255, 255, 255, 0.58);
}
.integration h2 {
  max-width: 540px;
}
.integration-copy {
  position: relative;
  z-index: 1;
}
.integration-copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}
.integration-map {
  margin: 50px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  list-style: none;
}
.map-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1.3fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.map-item strong {
  font: 400 25px var(--font-display);
}
.map-item span {
  align-self: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.section.team {
  padding-block: 0;
}
.team > .container {
  width: 100%;
  max-width: none;
}
.team {
  background: var(--bg);
}
.team-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.35;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}
.team-portrait > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: saturate(0.82) contrast(1.02);
}
.team-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.team-placeholder img {
  display: block;
  width: min(18vw, 188px);
  height: auto;
  opacity: 0.16;
}
.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 64px);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62),
    transparent 34%,
    transparent 66%,
    rgba(0, 0, 0, 0.62)
  );
  pointer-events: none;
}
.team-overlay h2 {
  max-width: 680px;
  color: #fff;
  font-weight: 650;
}
.team-overlay .team-link {
  margin-top: 0;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  pointer-events: auto;
}
.team-markers {
  position: absolute;
  inset: 0;
}
.person-marker {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.team-link,
.news-intro a {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.news {
  background: var(--surface);
}
.news-intro {
  display: grid;
  justify-items: start;
}
.news-intro a {
  margin-top: 22px;
}
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
}
.news-card {
  padding: 22px;
  background: var(--bg);
  border-top: 2px solid var(--fg);
}
.news-card:first-child {
  grid-row: span 2;
  padding: 30px;
  background: var(--accent);
  color: #fff;
  border-top-color: var(--accent);
}
.news-media {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 28px;
  background: #d8d7d1;
}
.news-card:first-child .news-media {
  min-height: 350px;
  background: rgba(255, 255, 255, 0.09);
}
.news-media img {
  width: 92px;
  opacity: 0.76;
}
.news-media-empty span {
  color: var(--muted);
  font: 11px/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-card:first-child .news-meta,
.news-card:first-child p {
  color: rgba(255, 255, 255, 0.62);
}
.news-card h3 {
  margin: 18px 0 12px;
  font: 400 clamp(24px, 2.3vw, 34px)/1.08 var(--font-display);
  letter-spacing: -0.025em;
}
.news-card:first-child h3 {
  max-width: 600px;
  font-size: clamp(34px, 4vw, 54px);
}
.news-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.contact {
  background: var(--fg);
  color: var(--bg);
}
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}
.contact-copy > p:last-child {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}
.contact-form {
  display: grid;
  gap: 24px;
}
.contact-map {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  align-self: end;
  margin-top: 0;
}
.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.contact-map a {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
}
.field {
  display: grid;
  gap: 9px;
}
.field label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}
.input,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: 0;
}
.textarea {
  min-height: 112px;
  resize: vertical;
}
.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.input:focus,
.textarea:focus {
  border-bottom-color: #fff;
}
.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
  background: var(--bg);
  color: var(--fg);
}
.form-error,
.form-status {
  display: none;
  margin: 0;
  font-size: 13px;
}
.form-error.is-visible,
.form-status:not(:empty) {
  display: block;
}
.form-error {
  color: #e5a8a2;
}
.form-status {
  color: #b9d8d1;
}

@media (max-width: 980px) {
  .container,
  .hero-grid {
    width: min(100% - 40px, 1240px);
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .menu-glyph {
    position: relative;
    display: block;
    width: 24px;
    height: 16px;
    background: transparent;
  }
  .menu-glyph::before,
  .menu-glyph::after {
    position: absolute;
    left: 0;
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    content: '';
    transition:
      top 0.2s ease,
      bottom 0.2s ease,
      transform 0.2s ease;
  }
  .menu-glyph::before {
    top: 3px;
    transform: none;
  }
  .menu-glyph::after {
    top: auto;
    bottom: 3px;
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph {
    background: transparent;
    transform: none;
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph::before {
    top: 7px;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] .menu-glyph::after {
    bottom: 7px;
    transform: rotate(-45deg);
  }
  .menu-panel {
    position: fixed;
    z-index: 99;
    inset: 84px 0 0;
    display: block;
    padding: 28px 20px max(32px, env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--fg);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  .menu-panel.is-open {
    visibility: visible;
    opacity: 1;
  }
  .menu-panel nav {
    display: grid;
  }
  .menu-panel a {
    display: flex;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid var(--border);
    font: 400 30px var(--font-display);
  }
  .menu-panel a::after {
    color: var(--muted);
  }
  .manifesto-grid,
  .integration-grid,
  .contact-grid,
  .section-intro,
  .news-head {
    grid-template-columns: 1fr;
  }
  .contact-map {
    grid-column: 1;
    grid-row: auto;
    align-self: auto;
    margin-top: 24px;
  }
  .marker-gabriel,
  .marker-luiz {
    top: 45%;
  }
  .marker-amanda {
    top: 69%;
  }
}

@media (max-width: 700px) {
  .container,
  .hero-grid {
    width: min(100% - 32px, 1240px);
  }
  .topnav {
    height: 72px;
  }
  .logo-lockup {
    width: 148px;
  }
  .menu-panel {
    inset-block-start: 72px;
  }
  .hero {
    aspect-ratio: auto;
    min-height: calc(100svh - 72px);
    background-position: right 42%;
  }
  .hero-copy {
    align-self: end;
    padding-block: 96px 56px;
  }
  .hero h1 {
    font-size: clamp(45px, 13vw, 64px);
  }
  .hero-lead {
    font-size: 16px;
  }
  .hero-cta {
    display: grid;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .section {
    padding-block: 82px;
  }
  .manifesto-grid,
  .integration-grid,
  .contact-grid {
    gap: 54px;
  }
  .manifesto h2,
  .section-intro h2,
  .integration h2,
  .team-overlay h2,
  .news h2,
  .contact h2 {
    font-size: clamp(41px, 12vw, 58px);
  }
  .manifesto h2 span:nth-child(2) {
    transform: none;
  }
  .manifesto-copy > p:not(.section-label) {
    font-size: 19px;
  }
  .manifesto-aside {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  .section-intro,
  .news-head {
    gap: 28px;
    margin-bottom: 48px;
  }
  .area-groups {
    display: block;
  }
  .practice-group,
  .practice-group-featured {
    min-height: 0;
    padding: 34px 0 40px;
    border-left: 0 !important;
  }
  .practice-index,
  .practice-group:not(.practice-group-featured) .practice-index {
    margin-bottom: 22px;
  }
  .practice-group h3,
  .practice-group:not(.practice-group-featured) h3 {
    font-size: 32px;
  }
  .integration::after {
    width: 75vw;
  }
  .integration-copy > p {
    font-size: 16px;
  }
  .map-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .person-marker {
    max-width: 150px;
    padding: 7px 9px;
    font-size: 9px;
  }
  .marker-gabriel,
  .marker-luiz {
    top: 48%;
  }
  .marker-gabriel {
    left: 17%;
  }
  .marker-luiz {
    left: 78%;
  }
  .marker-amanda {
    top: 68%;
    left: 49%;
  }
  .team-link {
    margin-top: 52px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card:first-child {
    grid-row: auto;
    padding: 22px;
  }
  .news-card:first-child .news-media {
    min-height: 240px;
  }
  .contact-form .btn {
    width: 100%;
  }
}
