@font-face {
  font-family: "Manrope LPM";
  src: url("assets/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
}

@font-face {
  font-family: "Funnel Display";
  src: url("assets/fonts/FunnelDisplay-Regular.otf") format("opentype");
  font-weight: 400;
}

:root {
  --navy-950: #0d1f2d;
  --navy-900: #14303E;
  --navy-800: #1d3549;
  --navy-700: #273F55;
  --ink: #273F55;
  --ink-soft: #4d6577;
  --orange: #DD7133;
  --orange-soft: #e8895a;
  --paper: #f6f3ef;
  --paper-warm: #fbfaf8;
  --line: rgba(39, 63, 85, 0.18);
  --line-dark: rgba(255, 255, 255, 0.2);
  --serif: "Funnel Display", Georgia, serif;
  --sans: "Manrope LPM", Arial, sans-serif;
  --pad-x: clamp(28px, 5.8vw, 120px);
  --header-h: 112px;
  /* Type scale — single source of truth. h1 > h2 > h3-lg > h3 > body > label. */
  --fs-h1: clamp(30px, min(3.3vw, 7.2vh), 52px);
  --fs-h2: clamp(28px, 2.6vw, 42px);
  --fs-h3-lg: clamp(24px, 1.8vw, 32px);
  --fs-h3: clamp(20px, 1.5vw, 26px);
  --fs-lead: clamp(16px, 1.05vw, 19px);
  --fs-label: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

p {
  color: rgba(9, 34, 58, 0.78);
}

.screen-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.dot,
h1 span,
h2 span {
  color: var(--orange);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 1.8vw, 30px);
  min-height: var(--header-h);
  padding: 8px var(--pad-x);
  color: #fff;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, min-height 0.25s ease, padding 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 19, 31, 0.82), rgba(2, 19, 31, 0));
  opacity: 1;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.site-header.is-condensed {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) auto;
  min-height: 88px;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: clamp(14px, 1.5vw, 24px);
}

.site-header.is-condensed .brand {
  max-width: 330px;
  height: 88px;
}

.site-header.is-condensed nav {
  font-size: 12px;
  gap: clamp(12px, 1.35vw, 22px);
}

.site-header.is-condensed .nav-cta {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.site-header.is-condensed::before {
  background: rgba(2, 19, 31, 0.84);
  backdrop-filter: blur(18px);
}

.site-header.on-light {
  color: var(--ink);
}

.site-header.on-light::before {
  background: linear-gradient(180deg, rgba(251, 250, 248, 0.94), rgba(251, 250, 248, 0.58), rgba(251, 250, 248, 0));
}

.site-header.on-light.is-condensed::before {
  background: rgba(251, 250, 248, 0.9);
  box-shadow: 0 14px 30px rgba(9, 34, 58, 0.06);
}

.brand {
  position: relative;
  display: block;
  width: 100%;
  max-width: 330px;
  height: 92px;
  transition: max-width 0.25s ease, height 0.25s ease;
}

.brand img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.25s ease;
}

.brand-dark,
.site-header.on-light .brand-light {
  opacity: 0;
}

.brand-light,
.site-header.on-light .brand-dark {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span { position: relative; }

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { transform: translateY(-7px); }
.menu-toggle span::after { transform: translateY(7px); }
.site-header.menu-open .menu-toggle span { background: transparent; }
.site-header.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.site-header.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

.site-header nav {
  display: flex;
  justify-content: space-between;
  gap: clamp(10px, 1vw, 16px);
  min-width: 0;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: font-size 0.25s ease, gap 0.25s ease;
}

.site-header nav a {
  position: relative;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 44px;
  height: 2px;
  background: var(--orange);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--orange);
  opacity: 1;
}

.site-header nav a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 clamp(16px, 1.6vw, 26px);
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, min-height 0.25s ease, padding 0.25s ease, font-size 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(239, 91, 25, 0.2);
}

.screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero.screen {
  min-height: 100svh;
}

.screen-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 8px) var(--pad-x) 34px;
}

.hero .screen-inner {
  min-height: 100svh;
}

.screen-dark {
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(17, 67, 96, 0.52), transparent 30%),
    radial-gradient(circle at 74% 42%, rgba(22, 75, 105, 0.42), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(16, 65, 93, 0.5), transparent 38%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 52%, var(--navy-800));
}

.screen-light {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(135deg, var(--paper-warm), var(--paper) 58%, #eeeae5);
}

.screen-light::after,
.screen-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
}

.screen-light::after {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(9, 34, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 34, 58, 0.02) 1px, transparent 1px);
}

.contact::after {
  display: none;
}

.hero::after {
  opacity: 0.14;
  background-image: url("assets/brand/svg/LPM_Estampa%201_Azul.svg");
  background-size: 680px auto;
  background-position: center;
  background-repeat: repeat;
  mask-image: linear-gradient(90deg, #000 0%, #000 54%, transparent 76%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: clamp(8px, 1vw, 16px);
}

.hero-copy {
  width: min(820px, 56vw);
  padding-top: 12px;
  align-self: flex-start;
  /* Auto margins center the copy in the free space; the scroll cue stays pinned to the bottom. */
  margin-top: auto;
  margin-bottom: auto;
}

.hero h1 {
  margin-bottom: 24px;
  color: #f7f3ef;
  font-size: var(--fs-h1);
  text-shadow: 0 22px 38px rgba(0, 0, 0, 0.26);
}

.hero-subtitle {
  max-width: 720px;
  margin: 0;
  color: rgba(247, 243, 239, 0.76);
  font-size: clamp(20px, 1.6vw, 25px);
  font-weight: 400;
  line-height: 1.4;
}

.rule {
  width: 82px;
  height: 2px;
  margin: 0 0 16px;
  background: var(--orange);
}

.hero-mark,
.dark-mark,
.soft-mark {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero-mark {
  right: -7vw;
  top: 49%;
  z-index: 1;
  width: min(52vw, 820px);
  max-width: none;
  opacity: 0;
  transform: translate3d(0, -50%, 0) scale(0.92);
  filter: drop-shadow(0 0 48px rgba(72, 121, 149, 0.18));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.hero-mark.is-visible {
  opacity: 0.1;
  transform: translate3d(0, -50%, 0) scale(1);
}

.dark-mark {
  right: -15vw;
  top: 50%;
  z-index: 0;
  width: min(62vw, 940px);
  max-width: none;
  opacity: 0.09;
  transform: translateY(-50%);
}

.soft-mark {
  right: -12vw;
  top: 50%;
  z-index: 0;
  width: min(58vw, 900px);
  max-width: none;
  opacity: 0.035;
  transform: translateY(-50%);
}

.kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  color: inherit;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: block;
  width: 78px;
  height: 2px;
  background: var(--orange);
}

.section-intro h2,
.section-topline h2,
.contact-panel h2 {
  margin-bottom: 16px;
  font-size: var(--fs-h2);
  text-shadow: 0 20px 34px rgba(9, 34, 58, 0.08);
}

.section-intro p {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: var(--fs-lead);
}

/* Shared, literal top and bottom padding for desktop content sections. */
@media (min-width: 1181px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 88px;
  }

  .screen {
    scroll-snap-align: start;
  }

  /* The team section's dark background must continue behind the fixed header.
     Its content receives the equivalent offset so nothing is obscured. */
  .partners {
    scroll-margin-top: -92px;
  }

  .services,
  .firm-map,
  .partners,
  .publications,
  .firm-partners,
  .contact {
    min-height: 100svh;
  }

  .publications {
    height: auto;
    min-height: calc(100svh - 88px);
  }

  .firm-map {
    min-height: 0;
  }

  .firm-partners {
    min-height: 0;
  }

  .publications > .screen-inner {
    height: auto;
    min-height: calc(100svh - 88px);
  }

  .firm-map > .screen-inner {
    align-content: start;
    align-items: start;
  }

  .partners-grid {
    align-content: start;
  }

  .partners-grid > .partner-list {
    translate: 0 clamp(14px, 2svh, 20px);
  }

  .publications > .screen-inner.publications-inner {
    justify-content: flex-start;
  }

  .firm-partners > .screen-inner.firm-partners-inner {
    justify-content: flex-start;
  }

  .publications .publication-cards article {
    min-height: clamp(300px, 38svh, 350px);
  }

  .firm-partners .partner-firm-cards article {
    min-height: clamp(240px, 32svh, 300px);
  }

  .contact {
    min-height: 0;
  }

  .services > .screen-inner,
  .firm-map > .screen-inner,
  .partners > .screen-inner,
  .publications > .screen-inner,
  .firm-partners > .screen-inner,
  .contact > .screen-inner {
    padding-top: 72px;
    padding-bottom: 34px;
  }

  .partners > .screen-inner {
    padding-top: 116px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.practice-cards h3,
.publication-cards h3 {
  font-size: var(--fs-h3);
}

.practice-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-self: end;
}

.practice-cards article,
.publication-cards article {
  position: relative;
  min-height: 170px;
  padding: clamp(16px, 1.5vw, 24px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.practice-cards article {
  padding-bottom: clamp(34px, 3vw, 44px);
  cursor: pointer;
}

@media (min-width: 1181px) {
  .services {
    overflow: visible;
  }

  .practice-cards {
    align-self: start;
    align-items: start;
    grid-column: 2;
    padding-bottom: clamp(48px, 8vh, 80px);
    isolation: isolate;
  }

  .practice-cards article {
    position: sticky;
    top: var(--stack-top, 120px);
    z-index: calc(var(--stack-level, 0) + 1);
    height: 284px;
    min-height: 284px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 243, 239, 0.98));
    box-shadow: 0 18px 42px rgba(9, 34, 58, 0.08);
  }

  .practice-cards article > .icon {
    margin-bottom: 10px;
  }

  .practice-cards article > h3 {
    margin-bottom: 12px;
  }

  .practice-cards article:nth-child(1),
  .practice-cards article:nth-child(2) {
    --stack-level: 0;
    --stack-top: 120px;
  }

  .practice-cards article:nth-child(3),
  .practice-cards article:nth-child(4) {
    --stack-level: 1;
    --stack-top: 196px;
  }

  .practice-cards article:nth-child(5),
  .practice-cards article:nth-child(6) {
    --stack-level: 2;
    --stack-top: 272px;
  }

  .practice-cards article:nth-child(7),
  .practice-cards article:nth-child(8) {
    --stack-level: 3;
    --stack-top: 348px;
  }

  .practice-cards.is-released {
    position: relative;
    height: 1204px;
    padding-bottom: 0;
  }

  .practice-cards.is-released article {
    position: absolute;
    top: calc(var(--stack-release-base, 0px) + var(--stack-top, 120px));
    width: calc(50% - 7px);
  }

  .practice-cards.is-released article:nth-child(odd) {
    left: 0;
    right: auto;
  }

  .practice-cards.is-released article:nth-child(even) {
    right: 0;
    left: auto;
  }

  .services .section-intro.is-released {
    position: absolute;
    top: var(--intro-release-top);
    left: var(--intro-release-left);
    width: var(--intro-release-width);
    max-height: none;
  }

  .practice-cards article > .icon {
    width: var(--stack-icon-size, 48px);
    height: var(--stack-icon-size, 48px);
    transform: translate3d(var(--stack-icon-x, 0), var(--stack-icon-y, 0), 0);
    transform-origin: top left;
    transition: width 80ms linear, height 80ms linear, transform 80ms linear;
    will-change: width, height, transform;
  }

  .practice-cards article > h3 {
    font-size: var(--stack-title-size, var(--fs-h3));
    transform: translate3d(var(--stack-title-x, 0), var(--stack-title-y, 0), 0);
    transform-origin: top left;
    transition: font-size 80ms linear, transform 80ms linear;
    will-change: font-size, transform;
  }

  .practice-cards article > .rule,
  .practice-cards article > p {
    opacity: var(--stack-content-opacity, 1);
    transform: translateY(var(--stack-content-y, 0));
    transition: opacity 80ms linear, transform 80ms linear;
    will-change: opacity, transform;
  }

  .practice-cards article .card-expand {
    right: var(--stack-plus-right, 32px);
    font-size: var(--stack-plus-size, 42px);
    transform: translate3d(0, var(--stack-plus-y, 0), 0) rotate(var(--expand-rotation, 0deg));
    transform-origin: top right;
    transition: right 80ms linear, font-size 80ms linear, transform 80ms linear;
    will-change: right, font-size, transform;
  }
}

.practice-cards article:hover,
.publication-cards article:hover,
.partner-list article:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 91, 25, 0.58);
  box-shadow: 0 26px 54px rgba(9, 34, 58, 0.1);
}

.practice-cards a,
.publication-cards a,
.section-topline a {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.practice-cards article > a,
.card-expand {
  position: absolute;
  right: 32px;
  bottom: 26px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.card-expand {
  color: var(--orange);
  pointer-events: none;
  transform: rotate(var(--expand-rotation, 0deg));
  transition: transform 0.3s ease;
}

.partner-list article:hover .card-expand,
.team-list article:hover .card-expand {
  --expand-rotation: 90deg;
}

.practice-cards article:focus-visible,
.partner-list article:focus-visible,
.team-list article:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.area-detail {
  display: none;
}

.icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--orange);
}

.firm-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.55fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.mini-proof {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.mini-proof .icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin: 0;
}

.mini-proof p {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.mini-proof strong {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(32px, 2.4vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.map-cluster {
  position: relative;
  width: 100%;
}

.map-cluster .brazil-map-wrap {
  width: 62%;
  max-width: none;
}

.brazil-map-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 520px;
  overflow: visible;
}

.brazil-map {
  width: 100%;
  height: auto;
  display: block;
}

.brazil-map--light {
  filter: opacity(0.3) sepia(0.15);
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--orange);
  transform: translate(-50%, -50%) rotate(45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fdfcfa;
}

.pin-recife   { left: 96.5%; top: 34.2%; }
.pin-brasilia { left: 66.4%; top: 53.9%; }
.pin-sp       { left: 69.7%; top: 73.8%; }

/* Connector lines: leave each pin at an angle, elbow, then run
   horizontally into the label title. Coordinates are % of the cluster
   (pin x within the cluster = pin% × 62% map width). */
.map-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-links polyline {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.location-list {
  position: absolute;
  inset: 0;
}

.location-list article {
  position: absolute;
  right: 0;
  width: 28.5%;
  transform: translateY(-0.75em);
}

.loc-recife   { top: 28.5%; }
.loc-brasilia { top: 49.5%; }
.loc-sp       { top: 79%; }

.location-list h3 {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: var(--fs-h3-lg);
}

.location-list p {
  max-width: 240px;
  font-size: 16px;
}

/* Keep the firm overview fully visible on shorter desktop screens. */
@media (min-width: 1181px) and (max-height: 760px) {
  .practice-cards article {
    height: 260px;
    min-height: 260px;
  }

  .practice-cards article:nth-child(1),
  .practice-cards article:nth-child(2) {
    --stack-top: 112px;
  }

  .practice-cards article:nth-child(3),
  .practice-cards article:nth-child(4) {
    --stack-top: 180px;
  }

  .practice-cards article:nth-child(5),
  .practice-cards article:nth-child(6) {
    --stack-top: 248px;
  }

  .practice-cards article:nth-child(7),
  .practice-cards article:nth-child(8) {
    --stack-top: 316px;
  }

  .practice-cards.is-released {
    height: 1108px;
  }

  .firm-map .kicker {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .firm-map .section-intro h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 2.35vw, 34px);
    line-height: 1.14;
  }

  .firm-map .section-intro p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.48;
  }

  .firm-map .map-cluster {
    width: 95%;
    margin-right: auto;
    margin-left: auto;
  }

  .firm-map .map-cluster .brazil-map-wrap {
    width: 62%;
  }

  .firm-map .location-list article {
    width: 34%;
  }

  .firm-map .location-list h3 {
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.2;
  }

  .firm-map .location-list p {
    max-width: 220px;
    font-size: 16px;
    line-height: 1.42;
  }

  .firm-map .location-list .loc-brasilia p {
    max-width: 285px;
  }
}

.partners-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(800px, 1.9fr);
  grid-template-rows: auto auto;
  column-gap: clamp(20px, 2vw, 32px);
  row-gap: 20px;
  align-items: center;
}

.partners .section-intro h2 {
  max-width: 470px;
  color: #f7f3ef;
  font-size: clamp(30px, 2.45vw, 42px);
}

.partners .section-intro p {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.55;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-self: center;
}

.partner-list article {
  position: relative;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 340px;
  padding: 18px 36px 72px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.partner-list .portrait {
  width: 164px;
  aspect-ratio: 4 / 5;
}

.partner-list article > div:not(.portrait) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.partner-list .portrait img {
  min-height: 0;
}

.portrait-placeholder {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #39464e, #1a2228);
  filter: grayscale(1);
}

.partner-list h3 {
  margin-bottom: 8px;
  color: #f7f3ef;
  font-size: clamp(20px, 1.5vw, 24px);
}

.partner-list p {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.partner-list .rule {
  width: 48px;
  margin-bottom: 10px;
}

.partner-list .tags {
  position: absolute;
  right: 38px;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
}

.partner-list article:first-child {
  padding-bottom: 108px;
}

.partner-list article:first-child .tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-list .tags span {
  display: flex;
  flex: 1 1 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.partner-list .card-expand {
  right: 12px;
  bottom: 10px;
  font-size: 26px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  padding: 8px 16px;
  border: 1px solid var(--orange);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publications-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-topline {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  align-items: flex-start;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.section-topline h2 {
  max-width: 940px;
  margin-bottom: 0;
}

.section-topline > a {
  align-self: center;
  margin-top: 12px;
  white-space: nowrap;
}

.publication-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.publication-cards article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publication-cards .card-meta {
  height: 2.8em;
}

.publication-cards h3 {
  height: 2.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.publication-cards p:not(.card-meta) {
  height: 4.8em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.card-meta span {
  color: rgba(9, 34, 58, 0.58);
  white-space: nowrap;
}

.publication-cards p:not(.card-meta) {
  margin-bottom: 24px;
}

.publication-cards a {
  margin-top: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(560px, 1fr);
  gap: clamp(70px, 8vw, 140px);
  align-items: center;
}

.contact-grid::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 8%;
  left: 48%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.38), transparent);
}

.contact-presence h2,
.contact-panel h2 {
  color: #f7f3ef;
  font-size: var(--fs-h2);
}

.office-list {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.office-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}

.office-item:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.office-marker {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  transform: rotate(45deg);
}

.office-item h3 {
  flex: 1;
  margin: 0;
  color: #f7f3ef;
  font-size: var(--fs-h3-lg);
  font-weight: 400;
}

.office-state {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel {
  position: relative;
}

.contact-panel h2 {
  max-width: 620px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  max-width: 780px;
  padding: clamp(24px, 2.2vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
}

input,
select,
textarea,
button {
  font-family: var(--sans);
}

.services .section-intro {
  position: sticky;
  top: 116px;
  align-self: start;
  max-height: calc(100svh - 112px);
}

.services .section-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 2.25vw, 36px);
  line-height: 1.15;
}

.section-intro > .rule {
  display: none;
}

.services .section-intro p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.services .section-intro .proof {
  margin-top: 12px;
  padding-top: 12px;
}

input,
select,
textarea,
form button {
  width: 100%;
  border-radius: 5px;
  font: inherit;
}

input,
select,
textarea {
  min-height: 64px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(2, 19, 31, 0.38);
  outline: 0;
}

textarea {
  grid-column: 1 / -1;
  min-height: 156px;
  padding-top: 18px;
  resize: vertical;
}

select {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.76);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

form button {
  grid-column: 1 / -1;
  min-height: 68px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff6a12);
  font-family: var(--serif);
  font-size: clamp(20px, 1.5vw, 26px);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(239, 91, 25, 0.28);
}

.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-required-note {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.5;
}

.contact-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}

.contact-status[hidden] {
  display: none;
}

form button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.response-note {
  margin: 24px 0 0;
  padding-left: 56px;
  color: rgba(255, 255, 255, 0.78);
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portrait {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #39464e, #1a2228);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  filter: grayscale(1);
}

.team-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  margin-top: 0;
  padding-bottom: 8px;
}

.team-list article {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  column-gap: 18px;
  align-content: start;
  min-height: 188px;
  padding: 16px 40px 16px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-list article:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 91, 25, 0.58);
}

.team-list .portrait {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 108px;
  aspect-ratio: 4 / 5;
  margin: 0;
}

.team-list .portrait img {
  min-height: 0;
}

.team-list h3 {
  grid-column: 2;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: clamp(20px, 1.35vw, 23px);
  line-height: 1.15;
}

.team-role {
  grid-column: 2;
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.partners .team-role {
  color: #fff;
}

.team-list article > p:not(.team-role) {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.38;
}

.team-list .card-expand {
  right: 12px;
  bottom: 10px;
  font-size: 26px;
}

@media (min-width: 1181px) and (max-height: 760px) {
  .partners > .screen-inner {
    padding-top: 40px;
  }

  .partners-grid {
    grid-template-rows: auto auto;
  }

  .team-list {
    margin-top: 0;
  }

  .contact > .screen-inner {
    padding-top: 40px;
  }

  .contact-grid {
    grid-template-columns: minmax(360px, 480px) minmax(500px, 580px);
    justify-content: space-between;
    gap: clamp(54px, 6vw, 96px);
    max-width: none;
    margin: 0;
    align-items: start;
  }

  .contact-grid::before {
    left: 47%;
  }

  .contact-presence .kicker {
    margin-bottom: 12px;
  }

  .contact-panel {
    padding-top: 36px;
  }

  .contact-presence h2 {
    margin-bottom: 12px;
    font-size: clamp(28px, 2.25vw, 34px);
    line-height: 1.12;
  }

  .contact-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 2.5vw, 38px);
    line-height: 1.12;
  }

  .office-list {
    margin-top: 18px;
    height: 250px;
  }

  .office-item {
    flex: 1 1 0;
    gap: 14px;
    padding: 8px 0;
  }

  .office-item h3 {
    font-size: 20px;
  }

  .contact .office-address {
    font-size: 14px;
    line-height: 1.35;
  }

  .contact .office-state {
    font-size: 12px;
  }

  .contact form {
    gap: 8px 12px;
    max-width: 560px;
    padding: 12px;
  }

  .contact input,
  .contact select {
    min-height: 42px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact textarea {
    height: 112px;
    min-height: 112px;
    padding-top: 10px;
  }

  .contact form button {
    min-height: 44px;
    font-size: 19px;
  }

  .contact .response-note {
    margin-top: 10px;
    padding-left: 0;
    text-align: left;
  }

  .publications > .screen-inner {
    padding-top: 40px;
  }

  .publications .section-topline {
    margin-bottom: 20px;
  }

  .publications > .screen-inner.publications-inner {
    justify-content: flex-start;
  }

  .firm-partners > .screen-inner.firm-partners-inner {
    justify-content: flex-start;
  }

  .publications .section-topline h2 {
    font-size: clamp(30px, 2.6vw, 38px);
  }

  .publication-cards {
    gap: 16px;
  }

  .publication-cards article {
    min-height: 333px;
    padding: 18px;
  }

  .firm-partners .partner-firm-cards article {
    min-height: 338px;
  }

  .publication-cards .card-meta {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .publication-cards h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.25;
  }

  .publication-cards p:not(.card-meta) {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .services > .screen-inner,
  .firm-map > .screen-inner,
  .partners > .screen-inner,
  .publications > .screen-inner,
  .firm-partners > .screen-inner,
  .contact > .screen-inner {
    padding-top: 40px;
    padding-bottom: 34px;
  }
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
  font-size: 13px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "seal legal social"
    "seal copyright credit";
  align-items: center;
  column-gap: 28px;
  row-gap: 2px;
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 16px var(--pad-x);
}

.footer-brand-seal {
  grid-area: seal;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 84px;
}

.footer-copyright {
  grid-area: copyright;
  justify-self: center;
  text-align: center;
}

.footer-seal {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: inherit;
}

.footer-social {
  grid-area: social;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.footer-social a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.2s ease;
}

.footer-social a:hover,
.footer-credit a:hover,
.footer-legal button:hover {
  color: var(--orange);
}

.footer-legal {
  grid-area: legal;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: center;
}

.footer-legal button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-credit {
  grid-area: credit;
  justify-self: end;
  text-align: right;
}

.site-footer p.footer-credit {
  font-size: 10px;
}

.footer-credit a {
  color: inherit;
  transition: color 0.2s ease;
}

.firm-partners-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-firm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.partner-firm-cards article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: clamp(16px, 1.5vw, 24px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.partner-firm-cards article:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 91, 25, 0.58);
  box-shadow: 0 26px 54px rgba(9, 34, 58, 0.1);
}

.partner-firm-cards h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
}

.partner-firm-cards .card-meta {
  margin-bottom: 24px;
}

.pending-note {
  margin-top: auto;
  padding-top: 18px;
  color: rgba(9, 34, 58, 0.45);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-modal,
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail-modal[hidden],
.legal-modal[hidden] {
  display: none;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 34, 0.62);
  backdrop-filter: blur(3px);
}

.detail-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(84svh, 720px);
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  background: #fdfcfa;
  animation: modal-in 0.24s ease both;
}

.detail-modal .detail-modal-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.detail-modal-panel h3 {
  margin-bottom: 14px;
  padding-right: 44px;
  color: var(--ink);
  font-size: var(--fs-h3-lg);
}

.detail-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0;
  background: #fdfcfa;
}

.detail-modal-panel .detail-modal-header h3 {
  margin: 0;
  padding-right: 0;
}

.detail-modal-header .detail-modal-close {
  position: static;
  flex: 0 0 44px;
  margin: -8px -8px 0 0;
}

.detail-modal .detail-modal-panel > .rule {
  flex: 0 0 auto;
  margin: 14px clamp(24px, 3vw, 44px) 18px;
}

.detail-modal .detail-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 clamp(24px, 3vw, 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.detail-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  padding: 0;
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0;
  background: #fdfcfa;
}

.legal-modal-panel .legal-modal-header h3 {
  margin: 0;
  padding-right: 0;
}

.legal-modal-header .detail-modal-close {
  position: static;
  flex: 0 0 44px;
  margin: -8px -8px 0 0;
}

.legal-modal-panel > .rule {
  flex: 0 0 auto;
  margin: 14px clamp(24px, 3vw, 44px) 18px;
}

.legal-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.legal-modal-body h4 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: clamp(18px, 1.35vw, 21px);
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p,
.legal-modal-body li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
}

.detail-modal-cta {
  display: inline-block;
  flex: 0 0 auto;
  margin: 8px clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px);
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.detail-modal-close:hover {
  color: var(--orange);
  background: rgba(221, 113, 51, 0.08);
}

@media (max-width: 1180px) {
  :root {
    --header-h: 108px;
  }

    .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header.is-condensed {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 88px;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% - 1px);
    left: var(--pad-x);
    right: var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(2, 19, 31, 0.97);
    box-shadow: 0 20px 44px rgba(2, 19, 31, 0.2);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .site-header.on-light nav {
    border-color: var(--line);
    background: rgba(251, 250, 248, 0.98);
    color: var(--ink);
  }

  .site-header.menu-open nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
  }

  .site-header nav a::after { display: none; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    width: min(100%, 320px);
    max-width: 320px;
    height: 84px;
  }

  .site-header.is-condensed .brand {
    max-width: 320px;
    height: 80px;
  }

  .hero-copy {
    width: min(700px, 62vw);
  }

  .hero::after {
    opacity: 0.12;
    mask-image: none;
  }

  .hero-mark {
    display: none;
  }

  .services-grid,
  .firm-grid,
  .partners-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-rows: auto;
  }

  .partners .section-intro,
  .partner-list,
  .team-list {
    align-self: auto;
  }

  .services .section-intro {
    position: static;
    max-height: none;
  }

  .practice-cards,
  .publication-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .map-links {
    display: none;
  }

  .map-cluster .brazil-map-wrap {
    width: 100%;
    max-width: 520px;
  }

  .location-list {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 48px);
    margin-top: 38px;
  }

  .location-list article {
    position: static;
    width: auto;
    transform: none;
  }

  .contact-grid::before {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --pad-x: 22px;
    --header-h: 96px;
  }

    .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    min-height: var(--header-h);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header.is-condensed {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 84px;
  }

  .brand {
    width: min(100%, 300px);
    max-width: 300px;
    height: 78px;
  }

  .site-header.is-condensed .brand {
    max-width: 300px;
    height: 76px;
  }

  .nav-cta { display: none; }

  .site-header nav {
    left: 14px;
    right: 14px;
  }

  .screen-inner {
    padding-top: var(--header-h);
    padding-bottom: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero .screen-inner {
    min-height: auto;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
    padding-top: 8px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 52px);
  }

  .section-intro h2,
  .section-topline h2,
  .contact-panel h2,
  .contact-presence h2 {
    font-size: clamp(30px, 8.5vw, 42px);
  }

  .hero h1,
  .section-intro h2,
  .section-topline h2,
  .contact-panel h2,
  .contact-presence h2 {
    overflow-wrap: break-word;
  }

  .hero-mark {
    display: none;
  }

  .soft-mark,
  .dark-mark {
    right: -54vw;
    width: 140vw;
  }

  .practice-cards,
  .publication-cards,
  .location-list,
  .team-list,
  .partner-firm-cards,
  form {
    grid-template-columns: 1fr;
  }

  .publication-cards .card-meta,
  .publication-cards h3,
  .publication-cards p:not(.card-meta) {
    height: auto;
  }

  .team-list {
    gap: 12px;
  }

  .partner-list {
    grid-template-columns: 1fr;
  }

  .partner-list .portrait {
    aspect-ratio: 1;
  }

  .partner-list .portrait img {
    min-height: 0;
  }

  .detail-modal {
    padding: 12px;
  }

  .detail-modal-panel {
    max-height: 88svh;
  }

  .services-grid > *,
  .firm-grid > *,
  .partners-grid > *,
  .contact-grid > *,
  .practice-cards article,
  .partner-list article {
    min-width: 0;
  }

  .partner-list article {
    grid-template-columns: 1fr;
    padding: 18px 38px 18px 18px;
  }

  .partner-list article:first-child {
    padding-bottom: 18px;
  }

  .partner-list article > div:not(.portrait) {
    min-height: 0;
  }

  .partner-list .tags {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .partner-list .tags span {
    white-space: normal;
  }

  .section-topline {
    display: block;
  }

  .section-topline > a {
    display: inline-block;
    margin-top: 28px;
  }

  .site-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "seal"
      "legal"
      "copyright"
      "social"
      "credit";
    align-items: flex-start;
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 22px;
    text-align: left;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-self: start;
    padding: 0;
    border: 0;
  }

  .footer-copyright {
    justify-self: start;
    text-align: left;
  }

  .footer-social {
    justify-self: start;
  }

  .footer-credit {
    justify-self: start;
    text-align: left;
    padding-top: 0;
    padding-left: 0;
    border-left: 0;
  }

  .brazil-map {
    max-width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* Publications index */
.publication-index { background: var(--paper-warm); }

.publication-index-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) var(--pad-x) clamp(72px, 9vw, 128px);
}

.publication-index-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.publication-index-heading h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: var(--fs-h2);
}

.publication-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.publication-filter {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font: 700 var(--fs-label)/1 var(--sans);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.publication-filter:hover,
.publication-filter.is-active {
  border-color: var(--orange);
  color: var(--orange);
}

.publication-list article { border-bottom: 1px solid var(--line); }
.publication-list article[hidden] { display: none; }

.publication-empty {
  margin: 32px 0 0;
  color: var(--ink-soft);
}

.publication-empty[hidden] { display: none; }

.publication-list-link {
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 2.35fr) auto;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding: clamp(26px, 2.6vw, 38px) 0;
}

.publication-list-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--fs-label);
}

.publication-list-type {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.publication-list-copy h3 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(22px, 1.65vw, 30px);
  transition: color 0.2s ease;
}

.publication-list-copy p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.publication-list-action {
  align-self: center;
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  white-space: nowrap;
}

.publication-list-link:hover h3,
.publication-list-link:focus-visible h3 { color: var(--orange); }

.publication-list-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 8px;
}

@media (max-width: 980px) {
  .publication-index-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .publication-filters { justify-content: flex-start; }

  .publication-list-link {
    grid-template-columns: minmax(140px, 0.55fr) minmax(0, 2fr);
  }

  .publication-list-action {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .publication-index-content {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 76px;
  }

  .publication-index-heading {
    gap: 26px;
    padding-bottom: 26px;
  }

  .publication-filters { gap: 6px 18px; }

  .publication-list-link {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .publication-list-meta {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 12px;
  }

  .publication-list-copy h3 { font-size: clamp(23px, 6.8vw, 29px); }
  .publication-list-action { grid-column: 1; }
}

@media (min-width: 981px) and (max-height: 700px) {
  .publication-index-content {
    padding-top: calc(var(--header-h) + 32px);
  }

  .publication-index-heading {
    padding-bottom: 16px;
  }
}

.site-header--internal {
  grid-template-columns: minmax(240px, 330px) auto;
  justify-content: space-between;
}

.site-header--internal.is-condensed {
  grid-template-columns: minmax(240px, 330px) auto;
}

.internal-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.internal-home-link:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

@media (max-width: 760px) {
  .site-header--internal,
  .site-header--internal.is-condensed {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-header--internal .brand {
    width: min(100%, 240px);
  }

  .internal-home-link {
    max-width: 112px;
    font-size: 14px;
    line-height: 1.25;
    text-align: right;
  }
}

/* Individual publication */
.publication-article-page {
  background: var(--paper-warm);
}

.article-shell {
  min-height: 100svh;
  padding: calc(var(--header-h) + 54px) var(--pad-x) clamp(84px, 9vw, 132px);
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, var(--paper-warm), var(--paper));
}

.article-header,
.article-layout {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: clamp(38px, 5vw, 66px);
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
}

.article-back-link:hover {
  color: var(--ink);
}

.article-category {
  margin-bottom: 20px;
  color: var(--orange);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-header h1 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.08;
}

.article-intro {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-label);
}

.article-meta strong {
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 720px);
  gap: clamp(46px, 7vw, 92px);
  justify-content: start;
  padding-top: clamp(48px, 6vw, 78px);
}

.article-share {
  position: sticky;
  top: 116px;
  align-self: start;
}

.article-share > p {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.article-share-actions {
  display: grid;
  gap: 6px;
}

.article-share button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-share button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.article-body {
  min-width: 0;
}

.article-video {
  margin: 0 0 clamp(38px, 5vw, 58px);
}

.article-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.article-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body > p:first-child {
  color: var(--ink);
  font-size: clamp(19px, 1.35vw, 22px);
  line-height: 1.65;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 26px;
}

.article-body h2 {
  margin: 58px 0 22px;
  color: var(--ink);
  font-size: clamp(28px, 2.4vw, 38px);
}

.article-body h3 {
  margin: 40px 0 16px;
  color: var(--ink);
  font-size: clamp(23px, 1.8vw, 29px);
}

.article-body ul {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding-left: 22px;
}

.article-body li::marker {
  color: var(--orange);
}

.article-callout {
  margin: 42px 0;
  padding: 26px 0 26px 28px;
  border-left: 3px solid var(--orange);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .article-shell {
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 76px;
  }

  .article-back-link {
    margin-bottom: 30px;
  }

  .article-header h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .article-meta {
    display: grid;
    gap: 8px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 42px;
  }

  .article-share {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .article-share-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .article-share button {
    border: 1px solid var(--line);
    text-align: center;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .article-body h2 {
    margin-top: 46px;
  }

}

/* Article sharing follows the header metadata in the master layout. */
.article-header .article-share {
  position: static;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-header .article-share > p {
  margin: 0;
}

.article-header .article-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-header .article-share button {
  min-width: 112px;
  padding: 0 16px;
  border: 1px solid var(--line);
  text-align: center;
}

.article-layout {
  display: block;
  width: min(720px, 100%);
  padding-top: clamp(48px, 6vw, 78px);
}

@media (max-width: 760px) {
  .article-header .article-share {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .article-header .article-share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .article-header .article-share button {
    min-width: 0;
    padding: 0 8px;
  }
}

/* Article metadata and sharing alignment */
.article-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
}

.article-meta-details {
  display: grid;
  grid-template-columns: max-content minmax(260px, 1fr) max-content;
  align-items: start;
  gap: 10px 28px;
}

.article-header .article-share {
  position: static;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
}

.article-header .article-share > span {
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: 800;
}

.article-header .article-share-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.article-header .article-share button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
}

.article-header .article-share button:hover,
.article-header .article-share button:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.article-header .article-share svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.article-layout {
  width: min(1180px, 100%);
}

.article-body {
  width: min(720px, 100%);
}

@media (max-width: 980px) {
  .article-meta {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .article-meta-details {
    grid-template-columns: 1fr;
  }

  .article-header .article-share {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .article-meta-details {
    display: grid;
    gap: 8px;
  }

  .article-header .article-share {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    width: auto;
  }

  .article-header .article-share-actions {
    display: flex;
    width: auto;
  }
}
/* Refined editorial column and official sharing marks */
.article-header,
.article-layout {
  width: min(980px, 100%);
}

.article-layout {
  padding-top: clamp(50px, 5vw, 70px);
}

.article-body {
  width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.article-header .article-share > span {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.article-header .article-share button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(39, 63, 85, 0.06);
}

.article-header .article-share button:hover,
.article-header .article-share button:focus-visible {
  background: rgba(221, 113, 51, 0.1);
}

.article-header .article-share svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 760px) {
  .article-header,
  .article-layout,
  .article-body {
    width: 100%;
  }
}
/* Article copy follows the title's left alignment. */
.article-body {
  margin-right: auto;
  margin-left: 0;
}
/* Article copy uses the full editorial width. */
.article-body {
  width: 100%;
}

/* Canonical article signature used by authored and institutional posts. */
.article-signature {
  display: grid;
  justify-content: start;
  gap: 8px;
  margin-top: clamp(44px, 6vw, 72px);
  color: var(--ink);
}

.article-signature-names {
  display: grid;
  gap: 4px;
}

.article-signature strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.article-signature > span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-signature--institutional {
  gap: 4px;
}

/* Original editorial emphasis is limited to bold text on the website. */
.article-header em,
.article-body em {
  font-style: normal;
}

@media (max-width: 760px) {
  .article-signature {
    display: grid;
    justify-content: start;
    gap: 10px;
  }
}
/* Non-disruptive copy confirmation */
.article-meta {
  position: relative;
}

.article-header .article-share button.is-copied {
  background: rgba(221, 113, 51, 0.14);
  color: var(--orange);
}

.share-feedback {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.share-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .share-feedback {
    right: auto;
    left: 0;
  }
}
/* Publication context shares one compact row. */
.article-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.article-kicker-row .article-category,
.article-kicker-row .article-back-link {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .article-kicker-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .article-kicker-row .article-back-link {
    order: -1;
  }
}
/* Individual articles use a distinct institutional header. */
.publication-article-page .site-header--internal,
.publication-article-page .site-header--internal.on-light {
  background: var(--navy-950);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.publication-article-page .site-header--internal::before,
.publication-article-page .site-header--internal.on-light::before,
.publication-article-page .site-header--internal.is-condensed::before,
.publication-article-page .site-header--internal.on-light.is-condensed::before {
  background: var(--navy-950);
  opacity: 1;
  box-shadow: none;
}

.publication-article-page .site-header--internal .brand-dark,
.publication-article-page .site-header--internal.on-light .brand-dark {
  opacity: 0;
}

.publication-article-page .site-header--internal .brand-light,
.publication-article-page .site-header--internal.on-light .brand-light {
  opacity: 1;
}

.publication-article-page .site-header--internal .internal-home-link {
  color: var(--orange-soft);
}

.publication-article-page .site-header--internal .internal-home-link:hover,
.publication-article-page .site-header--internal .internal-home-link:focus-visible {
  color: #fff;
}

.article-kicker-row .article-back-link {
  color: var(--ink-soft);
  font-weight: 700;
}

.article-kicker-row .article-back-link:hover,
.article-kicker-row .article-back-link:focus-visible {
  color: var(--orange);
}
/* Article header uses the hero's softer blue range. */
.publication-article-page .site-header--internal,
.publication-article-page .site-header--internal.on-light {
  background: linear-gradient(110deg, var(--navy-900), var(--navy-800));
}

.publication-article-page .site-header--internal::before,
.publication-article-page .site-header--internal.on-light::before,
.publication-article-page .site-header--internal.is-condensed::before,
.publication-article-page .site-header--internal.on-light.is-condensed::before {
  background: linear-gradient(110deg, var(--navy-900), var(--navy-800));
}
/* Navigation hierarchy: quiet header, contextual article action. */
.publication-article-page .site-header--internal .internal-home-link {
  color: #fff;
}

.publication-article-page .site-header--internal .internal-home-link:hover,
.publication-article-page .site-header--internal .internal-home-link:focus-visible {
  color: var(--orange-soft);
}

.article-kicker-row .article-back-link {
  color: var(--orange);
}

.article-kicker-row .article-back-link:hover,
.article-kicker-row .article-back-link:focus-visible {
  color: var(--ink);
}
/* Quieter article header navigation. */
.publication-article-page .site-header--internal .internal-home-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .publication-article-page .site-header--internal .internal-home-link {
    font-size: 13px;
  }
}
/* Floating return to top for publication pages. */
.back-to-top {
  position: fixed;
  right: clamp(20px, 3vw, 44px);
  --back-to-top-offset: clamp(20px, 3vw, 38px);
  --back-to-top-footer-lift: 0px;
  bottom: calc(var(--back-to-top-offset) + var(--back-to-top-footer-lift));
  z-index: 60;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: var(--navy-800);
  box-shadow: 0 10px 28px rgba(13, 31, 45, 0.2);
  color: #fff;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
