@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy: #172d4a;
  --navy-deep: #142841;
  --cream: #f7f3ea;
  --cream-dark: #efe9dc;
  --sand: #e4d9c9;
  --maroon: #9c3b44;
  --maroon-dark: #7e2937;
  --ink-soft: #686b6f;
  --line: #d5cdbd;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.6;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 1000;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
}

.font-display { font-family: var(--display); }
.font-mono { font-family: var(--mono); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-header .navbar { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.navbar-brand { max-width: 100%; color: #f5efdf; }
.navbar-brand:hover { color: #f5efdf; }
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 9.5rem;
  min-height: 3.8rem;
  align-items: center;
  justify-content: flex-start;
}
.brand-mark::before {
  display: block;
  width: 100%;
  height: 3.8rem;
  background: url('../assets/logo-mhs.png') center / contain no-repeat;
  content: '';
}
.brand-mark > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.brand-box {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--maroon);
  font: 600 1.25rem var(--display);
}
.brand-name {
  display: block;
  white-space: nowrap;
  font: 600 1.125rem/1 var(--display);
}
.brand-name strong { color: #dca094; }
.brand-subtitle {
  display: block;
  margin-top: .3rem;
  color: #d9cdb8;
  font: .5rem/1 var(--mono);
  letter-spacing: .18em;
}
.navbar-nav .nav-link {
  color: rgba(247, 243, 234, .82);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #f1c7a6; }
.navbar-toggler {
  border-color: rgba(214, 182, 160, .7);
  border-radius: 0;
  color: #f5efdf;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(156, 59, 68, .25); }
.btn { border-radius: 0; }
.btn-maroon {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff7ec;
}
.btn-maroon:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff7ec; }
.btn-outline-cream {
  border: 1px solid rgba(214, 182, 160, .7);
  color: #f5efdf;
}
.btn-outline-cream:hover { background: var(--maroon); border-color: var(--maroon); color: #fff7ec; }
.link-line { color: var(--maroon); text-decoration: none; }
.link-line:hover { color: var(--maroon-dark); text-decoration: underline; text-underline-offset: .35rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #e2a591;
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  background: var(--navy);
  color: #f5efdf;
}
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item { min-height: max(720px, 100svh); }
.hero .carousel-item {
  position: relative;
  background-color: var(--navy);
}
.hero-slide-backdrop {
  position: absolute;
  z-index: 0;
  inset: -1.5rem;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  filter: blur(24px);
  opacity: .38;
  transform: scale(1.08);
}
.hero-slide-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}
.hero-slide-image-mobile { display: none; }
.hero .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(17,36,61,.94), rgba(17,36,61,.76) 42%, rgba(17,36,61,.24));
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: max(720px, 100svh);
  align-items: end;
  padding: 9rem 0 6rem;
}
.hero-content > div, .page-hero-content > div { width: 100%; }
.eyebrow {
  color: #d4948c;
  font: .65rem var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 760px;
  margin-top: 1.5rem;
  font: 500 clamp(2.8rem, 6.2vw, 4.65rem)/1 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-copy { max-width: 540px; color: #deddd3; font-size: .96rem; line-height: 1.75; }
.carousel-indicators { z-index: 4; justify-content: start; bottom: 2rem; margin-left: 0; }
.carousel-indicators [data-bs-target] { width: 3.5rem; height: .2rem; margin-right: .45rem; margin-left: 0; background-color: #8491a0; border: 0; opacity: 1; }
.carousel-indicators .active { background-color: #d7a18b; }

.page-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--navy);
  color: #f5efdf;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,39,65,.98), rgba(18,39,65,.62), rgba(18,39,65,.25));
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  background: var(--navy);
  opacity: .4;
}
.page-hero-content { position: relative; z-index: 1; display: flex; min-height: 480px; align-items: end; padding: 9rem 0 5rem; }
.page-hero h1 { max-width: 700px; margin-top: 1.25rem; font: 500 clamp(2.75rem, 5.6vw, 4.2rem)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.page-hero p { max-width: 620px; margin-top: 1.5rem; color: #d6d8d1; font-size: .95rem; line-height: 1.75; }

.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: #f5efdf; }
.section-title { max-width: 720px; font: 500 clamp(2.2rem, 4vw, 3.25rem)/1.1 var(--display); letter-spacing: -.02em; }
.section-copy { max-width: 620px; color: var(--ink-soft); font-size: .94rem; line-height: 1.8; }
.stat { border-top: 1px solid #c9c1b1; padding-top: 1.4rem; }
.stat-value { font: 500 2.5rem var(--display); }
.stat-label { max-width: 110px; margin-top: .5rem; color: #70706f; font-size: .75rem; line-height: 1.5; }
.practice-card {
  display: block;
  height: 100%;
  min-height: 220px;
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  transition: .25s ease;
}
.practice-card:hover { background: var(--navy); color: #f5efdf; transform: translateY(-3px); }
.practice-number { color: var(--maroon); font: .65rem var(--mono); }
.practice-icon { color: var(--maroon); font-size: 1.25rem; }
.practice-card h3 { margin-top: 3.5rem; font: 500 1.55rem var(--display); }
.practice-card p { margin: .75rem 0 0; color: #777672; font-size: .85rem; line-height: 1.65; }
.practice-card:hover p { color: #c8c9c2; }
.practice-card:focus-visible { color: var(--navy); }
.process-card { border-top: 1px solid #56667a; padding-top: 1.25rem; }
.process-card h3 { margin-top: 2rem; font: 500 1.35rem var(--display); }
.process-card p { color: #c4c5bf; font-size: .9rem; line-height: 1.7; }
.portrait { aspect-ratio: .88; overflow: hidden; background: #d9d4c9; }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.team-card:hover .portrait img { transform: scale(1.05); }
.monogram {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%, #bf8f7e, #5c3340 70%);
  color: #f5efdf;
  font: 4rem var(--display);
}
.team-card h2 { margin-top: 1rem; font: 500 1.25rem var(--display); }
.team-role { margin-top: .35rem; color: var(--maroon); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.team-note { margin-top: .75rem; color: #85837c; font-size: .65rem; }
.office-image { min-height: 400px; width: 100%; object-fit: cover; }
.location-photo-stack { position: relative; min-height: 430px; margin-bottom: 1.5rem; }
.location-photo-stack .office-image { height: 400px; }
.location-photo-secondary {
  position: absolute;
  right: 1rem;
  bottom: 0;
  width: 38%;
  height: 150px;
  object-fit: cover;
  border: 8px solid var(--cream);
  box-shadow: 0 12px 26px rgba(23, 45, 74, .18);
}
.office-card { border-top: 2px solid var(--navy); padding-top: 1.75rem; }
.office-card h2 { font: 500 2.25rem var(--display); }
.office-card p { color: var(--ink-soft); line-height: 1.8; }
.partner-section { background: #fffdf9; }
.partner-intro { max-width: 450px; }
.partner-intro .section-title { max-width: 420px; }
.partner-carousel { position: relative; padding: 0 3.5rem; }
.partner-card {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr;
  min-height: 300px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(213, 205, 189, .7);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(23, 45, 74, .1);
}
.partner-photo { min-height: 300px; background: var(--cream-dark); }
.partner-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--cream-dark); }
.partner-info { display: flex; flex-direction: column; justify-content: center; padding: 2rem 2.25rem; }
.partner-info h3 { max-width: 520px; color: var(--navy); font: 500 clamp(1.35rem, 2vw, 1.9rem)/1.2 var(--display); }
.partner-role { color: #b18725; font-size: .88rem; font-weight: 600; letter-spacing: .04em; }
.partner-divider { width: 100%; height: 1px; margin: 1.25rem 0 1.2rem; background: #e6d9b7; }
.partner-label { color: var(--navy); font-size: .8rem; font-weight: 700; }
.partner-info p:not(.partner-role):not(.partner-label) { margin: .2rem 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.65; }
.partner-control {
  position: absolute;
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  border-radius: 50%;
  background: #d4a83e;
  color: #fff;
  transform: translateY(-50%);
  box-shadow: 0 8px 18px rgba(128, 87, 9, .16);
  transition: transform .25s ease, background .25s ease;
}
.partner-control:hover { background: #bd8d25; transform: translateY(-50%) scale(1.06); }
.partner-control.prev { left: 0; }
.partner-control.next { right: 0; }
.partner-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.partner-dots button { width: .45rem; height: .45rem; padding: 0; border: 0; border-radius: 50%; background: #d4c39e; }
.partner-dots button.active { width: 1.35rem; border-radius: 1rem; background: #b18725; }
.case-feature-carousel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 18px 45px rgba(23, 45, 74, .14);
}
.case-feature-slide {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.case-feature-backdrop {
  position: absolute;
  z-index: 0;
  inset: -1.5rem;
  background-image: var(--case-image);
  background-position: center;
  background-size: cover;
  filter: blur(26px);
  opacity: .35;
  transform: scale(1.08);
}
.case-feature-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.case-feature-slide::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 31, 52, .2), rgba(14, 31, 52, .04) 70%);
  pointer-events: none;
}
.case-feature-panel {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(52%, 520px);
  padding: 2rem 2.25rem;
  background: #d2a44a;
  color: #fffdf9;
}
.case-feature-panel .eyebrow { color: rgba(255, 253, 249, .76); }
.case-feature-panel h2 { max-width: 440px; margin-top: .8rem; font: 500 clamp(1.5rem, 3vw, 2.25rem)/1.18 var(--display); }
.case-feature-panel p { max-width: 460px; margin: .8rem 0 0; color: rgba(255, 253, 249, .88); font-size: .9rem; line-height: 1.65; }
.case-control,
.lightbox-control {
  position: absolute;
  z-index: 4;
  display: flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 40, 65, .72);
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.case-control:hover,
.lightbox-control:hover { background: var(--maroon); color: #fff; transform: scale(1.06); }
.case-control.prev { top: 1.5rem; right: 5rem; }
.case-control.next { top: 1.5rem; right: 1.5rem; }
.case-carousel-indicators {
  position: absolute;
  z-index: 4;
  right: 1.5rem;
  bottom: 1.5rem;
  left: auto;
  display: flex;
  gap: .45rem;
}
.case-carousel-indicators button {
  width: 2.25rem;
  height: .2rem;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .55);
}
.case-carousel-indicators button.active { background: #f1c7a6; }
.case-intro { max-width: 710px; }
.case-list-heading { display: flex; align-items: baseline; gap: .85rem; margin-bottom: 1.5rem; }
.case-list-heading .eyebrow { color: var(--maroon); }
.case-list-heading h2 { margin: 0; font: 500 2rem/1.2 var(--display); }
.case-list { margin: 0; padding: 0; list-style: none; counter-reset: case; }
.case-list li {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  min-height: 92px;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
}
.case-list li::before {
  position: absolute;
  z-index: 1;
  top: 1.25rem;
  left: .45rem;
  min-width: 1.8rem;
  padding: .12rem .28rem;
  border-radius: .2rem;
  background: rgba(23, 45, 74, .86);
  color: #fff;
  content: counter(case, decimal-leading-zero);
  font: .58rem var(--mono);
  line-height: 1.5;
  text-align: center;
}
.case-thumb {
  width: 92px;
  height: 74px;
  border-radius: .35rem;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(23, 45, 74, .12);
}
.case-list.non-litigation { counter-reset: case; }
.case-list.non-litigation li::before { counter-increment: case; }
.case-note { padding: 1.25rem 1.5rem; background: var(--cream-dark); color: var(--ink-soft); font-size: .85rem; line-height: 1.7; }
.gallery-item { position: relative; display: block; overflow: hidden; width: 100%; cursor: pointer; background: #d9d4c9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.08); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-card {
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(213, 205, 189, .9) !important;
  background: #e5e3dc;
  box-shadow: 0 10px 24px rgba(23, 45, 74, .07);
  font: inherit;
  text-align: left;
}
.gallery-card img {
  object-fit: contain;
  background: #e5e3dc;
}
.gallery-card:hover { box-shadow: 0 16px 30px rgba(23, 45, 74, .14); }
.gallery-card:hover img { transform: none; }
.gallery-item.tall { min-height: 520px; }
.gallery-item.standard { min-height: 260px; }
.gallery-label { position: absolute; right: 0; bottom: 0; left: 0; padding: 1rem; background: linear-gradient(transparent, rgba(20,40,65,.9)); color: #fff; font-size: .75rem; }
.lightbox { background: rgba(13, 25, 42, .94); }
.lightbox .modal-dialog { width: 100%; max-width: none; margin: 0; }
.lightbox .modal-content { min-height: 100svh; background: rgba(13, 25, 42, .97); border: 0; }
.lightbox .modal-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; }
.lightbox .modal-title { flex: 1; }
.lightbox-meta { font: .7rem var(--mono); letter-spacing: .12em; }
.lightbox .modal-body { position: relative; display: flex; min-height: 0; align-items: center; justify-content: center; padding: 1rem 5.5rem 2.5rem; }
.lightbox-frame { display: flex; width: 100%; height: 100%; min-height: 0; align-items: center; justify-content: center; }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 7.5rem); object-fit: contain; }
.lightbox-control { top: 50%; transform: translateY(-50%); }
.lightbox-control:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-control.prev { left: 1.5rem; }
.lightbox-control.next { right: 1.5rem; }
.contact-list a { color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--maroon); }
.form-control { border: 0; border-bottom: 1px solid #bcb4a7; border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; color: var(--navy); }
.form-control:focus { border-color: var(--maroon); box-shadow: none; background: transparent; }
.form-label { color: #646765; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.floating-whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  width: 3.2rem;
  height: 3.2rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(20,40,65,.18);
  font-size: 1.35rem;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  animation: whatsapp-pulse 2.8s ease-in-out infinite;
}
.floating-whatsapp:hover { background: #1ebe57; color: #fff; transform: translateY(-4px) scale(1.04); box-shadow: 0 14px 28px rgba(37, 211, 102, .35); }
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: -.35rem;
  border: 1px solid rgba(37, 211, 102, .25);
  border-radius: 50%;
  animation: whatsapp-ring 2.8s ease-out infinite;
}
.floating-whatsapp i { position: relative; z-index: 1; }
footer { background: var(--navy-deep); color: #f2ecde; }
footer a { color: #ded9cd; text-decoration: none; }
footer a:hover { color: #f0c8ad; }
.footer-heading { color: #c9857d; font: .65rem var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.footer-copy { max-width: 320px; color: #bfbeae; font-size: .9rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #334862; color: #8f9baa; font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-bottom .container-xxl { flex-wrap: wrap; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { transition-delay: calc(var(--reveal-index, 0) * 70ms); }
/* Team page only: never hide the directory while the optional reveal script loads. */
.team-page .reveal,
.team-page .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.team-page .team-card {
  animation: team-card-enter .65s cubic-bezier(.22, 1, .36, 1) both;
}
.team-page .team-card:nth-child(2n) { animation-delay: .08s; }
.team-page .team-card:nth-child(3n) { animation-delay: .16s; }
.team-page .team-card:nth-child(4n) { animation-delay: .24s; }
@keyframes team-card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(20,40,65,.18), 0 0 0 0 rgba(37, 211, 102, .28); }
  55% { box-shadow: 0 10px 25px rgba(20,40,65,.18), 0 0 0 9px rgba(37, 211, 102, 0); }
}
@keyframes whatsapp-ring {
  0% { opacity: .8; transform: scale(.8); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-nav { gap: .55rem !important; }
  .navbar-nav .nav-link { font-size: .58rem; letter-spacing: .08em; }
  .navbar-nav .btn { font-size: .58rem; padding-right: .65rem !important; padding-left: .65rem !important; }
}

@media (max-width: 991.98px) {
  .site-header .navbar { padding-top: 1rem; padding-bottom: 1rem; }
  .brand-mark { width: 9rem; min-height: 3.3rem; }
  .brand-mark::before { height: 3.3rem; }
  .navbar-collapse { margin-top: .75rem; padding: .75rem 1rem; background: rgba(23,45,74,.98); border: 1px solid #41536a; box-shadow: 0 1rem 2rem rgba(8,20,37,.2); }
  .navbar-nav .nav-link { padding: .7rem 0; border-bottom: 1px solid #41536a; }
  .hero, .hero .carousel, .hero .carousel-inner, .hero .carousel-item, .hero-content { min-height: max(680px, 100svh); }
  .hero-slide-image-desktop { display: none; }
  .hero-slide-image-mobile { display: block; object-position: center center; }
  .hero-content { padding-top: 8rem; padding-bottom: 5rem; }
  .hero h1 { max-width: 700px; }
  .page-hero-content { padding-top: 8rem; }
}
@media (max-width: 575.98px) {
  .container-xxl { --bs-gutter-x: 1.5rem; }
  .brand-mark { width: 8.25rem; min-height: 3rem; }
  .brand-mark::before { height: 3rem; }
  .navbar-toggler { padding: .45rem .6rem; }
  .section { padding: 4rem 0; }
  .section-lg { padding: 5.25rem 0; }
  .hero, .hero .carousel, .hero .carousel-inner, .hero .carousel-item, .hero-content { min-height: max(680px, 100svh); }
  .hero-slide-image-mobile { object-position: center center; }
  .hero-content, .page-hero-content { padding-right: .75rem; padding-left: .75rem; }
  .hero-content { padding-top: 7.25rem; padding-bottom: 5.5rem; }
  .hero h1 { max-width: 100%; margin-top: 1.15rem; font-size: clamp(2.55rem, 11vw, 3.35rem); }
  .hero-copy { max-width: 100%; font-size: .94rem; line-height: 1.7; }
  .hero .btn { padding: .85rem 1rem !important; font-size: .68rem; }
  .carousel-indicators { right: 0; bottom: 1.35rem; left: 0; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); }
  .carousel-indicators [data-bs-target] { width: 2.75rem; }
  .page-hero, .page-hero-content { min-height: 485px; }
  .page-hero img { object-position: center center; }
  .page-hero-content { padding-top: 7.5rem; padding-bottom: 4rem; }
  .page-hero h1 { max-width: 100%; font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .page-hero p { font-size: .94rem; line-height: 1.7; }
  .section-title { font-size: clamp(2.1rem, 8vw, 2.85rem); }
  .section-copy { font-size: .94rem; line-height: 1.75; }
  .practice-card { min-height: 0; padding: 1.25rem; }
  .practice-card h3 { margin-top: 2.5rem; font-size: 1.4rem; }
  .practice-card p { font-size: .82rem; }
  .office-image { min-height: 280px; max-height: 400px; }
  .location-photo-stack { min-height: 0; }
  .location-photo-stack .office-image { height: 280px; }
  .location-photo-secondary { position: static; width: 68%; height: 150px; margin: -1.5rem 0 0 auto; border-width: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .gallery-item.tall, .gallery-item.standard { min-height: 0; }
  .partner-carousel { padding: 0 2.2rem; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-photo { min-height: 250px; max-height: 290px; }
  .partner-info { padding: 1.5rem; }
  .partner-control { width: 2.35rem; height: 2.35rem; }
  .case-feature-slide { min-height: 650px; }
  .case-feature-image { top: 0; right: 0; bottom: auto; height: 58%; }
  .case-feature-panel { width: calc(100% - 1rem); padding: 1.35rem 1.25rem; }
  .case-feature-panel h2 { font-size: 1.55rem; }
  .case-feature-panel p { font-size: .82rem; }
  .case-control { width: 2.35rem; height: 2.35rem; }
  .case-control.prev { top: 1rem; right: 4rem; }
  .case-control.next { top: 1rem; right: 1rem; }
  .case-carousel-indicators { right: 1rem; bottom: 1rem; }
  .case-carousel-indicators button { width: 1.8rem; }
  .case-list-heading { display: block; }
  .case-list-heading h2 { margin-top: .4rem; font-size: 1.7rem; }
  .case-list li { grid-template-columns: 1.8rem 1fr; font-size: .85rem; }
  .case-list li { grid-template-columns: 72px 1fr; gap: .75rem; min-height: 76px; }
  .case-thumb { width: 72px; height: 64px; }
  .floating-whatsapp { right: .9rem; bottom: calc(.9rem + env(safe-area-inset-bottom)); width: 2.9rem; height: 2.9rem; font-size: 1.15rem; }
  .footer-bottom { font-size: .58rem; line-height: 1.6; }
  .footer-bottom .container-xxl { align-items: flex-start; }
  .lightbox .modal-header { padding: 1rem; }
  .lightbox .modal-body { padding: .5rem 3.75rem 1rem; }
  .lightbox img { max-height: calc(100svh - 5.75rem); }
  .lightbox-control { width: 2.35rem; height: 2.35rem; }
  .lightbox-control.prev { left: .65rem; }
  .lightbox-control.next { right: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Carousel safety and art direction overrides */
html, body { max-width: 100%; }
.carousel, .carousel-inner, .carousel-item, .container-xxl { min-width: 0; }
.carousel-item img { display: block; }
.carousel-item .hero-slide-image-mobile { display: none; }
.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  width: clamp(2.35rem, 4vw, 2.8rem);
  height: clamp(2.35rem, 4vw, 2.8rem);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(20, 40, 65, .62);
  color: #fff;
  transform: translateY(-50%);
  transition: background .25s ease, transform .25s ease;
}
.hero-control:hover { background: var(--maroon); color: #fff; transform: translateY(-50%) scale(1.06); }
.hero-control.prev { right: clamp(4rem, 6vw, 5rem); }
.hero-control.next { right: clamp(.75rem, 3vw, 2rem); }
.hero-slide-image,
.page-hero img,
.case-feature-image {
  object-fit: cover;
  object-position: var(--image-position, center center);
}
.hero-slide-image-desktop { object-position: var(--desktop-position, right center); }
.hero-slide-image-mobile { object-position: var(--mobile-position, center center); }
.focus-left { --image-position: left center; }
.focus-center { --image-position: center center; }
.focus-right { --image-position: right center; }
.focus-top { --image-position: center top; }
.focus-bottom { --image-position: center bottom; }
.hero-slide-image,
.case-feature-image { max-width: none; }
.page-hero img { opacity: .48; }
.hero-slide-image { object-position: var(--image-position, var(--desktop-position, center center)); }
.hero-slide-image-mobile { object-position: var(--image-position, var(--mobile-position, center center)); }
.partner-carousel { padding-right: 0; padding-left: 0; }
.lightbox .modal-body { padding-right: clamp(1rem, 4vw, 3rem); padding-left: clamp(1rem, 4vw, 3rem); }
.location-photo-stack > .office-image,
.location-main-image {
  height: clamp(280px, 31vw, 400px);
  object-fit: cover;
}
.location-photo-stack { min-height: clamp(280px, 31vw, 400px); }
.hero-control,
.partner-control,
.case-control,
.lightbox-control { display: none !important; }
.hero-content,
.page-hero-content { overflow-wrap: anywhere; }
.gallery-card {
  min-width: 0;
  aspect-ratio: 4 / 3;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  max-width: none;
}
.lightbox .modal-body { overflow: hidden; }
.lightbox img { touch-action: pan-y; user-select: none; }

@media (max-width: 991.98px) {
  .hero-control { opacity: .92; }
  .case-feature-panel { width: min(62%, 520px); }
}

@media (max-width: 575.98px) {
  .hero-control { width: 2.25rem; height: 2.25rem; }
  .hero-control.prev { right: 3.4rem; }
  .hero-control.next { right: .65rem; }
  .case-feature-panel { width: calc(100% - 1rem); }
  .lightbox .modal-body { padding-right: 1rem; padding-left: 1rem; }
  .location-photo-stack > .office-image,
  .location-main-image { height: 280px; }
  .location-photo-stack { min-height: 280px; }
}

/* Responsive art direction: use the wide compositions on desktop and
   purposefully framed photographs on narrow screens. */
.hero-slide-media,
.page-hero-media,
.case-feature-media {
  display: block;
}
.hero-slide-media {
  position: absolute;
  z-index: 1;
  inset: 0;
}
.hero-slide-media .hero-slide-image {
  z-index: 1;
}
.page-hero-media,
.case-feature-media {
  position: absolute;
  inset: 0;
}
.case-feature-media {
  z-index: 1;
}
.case-feature-media .case-feature-image {
  z-index: 1;
}
@media (max-width: 767.98px) {
  .hero-slide-backdrop {
    background-image: var(--slide-mobile-image, var(--slide-image));
  }
  .case-feature-backdrop {
    background-image: var(--case-mobile-image, var(--case-image));
  }
  .hero-slide-media .hero-slide-image {
    object-position: var(--mobile-position, center 25%);
  }
  .case-feature-media .case-feature-image {
    top: 0;
    right: 0;
    bottom: auto;
    height: 58%;
    object-position: var(--case-mobile-position, center 25%);
  }
}