:root {
  --ink: #11110f;
  --paper: #f4f1ea;
  --paper-strong: #fbfaf6;
  --stone: #d8d2c7;
  --muted: #706b63;
  --line: rgba(17, 17, 15, 0.18);
  --accent: #27384d;
  --accent-soft: #dfe5ea;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 82rem;
  --measure: 43rem;
  --s1: .35rem;
  --s2: .65rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.25rem;
  --s6: 3.5rem;
  --s7: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.rule { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.display {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 9vw, 8.5rem);
  letter-spacing: -.055em;
  line-height: .86;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.28;
  max-width: var(--measure);
}
.copy {
  max-width: 42rem;
  color: #393630;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  min-width: 0;
}
.brand__mark {
  font-family: var(--serif);
  font-size: 2.1rem;
  letter-spacing: -.08em;
}
.brand__legal {
  display: none;
  color: var(--muted);
  font-size: .75rem;
}
.nav { display: none; }
.nav__list { display: flex; gap: 1.4rem; align-items: center; }
.nav__link {
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  border-bottom: 1px solid transparent;
  padding-block: .4rem;
}
.nav__link:hover,
.nav__link[aria-current="page"] { border-color: var(--ink); }
.nav-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}
.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after {
  width: 19px;
  height: 1px;
  background: var(--ink);
  content: "";
  display: block;
}
.nav-toggle__lines { position: relative; }
.nav-toggle__lines::before { position: absolute; top: -6px; }
.nav-toggle__lines::after { position: absolute; top: 6px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper-strong);
  padding: 1rem;
}
.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer__close {
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: white;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
}
.nav-drawer__list {
  margin-top: 9vh;
  display: grid;
  gap: .15rem;
}
.nav-drawer__link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10vw, 5rem);
  line-height: 1.02;
  padding: .25rem 0;
}
.nav-drawer__meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.3rem;
  color: #bbb5aa;
  font-size: .8rem;
}

.hero {
  min-height: min(830px, calc(100svh - 76px));
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  padding-block: clamp(4.5rem, 12vw, 9rem) clamp(2rem, 5vw, 4rem);
}
.hero__topline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: clamp(3.2rem, 10vw, 8rem);
}
.hero__location {
  max-width: 18rem;
  text-align: right;
  font-size: .8rem;
  color: var(--muted);
}
.hero__statement {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.2rem;
  max-width: 47rem;
}
.hero__statement strong { font-weight: 600; }

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--ink);
  color: var(--paper-strong);
}
.section--dark .copy,
.section--dark .meta { color: #bdb7ac; }
.section-head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head--split {
  grid-template-columns: 1fr;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
}
.text-link::after { content: "↗"; transition: transform .18s ease; }
.text-link:hover::after { transform: translate(.15rem,-.15rem); }

.matter-grid,
.practice-grid,
.people-grid,
.office-grid,
.insight-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}
.section--dark .card { background: var(--ink); }
.card__meta,
.meta {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.card__title {
  margin-top: .9rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.card__copy { margin-top: 1rem; color: #4c4943; }
.card__link { display: block; height: 100%; }
.card__link:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }

.practice-card {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.practice-card__index { color: var(--muted); font-size: .78rem; }
.practice-card__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.person-card {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.person-card__initials {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7.2rem);
  letter-spacing: -.06em;
  color: color-mix(in srgb, var(--accent) 85%, var(--ink));
}
.person-card__name {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.05;
}
.person-card__role { color: var(--muted); margin-top: .35rem; font-size: .9rem; }

.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
}
.client-strip span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

.thesis {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.thesis__line {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7vw, 7rem);
  line-height: .93;
  letter-spacing: -.045em;
}
.thesis__steps {
  display: grid;
  border-top: 1px solid rgba(255,255,255,.24);
}
.thesis__step {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.thesis__step b { font-weight: 500; }

.page-hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__grid {
  display: grid;
  gap: 2rem;
}
.page-hero__copy {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.detail-row {
  display: grid;
  gap: .7rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.detail-row__label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.detail-row__value { font-family: var(--serif); font-size: 1.35rem; }

.notice {
  border: 1px solid var(--line);
  padding: 1rem;
  font-size: .78rem;
  color: var(--muted);
  background: var(--paper-strong);
}

.cta {
  display: grid;
  gap: 2rem;
  align-items: end;
}
.cta__action {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: .2rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site-footer {
  background: #0d0d0c;
  color: var(--paper-strong);
  padding-block: 3rem 1.8rem;
}
.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}
.site-footer__mark {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .8;
  letter-spacing: -.07em;
}
.site-footer__legal { margin-top: 1.2rem; color: #a7a198; font-size: .8rem; }
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .55rem 1rem;
  font-size: .83rem;
}
.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  justify-content: space-between;
  color: #8f8a82;
  font-size: .72rem;
}

@media (min-width: 640px) {
  .container { width: min(calc(100% - 3rem), var(--max)); }
  .brand__legal { display: inline; }
  .matter-grid,
  .practice-grid,
  .people-grid,
  .office-grid,
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-row { grid-template-columns: minmax(10rem,.35fr) 1fr; align-items: baseline; }
  .site-footer__links { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (min-width: 920px) {
  .site-header__inner { grid-template-columns: auto 1fr; }
  .nav { display: block; justify-self: end; }
  .nav-toggle { display: none; }
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head--split > :last-child { justify-self: end; }
  .matter-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .practice-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .people-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .office-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .insight-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .thesis { grid-template-columns: 1.25fr .75fr; gap: 5rem; }
  .page-hero__grid { grid-template-columns: 1.25fr .75fr; align-items: end; }
  .cta { grid-template-columns: 1fr auto; }
  .site-footer__grid { grid-template-columns: 1.2fr .8fr; }
}

@media (min-width: 1200px) {
  .container { width: min(calc(100% - 5rem), var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

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

html[data-firm-profile="small"] [data-enterprise-only] { display: none !important; }
html[data-firm-profile="small"] .people-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
html[data-firm-profile="small"] .practice-grid,
html[data-firm-profile="small"] .matter-grid,
html[data-firm-profile="small"] .office-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }


/* -- Locations ----------------------------------------------------------- */
.location-feature {
  border-bottom: 1px solid var(--line);
}
.location-feature__media {
  width: 100%;
  max-height: 38rem;
  overflow: hidden;
  background: var(--stone);
}
.location-feature__media img {
  width: 100%;
  height: clamp(18rem, 48vw, 38rem);
  object-fit: cover;
  object-position: center 48%;
}
.location-feature__content {
  padding-block: clamp(2rem, 6vw, 5rem);
  display: grid;
  gap: 2rem;
}
.location-feature__details {
  display: grid;
  gap: 1.25rem;
}
.location-feature__facts {
  margin-top: .75rem;
}
.image-credit {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}
.image-credit a {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.location-list {
  border-top: 1px solid var(--line);
}
.location-row {
  display: grid;
  gap: .65rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.location-row__city {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.035em;
}
.location-row__role {
  font-weight: 600;
  margin-bottom: .35rem;
}
.location-row__region {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (min-width: 920px) {
  .location-feature__content {
    grid-template-columns: .8fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }
  .location-row {
    grid-template-columns: minmax(12rem,.55fr) 1fr auto;
    gap: 2rem;
    align-items: start;
  }
}


/* ==========================================================================
   SUN V2 — Hudson Cobalt + Inter
   Visual thesis: institutional law with architectural/technology energy.
   ========================================================================== */

:root,
html[data-theme="cobalt"] {
  --ink: #07111f;
  --paper: #f3f7fb;
  --paper-strong: #ffffff;
  --stone: #dbe7f2;
  --muted: #607087;
  --line: rgba(7, 17, 31, 0.16);
  --accent: #0a4fb3;
  --accent-strong: #168bff;
  --accent-light: #62c3ff;
  --hero-gradient: linear-gradient(132deg, #061a33 0%, #0a4fb3 44%, #168bff 75%, #62c3ff 112%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.80);
  --serif: "Inter Tight", "Inter", Arial, sans-serif;
  --sans: "Inter", Arial, sans-serif;
}

html[data-theme="lime"] {
  --ink: #102014;
  --paper: #f6faef;
  --paper-strong: #ffffff;
  --stone: #e2efd2;
  --muted: #66725f;
  --line: rgba(16, 32, 20, 0.16);
  --accent: #4f9f29;
  --accent-strong: #73c93a;
  --accent-light: #b8f34b;
  --hero-gradient: linear-gradient(132deg, #102312 0%, #28551c 42%, #63b72d 76%, #b8f34b 116%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.80);
}

html[data-theme="rose"] {
  --ink: #241017;
  --paper: #fbf3f5;
  --paper-strong: #ffffff;
  --stone: #f0dce1;
  --muted: #7a6269;
  --line: rgba(36, 16, 23, 0.16);
  --accent: #9e2740;
  --accent-strong: #d53f5d;
  --accent-light: #ff8093;
  --hero-gradient: linear-gradient(132deg, #2b0a13 0%, #6f172b 42%, #b92e4a 76%, #ff6b82 116%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.80);
}

html[data-theme="lemon"] {
  --ink: #231f10;
  --paper: #fffbed;
  --paper-strong: #ffffff;
  --stone: #f3ebc9;
  --muted: #756d4e;
  --line: rgba(35, 31, 16, 0.17);
  --accent: #9f7c00;
  --accent-strong: #d6a900;
  --accent-light: #ffe65b;
  --hero-gradient: linear-gradient(132deg, #332a00 0%, #735d00 44%, #d6a900 77%, #ffe65b 118%);
  --hero-text: #fffdf5;
  --hero-muted: rgba(255,253,245,.82);
}

html[data-theme="lavender"] {
  --ink: #1c1830;
  --paper: #f8f5ff;
  --paper-strong: #ffffff;
  --stone: #e9e1fa;
  --muted: #6f6784;
  --line: rgba(28, 24, 48, 0.16);
  --accent: #654ac4;
  --accent-strong: #886ce6;
  --accent-light: #c8b7ff;
  --hero-gradient: linear-gradient(132deg, #1d1535 0%, #45317f 44%, #7557d9 77%, #c8b7ff 118%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.81);
}

html[data-theme="dove"] {
  --ink: #1b2026;
  --paper: #f4f6f8;
  --paper-strong: #ffffff;
  --stone: #e2e6ea;
  --muted: #6b737c;
  --line: rgba(27, 32, 38, 0.16);
  --accent: #66707b;
  --accent-strong: #9099a3;
  --accent-light: #d7dce2;
  --hero-gradient: linear-gradient(132deg, #343a42 0%, #59616b 46%, #8b949e 79%, #d7dce2 120%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.80);
}

html[data-theme="ivory"] {
  --ink: #29251d;
  --paper: #fffdf6;
  --paper-strong: #ffffff;
  --stone: #eee8d9;
  --muted: #756f61;
  --line: rgba(41, 37, 29, 0.16);
  --accent: #8f8261;
  --accent-strong: #b7a779;
  --accent-light: #fff2c9;
  --hero-gradient: linear-gradient(132deg, #5a523f 0%, #8f8261 43%, #d8cfae 79%, #fff9e9 120%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.82);
}

html[data-theme="onyx"] {
  --ink: #0b0d10;
  --paper: #f4f5f6;
  --paper-strong: #ffffff;
  --stone: #dfe2e6;
  --muted: #666c75;
  --line: rgba(11, 13, 16, 0.18);
  --accent: #252a31;
  --accent-strong: #4b515b;
  --accent-light: #8f97a3;
  --hero-gradient: linear-gradient(132deg, #050608 0%, #111419 46%, #252a31 78%, #4b515b 118%);
  --hero-text: #ffffff;
  --hero-muted: rgba(255,255,255,.76);
}

body {
  font-family: var(--sans);
  font-feature-settings: "kern", "liga", "calt";
}

h1,
h2,
h3,
.display,
.section-title,
.card__title,
.practice-card__title,
.person-card__initials,
.person-card__name,
.thesis__line,
.detail-row__value,
.site-footer__mark,
.location-row__city {
  font-family: var(--serif);
  font-weight: 650;
}

.display {
  font-weight: 800;
  letter-spacing: -0.075em;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.052em;
}

.lede {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero {
  position: relative;
  background: var(--hero-gradient);
  color: var(--hero-text);
  border-bottom: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.24), transparent 22%),
    linear-gradient(115deg, transparent 0 62%, rgba(255,255,255,.08) 62.15%, transparent 62.3%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero .copy,
.hero .hero__location {
  color: var(--hero-muted);
}

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

.hero .eyebrow {
  color: var(--hero-muted);
}

.site-header {
  background: color-mix(in srgb, var(--paper-strong) 92%, transparent);
  border-bottom-color: var(--line);
}

.brand__mark {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.085em;
}

.card {
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}

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

.section--dark {
  background: var(--ink);
}

/* Theme picker ----------------------------------------------------------- */

.site-header__inner {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.theme-control {
  position: relative;
  justify-self: end;
  z-index: 95;
}

.theme-control__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  padding: .55rem .75rem;
  font-size: .72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}

.theme-control__dot {
  width: .72rem;
  height: .72rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-light) 25%, transparent);
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .55rem);
  width: min(19rem, calc(100vw - 2rem));
  padding: .7rem;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  box-shadow: 0 20px 60px rgba(7,17,31,.18);
}

.theme-menu__title {
  padding: .45rem .5rem .7rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.theme-menu__choice {
  width: 100%;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: .65rem;
  border: 0;
  background: transparent;
  padding: .55rem .5rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.theme-menu__choice:hover,
.theme-menu__choice[aria-pressed="true"] {
  background: var(--stone);
}

.theme-menu__swatch {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
}

/* Locations gallery ----------------------------------------------------- */

.locations-intro {
  padding-bottom: 2rem;
}

.location-gallery {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-card {
  background: var(--paper);
  min-width: 0;
}

.location-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone);
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.03);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .25s ease;
}

.location-card:hover .location-card__media img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.04);
}

.location-card__body {
  padding: clamp(1.25rem, 3vw, 2.1rem);
  display: grid;
  gap: 1rem;
}

.location-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.location-card__city {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.location-card__label {
  color: var(--accent);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  white-space: nowrap;
}

.location-card__address {
  font-weight: 600;
  line-height: 1.45;
}

.location-card__description {
  color: #465365;
  max-width: 42rem;
}

.location-card__credit {
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.45;
}

.location-card__credit a {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.location-card--featured {
  grid-column: 1 / -1;
}

.location-card--featured .location-card__media {
  aspect-ratio: 16 / 7;
}

@media (min-width: 760px) {
  .location-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card--featured .location-card__body {
    grid-template-columns: .75fr 1.25fr;
    align-items: start;
    gap: 3rem;
  }
}

@media (min-width: 1100px) {
  .location-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-card--featured {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
  }

  .location-card--featured .location-card__media {
    aspect-ratio: auto;
    min-height: 33rem;
  }

  .location-card--featured .location-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
  }
}

@media (max-width: 639px) {
  .theme-control__button span:last-child {
    display: none;
  }

  .theme-control__button {
    padding-inline: .7rem;
  }

  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}


/* ==========================================================================
   SUN polish pass — sharper type + natural responsive imagery
   ========================================================================== */

html {
  text-rendering: optimizeLegibility;
}

body {
  line-height: 1.5;
  letter-spacing: -0.006em;
  -moz-osx-font-smoothing: grayscale;
}

.copy,
.card__copy,
.page-hero__copy,
.location-card__description {
  color: color-mix(in srgb, var(--ink) 82%, var(--paper));
  line-height: 1.5;
}

.copy,
.page-hero__copy {
  max-width: 39rem;
}

.card__copy,
.location-card__description {
  font-size: 0.98rem;
}

.display {
  letter-spacing: -0.082em;
  line-height: 0.84;
}

.section-title {
  letter-spacing: -0.058em;
  line-height: 0.96;
}

.card__title {
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.eyebrow,
.meta,
.card__meta,
.location-card__label {
  letter-spacing: 0.105em;
}

.section--dark .copy,
.section--dark .meta {
  color: rgba(255,255,255,.74);
}

.location-card__media {
  aspect-ratio: 3 / 2;
  background: var(--stone);
}

.location-card--featured .location-card__media {
  aspect-ratio: 16 / 9;
}

.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: none;
  image-rendering: auto;
  backface-visibility: hidden;
}

.location-card:hover .location-card__media img {
  transform: none;
  filter: none;
}

.location-card__body {
  gap: .85rem;
}

.location-card__address {
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (min-width: 1100px) {
  .location-card--featured .location-card__media {
    aspect-ratio: auto;
    min-height: 30rem;
  }
}


/* ==========================================================================
   SUN responsive pass — mobile-first polish (Issue #10)
   Alignment system on phones: left-aligned reading text inside a wider gutter,
   short hero/CTA moments become full-width, centered buttons.
   ========================================================================== */

p, li { text-wrap: pretty; }
h1, h2, h3, .lede { text-wrap: balance; }

.text-link,
.cta__action { -webkit-tap-highlight-color: transparent; }

.nav-drawer:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-bottom));
}
.nav-drawer__list { margin-top: clamp(1rem, 5svh, 3rem); }
.nav-drawer__link {
  padding-block: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-size: clamp(1.9rem, 8.5vw, 3.4rem);
}
.nav-drawer__meta {
  position: static;
  margin-top: auto;
  padding-top: 2rem;
}
.nav-drawer__close { cursor: pointer; }
.nav-toggle,
.theme-control__button { cursor: pointer; }

.theme-control__label--short { display: none; }

@media (min-width: 920px) {
  .nav-drawer { display: none !important; }
}

@media (max-width: 639px) {
  .container { width: min(calc(100% - 2.5rem), var(--max)); }

  /* Header: three controls, one row, 44px targets */
  .site-header__inner { min-height: 68px; gap: .5rem; }
  .brand__mark { font-size: 2rem; }
  .nav-toggle,
  .theme-control__button { min-height: 44px; }
  .theme-control__button { padding-inline: .85rem; gap: .5rem; font-size: .7rem; }
  .theme-control__button span.theme-control__label--short { display: none; }
  .theme-control__button span.theme-control__label--full { display: inline; }
  .theme-control { position: static; }
  .theme-menu {
    left: 1.25rem;
    right: 1.25rem;
    top: calc(100% + .5rem);
    width: auto;
    max-height: calc(100svh - 6rem);
    overflow-y: auto;
    padding: .85rem;
  }
  .theme-menu__title { padding: .1rem .25rem .7rem; }
  .theme-menu:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
  }
  .theme-menu__title { grid-column: 1 / -1; }
  .theme-menu__choice {
    min-height: 48px;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    padding: .5rem .6rem;
    border: 1px solid var(--line);
  }
  .theme-menu__swatch { width: 2.2rem; }

  /* Type */
  body { font-size: 1.0625rem; line-height: 1.6; }
  .display { font-size: clamp(5.5rem, 34vw, 8rem); line-height: .86; }
  .section-title { font-size: clamp(2.1rem, 9.4vw, 2.9rem); line-height: 1.02; letter-spacing: -.04em; }
  .lede { font-size: clamp(1.35rem, 6vw, 1.65rem); line-height: 1.3; }
  .copy, .page-hero__copy, .card__copy, .location-card__description { line-height: 1.6; }
  .copy, .page-hero__copy { font-size: 1.0625rem; }
  .card__title { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.03em; }
  .eyebrow { font-size: .72rem; line-height: 1.5; }

  /* Rhythm */
  .section { padding-block: 3.5rem; }
  .section-head { gap: 1rem; margin-bottom: 2rem; }
  .section-head--split { gap: 1.5rem; }
  .page-hero { padding-block: 3.5rem 3rem; }
  .page-hero__grid { gap: 1.5rem; }

  /* Hero */
  .hero { min-height: auto; }
  .hero__inner { padding-block: 3.5rem 2.5rem; }
  .hero__topline { flex-direction: column; gap: .85rem; margin-bottom: 3rem; }
  .hero__location { text-align: left; max-width: none; line-height: 1.5; }
  .hero__statement { gap: 1.25rem; margin-top: 1.75rem; }

  /* CTAs and section links share one button treatment */
  .text-link,
  .cta__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    max-width: 24rem;
    min-height: 52px;
    padding: .75rem 1.25rem;
    border: 1px solid currentColor;
    border-bottom-width: 1px;
    font-size: .78rem;
    letter-spacing: .1em;
    text-align: center;
    line-height: 1.2;
  }
  .hero .text-link { border-color: color-mix(in srgb, var(--hero-text) 70%, transparent); margin-top: .5rem; }
  .cta { gap: 1.75rem; }

  /* Cards */
  .card { padding: 1.5rem 1.35rem; }
  .practice-card { min-height: 8.5rem; gap: 2rem; }
  .practice-card__title { font-size: 1.65rem; line-height: 1.08; letter-spacing: -.03em; }
  .person-card { min-height: 0; gap: 2rem; }
  .person-card__initials { font-size: 3.75rem; line-height: .9; }
  .person-card__name { font-size: 1.6rem; }
  .person-card__role { font-size: .95rem; line-height: 1.5; }
  .card__meta, .meta { line-height: 1.45; }
  .client-strip { gap: .6rem 1.25rem; padding-top: 1.25rem; }
  .client-strip span:first-child { flex-basis: 100%; }

  .thesis { gap: 2.25rem; }
  .thesis__line { font-size: clamp(2.7rem, 13.5vw, 3.6rem); line-height: .96; }
  .thesis__step { grid-template-columns: 2rem minmax(0, 1fr); padding-block: 1.1rem; }

  .detail-row__value { font-size: 1.25rem; }
  .notice { padding: 1.1rem 1.15rem; line-height: 1.6; font-size: .8rem; }

  /* Locations: image, city/role, address, description, credit */
  .locations-intro { padding-bottom: 1rem; }
  .location-card__body { padding: 1.5rem 1.35rem 1.75rem; gap: 1rem; }
  .location-card__top { display: grid; gap: .4rem; }
  .location-card__top .meta { order: 2; }
  .location-card__label { white-space: normal; line-height: 1.4; margin-bottom: .4rem; }
  .location-card__city { font-size: 2.1rem; line-height: 1; }
  .location-card__address { font-size: 1rem; line-height: 1.5; }
  .location-card__description { font-size: 1rem; }
  .location-card__credit { font-size: .75rem; line-height: 1.55; padding-top: .35rem; border-top: 1px solid var(--line); }
  .location-card--featured .location-card__media { aspect-ratio: 3 / 2; }

  /* Footer */
  .site-footer { padding-block: 3rem 2rem; }
  .site-footer__grid { gap: 2.5rem; }
  .site-footer__mark { font-size: 4.75rem; line-height: .85; }
  .site-footer__legal { font-size: .875rem; line-height: 1.5; margin-top: 1rem; }
  .site-footer__legal + .site-footer__legal { margin-top: .35rem; }
  .site-footer__links { gap: 0 1.5rem; font-size: .95rem; }
  .site-footer__links a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .site-footer__bottom { flex-direction: column; gap: .6rem; margin-top: 2.25rem; font-size: .78rem; line-height: 1.5; }
}

/* Short label for the theme button when space is tight */
@media (max-width: 399px) {
  .theme-control__button span.theme-control__label--full { display: none; }
  .theme-control__button span.theme-control__label--short { display: inline; }
  .nav-toggle { width: 44px; }
}

/* 640-919: tablets keep the desktop composition with more breathing room */
@media (min-width: 640px) and (max-width: 919px) {
  .text-link, .cta__action { min-height: 44px; }
  .site-footer__links a { padding-block: .35rem; display: inline-block; }
  .location-card__label { white-space: normal; }
  .hero__location { max-width: 16rem; }
}

/* Large phones: keep text columns from stretching */
@media (min-width: 480px) and (max-width: 639px) {
  .copy, .page-hero__copy, .card__copy { max-width: 34rem; }
}

@media (max-width: 399px) {
  .theme-menu__choice { grid-template-columns: 1.7rem minmax(0, 1fr); gap: .5rem; padding-inline: .5rem; font-size: .92rem; }
  .theme-menu__swatch { width: 1.7rem; height: 1.2rem; }
}

/* Figures carry browser-default side margins; remove so images run full width */
.location-card__media { margin: 0; }
.eyebrow + h1, .eyebrow + h2, .eyebrow + .section-title { margin-top: .75rem; }

@media (max-width: 639px) {
  .section-title { letter-spacing: -.028em; line-height: 1.06; }
  .card__title, .practice-card__title { letter-spacing: -.02em; }
  .location-card__city { letter-spacing: -.03em; }
  .thesis__line { letter-spacing: -.035em; }
  .display { letter-spacing: -.07em; }
  .site-footer__mark { letter-spacing: -.06em; }
}

@media (max-width: 639px) {
  .location-card__body { padding-inline: 1.25rem; }
}


/* ==========================================================================
   Polish: link arrows + hamburger centering
   ========================================================================== */

/* The "↗" glyph renders as a colored emoji on some phones. Draw it instead,
   so it always follows the link's text color. */
.text-link::after {
  content: "";
  flex: none;
  width: .85em;
  height: .85em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3 9L9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3 9L9 3M4 3h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-link { color: var(--ink); }
.hero .text-link { color: var(--hero-text); }
.section--dark .text-link { color: var(--paper-strong); }

/* Hamburger: one box, three 2px bars drawn as gradients, centered by flex */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle__lines,
.nav-toggle__lines::before,
.nav-toggle__lines::after { content: none; }
.nav-toggle__lines {
  display: block;
  position: static;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
}


/* Close button: drawn X, centered in its box (the "×" glyph sits low and off-center) */
.nav-drawer__close {
  position: relative;
  display: block;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
}
.nav-drawer__close::before,
.nav-drawer__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  background: var(--paper-strong);
}
.nav-drawer__close::before { transform: rotate(45deg); }
.nav-drawer__close::after { transform: rotate(-45deg); }


/* ==========================================================================
   Mobile drawer as a server rack: each page is a rack unit with a status LED.
   The current page reads "ONLINE" with a lit LED and a lit faceplate.
   ========================================================================== */

.nav-drawer:focus { outline: none; }

.nav-drawer__list {
  counter-reset: unit;
  gap: 0;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.025);
}
.nav-drawer__list > li { counter-increment: unit; }
.nav-drawer__list > li + li { border-top: 1px solid rgba(255,255,255,.14); }

.nav-drawer__link {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: .4rem 1.1rem;
  border-bottom: 0;
  font-size: clamp(1.7rem, 7.6vw, 3rem);
  letter-spacing: -.03em;
  /* ventilated faceplate on the right edge */
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 2px, transparent 2px 8px);
  background-size: 5.5rem 100%;
  background-position: right center;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
}

/* status LED */
.nav-drawer__link::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

/* unit label */
.nav-drawer__link::after {
  content: "U" counter(unit, decimal-leading-zero);
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.5);
}

.nav-drawer__link:active { background-color: rgba(255,255,255,.07); }

.nav-drawer__link[aria-current="page"] {
  background-color: transparent;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-strong) 38%, transparent), color-mix(in srgb, var(--accent-strong) 6%, transparent)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 8px);
  background-size: 100% 100%, 5.5rem 100%;
  background-position: left center, right center;
  background-repeat: no-repeat;
  box-shadow: inset 3px 0 0 var(--accent-light);
}
.nav-drawer__link[aria-current="page"]::before {
  background: var(--accent-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-light) 24%, transparent), 0 0 14px var(--accent-light);
  animation: rack-led 2.4s ease-in-out infinite;
}
.nav-drawer__link[aria-current="page"]::after {
  content: "Online";
  text-transform: uppercase;
  color: var(--accent-light);
}

.nav-drawer__link:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -4px;
}

@keyframes rack-led {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-drawer__link[aria-current="page"]::before { animation: none; }
}


/* ==========================================================================
   Theme contrast pass: readable text in all eight themes
   ========================================================================== */

html[data-theme="lime"]  { --accent-text: #3a7d17; }
html[data-theme="lemon"] { --accent-text: #7d6100; }
html[data-theme="ivory"] { --accent-text: #6f6443; }
html[data-theme="dove"]  { --muted: #5d656e; }
.location-card__label { color: var(--accent-text, var(--accent)); }

/* Muted greys are tuned for light paper; use a light tint on dark sections */
.section--dark .card__meta,
.section--dark .meta,
.section--dark .detail-row__label,
.section--dark .practice-card__index { color: rgba(255,255,255,.72); }

/* Hero scrim: a dark veil under the hero text so white copy holds contrast on
   the bright end of every gradient. Strength is set per theme. */
:root { --hero-scrim: .46; }
html[data-theme="lime"]     { --hero-scrim: .66; }
html[data-theme="rose"]     { --hero-scrim: .32; }
html[data-theme="lemon"]    { --hero-scrim: .72; }
html[data-theme="lavender"] { --hero-scrim: .4; }
html[data-theme="dove"]     { --hero-scrim: .7; }
html[data-theme="ivory"]    { --hero-scrim: .82; }
html[data-theme="onyx"]     { --hero-scrim: 0; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ink) calc(var(--hero-scrim) * 95%), transparent) 0%,
    color-mix(in srgb, var(--ink) calc(var(--hero-scrim) * 100%), transparent) 100%);
}
.hero { --hero-muted: color-mix(in srgb, var(--hero-text) 90%, transparent); }
@media (min-width: 768px) {
  .hero::before {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--ink) calc(var(--hero-scrim) * 100%), transparent) 0%,
      color-mix(in srgb, var(--ink) calc(var(--hero-scrim) * 80%), transparent) 55%,
      color-mix(in srgb, var(--ink) calc(var(--hero-scrim) * 100%), transparent) 100%);
  }
}

/* The flex display set on .nav-toggle for centering must not show it on desktop */
@media (min-width: 920px) {
  .nav-toggle { display: none; }
}

/* About: closing thesis line under the merger story */
.about-line { margin-top: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }


/* ==========================================================================
   SUN* identity: wordmark image (follows text color via mask), compass star
   ========================================================================== */

.wordmark {
  display: block;
  aspect-ratio: 1400 / 380;
  background-color: currentColor;
  -webkit-mask: url("../assets/brand/sun-wordmark-black.png") center / contain no-repeat;
  mask: url("../assets/brand/sun-wordmark-black.png") center / contain no-repeat;
}

.brand { align-items: center; }
.brand__mark.wordmark {
  width: 8rem;
  font-size: 0;
  letter-spacing: 0;
}

.nav-drawer__top .brand__mark.wordmark { width: 9.5rem; }

.wordmark--hero {
  width: min(100%, 44rem);
}
.display:has(> .wordmark--hero) { line-height: 0; font-size: 0; }

.site-footer__mark.wordmark {
  width: min(100%, 30rem);
  line-height: 0;
  font-size: 0;
}

@media (max-width: 399px) {
  .brand__mark.wordmark { width: 6.4rem; }
}


/* ==========================================================================
   Small profile — Will Sun / Seoul-led boutique preview
   ========================================================================== */

html[data-firm-profile="small"] .small-profile-location {
  display: block;
}

html:not([data-firm-profile="small"]) .small-profile-location {
  display: none;
}

html[data-firm-profile="small"] .people-grid {
  grid-template-columns: minmax(0, min(100%, 32rem));
  background: transparent;
  border: 0;
}

html[data-firm-profile="small"] .people-grid .person-card {
  min-height: 18rem;
  border: 1px solid var(--line);
}

html[data-firm-profile="small"] .practice-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

html[data-firm-profile="small"] .location-gallery {
  grid-template-columns: 1fr;
}

html[data-firm-profile="small"] .location-card--small-featured {
  grid-column: 1 / -1;
}

html[data-firm-profile="small"] .location-card--small-featured .location-card__media {
  aspect-ratio: 16 / 9;
}

@media (min-width: 760px) {
  html[data-firm-profile="small"] .location-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-firm-profile="small"] .location-card--small-featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  html[data-firm-profile="small"] .location-card--small-featured {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
  }

  html[data-firm-profile="small"] .location-card--small-featured .location-card__media {
    aspect-ratio: auto;
    min-height: 28rem;
  }

  html[data-firm-profile="small"] .location-card--small-featured .location-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
  }
}


/* ==========================================================================
   Small profile hard guardrails
   The preview is intentionally a one-lawyer, three-office boutique.
   ========================================================================== */

html[data-firm-profile="small"] .people-grid > .person-card:not(:first-child) {
  display: none !important;
}

html[data-firm-profile="small"] .practice-grid > .practice-card:nth-child(n + 5) {
  display: none !important;
}

html[data-firm-profile="small"] section[aria-labelledby="featured-heading"] {
  display: none !important;
}

html[data-firm-profile="small"] .location-gallery > .location-card:first-child,
html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(n + 5) {
  display: none !important;
}

html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(2) {
  grid-column: 1 / -1;
}

html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(2) .location-card__media {
  aspect-ratio: 16 / 9;
}

@media (min-width: 1100px) {
  html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1.15fr .85fr;
  }

  html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(2) .location-card__media {
    aspect-ratio: auto;
    min-height: 28rem;
  }

  html[data-firm-profile="small"] .location-gallery > .location-card:nth-child(2) .location-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
  }
}


/* ==========================================================================
   Partner portraits: square photo on top of each person card, text below
   ========================================================================== */

.person-card--photo {
  padding: 0;
  gap: 0;
  min-height: 0;
  justify-content: flex-start;
  overflow: hidden;
}
.person-card__photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--stone);
}
.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.person-card__body {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.person-card--photo .person-card__role { margin-top: .4rem; }

@media (max-width: 639px) {
  .person-card--photo { gap: 0; }
  .person-card__body { padding: 1.35rem 1.35rem 1.6rem; }
}
