:root {
  color-scheme: dark;
  --white: #fff;
  --navy: #041b2d;
  --ivory: #f3f0e7;
  --gold: #c8a66a;
  --ink: var(--ivory);
  --blue: #0067c5;
  --link: #68adff;
  --muted: #a4b0bd;
  --line: #2b4256;
  --surface: #102a40;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, a, input, textarea { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--link); }
body:has(dialog[open]) { overflow: hidden; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  height: 100svh;
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: url("assets/navy-card-texture-v4.png") repeat;
  background-size: 620px 278px;
  mix-blend-mode: soft-light;
  opacity: .2;
}

.identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;
  height: 100%;
  min-height: inherit;
  padding: 64px clamp(40px, 6.5vw, 124px);
}

.identity__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 530px;
}

.wordmark {
  position: relative;
  width: 70%;
  max-width: 371px;
  aspect-ratio: 900 / 350;
  flex-shrink: 0;
  overflow: hidden;
}

/* SVG filters recolor the original artwork without redrawing the lettering. */
.wordmark svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-partner { cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.logo-partner rect { fill: transparent; stroke: transparent; stroke-width: 3px; }
.logo-partner:focus-visible rect { stroke: var(--link); }
.logo-partner-tint { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.logo-partner:active + .logo-partner-tint { opacity: .22; }
@media (hover: hover) and (pointer: fine) {
  .logo-partner:hover + .logo-partner-tint { opacity: .42; }
}

.scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background: var(--navy);
}

.scene__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 77% center;
  opacity: .9;
  mix-blend-mode: lighten;
}

.scene__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #041b2d 0%, rgb(4 27 45 / 98%) 22%, rgb(4 27 45 / 84%) 40%, rgb(4 27 45 / 25%) 64%, rgb(4 27 45 / 5%) 100%),
    linear-gradient(0deg, #041b2d 0%, rgb(4 27 45 / 20%) 26%, transparent 60%, rgb(4 27 45 / 40%) 100%);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -.015em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button--primary { background: var(--blue); color: var(--white); }
.button--primary:hover { background: #0057a8; }
.button--primary:active { background: #004d94; }
.button--secondary { border-color: #788797; color: var(--ivory); background: transparent; }
.button--secondary:hover { background: rgb(243 240 231 / 7%); border-color: #c8d0d8; }
.button--secondary:active { background: rgb(255 255 255 / 12%); }
.button svg { flex-shrink: 0; }

.actions .button {
  position: relative;
  min-height: 36px;
  padding: 7px 9px;
  gap: 8px;
  font-size: 12px;
}

/* Retain a 44px hit area around the smaller visible hero controls. */
.actions .button::before { content: ""; position: absolute; inset: -4px -2px; }
.actions .button svg { width: 12px; height: 12px; }

.hero-footer {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #a2b0bf;
  font-size: 12px;
  line-height: 19px;
}

.hero-footer[hidden] { display: none; }
.hero-footer address { max-width: 640px; margin: 0; font-size: 11.5px; font-style: normal; letter-spacing: .025em; text-wrap: balance; }
.hero-footer address span { display: block; }
.hero-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 8px; color: #d4dce4; letter-spacing: .025em; text-decoration: none; }
.hero-footer a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.panel {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #082237;
  box-shadow: 0 24px 100px rgb(0 0 0 / 50%);
}

.panel::backdrop { background: rgb(2 13 23 / 72%); backdrop-filter: blur(6px); }
.panel__content { position: relative; padding: 46px 40px 36px; }
.panel__eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .05em; margin: 0 0 18px; }
.panel h2 { font-size: clamp(25px, 4vw, 31px); line-height: 1.15; font-weight: 500; letter-spacing: -.045em; margin: 0 0 16px; }
.panel__intro { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.close { display: grid; place-items: center; position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface); cursor: pointer; }
.close:hover { color: var(--ink); background: #19374e; }
form { display: grid; gap: 10px; }
form label { font-size: 13px; font-weight: 500; margin-top: 7px; }
form input, form textarea { display: block; width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #061c2e; font-size: 15px; line-height: 1.5; }
form textarea { min-height: 116px; resize: vertical; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 2px 0 12px; }
.form-submit { width: fit-content; }
.form-status { font-size: 13px; line-height: 1.5; margin: 0; min-height: 0; color: var(--link); }
.form-status:not(:empty) { margin-top: 4px; }
.office { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; font-size: 12px; line-height: 1.7; }
.office a { color: var(--link); text-decoration: none; }
.office a:hover { text-decoration: underline; }
.office address { margin-top: 10px; color: var(--muted); font-style: normal; }
.office address span { display: block; }

@media (max-width: 1100px) and (min-width: 701px) {
  .identity { width: 65%; padding-inline: 38px; }
  .actions { gap: 10px; }
  .button { font-size: 13px; padding-inline: 20px; }
}

@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .identity { align-items: flex-start; width: 100%; padding: 17svh 28px 48px; }
  .identity__content { max-width: 400px; }
  .wordmark { max-width: 360px; }
  .scene { inset: 28% -5% -5% -55%; }
  .scene__image { object-fit: contain; object-position: center; opacity: .85; }
  .scene__wash { background: linear-gradient(180deg, #041b2d 0%, rgb(4 27 45 / 98%) 8%, rgb(4 27 45 / 82%) 32%, rgb(4 27 45 / 36%) 55%, rgb(4 27 45 / 35%) 78%, #041b2d 100%), linear-gradient(90deg, #041b2d 0%, rgb(4 27 45 / 70%) 30%, transparent 75%); }
  .actions { flex-direction: column; gap: 8px; width: 70%; margin-top: 27px; max-width: 231px; }
  .actions .button { width: 100%; min-height: 36px; padding-block: 7px; font-size: 12px; }
  .hero-footer { left: 20px; right: 20px; bottom: 10px; font-size: 11px; line-height: 18px; }
  .hero-footer address { max-width: 350px; font-size: 10.5px; letter-spacing: .015em; }
  .panel__content { padding: 44px 24px 28px; }
  form input, form textarea { font-size: 16px; }
}

@media (max-width: 374px) { .identity { padding-inline: 24px; } .actions { margin-top: 21px; } }

@media (max-height: 520px) and (min-width: 701px) {
  .hero { min-height: 440px; }
  .identity { padding-block: 32px; }
  .wordmark { max-width: 400px; }
  .actions { margin-top: 18px; }
}

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

.skip-link { position: fixed; z-index: 5; top: 16px; left: 16px; padding: 12px 18px; color: var(--ivory); background: var(--navy); border: 1px solid var(--gold); border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-shell { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.practice-section, .partners-section, .contact-section { scroll-margin-top: 0; }
.practice-entry, .profile { scroll-margin-top: 48px; }
.practice-section:focus, .profile:focus { outline: none; }
.practice-section { padding-top: 120px; padding-bottom: 60px; }
.section-heading { max-width: 660px; margin-bottom: 62px; }
.section-eyebrow { color: var(--gold); font-size: 11px; line-height: 1.7; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.section-heading h2, .contact-section h2 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4.2vw, 58px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0; max-width: 590px; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 76px; }
.practice-entry { border-top: 1px solid var(--line); padding: 30px 0 34px; }
.practice-entry h3 { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 16px; }
.practice-entry > p { color: var(--muted); font-size: 14.5px; line-height: 1.85; margin: 0; }

.partners-section { padding-top: 68px; padding-bottom: 72px; }
.section-heading--partners { margin-bottom: 46px; }
.profile { display: grid; grid-template-columns: 1fr 1fr; column-gap: 76px; align-items: center; min-height: 520px; padding: 34px 0; border-top: 1px solid rgb(43 66 86 / 65%); }
.profile--right .profile-portrait { grid-column: 2; grid-row: 1; }
.profile--right .profile-copy { grid-column: 1; grid-row: 1; }
.profile--left .profile-portrait { grid-column: 1; grid-row: 1; }
.profile--left .profile-copy { grid-column: 2; grid-row: 1; }
.profile-portrait { position: relative; justify-self: center; width: 100%; max-width: 344px; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 69% 63% at 50% 35%, #000 32%, rgb(0 0 0 / 85%) 58%, transparent 100%); mask-image: radial-gradient(ellipse 69% 63% at 50% 35%, #000 32%, rgb(0 0 0 / 85%) 58%, transparent 100%); }
.profile-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; filter: grayscale(1) brightness(.76) contrast(.9); opacity: .64; }
.profile-copy { max-width: 470px; padding-block: 20px; }
.profile-credential { color: var(--gold); font-size: 11px; line-height: 1.7; letter-spacing: .045em; margin: 0 0 15px; }
.profile-credential span { padding-inline: 5px; }
.profile-copy h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.25vw, 44px); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 5px; }
.profile-email { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 32px; margin-bottom: 19px; color: var(--muted); font-size: 12.5px; line-height: 1.6; text-decoration: none; transition: color 180ms ease; }
.profile-email svg { flex-shrink: 0; opacity: .8; }
.profile-email:hover, .profile-email:active { color: var(--gold); }
.profile-copy > p:not(.profile-credential) { color: var(--muted); font-size: 14.5px; line-height: 1.85; margin: 0 0 14px; }
.profile-focus { display: flex; flex-wrap: wrap; gap: 5px 17px; margin: 22px 0 0; padding: 0; list-style: none; }
.profile-focus li { font-size: 12px; line-height: 1.9; }
.profile-focus a { color: #c5cfd9; text-decoration: none; text-underline-offset: 4px; }
.profile-focus a:hover { text-decoration: underline; }
.profile-contact { display: inline-flex; align-items: center; min-height: 44px; margin-top: 13px; padding: 6px 0; border: 0; background: transparent; color: var(--ivory); font-size: 12px; cursor: pointer; text-decoration: underline; text-decoration-color: rgb(200 166 106 / 35%); text-underline-offset: 5px; }
.profile-contact:hover { color: var(--gold); }
.reveal-ready { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal-ready.is-visible { opacity: 1; transform: none; }

.contact-section { padding-top: 96px; padding-bottom: 58px; border-top: 1px solid var(--line); text-align: center; }
.contact-section h2 { font-size: clamp(32px, 3.4vw, 44px); }
.contact-section > .button { margin-top: 8px; }
.contact-details { margin-top: 30px; }
.contact-details > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); font-size: 14px; text-decoration: none; }
.contact-details > a:hover { color: var(--link); }
.contact-details address { margin-top: 8px; font-style: normal; font-size: 12px; line-height: 1.8; letter-spacing: .015em; color: var(--muted); }
.contact-details address span { display: block; }
.back-to-top { display: inline-flex; align-items: center; min-height: 44px; margin-top: 28px; color: var(--muted); font-size: 11px; text-decoration: none; }
.back-to-top:hover { color: var(--ivory); }

@media (max-width: 1000px) {
  .section-shell { width: calc(100% - 80px); }
  .practice-grid, .profile { column-gap: 46px; }
  .profile { min-height: 520px; }
}

@media (max-width: 800px) {
  .section-shell { width: calc(100% - 48px); }
  .practice-section { padding-top: 84px; padding-bottom: 26px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading > p:last-child { font-size: 15px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-entry { padding: 26px 0 29px; }
  .practice-entry h3 { font-size: 24px; }
  .practice-entry > p { font-size: 14px; }
  .partners-section { padding-top: 50px; padding-bottom: 42px; }
  .profile { grid-template-columns: 1fr; row-gap: 0; padding: 26px 0 35px; min-height: 0; }
  .profile--right .profile-portrait, .profile--left .profile-portrait { grid-column: 1; grid-row: 1; }
  .profile--right .profile-copy, .profile--left .profile-copy { grid-column: 1; grid-row: 2; }
  .profile-portrait { max-width: 232px; aspect-ratio: 4 / 5; }
  .profile-copy { max-width: 540px; width: 100%; justify-self: center; padding-top: 0; padding-bottom: 10px; }
  .profile-copy h3 { font-size: 34px; margin-bottom: 3px; }
  .profile-email { min-height: 44px; margin-bottom: 15px; }
  .profile-copy > p:not(.profile-credential) { font-size: 14px; }
  .profile-credential { margin-top: 6px; margin-bottom: 12px; }
  .contact-section { padding-top: 65px; padding-bottom: 35px; }
  .contact-details address { max-width: 350px; margin-inline: auto; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1 !important; transform: none !important; }
}
