*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; width: 100%; min-width: 0; min-height: 100vh; min-height: 100dvh; height: auto; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body > header, body > main, body > footer { width: 100%; min-width: 0; }
main > section { width: 100%; min-width: 0; height: auto; }
main .flex > *, header .flex > *, footer .flex > * { min-width: 0; }
header { padding-top: env(safe-area-inset-top, 0px); }
main .grid > *, footer .grid > * { min-width: 0; }
img, video { max-width: 100%; }
a, button { touch-action: manipulation; }
section[id], #practice, #main { scroll-margin-top: 7rem; }
::selection { background: #c79735; color: #071426; }
a, button { transition: color 200ms, background-color 200ms, border-color 200ms; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #c79735; outline-offset: 5px; }
.nav-link { padding-block: 1rem; }
.nav-link:hover { color: #c79735; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.carousel-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff50; color: white; }
.carousel-arrow:hover { background: #c79735; color: #071426; }
.carousel-dot { display: grid; place-items: center; width: 44px; height: 44px; }
.carousel-dot::after { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; background: #ffffff60; }
.carousel-dot.is-active::after { background: white; outline: 1px solid white; outline-offset: 4px; }
footer a:hover { color: #c79735; }
main, footer { overflow-wrap: anywhere; }
#mobile-menu { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 6rem); max-height: calc(100dvh - 6rem - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; background: #071426; box-shadow: 0 16px 24px #0003; }
#mobile-menu > div { gap: 0.25rem; }
#mobile-menu a { display: flex; align-items: center; min-height: 44px; padding-block: 0.5rem; }
@media (max-width: 639px) {
    body { font-size: 1rem; }
    header > div { min-height: 5rem; gap: 0.75rem; }
    header > div > a { gap: 0.625rem; max-width: 17rem; }
    header > div > a img { width: 3rem; height: 3rem; }
    #mobile-menu { padding: 1rem; max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem - env(safe-area-inset-top, 0px)); padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
    section[id], #practice, #main { scroll-margin-top: calc(6rem + env(safe-area-inset-top, 0px)); }
    #home > div:nth-child(2) { min-height: 0; padding: 3rem 1rem 2rem; }
    #home h1 { font-size: clamp(2rem, 8.5vw, 3.25rem); }
    #home > div:nth-child(2) > div > p:first-child { font-size: 0.75rem; letter-spacing: 0.12em; gap: 0.75rem; margin-bottom: 1.25rem; }
    #home > div:nth-child(2) > div > p:first-child span { width: 1.5rem; }
    #home > div:first-child > div:last-child { background: linear-gradient(90deg, #071426ed, #071426a6); }
    #home > div:last-child { gap: 1rem; }
    #home > div:last-child > a { min-height: 44px; display: inline-flex; align-items: center; }
    #about, #vision-mission, #approach { padding: 3.5rem 1rem; }
    #practice { margin-top: 3rem; padding-top: 2rem; }
    [data-service-button] { min-height: 13rem; padding: 1.5rem; }
    [data-service-title] { margin-top: 1.5rem; }
    #values > div:first-child, #contact > div:first-child { min-height: 16rem; }
    #values > div:last-child, #contact > div:last-child > div { padding: 2.5rem 1rem; }
    #vision-mission > div, #approach > div { gap: 2.5rem; }
    #contact a, footer a { min-height: 44px; display: inline-flex; align-items: center; max-width: 100%; }
    #contact a[href^="mailto:"], footer a[href^="mailto:"] { display: block; align-content: center; overflow-wrap: anywhere; word-break: normal; }
    main > section:last-child { padding: 3rem 1rem; }
    footer { padding: 3rem 1rem max(1.5rem, env(safe-area-inset-bottom, 0px)); }
    footer > div:first-child { gap: 2rem; padding-bottom: 2rem; }
    footer .grid.gap-3 { gap: 0.25rem; }
    main h2 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); }
    #home > div:last-child > div { flex-wrap: wrap; gap: 0.25rem; }
    #home > div:last-child { padding-inline: 1rem; }
    .hero-slide img { object-position: center; }
}
@media (max-height: 500px) and (max-width: 1279px) and (orientation: landscape) {
    header > div { min-height: 4.5rem; padding-block: 0.5rem; }
    header > div > a img { width: 2.75rem; height: 2.75rem; }
    #mobile-menu { max-height: calc(100dvh - 4.5rem - env(safe-area-inset-top, 0px)); }
    #home > div:nth-child(2) { min-height: 0; padding-block: 2.5rem; }
}
@media (hover: none) {
    [data-service-button] > img { opacity: 0.25; }
    [data-service-button] > span.absolute { opacity: 1; }
}
@media (min-width: 1280px) {
    header nav[aria-label="Main navigation"] > a:last-child { background: #c79735; color: #071426; }
    header nav[aria-label="Main navigation"] > a:last-child:hover { background: white; }
    #home h1 { max-width: 15ch; }
    [data-service-button] { padding: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

html { scrollbar-gutter: auto; }
.video-queue { scroll-margin-top: 7rem; }
.video-status { margin-top: 1rem; font-weight: 700; }
.video-hint { font-size: .875rem; color: #626773; margin-top: .5rem; }
.video-list { display: grid; gap: .5rem; margin-top: 1rem; max-height: 18rem; overflow: auto; }
.video-list button { width: 100%; display: flex; gap: 1rem; padding: .875rem 1rem; text-align: left; border: 1px solid #d8d4cb; border-radius: .4rem; font-size: 1rem; }
.video-list button[aria-pressed="true"] { background: #071426; color: white; border-color: #071426; }
.video-list button span { color: #c79735; font-weight: 700; }
.video-empty { padding: 4rem 2rem; background: #071426; color: white; text-align: center; }
.site-gallery { padding: 5rem 1.5rem; background: #f6f3ec; }
.site-gallery > div { max-width: 1280px; margin: auto; }
.site-gallery h2 { font-size: 2.5rem; margin: 1rem 0 2rem; }
.gallery-eyebrow { color: #80601f; font-size: .85rem; letter-spacing: .15em; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.gallery-grid figure { background: white; overflow: hidden; border-radius: .5rem; }
.gallery-grid img { width: 100%; height: 280px; object-fit: contain; }
.gallery-grid figcaption { padding: 1rem; font-size: 1rem; }
.admin-entry { background: #071426; text-align: right; padding: 1rem 5%; color: #d4af61; font-size: .875rem; }
html.service-dialog-open { overflow: hidden; }
.service-dialog { position: fixed; inset: 0; width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 0.75rem; background: white; color: #101827; box-shadow: 0 24px 80px #0006; }
.service-dialog::backdrop { background: #071426c9; }
.service-dialog-toolbar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 0.75rem 1rem; background: #071426; }
.service-dialog-close { min-height: 44px; padding: 0.5rem 1rem; border: 1px solid #ffffff60; border-radius: 0.25rem; color: white; font-weight: 600; }
.service-dialog-close:hover { background: #c79735; color: #071426; }
.service-dialog-image { display: block; width: 100%; max-height: 45dvh; object-fit: contain; }
.service-dialog-content { padding: clamp(1.5rem, 5vw, 2.5rem); }
.service-dialog-content h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.service-dialog-content p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.9; color: #626773; }
@media (max-width: 639px) {
    .service-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
    .service-dialog-image { max-height: 30dvh; }
    .service-dialog-content { padding: 1.5rem; }
    .service-dialog-content p { font-size: 1rem; line-height: 1.75; }
}

.leadership { background: #f6f3ec; color: #071426; padding: clamp(24px, 6vw, 80px); }
.leadership-inner { max-width: 1050px; margin: auto; }
.leader-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 36px #0714260a; }
.leader-card[hidden] { display: none; }
.leader-card:not([hidden]) { animation: leader-reveal 550ms ease-out; }
@keyframes leader-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .leader-card:not([hidden]) { animation: none; }
}
.leader-portrait { background: #e9edf0; height: 420px; }
.leader-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.leader-details { align-self: center; padding: clamp(24px, 5vw, 60px); overflow-wrap: anywhere; }
.leader-details::before { content: ''; display: block; width: 42px; height: 3px; background: #b48b44; margin-bottom: 24px; }
.leader-details h3 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; margin-bottom: 16px; }
.leader-details p { color: #506176; }
.leader-qualifications { font-size: 16px; margin-top: 12px; }
.leader-controls { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 24px; }
.leader-controls button { min-width: 44px; min-height: 44px; padding: 8px 16px; border: 1px solid #07142630; border-radius: 4px; background: #fff; cursor: pointer; }
.leader-controls button:hover { background: #071426; color: white; }
.leader-controls button:focus-visible { outline: 3px solid #b48b44; outline-offset: 3px; }
.service-profile { font-weight: 600; color: #506176; margin-bottom: 16px; }
@media (max-width: 600px) { .leader-card { grid-template-columns: 1fr; } .leader-portrait { height: 320px; } .leader-details { padding: 28px; } .leader-controls { gap: 10px; } }
.service-dialog-image { height: min(420px, 45dvh); object-fit: contain; background: #e9edf0; }
.service-dialog-content .service-profile p { margin: 0 0 6px; line-height: 1.5; }
.service-dialog-content .service-profile [data-profile-name] { color: #071426; font-size: 1.4rem; font-weight: 700; }
/* Keep full website images visible, including when using a prebuilt stylesheet. */
header img, main img { object-fit: contain; }

/* Let photo frames follow the source proportions instead of letterboxing. */
#home > div:first-child { position: absolute; inset: 0; z-index: -10; }
#home > div:first-child > div:last-child { display: block; }

#values > div:first-child,
#contact > div:first-child { min-height: 0; align-self: start; }
.leader-portrait { height: auto; align-self: start; }
.gallery-grid { align-items: start; }

#values > div:first-child > img,
#contact > div:first-child > img,
.gallery-grid img,
.leader-portrait img,
.service-dialog-image {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* Reveal the assigned attorney behind the service on hover or keyboard focus. */
[data-service-button] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; z-index: -20; opacity: 0; transition: opacity 500ms; }
[data-service-button] > span.absolute { display: block; opacity: 0; transition: opacity 500ms; }
[data-service-button]:hover > img,
[data-service-button]:focus-visible > img,
[data-service-button]:hover > span.absolute,
[data-service-button]:focus-visible > span.absolute { opacity: 1; }
@media (hover: none) {
    [data-service-button] > img { opacity: .25; }
    [data-service-button] > span.absolute { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    [data-service-button] > img, [data-service-button] > span.absolute { transition: none; }
}

/* Advertisements stay clear of the carousel controls and are never cropped. */
.hero-advertisement { bottom: 110px; }
.hero-advertisement img { object-fit: contain; }
#home.is-advertisement { background: #071426; }
.management-heading { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-align: center; margin-bottom: 32px; }

#home [data-hero-controls] > div { flex-wrap: wrap; }
#home [data-hero-controls] > div > div { flex-wrap: wrap; min-width: 0; }
