/* Amax Capital — Lovable mockup design system */

:root {
  --ink: #16181c;
  --ink-elev: #1e2126;
  --ivory: #f3f1ec;
  --cream: #f3f1ec;
  --cream-warm: #ebe6dc;
  --parchment: #22252a;
  --brass: #c8b48a;
  --brass-deep: #b09a6e;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-dark: rgba(0, 0, 0, 0.12);
  --rule-on-light: rgba(22, 24, 28, 0.12);
  --muted: rgba(243, 241, 236, 0.65);
  --muted-dark: rgba(22, 24, 28, 0.6);
  --text-on-light: #16181c;
  --muted-on-light: rgba(22, 24, 28, 0.72);
  --brass-on-light: #7a6640;
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --max-width: 80rem;
  --header-height: 5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site main > section:last-child {
  flex: 1;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ivory);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 6rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.small-caps {
  font-family: var(--font-body);
  /*font-size: 0.6875rem;*/
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label {
  color: var(--brass);
  margin-bottom: 0;
}

.section-label::before {
  content: "[ ";
}

.section-label::after {
  content: " ]";
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
}

.text-muted {
  color: var(--muted);
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.section {
  padding: clamp(5rem, 10vw, 11rem) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(3rem, 5vw, 5rem);
}

.section-grid__label {
  grid-column: span 12;
}
.section-grid__label--side {
  grid-column: span 12;
}
.section-grid__content {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .section-grid__label--side {
    grid-column: span 4;
  }
  .section-grid__content {
    grid-column: span 8;
  }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: rgba(22, 24, 28, 0.92);
  border-bottom: 1px solid var(--rule);
  overflow: visible;
}

/* Blur on pseudo-element so fixed mobile nav is not clipped to header height */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 24, 28, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
}

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.header .logo__img {
  display: block;
  height: 3.75rem;
  width: auto;
}

.logo--footer .logo__img {
  height: 2.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav .header__cta {
  margin-left: 0.5rem;
}

.nav__link {
  font-size: 0.8125rem;
  color: rgba(243, 241, 236, 0.75);
  transition: color 0.2s var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ivory);
}

.header__cta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.2s var(--ease);
}

.header__cta:hover {
  color: var(--brass-deep);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  margin-right: -0.75rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ivory);
  margin: 5px 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn--brass {
  background: var(--brass);
  color: var(--ink);
}

.btn--brass:hover {
  background: var(--ivory);
}

.btn--outline {
  background: transparent;
  color: rgba(243, 241, 236, 0.8);
  border: 1px solid var(--rule);
}

.btn--outline:hover {
  color: var(--ivory);
  border-color: rgba(243, 241, 236, 0.4);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  transition: color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--ivory);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero__overlay-r {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(22, 24, 28, 0.92),
    rgba(22, 24, 28, 0.65) 55%,
    rgba(22, 24, 28, 0.2)
  );
}

.hero__overlay-t {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 24, 28, 0.85), transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--header-height) + 2rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.hero__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  max-width: 52rem;
  font-weight: 500;
}

.hero__desc {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: rgba(243, 241, 236, 0.65);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Firm statement */

.firm-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 300;
  color: rgba(243, 241, 236, 0.9);
  letter-spacing: -0.02em;
}

/* Philosophy block */

.philosophy-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .philosophy-block {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.philosophy-block__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-elev);
}

.philosophy-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-block h2 {
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.philosophy-block p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.philosophy-block .text-link {
  margin-top: 1.5rem;
}

/* Practice grid */

.practice-intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.practice-intro h2 {
  margin: 1rem 0;
  font-weight: 500;
}

.practice-intro h2 span {
  display: block;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.practice-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.practice-card__num {
  color: var(--brass);
  margin-bottom: 2rem;
}

.practice-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 1rem;
  font-weight: 500;
}

.practice-card p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(243, 241, 236, 0.6);
}

.practice-footer {
  margin-top: 4rem;
  display: flex;
  justify-content: flex-end;
}

/* Stats */

.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 7rem) 0;
  justify-content: center;
}

.stats:not(.section--light) {
  background: var(--ink-elev);
}

.stats.section--light {
  background: var(--cream-warm);
  border-color: var(--rule-on-light);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.stat__label {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 14rem;
  text-align: center;
}

/* CTA section */

.cta-section h2 {
  max-width: 48rem;
  font-weight: 500;
}

.cta-section .btn {
  margin-top: 3.5rem;
}

/* Inner pages */

.page-hero {
  padding: calc(var(--header-height) + 1.5rem) 0 clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  margin-top: 0.5rem;
  font-weight: 500;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--brass);
}

.page-hero .lead {
  margin-top: 0.75rem;
  max-width: 36rem;
}

/* Philosophy pillars */

.pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pillar {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}

.pillar:first-child {
  border-top: 1px solid var(--rule);
}

.pillar h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
  font-weight: 500;
}

.pillar p {
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Services page — expertise & industry grids */

.expertise-grid,
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .expertise-grid,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .expertise-grid,
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card,
.industry-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.expertise-grid__spacer,
.industry-grid__spacer {
  display: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 1024px) {
  .expertise-grid__spacer,
  .industry-grid__spacer {
    display: block;
  }
}

.expertise-card__num {
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.expertise-card h3,
.industry-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expertise-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(243, 241, 236, 0.6);
}

.expertise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.65;
}

.section--light .expertise-list li {
  color: var(--muted-on-light);
}

.section--light .expertise-list li::before {
  background: var(--brass-on-light);
}

/* Services detail */

.service-detail {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}

.service-detail:first-of-type {
  border-top: 1px solid var(--rule);
}

.service-detail__label {
  color: var(--brass);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
}

.service-detail h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.service-detail > p:first-of-type {
  font-size: 1.0625rem;
  color: rgba(243, 241, 236, 0.85);
  margin-bottom: 0.75rem;
}

.service-detail > p:last-of-type {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Team page */

.team-intro h2 {
  margin: 1rem 0 1.5rem;
  font-weight: 500;
}

.team-intro p {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) {
  .team-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-stats > div {
  text-align: center;
}

.team-stat__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--brass);
  font-weight: 300;
  text-align: center;
}

.team-stat__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.discretion-box {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--rule);
  background: var(--ink-elev);
}

.discretion-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.discretion-box p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 36rem;
}

/* Media coverage */

.media-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.media-item {
  margin: 0;
}

.media-item__link {
  display: block;
  padding: clamp(1.75rem, 3vw, 2rem);
  border: 1px solid rgba(22, 24, 28, 0.22);
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 24, 28, 0.08);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.media-item__link:hover {
  border-color: rgba(122, 102, 64, 0.55);
  box-shadow: 0 6px 24px rgba(22, 24, 28, 0.12);
  transform: translateY(-2px);
}

.media-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-item__source {
  color: var(--brass);
  font-family: var(--font-display);
  font-style: italic;
  text-transform: none;
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.media-item__date,
.media-item__type {
  color: var(--muted);
}

.media-item__type::before {
  content: "·";
  margin-right: 1.25rem;
  color: var(--rule);
}

.media-item__title {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0 0 0.625rem;
  max-width: 48rem;
}

.media-item__summary {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.media-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.02em;
}

.media-item__link:hover .media-item__cta {
  color: var(--ivory);
}

.media-list__message {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Team members */

.team-members {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
}

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.team-member__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(200, 180, 138, 0.35);
  background: var(--ink-elev);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s var(--ease);
}

.team-member.visible .team-member__photo img {
  animation: teamPhotoIn 0.9s var(--ease) forwards;
}

.team-member:hover .team-member__photo img {
  transform: scale(1.06);
}

@keyframes teamPhotoIn {
  from {
    transform: scale(0.94);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-member.visible .team-member__photo img {
    animation: none;
  }

  .team-member:hover .team-member__photo img {
    transform: none;
  }
}

.team-member__name {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
}

.team-member__role {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}

.team-member__bio p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1rem;
}

.team-member__bio p:last-child {
  margin-bottom: 1.25rem;
}

.team-member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.team-member__link:hover {
  color: var(--brass);
}

.team-member__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .team-member {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-member__photo {
    width: 160px;
    height: 160px;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.contact-grid > * {
  min-width: 0;
}

.contact-form {
  max-width: 100%;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info__block {
  margin-bottom: 2.5rem;
}

.contact-info__block h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.contact-info__block p,
.contact-info__block a {
  font-size: 1.0625rem;
  color: rgba(243, 241, 236, 0.85);
  line-height: 1.6;
}

.contact-info__block a:hover {
  color: var(--brass);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ivory);
  background: var(--cream-warm);
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

.form-message--error {
  color: #c99595;
}

.form-captcha {
  --captcha-control-height: 2.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--ink-elev);
  padding-top: 1rem;
}

.form-captcha__hint {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.form-captcha__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}

.form-captcha__display {
  flex: 0 0 auto;
  width: 10rem;
  height: var(--captcha-control-height);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

.form-captcha__display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-column: 1 / -1;
}


.form-captcha__input {
  flex: 1 1 8rem;
  min-width: 8rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.form-captcha__input label {
  margin-bottom: 0.5rem;
}

.form-captcha__input input {
  height: var(--captcha-control-height);
  padding: 0 1rem;
  box-sizing: border-box;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.form-captcha__row .btn {
  flex: 0 0 auto;
  align-self: flex-end;
  height: var(--captcha-control-height);
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.form-captcha__row .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.form-captcha__replay {
  margin-top: 0.75rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.form-captcha__replay:hover {
  color: var(--ivory);
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
}

.disclaimer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: rgba(34, 37, 42, 0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand p {
  margin-top: 1.5rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer__col h5 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(243, 241, 236, 0.85);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--brass-deep);
}

.footer__bottom {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Animations */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive nav & layout */

@media (max-width: 1023px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 51;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 100%;
    max-width: none;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem) 3rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.35s var(--ease),
      visibility 0.35s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__link,
  .nav .header__cta {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--ivory);
    border-bottom: 1px solid var(--rule);
    flex-shrink: 0;
  }

  .nav__link:hover,
  .nav__link--active {
    color: var(--brass);
  }

  .nav .header__cta {
    margin-left: 0;
    margin-top: 0.75rem;
    border-bottom: none;
    padding-top: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--brass);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 4.5rem;
  }

  .header .logo__img {
    height: 3.25rem;
  }

  .section {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2rem;
  }

  .hero__eyebrow {
    margin-bottom: 1rem;
  }

  .hero__desc {
    margin-top: 1rem;
  }

  .hero__actions {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    text-align: center;
  }

  .section-grid {
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .firm-text {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }

  .practice-footer {
    justify-content: flex-start;
    margin-top: 2.5rem;
  }

  .practice-intro .lead {
    margin-top: 0.5rem;
  }

  .stats__grid {
    gap: 1.5rem;
  }

  .stat__num {
    font-size: clamp(2.25rem, 10vw, 3rem);
    text-align: center;
  }

  .cta-section .btn {
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 1.5rem;
  }

  .team-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
  }

  .team-stat__num {
    font-size: 2rem;
  }

  .contact-grid {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 1023px) {
  .form-captcha__row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-captcha__display {
    align-self: flex-start;
  }

  .form-captcha__input {
    min-width: 0;
  }

  .form-captcha__row .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    padding: 2.5rem 0;
    gap: 2rem;
  }

  .footer__bottom {
    text-align: left;
  }

  .small-caps {
    letter-spacing: 0.14em;
  }
}

@media (max-width: 380px) {
  .header .logo__img {
    height: 2.875rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .team-member {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }

  .team-member__photo {
    width: 180px;
    height: 180px;
  }

  /* Narrow 4-col label at this width wraps longer labels
     like "[ 01 SERVICE EXPERTISE ]" mid-bracket; stack instead. */
  .section-grid__label--side {
    grid-column: span 12;
  }
  .section-grid__content {
    grid-column: span 12;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .media-item__link,
  .media-item__link:hover {
    transform: none;
    transition: none;
  }
}

/* Light sections — overrides placed last so they win over component colors */
.page-hero--light,
.section--light,
.stats.section--light {
  background: var(--cream);
  color: var(--text-on-light);
}

.stats.section--light {
  background: var(--cream-warm);
}

.page-hero--light {
  border-bottom-color: var(--rule-on-light);
}

.page-hero--light h1,
.page-hero--light h2,
.page-hero--light h3,
.page-hero--light h4,
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4 {
  color: var(--text-on-light);
}

.page-hero--light .lead,
.page-hero--light .text-muted,
.page-hero--light p,
.section--light .lead,
.section--light .text-muted,
.section--light p,
.stats.section--light p {
  color: var(--muted-on-light);
}

.page-hero--light .firm-text,
.section--light .firm-text {
  color: var(--text-on-light);
}

.page-hero--light h1 em,
.section--light .serif-italic,
.section--light .section-label,
.section--light .practice-card__num,
.section--light .expertise-card__num,
.section--light .team-stat__num,
.section--light .stat__num,
.section--light .team-member__role,
.section--light .service-detail__label,
.section--light .contact-info__block h3,
.section--light .text-link,
.section--light .media-item__source,
.section--light .media-item__cta {
  color: var(--brass-on-light);
}

.section--light .media-item__link {
  border-color: rgba(22, 24, 28, 0.22);
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 24, 28, 0.08);
}

.section--light .media-item__link:hover {
  border-color: rgba(122, 102, 64, 0.55);
  box-shadow: 0 6px 24px rgba(22, 24, 28, 0.12);
}

.section--light .media-item__link:hover .media-item__cta {
  color: var(--text-on-light);
}

.section--light .media-item__title {
  color: var(--text-on-light);
}

.section--light .media-item__date,
.section--light .media-item__type,
.section--light .media-item__summary {
  color: var(--muted-on-light);
}

.section--light .media-item__type::before {
  color: var(--rule-on-light);
}

.section--light .media-list__message {
  color: var(--muted-on-light);
}

.section--light .text-link:hover,
.section--light .team-member__link:hover,
.section--light .contact-info__block a:hover {
  color: var(--text-on-light);
}

.section--light .team-member__link,
.section--light .form-group label,
.section--light .form-note,
.section--light .disclaimer,
.section--light .stat__label,
.section--light .team-stat__label {
  color: var(--muted-on-light);
}

.section--light .service-detail > p:first-of-type,
.section--light .contact-info__block p,
.section--light .contact-info__block a {
  color: var(--text-on-light);
}

.section--light .section-grid,
.section--light .practice-grid,
.section--light .practice-card,
.section--light .expertise-grid,
.section--light .expertise-card,
.section--light .expertise-grid__spacer,
.section--light .pillar,
.section--light .service-detail,
.section--light .team-stats,
.section--light .team-members,
.section--light .team-member,
.section--light .stat,
.stats.section--light {
  border-color: var(--rule-on-light);
}

.section--light .philosophy-block__image,
.section--light .team-member__photo {
  background: var(--cream-warm);
}

.section--light .team-member__photo {
  border-color: rgba(122, 102, 64, 0.35);
}

.section--light .form-group input,
.section--light .form-group textarea,
.section--light .form-message {
  color: var(--text-on-light);
  border-bottom-color: var(--rule-on-light);
}

.section--light .form-captcha__hint,
.section--light .form-captcha__replay {
  color: var(--muted-on-light);
}

.section--light .form-captcha__replay:hover {
  color: var(--text-on-light);
}

.section--light .form-captcha__display {
  border-color: var(--rule-on-light);
  background: rgba(22, 24, 28, 0.04);
}

.section--light .disclaimer a {
  color: var(--brass-on-light);
}

.section--light .disclaimer a:hover {
  color: var(--text-on-light);
}
