/* Advocacia Cestari — design system da Home */
:root {
  --color-brand-blue: #00007c;
  --color-navy-primary: #0b1b30;
  --color-navy-secondary: #182542;
  --color-navy-surface: #223a61;
  --color-gold-primary: #c8a470;
  --color-gold-secondary: #d7b780;
  --color-gold-dark: #a9834d;
  --color-gold-ink: #74552d;
  --color-background-dark: #0b1b30;
  --color-background-alt: #111e33;
  --color-surface-dark: #182542;
  --color-background-light: #f7f5f2;
  --color-surface-light: #ffffff;
  --color-cream: #eee8df;
  --color-text-on-dark: #f7f7f5;
  --color-text-muted-dark: #c8ced8;
  --color-text-on-light: #182033;
  --color-text-muted-light: #525b69;
  --color-border-dark: #2c3a52;
  --color-border-light: #d8d5cf;

  --font-display: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-body: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.6rem, 3vw, 2.15rem);
  --text-3xl: clamp(2.25rem, 4.5vw, 3.75rem);
  --text-hero: clamp(2.45rem, 6.4vw, 5.1rem);

  --space-1: 0.375rem;
  --space-2: 0.625rem;
  --space-3: 0.875rem;
  --space-4: 1.125rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  --space-8: 3.75rem;
  --space-9: 5rem;
  --space-10: 7rem;
  --space-section: clamp(5rem, 10vw, 8.75rem);

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-pill: 999px;
  --shadow-soft: 0 1.5rem 4rem rgb(11 27 48 / 0.08);
  --shadow-dark: 0 2rem 5rem rgb(0 0 0 / 0.22);

  --container: 80rem;
  --container-narrow: 67rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-height: 5.75rem;

  --transition-fast: 180ms ease;
  --transition-base: 320ms cubic-bezier(0.2, 0.75, 0.25, 1);
  --z-header: 50;
  --z-menu: 40;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--color-text-on-light);
  background: var(--color-background-light);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.25vw + 0.9rem, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-gold-secondary);
  outline-offset: 4px;
}

::selection {
  color: var(--color-text-on-dark);
  background: var(--color-brand-blue);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: var(--space-5);
  font-size: var(--text-3xl);
  line-height: 1.03;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-navy-primary);
  background: var(--color-gold-secondary);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
  color: var(--color-gold-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.135em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow--dark {
  color: var(--color-gold-ink);
}

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.9rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--color-navy-primary);
  background: var(--color-gold-primary);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0.8rem 2rem rgb(3 10 20 / 0.18);
}

.button--primary:hover {
  background: var(--color-gold-secondary);
  border-color: var(--color-gold-secondary);
}

.button--header {
  display: none;
  min-height: 3rem;
  color: var(--color-text-on-dark);
  border-color: rgb(215 183 128 / 0.55);
  padding-inline: 1rem;
  white-space: nowrap;
}

.button--header:hover {
  color: var(--color-navy-primary);
  background: var(--color-gold-secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.4em;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link--light {
  color: var(--color-text-on-dark);
}

/* Header */
.site-header {
  position: fixed;
  z-index: var(--z-header);
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--color-text-on-dark);
  background: rgb(11 27 48 / 0.92);
  border-bottom: 1px solid rgb(200 164 112 / 0.18);
  backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.65rem, 3vw, 1.5rem);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.82rem;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 2.95rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--color-gold-secondary);
  border: 1px solid var(--color-gold-primary);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.brand__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__text small {
  color: var(--color-text-muted-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.menu-toggle {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  place-content: center;
  gap: 0.31rem;
  color: inherit;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.39rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.39rem) rotate(-45deg);
}

.main-nav {
  position: absolute;
  z-index: var(--z-menu);
  top: 100%;
  right: 0;
  left: 0;
  height: calc(100dvh - var(--header-height));
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.5rem var(--gutter);
  background: var(--color-navy-primary);
  opacity: 0;
  transform: translateY(-0.75rem);
  transition: visibility var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}

.main-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav > ul {
  display: grid;
  max-width: 32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul > li > a,
.nav-services__header > a {
  display: block;
  padding-block: 1rem;
  color: var(--color-text-on-dark);
  border-bottom: 1px solid var(--color-border-dark);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 8vw, 2.15rem);
  text-decoration: none;
}

.nav-services__header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-dark);
}

.nav-services__header > a {
  min-width: 0;
  flex: 1;
  border-bottom: 0;
}

.nav-services__toggle {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  place-items: center;
  color: var(--color-gold-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-services__toggle span {
  position: relative;
  width: 0.8rem;
  height: 0.8rem;
}

.nav-services__toggle span::before,
.nav-services__toggle span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.nav-services__toggle span::before {
  width: 0.8rem;
  height: 1px;
}

.nav-services__toggle span::after {
  width: 1px;
  height: 0.8rem;
}

.nav-services.is-open .nav-services__toggle span::after {
  display: none;
}

.mega-menu {
  display: none;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 1.5rem;
  background: var(--color-navy-surface);
  border: 1px solid var(--color-border-dark);
}

.nav-services.is-open .mega-menu {
  display: grid;
}

.mega-menu__title {
  margin: 0 0 0.75rem;
  color: var(--color-gold-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-menu__group > a {
  display: block;
  padding: 0.65rem 0;
  color: var(--color-text-on-dark);
  border-bottom: 1px solid var(--color-border-dark);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.35;
  text-decoration: none;
}

.mega-menu__group > a:hover,
.mega-menu__group > a:focus-visible {
  color: var(--color-gold-secondary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 52rem;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 4.25rem);
  padding-bottom: 4.5rem;
  color: var(--color-text-on-dark);
  background-color: var(--color-navy-primary);
  background-image: url("../images/hero-background-v3-960.webp");
  background-position: center top;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(5 12 22 / 42%) 0%, rgb(5 12 22 / 28%) 38%, rgb(5 12 22 / 82%) 100%),
    linear-gradient(90deg, rgb(5 12 22 / 48%) 0%, transparent 48%, rgb(5 12 22 / 48%) 100%);
}

.hero::after {
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgb(5 12 22 / 48%) 38%, rgb(5 12 22 / 90%) 100%);
}

.hero__grid {
  position: relative;
  display: grid;
  gap: var(--space-8);
}

.hero__content {
  position: relative;
  z-index: 3;
  align-self: center;
  text-shadow: 0 2px 22px rgb(3 10 20 / 0.24);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: var(--space-6);
  font-size: var(--text-hero);
  line-height: 0.96;
}

.hero h1 em {
  display: block;
  color: var(--color-gold-secondary);
  font-weight: 400;
}

.hero__lead {
  max-width: 41rem;
  margin-bottom: var(--space-6);
  color: var(--color-text-muted-dark);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-bottom: var(--space-7);
}

.hero__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 1.25rem 0 0;
  color: var(--color-text-muted-dark);
  border-top: 1px solid var(--color-border-dark);
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  list-style: none;
}

.hero__scope li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__scope li::before {
  width: 0.32rem;
  aspect-ratio: 1;
  background: var(--color-gold-primary);
  border-radius: 50%;
  content: "";
}

.hero__index {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  color: rgb(247 247 245 / 0.08);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 0.72;
  pointer-events: none;
}

.hero-person {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 32rem);
  height: clamp(25rem, 125vw, 38rem);
  align-self: end;
  justify-content: center;
  margin: calc(-1 * var(--space-5)) auto -4.5rem;
  pointer-events: none;
}

.hero-person::after {
  position: absolute;
  z-index: -1;
  bottom: 2.5%;
  left: 50%;
  width: 64%;
  height: 4.5%;
  border-radius: 50%;
  background: rgb(1 7 14 / 0.56);
  filter: blur(14px);
  content: "";
  transform: translateX(-50%);
}

.hero-person__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1.4rem 2.3rem rgb(1 7 14 / 0.34));
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait__media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  place-items: center;
  background: var(--color-navy-secondary);
  border: 1px solid rgb(200 164 112 / 0.38);
  box-shadow: var(--shadow-dark);
}

.portrait__media::before,
.portrait__media::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.portrait__media::before {
  inset: 7%;
  border: 1px solid rgb(200 164 112 / 0.15);
}

.portrait__media::after {
  top: -20%;
  right: 22%;
  width: 1px;
  height: 140%;
  background: rgb(200 164 112 / 0.2);
  transform: rotate(25deg);
}

.portrait__media picture,
.portrait__image {
  width: 100%;
  height: 100%;
}

.portrait__image {
  display: block;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.86) contrast(1.04);
}

.portrait__line {
  position: absolute;
  z-index: 2;
  right: 12%;
  bottom: 12%;
  width: 4.5rem;
  height: 1px;
  background: var(--color-gold-primary);
}

.portrait figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  color: var(--color-text-muted-dark);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.portrait figcaption span {
  color: var(--color-gold-secondary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Marquee */
.trust-strip {
  overflow: hidden;
  color: var(--color-navy-primary);
  background: var(--color-gold-primary);
  border-block: 1px solid var(--color-gold-dark);
}

.trust-strip__track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.trust-strip__group {
  display: flex;
  min-width: max-content;
  flex: none;
  align-items: center;
  gap: 1.4rem;
  padding: 0.82rem 0.7rem;
}

.trust-strip span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: none;
}

.trust-strip i {
  width: 1px;
  height: 0.85rem;
  background: rgb(11 27 48 / 0.42);
}

/* Shared headings */
.section-heading {
  margin-bottom: var(--space-8);
}

.section-heading h2 {
  max-width: 17ch;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--color-text-muted-light);
  font-size: var(--text-lg);
}

.section-heading--split {
  display: grid;
  gap: var(--space-5);
}

.section-heading--light h2 {
  color: var(--color-text-on-dark);
}

.section-heading--light > p {
  color: var(--color-text-muted-dark);
}

.section-heading--center {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center h2 {
  max-width: 17ch;
  margin-inline: auto;
}

/* Problems */
.problems {
  background: var(--color-background-light);
}

.problem-grid {
  display: grid;
  border-top: 1px solid var(--color-border-light);
}

.problem-card {
  position: relative;
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.problem-card__number {
  margin-bottom: auto;
  color: var(--color-gold-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.problem-card h3 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.12;
}

.problem-card p {
  max-width: 37rem;
  margin-bottom: var(--space-5);
  color: var(--color-text-muted-light);
  line-height: 1.65;
}

.problem-card a,
.service-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  color: var(--color-brand-blue);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.problem-card a:hover,
.service-card a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.problem-card--accent {
  margin-inline: calc(var(--gutter) * -0.35);
  padding-inline: calc(var(--gutter) * 0.35);
}

.problem-card--accent {
  background: var(--color-cream);
  border-color: var(--color-cream);
}

.problem-card:focus-within {
  background: var(--color-surface-light);
  border-color: rgb(200 164 112 / 0.52);
  box-shadow: 0 1rem 2.8rem rgb(11 27 48 / 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .problem-card:hover {
    background: var(--color-surface-light);
    border-color: rgb(200 164 112 / 0.42);
    box-shadow: 0 1rem 2.8rem rgb(11 27 48 / 0.07);
    transform: translateY(-2px);
  }
}

/* Services */
.solutions {
  color: var(--color-text-on-dark);
  background: var(--color-background-alt);
}

.service-grid {
  display: grid;
  gap: 0.8rem;
  background: transparent;
  border: 0;
}

.service-card {
  display: grid;
  min-height: 22rem;
  grid-template-rows: auto auto 1fr auto;
  row-gap: var(--space-4);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-surface-light);
  border: 1px solid rgb(200 164 112 / 0.18);
  border-top: 2px solid var(--color-gold-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--color-gold-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card__meta small {
  font-size: inherit;
}

.service-card h3 {
  max-width: 17ch;
  margin-bottom: 0;
  color: var(--color-text-on-light);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 500;
}

.service-card p {
  margin-bottom: 0;
  color: var(--color-text-muted-light);
  line-height: 1.65;
}

.service-card--featured {
  color: var(--color-text-on-dark);
  background: var(--color-navy-surface);
  border-color: rgb(215 183 128 / 0.34);
}

.service-card--featured h3,
.service-card--featured p {
  color: inherit;
}

.service-card--featured p {
  color: var(--color-text-muted-dark);
}

.service-card--featured a {
  color: var(--color-gold-secondary);
}

.service-card > a {
  margin-top: auto;
}

.service-card--featured .service-card__meta {
  color: var(--color-gold-secondary);
}

.future-route {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--color-text-muted-light);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.future-route::before {
  width: 1.5rem;
  height: 1px;
  background: var(--color-gold-primary);
  content: "";
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    border-color: rgb(200 164 112 / 0.48);
    transform: translateY(-3px);
  }
}

/* Lawyer preview */
.lawyer-preview {
  position: relative;
  overflow: hidden;
  background: var(--color-cream);
}

.lawyer-preview::before {
  position: absolute;
  top: -15rem;
  right: -12rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgb(200 164 112 / 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.lawyer-preview__intro {
  position: relative;
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.lawyer-preview__intro .eyebrow {
  margin-bottom: 0;
}

.lawyer-preview__intro h2 {
  max-width: 18ch;
  margin-bottom: 0;
}

.lawyer-preview__intro h2 em {
  color: var(--color-gold-dark);
  font-weight: 400;
}

.lawyer-preview__grid {
  position: relative;
  display: grid;
  overflow: hidden;
  background: var(--color-surface-light);
  box-shadow: 0 2.25rem 5rem rgb(11 27 48 / 0.1);
}

.lawyer-preview__media {
  position: relative;
  min-height: clamp(28rem, 120vw, 40rem);
  margin: 0;
  overflow: hidden;
  background: var(--color-navy-primary);
}

.lawyer-preview__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgb(5 12 22 / 0.88) 100%);
  content: "";
}

.lawyer-preview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.lawyer-preview__media figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  left: clamp(1.5rem, 4vw, 3rem);
  color: var(--color-text-on-dark);
}

.lawyer-preview__media figcaption span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-gold-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lawyer-preview__media figcaption strong {
  display: block;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.08;
}

.lawyer-preview__content {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.lawyer-preview__content > p {
  max-width: 43rem;
  color: var(--color-text-muted-light);
  line-height: 1.68;
}

.lead-copy {
  color: var(--color-text-on-light) !important;
  font-size: var(--text-xl);
  line-height: 1.55;
}

.check-list {
  display: grid;
  counter-reset: lawyer-benefit;
  margin: var(--space-7) 0;
  padding: 0;
  border-top: 1px solid var(--color-border-light);
  border-left: 1px solid var(--color-border-light);
  list-style: none;
}

.check-list li {
  min-height: 7.25rem;
  padding: 1.15rem;
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  counter-increment: lawyer-benefit;
}

.check-list li::before {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-gold-dark);
  content: "0" counter(lawyer-benefit);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.lawyer-preview__cta {
  display: flex;
  min-height: 6.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 1.5rem;
  color: var(--color-text-on-dark);
  background: linear-gradient(112deg, var(--color-navy-primary), #102742);
  border: 1px solid rgb(200 164 112 / 0.42);
  border-left: 4px solid var(--color-gold-primary);
  box-shadow: 0 1.25rem 3rem rgb(11 27 48 / 0.18);
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.lawyer-preview__cta span {
  display: grid;
}

.lawyer-preview__cta small {
  color: var(--color-gold-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lawyer-preview__cta strong {
  font-family: var(--font-display);
  max-width: 31ch;
  margin-top: 0.2rem;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.48rem);
  font-weight: 600;
  line-height: 1.25;
}

.lawyer-preview__cta i {
  display: grid;
  width: 2.65rem;
  flex: 0 0 2.65rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--color-gold-secondary);
  border: 1px solid rgb(215 183 128 / 0.52);
  border-radius: 50%;
  font-size: 1.25rem;
  font-style: normal;
}

.future-cta {
  display: grid;
  gap: 0.2rem;
  max-width: 35rem;
  padding: 1.25rem 1.5rem;
  color: var(--color-text-on-dark);
  background: var(--color-navy-primary);
  border-left: 3px solid var(--color-brand-blue);
}

.future-cta span,
.future-cta small {
  color: var(--color-text-muted-dark);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.future-cta strong {
  color: var(--color-gold-secondary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

/* Sectors */
.sectors {
  color: var(--color-text-on-dark);
  background: var(--color-navy-primary);
}

.sector-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin: 0;
  padding-bottom: 1.25rem;
  padding-left: 0;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--color-gold-dark) var(--color-border-dark);
  list-style: none;
}

.sector-grid:focus-visible,
.decision-flow:focus-visible {
  outline: 3px solid var(--color-gold-secondary);
  outline-offset: 5px;
}

.sector-card {
  display: grid;
  min-width: min(83vw, 20rem);
  flex: 0 0 min(83vw, 20rem);
  grid-template-rows: auto auto auto 1fr auto;
  overflow: hidden;
  padding: 0;
  background: var(--color-navy-secondary);
  border: 1px solid rgb(200 164 112 / 0.18);
  border-top: 2px solid var(--color-gold-primary);
  box-shadow: 0 1.5rem 3rem rgb(2 9 18 / 0.12);
  scroll-snap-align: start;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.sector-card > span {
  grid-row: 1;
  padding: var(--space-5) var(--space-6) 0;
  color: var(--color-gold-secondary);
  font-family: var(--font-display);
}

.sector-card__visual {
  position: relative;
  grid-row: 2;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: var(--space-5) 0;
  background: var(--color-navy-primary);
}

.sector-card__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(11 27 48 / 4%) 55%, rgb(11 27 48 / 28%) 100%),
    linear-gradient(90deg, rgb(200 164 112 / 9%), transparent 38%);
}

.sector-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.03);
  transition: transform 500ms ease, filter 500ms ease;
}

.sector-card h3 {
  grid-row: 3;
  min-height: 3.4rem;
  margin: 0 var(--space-6) var(--space-3);
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
}

.sector-card p {
  grid-row: 4;
  margin: 0 var(--space-6) var(--space-4);
  color: var(--color-text-muted-dark);
  line-height: 1.65;
}

.sector-card small {
  grid-row: 5;
  margin: 0 var(--space-6) var(--space-6);
  color: #aeb7c4;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sector-card__link {
  display: inline-flex;
  grid-row: 5;
  gap: 0.55rem;
  align-items: center;
  width: fit-content;
  margin: 0 var(--space-6) var(--space-6);
  color: var(--color-gold-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.45;
  text-decoration: none;
  text-transform: uppercase;
}

.sector-card__link:hover,
.sector-card__link:focus-visible {
  color: var(--color-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

@media (hover: hover) and (pointer: fine) {
  .sector-card:hover {
    border-color: rgb(200 164 112 / 0.42);
    transform: translateY(-4px);
  }

  .sector-card:hover .sector-card__visual img {
    transform: scale(1.035);
    filter: saturate(0.95) contrast(1.05);
  }
}

/* Process */
.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    var(--color-cream)
    url("../images/process-ambient-v1.webp") center / cover no-repeat;
}

.process::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(248 245 239 / 38%), rgb(248 245 239 / 72%)),
    linear-gradient(90deg, rgb(255 255 255 / 30%), transparent 36%, rgb(255 255 255 / 36%));
  content: "";
}

.process > .container {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.75rem);
  background: rgb(255 255 255 / 93%);
  border: 1px solid rgb(181 139 75 / 24%);
  border-radius: clamp(0.5rem, 1.2vw, 1rem);
  box-shadow: 0 2rem 5rem rgb(8 26 45 / 13%);
  backdrop-filter: blur(10px);
}

.process > .container::after {
  position: absolute;
  z-index: 0;
  top: -0.32em;
  right: -0.05em;
  color: rgb(13 35 59 / 4.5%);
  content: "PROCESSO";
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.process .section-heading,
.process-list,
.process__note {
  position: relative;
  z-index: 1;
}

.process-list {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  padding: 1rem 1rem var(--space-6);
  background: rgb(255 255 255 / 88%);
  border: 1px solid rgb(13 35 59 / 13%);
  border-radius: 0.35rem;
  box-shadow: 0 0.75rem 2rem rgb(8 26 45 / 5%);
}

.process-step:not(:last-child)::before {
  position: absolute;
  top: 3rem;
  bottom: -0.75rem;
  left: 2.45rem;
  width: 1px;
  background: var(--color-border-light);
  content: "";
}

.process-step > span {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--color-navy-primary);
  background: rgb(200 164 112 / 0.16);
  border: 1px solid var(--color-gold-dark);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
}

.process-step h3 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.25;
}

.process-step p {
  max-width: 31rem;
  margin-bottom: 0;
  color: #414b59;
  font-size: var(--text-base);
  line-height: 1.7;
}

.process__note {
  max-width: 45rem;
  margin: var(--space-7) auto 0;
  color: var(--color-text-muted-light);
  font-size: clamp(0.9375rem, 1.3vw, 1rem);
  line-height: 1.65;
  text-align: center;
}

@media (max-width: 22rem) {
  .process > .container {
    padding-inline: 1rem;
  }

  .process .section-heading h2 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 30rem) {
  .process-step {
    display: block;
    padding: 1rem 1rem 1.5rem;
  }

  .process-step:not(:last-child)::before {
    display: none;
  }

  .process-step > span {
    width: 2.6rem;
    margin-bottom: 1rem;
  }

  .process-step h3 {
    margin-top: 0;
  }
}

/* Entity */
.entity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-text-on-dark);
  background:
    var(--color-background-alt)
    url("../images/institutional-ambient-v1.webp") center / cover no-repeat;
}

.entity::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 23 40 / 74%), rgb(8 23 40 / 88%) 50%, rgb(8 23 40 / 78%)),
    linear-gradient(180deg, rgb(8 23 40 / 20%), rgb(8 23 40 / 64%));
  content: "";
}

.entity::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.24em;
  color: rgb(214 175 112 / 6%);
  content: "C";
  font-family: var(--font-display);
  font-size: clamp(18rem, 44vw, 42rem);
  line-height: 1;
  pointer-events: none;
}

.entity__grid {
  display: grid;
  gap: var(--space-8);
}

.portrait--entity .portrait__media {
  aspect-ratio: 4 / 5;
  background: var(--color-navy-surface);
  border: 1px solid rgb(214 175 112 / 26%);
  box-shadow: 0 2rem 5rem rgb(0 0 0 / 32%);
}

.portrait--entity .portrait__image {
  object-position: center 18%;
  transform: scale(1.12);
  transform-origin: center 18%;
}

.entity__content {
  align-self: center;
}

.entity__content h2 {
  color: var(--color-text-on-dark);
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.entity__intro {
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

.entity__content > p:not(.eyebrow, .entity__intro) {
  color: var(--color-text-muted-dark);
}

.entity__principles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-6) 0;
}

.entity__principles span {
  padding: 0.45rem 0.75rem;
  color: var(--color-text-muted-dark);
  border: 1px solid var(--color-border-dark);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.future-cta--dark {
  background: rgb(23 45 75 / 76%);
  border-left-color: var(--color-gold-primary);
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 16%);
  backdrop-filter: blur(10px);
}

/* Decision */
.decision {
  background: var(--color-background-light);
}

.decision__header {
  max-width: 49rem;
  margin-bottom: var(--space-8);
}

.decision__header h2 {
  max-width: 16ch;
}

.decision__header > p:last-child {
  max-width: 45rem;
  color: var(--color-text-muted-light);
  font-size: var(--text-lg);
}

.decision-flow {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin: 0;
  padding: 0 0 1rem;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.decision-flow li {
  position: relative;
  display: grid;
  min-width: min(78vw, 18rem);
  min-height: 11.5rem;
  flex: 0 0 min(78vw, 18rem);
  align-content: space-between;
  padding: 1.4rem;
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-top: 2px solid var(--color-gold-primary);
  box-shadow: 0 1rem 2.5rem rgb(11 27 48 / 0.06);
  scroll-snap-align: start;
}

.decision-flow li::before {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  bottom: auto;
  left: auto;
  width: 1.8rem;
  aspect-ratio: 1;
  color: var(--color-gold-dark);
  background: transparent;
  border: 1px solid rgb(169 131 77 / 0.38);
  border-radius: 50%;
  content: "→";
  font-size: 0.95rem;
  line-height: 1.65rem;
  text-align: center;
}

.decision-flow li:last-child::before {
  content: "✓";
}

.decision-flow span {
  color: var(--color-gold-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.decision-flow strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.08;
}

/* Personal */
.personal {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--color-cream);
}

.personal__grid {
  display: grid;
  gap: var(--space-7);
}

.personal__intro h2 {
  max-width: 12ch;
}

.personal__intro > p:last-child {
  max-width: 42rem;
  color: var(--color-text-muted-light);
}

.personal__topics {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.personal__topics li {
  display: grid;
  min-height: 9rem;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.35rem 1rem;
  align-content: start;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.54);
  border: 1px solid rgb(169 131 77 / 0.2);
  border-top: 2px solid var(--color-gold-primary);
}

.personal__topics span {
  grid-row: 1 / 3;
  color: var(--color-gold-ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.personal__topics strong {
  color: var(--color-navy-secondary);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
}

.personal__topics small {
  color: var(--color-text-muted-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FAQ */
.faq {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 14%, rgb(201 154 89 / 10%), transparent 25rem),
    linear-gradient(135deg, #fbfaf7, var(--color-surface-light) 62%);
}

.faq::before {
  position: absolute;
  top: -0.32em;
  left: -0.04em;
  color: rgb(154 111 53 / 5.5%);
  content: "?";
  font-family: var(--font-display);
  font-size: clamp(24rem, 48vw, 44rem);
  line-height: 1;
  pointer-events: none;
}

.faq__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-8);
}

.faq__intro {
  align-self: start;
}

.faq__intro h2 {
  max-width: 15ch;
}

.faq__intro > p:last-child {
  max-width: 35rem;
  color: var(--color-text-muted-light);
}

.faq-list {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  background: rgb(255 255 255 / 68%);
  border: 1px solid rgb(13 35 59 / 10%);
  border-top: 2px solid var(--color-gold-primary);
  box-shadow: 0 1.5rem 4rem rgb(8 26 45 / 8%);
  backdrop-filter: blur(10px);
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 1fr 1.5rem;
  gap: var(--space-4);
  align-items: center;
  padding-block: 1.4rem;
  color: var(--color-text-on-light);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
}

.faq-item summary span::before,
.faq-item summary span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: var(--color-brand-blue);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

.faq-item summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  max-width: 48rem;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--color-text-muted-light);
}

/* Contact */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-text-on-dark);
  background:
    radial-gradient(circle at 6% 18%, rgb(201 154 89 / 15%), transparent 24rem),
    linear-gradient(112deg, #081b2e, var(--color-navy-primary) 56%, #0e2038);
}

.contact::before {
  position: absolute;
  z-index: -1;
  right: -10vw;
  bottom: -35vw;
  width: min(70vw, 64rem);
  aspect-ratio: 1;
  border: 1px solid rgb(214 175 112 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgb(214 175 112 / 2.5%),
    0 0 0 10rem rgb(214 175 112 / 1.8%);
  content: "";
}

.contact__grid {
  display: grid;
  gap: var(--space-8);
}

.contact__intro h2 {
  max-width: 12ch;
  color: var(--color-text-on-dark);
}

.contact__intro > p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--color-text-muted-dark);
  font-size: var(--text-lg);
}

.contact__privacy {
  display: grid;
  gap: 0.25rem;
  margin-top: var(--space-7);
  padding-left: 1rem;
  border-left: 2px solid var(--color-gold-primary);
}

.contact__privacy strong {
  color: var(--color-gold-secondary);
  font-size: var(--text-sm);
}

.contact__privacy span {
  max-width: 30rem;
  color: var(--color-text-muted-dark);
  font-size: var(--text-sm);
}

.contact-form {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-navy-secondary);
  border-top: 2px solid var(--color-gold-primary);
  box-shadow: var(--shadow-dark);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-control {
  display: grid;
  gap: 0.5rem;
}

.form-control label {
  color: var(--color-text-on-dark);
  font-size: var(--text-sm);
  font-weight: 650;
}

.form-control label span:not([aria-hidden]) {
  color: var(--color-text-muted-dark);
  font-weight: 400;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  color: var(--color-text-on-dark);
  background: var(--color-navy-primary);
  border: 1px solid var(--color-border-dark);
  border-radius: 0;
  padding: 0.85rem 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control input,
.form-control select {
  min-height: 3.25rem;
}

.form-control textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #9ca7b7;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 0 4px rgb(200 164 112 / 0.28);
  outline: none;
}

.form-control small {
  color: var(--color-text-muted-dark);
  font-size: var(--text-xs);
}

.form-privacy-note {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-4);
  color: var(--color-text-muted-dark);
  border-top: 1px solid rgb(200 164 112 / 0.22);
  font-size: 0.875rem;
  line-height: 1.55;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--color-text-muted-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-consent input {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--color-gold-secondary);
}

.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-6);
}

.form-submit .button--primary {
  min-height: 3.75rem;
  padding-inline: 1.7rem;
  font-size: 0.98rem;
}

.form-status {
  flex: 1 1 15rem;
  margin: 0;
  color: var(--color-text-muted-dark);
  font-size: var(--text-sm);
}

.form-status.is-ready {
  color: var(--color-gold-secondary);
}

.form-status.is-submitting {
  color: var(--color-gold-secondary);
}

.form-status.is-success {
  color: #bfe8cf;
}

.form-status.is-error {
  color: #ffc4bd;
}

.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-privacy-note a,
.form-consent a,
.contact-form label a {
  color: var(--color-gold-secondary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.form-privacy-note a:hover,
.form-consent a:hover,
.contact-form label a:hover {
  color: var(--color-text-on-dark);
}

/* Footer */
.site-footer {
  color: var(--color-text-on-dark);
  background: #071321;
  border-top: 1px solid var(--color-border-dark);
}

.footer__top {
  display: grid;
  gap: var(--space-7);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.footer__brand p {
  max-width: 20rem;
  margin: var(--space-5) 0 0;
  color: var(--color-text-muted-dark);
  font-size: 1rem;
}

.brand--footer .brand__text strong {
  font-size: 1.25rem;
}

.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer__column h2 {
  margin-bottom: var(--space-3);
  color: var(--color-gold-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer__column a,
.footer__column span {
  color: var(--color-text-muted-dark);
  font-size: var(--text-sm);
  text-decoration: none;
  line-height: 1.5;
}

.footer__column a:hover {
  color: var(--color-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.footer__column span[data-future-route] {
  opacity: 0.78;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-block: 1.25rem;
  color: #aeb7c4;
  border-top: 1px solid var(--color-border-dark);
  font-size: 0.875rem;
}

.footer__bottom p {
  margin: 0;
}

/* Small tablets */
@media (min-width: 40rem) {
  .hero {
    padding-top: calc(var(--header-height) + 5rem);
  }

  .hero h1 {
    max-width: 22ch;
  }

  .hero h1 > span {
    display: block;
  }

  .hero-person {
    width: min(100%, 34rem);
    margin-left: auto;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-card {
    display: grid;
    min-height: 23rem;
    grid-template-rows: auto minmax(5.75rem, auto) 1fr auto;
    row-gap: var(--space-4);
    padding: var(--space-6);
    border-right: 1px solid var(--color-border-light);
  }

  .problem-card__number,
  .problem-card h3,
  .problem-card p {
    margin-bottom: 0;
  }

  .problem-card:nth-child(2n) {
    border-right: 0;
  }

  .problem-card--accent {
    margin-inline: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card--featured,
  .service-card--wide {
    grid-column: 1 / -1;
  }

  .service-card--featured {
    min-height: 25rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-control--full {
    grid-column: 1 / -1;
  }

  .footer__top {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer__column:last-child {
    grid-column: 2 / 3;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Tablets and compact desktop */
@media (min-width: 48rem) {
  .section-heading--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
    align-items: start;
    column-gap: clamp(3rem, 8vw, 8rem);
  }

  .section-heading--split > p {
    margin-top: 3.15rem;
  }

  .lawyer-preview__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .lawyer-preview__media {
    min-height: 42rem;
  }

  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal__topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    background: transparent;
  }

  .decision-flow li {
    min-width: 14rem;
    flex-basis: 14rem;
  }

  .process-step {
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: rgb(255 255 255 / 72%);
  }

  .process-step:not(:last-child)::before {
    display: none;
  }

  .process-step > span {
    margin-bottom: auto;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .contact__grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  }

  .faq__intro,
  .contact__intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

/* Desktop */
@media (min-width: 64rem) {
  :root {
    --header-height: 5.75rem;
  }

  .hero {
    display: flex;
    min-height: min(60rem, 100svh);
    align-items: center;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2rem;
    background-position: center top;
    background-image: url("../images/hero-background-v3.webp");
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgb(4 10 18 / 16%) 0%, rgb(4 10 18 / 8%) 42%, rgb(4 10 18 / 52%) 76%, rgb(4 10 18 / 90%) 100%),
      linear-gradient(90deg, rgb(4 10 18 / 82%) 0%, rgb(4 10 18 / 68%) 32%, rgb(4 10 18 / 20%) 62%, rgb(4 10 18 / 34%) 100%);
  }

  .hero::after {
    height: 58%;
    background: linear-gradient(180deg, transparent 0%, rgb(5 12 22 / 64%) 36%, rgb(5 12 22 / 96%) 100%);
  }

  .hero__grid {
    min-height: calc(min(60rem, 100svh) - var(--header-height) - 3.5rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 6rem);
  }

  .hero__content {
    width: min(100%, 43rem);
    align-self: center;
    justify-self: start;
    margin-inline: 0;
    text-align: left;
  }

  .hero .eyebrow,
  .hero__actions,
  .hero__scope {
    justify-content: flex-start;
  }

  .hero h1 {
    max-width: 42rem;
    margin-right: 0;
    margin-left: 0;
    font-size: clamp(3rem, 4.2vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .hero h1 > span {
    display: block;
  }

  .hero h1 em {
    margin-top: 0.14em;
    line-height: 1.08;
  }

  .hero__lead {
    max-width: 38rem;
    margin-right: 0;
    margin-left: 0;
  }

  .hero-person {
    position: relative;
    z-index: 1;
    bottom: auto;
    left: auto;
    width: min(100%, 38rem);
    height: min(78vh, 50rem);
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin: 0 0 -2rem;
    transform: none;
  }

  .hero-person__image {
    filter:
      brightness(0.9)
      contrast(1.05)
      saturate(0.9)
      drop-shadow(0 1.75rem 2.8rem rgb(1 7 14 / 0.44));
  }

  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .problem-card:nth-child(2n) {
    border-right: 1px solid var(--color-border-light);
  }

  .problem-card:nth-child(3n) {
    border-right: 0;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card--featured {
    grid-column: span 2;
  }

  .service-card--wide {
    grid-column: span 2;
  }

  .lawyer-preview__grid {
    grid-template-columns: minmax(22rem, 0.82fr) minmax(0, 1.18fr);
    gap: 0;
  }

  .lawyer-preview__intro {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
    align-items: end;
    column-gap: clamp(3rem, 7vw, 7rem);
  }

  .lawyer-preview__intro h2 {
    grid-column: 2;
    grid-row: 1;
  }

  .sector-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(1rem, 1.6vw, 1.5rem);
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .sector-card {
    min-width: 0;
    grid-column: span 2;
  }

  .sector-card:nth-child(4),
  .sector-card:nth-child(5) {
    grid-column: span 3;
  }

  .sector-card:nth-child(4) .sector-card__visual,
  .sector-card:nth-child(5) .sector-card__visual {
    aspect-ratio: 2.3 / 1;
  }

  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
  }

  .process-step {
    min-height: 21rem;
  }

  .process-step h3 {
    min-height: 3.2rem;
  }

  .entity__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(4rem, 9vw, 8rem);
  }

  .portrait--entity .portrait__media {
    min-height: 42rem;
  }

  .decision-flow {
    overflow: visible;
  }

  .decision-flow li {
    min-width: 0;
    flex: 1 1 0;
  }

  .decision__header {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
    column-gap: clamp(3rem, 8vw, 8rem);
  }

  .decision__header .eyebrow {
    grid-column: 1;
  }

  .decision__header h2 {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
  }

  .decision__header > p:last-child {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 0.35rem;
  }

  .personal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(4rem, 8vw, 8rem);
  }

  .footer__top {
    grid-template-columns: minmax(17rem, 1.8fr) repeat(3, 1fr);
  }

  .footer__column:last-child {
    grid-column: auto;
  }
}

/* Header desktop: only expands when every item fits without wrapping. */
@media (min-width: 72rem) {
  body.menu-open {
    overflow: auto;
  }

  .header__inner {
    display: grid;
    width: min(100% - (var(--gutter) * 2), var(--container));
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 2.6vw, 3rem);
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    z-index: auto;
    min-width: 0;
    height: auto;
    visibility: visible;
    overflow: visible;
    justify-self: end;
    margin-left: 0;
    padding: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }

  .main-nav > ul {
    display: flex;
    width: auto;
    max-width: none;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.75rem, 1vw, 1.1rem);
  }

  .main-nav > ul > li {
    flex: none;
  }

  .main-nav > ul > li > a,
  .nav-services__header > a {
    position: relative;
    padding-block: 0.75rem;
    border: 0;
    font-family: var(--font-body);
    color: #fff;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .main-nav > ul > li > a::after,
  .nav-services__header > a::after {
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 1px;
    background: var(--color-gold-primary);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
  }

  .main-nav > ul > li > a:hover::after,
  .main-nav > ul > li > a:focus-visible::after,
  .nav-services__header > a:hover::after,
  .nav-services__header > a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-services__header {
    border: 0;
  }

  .nav-services__toggle {
    width: 1.75rem;
    height: 2.6rem;
  }

  .mega-menu {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    left: 50%;
    width: min(calc(100vw - 2rem), var(--container));
    max-height: calc(100dvh - var(--header-height) - 1rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    overflow-y: auto;
    margin: 0;
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
    background: var(--color-navy-primary);
    border-top: 2px solid var(--color-gold-secondary);
    box-shadow: 0 1.25rem 2rem rgb(0 0 0 / 0.2);
    transform: translateX(-50%);
  }

  .mega-menu__group > a {
    white-space: normal;
  }
}

/* Wide desktop */
@media (min-width: 86rem) {
  .button--header {
    display: inline-flex;
    font-size: 0.8rem;
  }

  .header__inner {
    gap: clamp(1.25rem, 2vw, 2.5rem);
  }

  .main-nav > ul {
    gap: clamp(0.8rem, 0.95vw, 1.15rem);
  }
}

@media (min-width: 90rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .problem-card {
    padding: var(--space-7);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

@media (forced-colors: active) {
  .button,
  .menu-toggle,
  .brand__mark,
  .portrait__media,
  .process-step > span {
    border: 1px solid currentColor;
  }
}
