/* Night edition, second pass. Loads last on every route.
   One dusk photograph at strength, monumental type, navy-and-gold portraits,
   hairline structure on the dark ground. */
:root { --duo-shadow: #0b1428; --duo-light: #f4dcb8; --on-night: #d5d2c8; }

/* Navy-and-gold portrait treatment. The wrapper supplies the shadow colour,
   the pseudo-element the highlight colour; the photograph itself is unchanged. */
.duo { position: relative; display: block; overflow: hidden; isolation: isolate; background: var(--duo-shadow); }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: grayscale(1) contrast(1.12) brightness(1.04); mix-blend-mode: screen; }
.duo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--duo-light); mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero--p2 { justify-content: flex-start; padding: 150px 0 36px; min-height: max(720px, min(940px, 100svh)); }
.hero--p2 .hero-photograph img { object-position: 50% 100%; transform: scale(1.35); transform-origin: 50% 100%; filter: saturate(1.12) contrast(1.06) brightness(0.84); }
.hero--p2 .hero-scrim {
  background:
    linear-gradient(0deg, rgba(7, 9, 14, 0.62) 0%, rgba(7, 9, 14, 0) 20%),
    linear-gradient(180deg, #0a1226 0%, #0b1630 36%, rgba(12, 26, 56, 0.78) 56%, rgba(16, 30, 62, 0.16) 80%, rgba(16, 30, 62, 0) 100%);
  background-blend-mode: normal, multiply;
  mix-blend-mode: multiply;
}
.hero-grid-map {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1200ms ease; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 46% 62% at 80% 50%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 46% 62% at 80% 50%, #000 12%, transparent 72%);
}
.hero-grid-map.is-drawn { opacity: 0.92; }
.hero--p2 .hero-grid { display: block; padding: 0 var(--gutter); }
.hero--p2 .hero-inner { max-width: none; }
.hero--p2 .hero-title { max-width: none; font-size: inherit; line-height: 1; letter-spacing: 0; }
.hero-title-a { display: block; font-size: clamp(56px, 11.6vw, 190px); line-height: 0.92; letter-spacing: -0.035em; white-space: nowrap; }
.hero-title-a br { display: none; }
.hero-title-b { display: block; margin-top: 0.3em; font-size: clamp(30px, 4.3vw, 70px); line-height: 1.06; letter-spacing: -0.02em; }
.hero-lower { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; margin-top: 30px; }
.hero--p2 .hero-support { margin: 0; max-width: 30ch; }
.hero--p2 .hero-actions { margin: 0; }
.hero--p2 .hero-caption { margin-top: auto; padding-top: 28px; }
.hero-pair { display: none; }

@media (max-width: 767px) {
  .hero--p2 { padding: 104px 0 0; min-height: 0; }
  .hero--p2 .hero-photograph, .hero--p2 .hero-scrim { bottom: calc(62.5vw + 66px); height: auto; }
  .hero-grid-map { height: calc(100% - 62.5vw - 66px); }
  .hero--p2 .hero-photograph img { object-position: 82% 100%; transform: scale(1.2); }
  .hero--p2 .hero-scrim {
    background:
      linear-gradient(0deg, rgba(7, 9, 14, 0.5) 0%, rgba(7, 9, 14, 0.15) 30%),
      linear-gradient(180deg, #0a1226 0%, #0b1630 44%, rgba(12, 26, 56, 0.8) 66%, rgba(16, 30, 62, 0.3) 100%);
  }
  .hero-grid-map {
    -webkit-mask-image: radial-gradient(ellipse 70% 42% at 82% 27%, #000 10%, transparent 74%);
    mask-image: radial-gradient(ellipse 70% 42% at 82% 27%, #000 10%, transparent 74%);
  }
  .hero--p2 .hero-grid { padding: 0 20px 26px; }
  .hero-title-a { font-size: clamp(50px, 17.5vw, 72px); line-height: 0.94; white-space: normal; }
  .hero-title-a br { display: inline; }
  .hero-title-b { font-size: clamp(25px, 7.4vw, 32px); margin-top: 0.4em; }
  .hero-lower { display: block; margin-top: 16px; }
  .hero--p2 .hero-support { max-width: 32ch; text-shadow: 0 1px 10px #0a1226; }
  .hero--p2 .hero-actions { margin-top: 18px; }
  .hero--p2 .hero-call { text-shadow: 0 1px 10px #07090e; }
  .hero-pair { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-pair a { aspect-ratio: 4 / 5; color: var(--moon); text-decoration: none; }
  .hero-pair a + a { border-left: 1px solid rgba(245, 240, 230, 0.22); }
  .hero-pair span { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 44px 14px 12px; background: linear-gradient(0deg, rgba(9, 14, 28, 0.92), rgba(9, 14, 28, 0)); font: 400 19px/1.15 var(--display); }
  .hero-pair small { font: 400 9px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
  .hero--p2 .hero-caption { margin: 0; padding: 16px 20px 18px; background: var(--night); }
}
@media (max-width: 359px) {
  .hero-pair span { font-size: 16px; padding: 36px 10px 10px; }
  .hero-pair small { display: none; }
}

/* ---------- Home: one night ground from hero to the map ---------- */
.home-page .quick-review, .home-page #practice-overview { background: var(--night); color: var(--on-night); }
.home-page #people { background: var(--night-2); color: var(--on-night); }
.home-page .quick-review, .home-page #people, .home-page #practice-overview, .home-page .guides { --focus-light: var(--focus-dark); border-top: 1px solid var(--night-line); }
.home-page .quick-review h2, .home-page #people h2, .home-page #practice-overview h2, .home-page .guides h2 { color: var(--moon); }
.home-page .quick-review .section-code, .home-page #people .section-code, .home-page #practice-overview .section-code, .home-page .guides .section-code { color: var(--gold); }
.home-page .quick-review .chapter-body, .home-page #people .chapter-body, .home-page #practice-overview .chapter-body { color: var(--on-night); }
.home-page #people .text-link, .home-page #practice-overview .text-link { color: var(--moon); }
.home-page .quick-review-head .chapter-heading, .home-page #people .chapter-heading, .home-page #practice-overview .chapter-heading { font-size: clamp(40px, 5vw, 80px); }

/* 01: questions as ruled options, the summary flush beside them. */
.home-page .qr-group { border-bottom-color: var(--night-line); }
.home-page .qr-group legend { color: var(--moon); }
.home-page .qr-group legend span, .home-page .qr-progress-label { color: var(--gold); }
.home-page .qr-progress-bar { background: var(--night-line); }
.home-page .qr-progress-bar i { background: var(--gold); }
.home-page .qr-summary-jump { color: var(--moon); }
.home-page .qr-chips { gap: 4px 30px; }
.home-page .qr-chips span { border: 0; border-bottom: 1px solid rgba(245, 240, 230, 0.34); border-radius: 0; padding: 0 2px; background: none; color: var(--moon); }
.home-page .qr-chips label:hover span { background: none; border-bottom-color: var(--moon); }
.home-page .qr-chips input:checked + span { background: none; border-bottom-color: var(--gold); color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.home-page .qr-chips input:focus-visible + span { outline-color: var(--gold); }
.home-page .qr-summary { background: none; padding: 0 0 0 clamp(28px, 4vw, 64px); border-left: 1px solid var(--night-line); }
@media (max-width: 899px) {
  .home-page .qr-summary { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--night-line); }
}
@media (max-width: 767px) {
  .home-page .qr-chips { gap: 2px 24px; }
  .home-page .qr-chips span { padding: 0 2px; font-size: 15px; }
  .home-page .quick-review-head .chapter-heading, .home-page #people .chapter-heading, .home-page #practice-overview .chapter-heading { font-size: 40px; }
}

/* 02: the five portraits large, in the navy-and-gold treatment. */
.home-page .people-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(36px, 5vw, 72px); }
.home-page .team-block { gap: 28px 18px; }
.home-page .team-member a { color: var(--moon); }
.home-page .team-member .duo { aspect-ratio: 4 / 5; margin-bottom: 12px; }
.home-page .team-member span:not(.duo) { color: #a9a69d; }
.home-page .team-member--lead img, .home-page .team-member img { max-height: none; margin: 0; aspect-ratio: auto; }
@media (max-width: 767px) {
  .home-page .people-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-page .team-block { gap: 20px 10px; }
}

/* 03: readable on the photograph, with the city left visible underneath. */
.case-story { padding-bottom: clamp(150px, 19vw, 280px); }
.case-story h2, .case-story h3 { color: var(--moon); }
.case-story li p { color: var(--on-night); }
.case-story > img { object-position: 50% 100%; filter: saturate(1.05) brightness(0.86); transform-origin: 50% 100%; }
.case-story::before { background: linear-gradient(180deg, #0b1024 0%, rgba(11, 16, 36, 0.93) 46%, rgba(11, 16, 36, 0.62) 70%, rgba(11, 16, 36, 0.08) 100%); }
@media (max-width: 767px) { .case-story { padding-bottom: 150px; } }

/* 04: a half-viewport portrait beside the ruled index. */
.home-page .practice-index-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.practice-figure { margin: 0; position: sticky; top: 120px; }
.practice-figure .duo { aspect-ratio: 4 / 5; }
.practice-figure figcaption { padding-top: 12px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #a9a69d; }
.home-page .practice-index { margin-top: 40px; border-top-color: rgba(245, 240, 230, 0.5); }
.home-page .practice-index li { border-bottom-color: var(--night-line); }
.home-page .practice-index a { color: var(--moon); }
.home-page .practice-index a span { color: var(--gold); }
.home-page .practice-index a:hover, .home-page .practice-index a:focus-visible { color: var(--gold); }
@media (max-width: 767px) {
  .home-page .practice-index-grid { grid-template-columns: 1fr; gap: 26px; }
  .practice-figure { position: relative; top: auto; margin: 0 -20px; }
  .practice-figure .duo { aspect-ratio: 5 / 4; }
  .practice-figure figcaption { padding: 10px 20px 0; }
  .home-page .practice-index { margin-top: 26px; }
}

/* 05: the firm's own articles on a rail the visitor scrolls. */
.guides { background: var(--night-2); color: var(--on-night); padding: var(--section-gap) 0; }
.guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; }
.guides h2 { font-size: clamp(40px, 5vw, 80px); line-height: 1.04; letter-spacing: -0.02em; margin-top: 18px; }
.guides-head a { color: var(--moon); font: 400 16px/1.4 var(--ui); }
.guides-rail {
  list-style: none; margin: 40px 0 0; padding: 0 var(--gutter) 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 360px); gap: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.guides-rail li { scroll-snap-align: start; border-top: 1px solid rgba(245, 240, 230, 0.5); border-right: 1px solid var(--night-line); }
.guides-rail a { display: grid; align-content: space-between; gap: 40px; min-height: 250px; padding: 18px 26px 22px 0; margin-left: 26px; color: var(--moon); text-decoration: none; }
.guides-rail li:first-child a { margin-left: 0; }
.guides-rail time { font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.guides-rail strong { font: 400 27px/1.16 var(--display); letter-spacing: -0.01em; overflow-wrap: normal; }
.guides-rail em { font: 400 13px/1.4 var(--ui); color: #a9a69d; }
.guides-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .guides-rail a:hover strong { color: var(--gold); } }
.guides-rail a:focus-visible strong { color: var(--gold); }
@media (max-width: 767px) { .guides-rail { margin-top: 28px; } .guides-rail a { min-height: 210px; gap: 28px; } .guides-rail strong { font-size: 24px; } .guides h2 { font-size: 40px; } }

/* 06: the after-hours copy sits on the page gutter like every other section. */
.night-band--map .night-band-inner { width: 100%; justify-self: stretch; }

/* ---------- Inner pages ---------- */
.page-intro .chapter-links { flex-direction: row; justify-content: flex-start; align-items: center; }
/* Portrait openings: larger, in the same navy-and-gold treatment. */
.page-intro .editorial-lead { width: 46%; background: var(--duo-shadow); isolation: isolate; }
.page-intro .portrait { filter: grayscale(1) contrast(1.12) brightness(1.04); mix-blend-mode: screen; }
.page-intro .editorial-lead::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--duo-light); mix-blend-mode: multiply; pointer-events: none; }
.page-intro .editorial-lead::after { z-index: 2; }
.page-intro figcaption { z-index: 3; }
@media (max-width: 767px) {
  .page-intro .editorial-lead { width: calc(100% + 40px); height: 78vw; max-height: 340px; }
}

/* The city photograph as a full-bleed band. */
.city-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--moon); --focus-light: var(--focus-dark); }
.city-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--city-x, 50%) 100%; transform: scale(var(--city-zoom, 1.3)); transform-origin: var(--city-x, 50%) 100%; filter: saturate(1.08) brightness(0.86); }
.city-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b1024 0%, rgba(11, 16, 36, 0.9) 40%, rgba(11, 16, 36, 0.5) 68%, rgba(11, 16, 36, 0.05) 100%); }
.city-band .container { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(190px, 24vw, 340px); }
.city-band .section-code { color: var(--gold); }
.city-band h2 { color: var(--moon); font-size: clamp(40px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; margin-top: 18px; }
.city-band p.city-lede { max-width: 46ch; margin-top: 22px; font-size: 18px; color: var(--on-night); }
.city-band .btn { margin-top: 28px; border-radius: 999px; }

/* Team page: everyone the firm lists, as ruled columns. */
.roster { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.roster h3 { font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.roster ul { list-style: none; margin: 0; padding: 0; }
.roster li { padding: 12px 0; border-bottom: 1px solid var(--rule); font: 400 21px/1.2 var(--display); }
.roster li span { display: block; margin-top: 3px; font: 400 13px/1.4 var(--ui); color: var(--helper); }
@media (max-width: 899px) { .roster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .roster { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; } }

@media (prefers-reduced-motion: reduce) { .hero-grid-map { transition: none; } }

/* ==========================================================
   Third pass (bar-20260930-p3). The firm's own meeting-room and
   office photographs join the skyline; nothing above is removed.
   ========================================================== */

/* Hero, desktop: the 2560px master, shown below native size, with the dusk sky
   left visible behind the headline instead of a flat navy field. */
@media (min-width: 768px) {
  .hero--p2 .hero-photograph img { transform: scale(1.5); filter: saturate(1.1) contrast(1.05) brightness(0.9); }
  .hero--p2 .hero-scrim {
    background:
      linear-gradient(0deg, rgba(7, 9, 14, 0.5) 0%, rgba(7, 9, 14, 0) 18%),
      linear-gradient(180deg, #0a1226 0%, rgba(11, 22, 48, 0.9) 24%, rgba(13, 28, 60, 0.7) 48%, rgba(16, 30, 62, 0.34) 62%, rgba(16, 30, 62, 0) 76%);
  }
}

/* The firm at work: one full-bleed photograph, as published. */
.firm-photo { position: relative; margin: 0; background: var(--night); }
.firm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1919 / 842; object-fit: cover; filter: sepia(0.16) contrast(1.04); }
.firm-photo::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(0deg, rgba(9, 14, 28, 0.78), rgba(9, 14, 28, 0)); pointer-events: none; }
.firm-photo figcaption { position: absolute; z-index: 1; left: var(--gutter); bottom: 20px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--moon); }
.home-page #people { padding-top: 0; }
.home-page #people .firm-photo { margin-bottom: var(--section-gap); }
@media (max-width: 767px) {
  .firm-photo img { aspect-ratio: 5 / 4; object-position: 86% 50%; }
  .firm-photo figcaption { left: 20px; bottom: 14px; font-size: 10px; }
}

/* 02: heading, then the portraits, then the copy on phones; two columns on desktop. */
.home-page .people-grid { grid-template-areas: "head team" "copy team"; grid-template-rows: auto 1fr; row-gap: 22px; }
.people-head { grid-area: head; }
.home-page .team-block { grid-area: team; }
.home-page .people-copy { grid-area: copy; }
@media (max-width: 767px) {
  .home-page .people-grid { grid-template-areas: "head" "team" "copy"; grid-template-rows: none; row-gap: 24px; }
}

/* The office: a small published photograph shown at its own size on a blurred
   enlargement of itself, so the band is full bleed without stretching the picture. */
.office-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--moon); padding: var(--section-gap) 0; --focus-light: var(--focus-dark); }
.office-band::before { content: ""; position: absolute; inset: -60px; z-index: -2; background: url("assets/media/office-817-s-main.jpg") 50% 50% / cover no-repeat; filter: blur(34px) saturate(0.75) brightness(0.5); }
.office-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 16, 36, 0.92) 0%, rgba(11, 16, 36, 0.62) 55%, rgba(11, 16, 36, 0.4) 100%); }
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.office-band .section-code { color: var(--gold); }
.office-band h2 { color: var(--moon); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.025em; margin-top: 18px; }
.office-band .city-lede { max-width: 44ch; margin-top: 20px; font-size: 18px; color: var(--on-night); }
.office-band .btn { margin-top: 26px; border-radius: 999px; }
.office-figure { margin: 0; }
.office-figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(245, 240, 230, 0.3); }
.office-figure figcaption { padding-top: 12px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night); }
.office-figure figcaption a { color: var(--moon); }
.case-story.office-band { padding: var(--section-gap) 0; }
.case-story.office-band ol { padding-top: clamp(40px, 5vw, 64px); }
@media (max-width: 899px) {
  .office-grid { grid-template-columns: 1fr; align-items: start; }
  .office-figure { margin: 0 calc(var(--gutter) * -1); }
  .office-figure img { border-left: 0; border-right: 0; }
  .office-figure figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (max-width: 767px) {
  .office-band h2 { font-size: 38px; }
  .office-figure { margin: 0 -20px; }
  .office-figure figcaption { padding-left: 20px; padding-right: 20px; }
}

/* 04: the two other places the firm names on its own site. */
.area-line { margin-top: 22px; font: 400 15px/1.5 var(--ui); color: var(--on-night); }
.area-line a { color: var(--moon); }

/* 05: each guide carries a large index numeral above its hairline entry. */
.guides-rail { counter-reset: guide; }
.guides-rail a { min-height: 340px; grid-template-rows: auto auto 1fr auto; align-content: stretch; gap: 14px; }
.guides-rail a::before { counter-increment: guide; content: counter(guide, decimal-leading-zero); font: 400 clamp(64px, 6.4vw, 100px)/0.9 var(--mono); letter-spacing: -0.04em; color: var(--gold); margin-bottom: 26px; }
.guides-rail em { align-self: end; }
@media (hover: hover) and (pointer: fine) { .guides-rail a::before { transition: color 160ms ease; } .guides-rail a:hover::before { color: var(--moon); } }
@media (max-width: 767px) { .guides-rail a { min-height: 290px; } .guides-rail a::before { margin-bottom: 18px; } }

/* Footer: the closing line and the number at display scale, less dead space below. */
.footer-cta { display: block; }
.footer-cta p { max-width: none; font-size: clamp(40px, 7.4vw, 124px); line-height: 0.98; }
.footer-cta a.footer-number { display: block; margin-top: 0.14em; font-size: clamp(34px, 7.4vw, 124px); letter-spacing: -0.05em; line-height: 1; }
@media (min-width: 768px) {
  .site-footer { padding-bottom: 36px; }
  .footer-note { padding-bottom: 0; }
}
@media (max-width: 359px) { .footer-cta a.footer-number { font-size: 30px; } }

/* ==========================================================
   Fourth pass (bar-20260930-p4). The phone hero opens onto the
   city, the office photograph runs off the page, a photo strip
   heads the guides, the attorneys line up edge to edge, the
   inner pages open on the firm's own photographs, one street
   grid carries through to the footer, and the menus follow the
   Mercury full-width grid in these night tokens.
   ========================================================== */

/* Phone hero: more city behind the headline, at least the top
   60% of the screen, with the dusk sky actually visible. */
@media (max-width: 767px) {
  .hero--p2 .hero-photograph, .hero--p2 .hero-scrim { bottom: calc(60vw + 64px); height: auto; }
  .hero-grid-map { height: calc(100% - 60vw - 64px); }
  .hero--p2 .hero-photograph img { object-position: 82% 100%; transform: scale(1.14); filter: saturate(1.14) contrast(1.04) brightness(1.05); }
  .hero--p2 .hero-scrim {
    background:
      linear-gradient(0deg, rgba(7, 9, 14, 0.52) 0%, rgba(7, 9, 14, 0.1) 32%),
      linear-gradient(180deg, #0a1226 0%, rgba(11, 22, 48, 0.64) 30%, rgba(13, 28, 60, 0.4) 58%, rgba(16, 30, 62, 0.16) 100%);
  }
  .hero--p2 .hero-title { text-shadow: 0 2px 22px rgba(7, 9, 14, 0.6); }
  .hero--p2 .hero-support, .hero--p2 .hero-call { text-shadow: 0 1px 12px #07090e; }
}

/* One night ground: the same grid and beacon, quieter, behind the
   footer close. The canvas sits under every footer word. */
.site-footer { position: relative; overflow: hidden; }
.footer-map {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0; transition: opacity 1200ms ease; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 74%);
}
.footer-map.is-drawn { opacity: 0.85; }
.site-footer > .container { position: relative; z-index: 1; }

/* The office photograph: no frame, running off the right edge at
   about 60vw, its caption set over the print like the band above. */
@media (min-width: 900px) {
  .home-page .office-grid { grid-template-columns: minmax(0, 1fr) min(52vw, 760px); }
  .home-page .office-figure { position: relative; margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - 1440px) / 2))); }
  .home-page .office-figure img { border: 0; }
  .home-page .office-figure::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(9, 14, 28, 0.82), rgba(9, 14, 28, 0)); pointer-events: none; }
  .home-page .office-figure figcaption { position: absolute; z-index: 1; left: 26px; right: 26px; bottom: 16px; padding: 0; color: var(--moon); }
}

/* 02: the five attorneys as one edge-to-edge filmstrip, names and
   seniority set over the photographs, hairlines between frames. */
.home-page .team-block { margin-top: 28px; }
@media (min-width: 900px) {
  .home-page .people-grid { grid-template-areas: "head copy"; grid-template-rows: none; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(36px, 5vw, 72px); }
  .people-head, .home-page .people-copy { grid-area: auto; }
  .home-page .people-copy { align-self: center; }
  .home-page .team-block {
    grid-area: auto; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    margin: clamp(44px, 5vw, 72px) calc(-1 * (var(--gutter) + max(0px, (100vw - 1440px) / 2))) 0;
  }
  /* One portrait per frame: the old six-column spans do not apply here. */
  .home-page .team-member, .home-page .team-member--lead { grid-column: auto; }
  .home-page .team-member { box-shadow: inset 1px 0 0 rgba(245, 240, 230, 0.18); }
  .home-page .team-member:first-child { box-shadow: none; }
  .home-page .team-member a { position: relative; display: block; }
  .home-page .team-member .duo { margin-bottom: 0; }
  .home-page .team-member a::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(0deg, rgba(9, 14, 28, 0.92), rgba(9, 14, 28, 0)); pointer-events: none; }
  .home-page .team-member strong, .home-page .team-member span:not(.duo) { position: absolute; z-index: 3; left: 18px; right: 18px; color: var(--moon); }
  .home-page .team-member strong { bottom: 14px; font-size: 21px; line-height: 1.12; }
  .home-page .team-member span:not(.duo) { bottom: 52px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); }
}

/* 05: a thin strip of the meeting-room photograph above the rail. */
.guides-band { position: relative; margin: clamp(30px, 4vw, 48px) 0 clamp(26px, 3.4vw, 40px); }
.guides-band img { display: block; width: 100%; height: clamp(96px, 12vw, 172px); object-fit: cover; object-position: 50% 38%; filter: brightness(0.62) saturate(0.85) sepia(0.12) contrast(1.05); }
.guides-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 20, 0.42), rgba(11, 14, 20, 0.08) 45%, rgba(11, 14, 20, 0.6)); pointer-events: none; }
@media (max-width: 767px) { .guides-band img { height: 120px; } }

/* Inner pages open on the firm's own photographs, under a display
   headline with the same gold hairline section labels as home. */
.page-photo-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--moon); display: flex; align-items: flex-end; min-height: clamp(430px, 56vh, 600px); --focus-light: var(--focus-dark); }
.page-photo-band > figure { position: absolute; inset: 0; z-index: -2; margin: 0; }
.page-photo-band > figure img { width: 100%; height: 100%; object-fit: cover; object-position: var(--band-pos, 50% 62%); filter: saturate(1.05) brightness(0.8) contrast(1.04) sepia(0.06); }
.page-photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 12, 20, 0.7) 0%, rgba(9, 12, 20, 0.26) 46%, rgba(9, 12, 20, 0.66) 100%); }
.page-photo-band-inner { width: 100%; padding-top: 176px; padding-bottom: clamp(44px, 6vw, 76px); }
.page-photo-band .section-code { color: var(--gold); }
.page-photo-band-title { margin-top: 16px; font: 400 clamp(46px, 7vw, 96px)/1.02 var(--display); letter-spacing: -0.028em; color: var(--moon); max-width: 15ch; }
.page-photo-band-title em { font-style: italic; }
.page-photo-band figcaption { position: absolute; z-index: 1; left: var(--gutter); bottom: 18px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-night); }
/* Photographs below full-bleed size are shown at their own width on a
   blurred enlargement of themselves, as the office band already does. */
.page-photo-band--split::before { content: ""; position: absolute; inset: -50px; z-index: -3; background: var(--band-img) 50% 40% / cover no-repeat; filter: blur(36px) saturate(0.72) brightness(0.52); }
.page-photo-band--split::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 12, 20, 0.6), rgba(9, 12, 20, 0.18) 48%, rgba(9, 12, 20, 0.62)); }
.page-photo-band--split > figure { inset: 0 0 0 auto; width: min(46vw, 600px); }
.page-photo-band--split figcaption { left: 24px; }
.page-photo-band--split > figure img { object-position: 50% var(--band-sharp-y, 24%); filter: brightness(0.94) saturate(1.05) sepia(0.06); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
@media (max-width: 767px) {
  .page-photo-band { min-height: 0; }
  .page-photo-band-inner { padding-top: 128px; padding-bottom: 42px; }
  .page-photo-band-title { font-size: clamp(40px, 11vw, 50px); }
  .page-photo-band figcaption { left: 20px; bottom: 14px; font-size: 10px; }
  .page-photo-band--split > figure { inset: 0; width: 100%; }
  .page-photo-band--split > figure img { -webkit-mask-image: none; mask-image: none; object-position: 50% 30%; }
}

/* Menus: the Mercury full-width grid. An intro column states who the
   firm is for; "This site" lists every page with one line; practice
   areas keep their numbered rows; the portrait card stays on the right. */
.mega-panel { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 1.25fr) 230px; grid-template-areas: "intro pages practice person"; align-items: stretch; }
.mega-intro { grid-area: intro; display: flex; flex-direction: column; gap: 16px; padding-right: clamp(20px, 2.5vw, 40px); border-right: 1px solid var(--night-line); }
.mega-lede { margin: 0; font: 400 24px/1.3 var(--display); letter-spacing: -0.01em; color: var(--moon); max-width: 22ch; }
.mega-actions { margin-top: auto; display: grid; gap: 12px; justify-items: start; }
.mega-actions .btn { border-radius: 999px; padding: 10px 18px; font-size: 15px; }
.mega-actions .text-link { color: var(--moon); }
.mega-col { min-width: 0; }
.mega-col--pages { grid-area: pages; padding-right: clamp(20px, 2.5vw, 40px); border-right: 1px solid var(--night-line); }
.mega-col--practice { grid-area: practice; }
.mega-label { margin: 0 0 6px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #a9a69d; }
.mega-pages { display: grid; }
.mega-pages a { display: grid; gap: 3px; padding: 11px 0; border-top: 1px solid var(--night-line); color: var(--moon); text-decoration: none; font: 400 17px/1.2 var(--display); }
.mega-pages a small { font: 400 12.5px/1.45 var(--ui); color: #c5c5c8; }
.mega-pages a:hover, .mega-pages a:focus-visible { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .mega-services a:hover { color: var(--gold); } }
@media (max-width: 1240px) {
  .mega-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 210px; grid-template-areas: "intro intro person" "pages practice person"; }
  .mega-intro { flex-direction: row; align-items: center; gap: 24px; padding-right: 0; padding-bottom: 18px; border-right: 0; border-bottom: 1px solid var(--night-line); }
  .mega-lede { flex: 1; }
}
