/**
 * Liu & Associates — modern site styles
 * ---------------------------------------------------------------------------
 * Shared design system (tokens, header, footer, buttons, page shell) plus the
 * home page sections. Loaded after the reconstructed production stylesheets.
 * Inner-page content adaptations live in pages-modern.css.
 */

/* ==========================================================================
   1. Design tokens and base
   ========================================================================== */

:root {
    --lp-serif: 'Playfair Display', 'LFS-Kaiti', 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --lp-sans: 'Lato', 'LFS-Kaiti', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --lp-ink: #0f1e30;
    --lp-ink-soft: #16283d;
    --lp-ink-line: rgba(255, 255, 255, 0.15);
    --lp-cream: #f6f1e6;
    --lp-cream-deep: #efe7d6;
    --lp-paper: #fdfbf6;
    --lp-body: #46525f;
    --lp-muted: #5a6470;
    --lp-line: rgba(15, 30, 48, 0.14);
    --lp-line-strong: rgba(15, 30, 48, 0.28);
    --lp-brass: #b08a54;
    --lp-brass-deep: #7d5f33;
    --lp-brass-light: #d8b78a;
    --lp-shell: 1240px;
    --lp-gutter: 40px;
    --lp-ease: cubic-bezier(0.22, 0.61, 0.22, 1);
}

.home,
.mod-page {
    background: var(--lp-cream);
    color: var(--lp-ink);
    font-family: var(--lp-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* The production wrapper clips its children; the sticky header needs it open. */
.home .body-wrapper,
.mod-page .body-wrapper {
    overflow: visible !important;
}

.home-main {
    display: block;
    background: var(--lp-cream);
    overflow: hidden;
}

.home-practice,
.home-firm,
.home-insights,
.home-cta {
    scroll-margin-top: 96px;
}

.home img {
    max-width: 100%;
    height: auto;
    border: 0;
}

.home svg {
    display: block;
}

.home p {
    margin: 0;
}

.home a {
    color: inherit;
    text-decoration: none;
}

.home h1,
.home h2,
.home h3,
.home h4,
.home h5 {
    margin: 0;
    color: inherit;
    font-family: var(--lp-serif);
    font-weight: 400;
    letter-spacing: -0.012em;
}

.home em {
    font-style: italic;
}

.home ::selection {
    background: var(--lp-ink);
    color: var(--lp-cream);
}

.home a:focus-visible,
.home button:focus-visible {
    outline: 2px solid var(--lp-brass);
    outline-offset: 3px;
}

.home-shell {
    width: 100%;
    max-width: var(--lp-shell);
    margin: 0 auto;
    padding: 0 var(--lp-gutter);
}

.home-js [data-reveal] {
    transition: opacity 0.75s var(--lp-ease), transform 0.75s var(--lp-ease);
}

.home-js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(18px);
}

/* Icons ------------------------------------------------------------------ */

.home-icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-icon--arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--lp-ease);
}

.home-icon--chev {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

/* ==========================================================================
   2. Shared components
   ========================================================================== */

/* Skip link */
.home-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 500;
    padding: 12px 20px;
    background: var(--lp-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.home-skip:focus {
    left: 16px;
    top: 12px;
}

/* Eyebrow ---------------------------------------------------------------- */

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--lp-brass-deep);
    font-family: var(--lp-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
}

.home-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.8;
}

.home-eyebrow--light {
    color: var(--lp-brass-light);
}

/* Buttons and text links ------------------------------------------------- */

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: var(--lp-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.25s var(--lp-ease), color 0.25s var(--lp-ease),
        border-color 0.25s var(--lp-ease), transform 0.25s var(--lp-ease),
        box-shadow 0.25s var(--lp-ease);
}

.home-btn--primary {
    background: var(--lp-ink);
    color: #fff;
}

.home-btn--primary:hover,
.home-btn--primary:focus {
    background: #1b3049;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -18px rgba(15, 30, 48, 0.75);
}

.home-btn--light {
    background: var(--lp-cream);
    color: var(--lp-ink);
}

.home-btn--light:hover,
.home-btn--light:focus {
    background: #fff;
    color: var(--lp-ink);
    transform: translateY(-1px);
}

.home-btn--outline {
    border-color: rgba(255, 255, 255, 0.34);
    background: transparent;
    color: #fff;
}

.home-btn--outline:hover,
.home-btn--outline:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.home-btn:hover .home-icon--arrow {
    transform: translateX(3px);
}

.home-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--lp-line-strong);
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
}

.home-link-arrow:hover,
.home-link-arrow:focus {
    color: var(--lp-brass-deep);
    border-color: var(--lp-brass);
}

.home-link-arrow:hover .home-icon--arrow {
    transform: translateX(3px);
}

.home-link-arrow--light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.88);
}

.home-link-arrow--light:hover,
.home-link-arrow--light:focus {
    border-color: var(--lp-brass-light);
    color: #fff;
}

.home-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--lp-brass);
    vertical-align: middle;
}

/* Section heading -------------------------------------------------------- */

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px 64px;
    flex-wrap: wrap;
}

.home-section-head__title {
    font-size: clamp(32px, 3.4vw, 50px);
    line-height: 1.08;
}

.home-section-head__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-width: 380px;
}

.home-section-head__aside p {
    color: var(--lp-body);
    font-size: 15.5px;
    line-height: 1.7;
}

.home-section-head--dark .home-section-head__aside p {
    color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.home-header {
    position: sticky;
    top: -38px;
    z-index: 300;
}

.home-topbar {
    background: var(--lp-ink);
    color: rgba(255, 255, 255, 0.66);
}

.home-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 38px;
}

.home-topbar__note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.home-topbar__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--lp-brass);
}

.home-topbar__links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.home-topbar a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s var(--lp-ease);
}

.home-topbar a:hover,
.home-topbar a:focus {
    color: #fff;
}

.home-topbar__sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.22);
}

/* Sticky navigation bar */

.home-nav {
    position: relative;
    z-index: 300;
    border-bottom: 1px solid rgba(15, 30, 48, 0.1);
    background: rgba(253, 251, 246, 0.93);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    transition: box-shadow 0.3s var(--lp-ease), background 0.3s var(--lp-ease);
}

.home-nav.is-scrolled {
    background: rgba(253, 251, 246, 0.97);
    box-shadow: 0 18px 40px -34px rgba(15, 30, 48, 0.7);
}

.home-nav__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 84px;
}

.home-brand {
    display: block;
    flex: none;
    width: 258px;
}

.home-brand img {
    display: block;
    width: 100%;
}

/* Menu */

.home-menu {
    margin-left: auto;
}

.home-menu__list {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-menu__item {
    position: relative;
    flex: none;
}

.home-menu__item > a,
.home-menu__link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: #22303f;
    font-family: var(--lp-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s var(--lp-ease);
}

.home-menu__item > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--lp-brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--lp-ease);
}

.home-menu__item > a:hover,
.home-menu__item > a:focus,
.home-menu__item.is-current > a {
    color: var(--lp-brass-deep);
}

.home-menu__item > a:hover::after,
.home-menu__item > a:focus::after {
    transform: scaleX(1);
}

/* Practice-areas submenu (desktop) */

.home-menu__toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.home-menu__sub {
    position: absolute;
    top: calc(100% + 16px);
    left: -20px;
    z-index: 20;
    min-width: 286px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--lp-line);
    background: #fff;
    box-shadow: 0 30px 60px -38px rgba(15, 30, 48, 0.55);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s var(--lp-ease), transform 0.22s var(--lp-ease),
        visibility 0.22s;
}

.home-menu__sub::before {
    content: "";
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
}

.home-menu__item--sub:hover .home-menu__sub,
.home-menu__item--sub:focus-within .home-menu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-menu__sub a {
    display: block;
    padding: 11px 14px;
    color: #33414f;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
    transition: background 0.2s var(--lp-ease), color 0.2s var(--lp-ease);
}

.home-menu__sub a:hover,
.home-menu__sub a:focus {
    background: var(--lp-cream);
    color: var(--lp-ink);
}

/* Desktop actions */

.home-nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: none;
}

.home-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #22303f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.home-nav__phone:hover,
.home-nav__phone:focus {
    color: var(--lp-brass-deep);
}

.home-nav__phone .home-icon {
    width: 15px;
    height: 15px;
}

.home-nav__book {
    height: 46px;
    padding: 0 20px;
    font-size: 13px;
}

.home-menu__cta {
    display: none;
}

/* Burger */

.home-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--lp-line);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.home-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--lp-ink);
    transition: transform 0.3s var(--lp-ease), opacity 0.2s var(--lp-ease);
}

.home-menu-open .home-burger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.home-menu-open .home-burger span:nth-child(2) {
    opacity: 0;
}

.home-menu-open .home-burger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.home-menu-open {
    overflow: hidden;
}

/* Logged-in admin bar */

.admin-bar .home-header {
    top: -6px;
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 88% -12%, #fffdf7 0%, rgba(255, 253, 247, 0) 62%),
        linear-gradient(180deg, #f8f3e9 0%, #f4eee1 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    bottom: -200px;
    left: -160px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 138, 84, 0.12), transparent 66%);
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(48px, 5.5vw, 88px);
    align-items: center;
    padding-top: clamp(56px, 6.4vw, 92px);
    padding-bottom: clamp(64px, 7vw, 104px);
}

.home-hero__title {
    max-width: 15ch;
    font-size: clamp(45px, 5.4vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.022em;
}

.home-hero__title em {
    color: var(--lp-brass-deep);
}

.home-hero__lead {
    max-width: 50ch;
    margin-top: 26px;
    color: var(--lp-body);
    font-size: clamp(16.5px, 1.2vw, 18px);
    line-height: 1.72;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 30px;
    margin-top: 36px;
}

.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: #5c6672;
    font-size: 13.5px;
    line-height: 1.5;
}

.home-hero__meta a {
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(15, 30, 48, 0.22);
    color: var(--lp-ink);
    font-weight: 700;
    transition: color 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease);
}

.home-hero__meta a:hover,
.home-hero__meta a:focus {
    border-color: var(--lp-brass);
    color: var(--lp-brass-deep);
}

/* Image + floating stat card */

.home-hero__media {
    position: relative;
}

.home-hero__figure {
    position: relative;
    margin: 0;
}

.home-hero__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--lp-cream-deep);
    box-shadow: 0 50px 90px -60px rgba(15, 30, 48, 0.65);
}

.home-hero__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 3% 50%;
    transform: scale(1.02);
}

.home-hero__stat {
    position: absolute;
    bottom: -30px;
    left: -26px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 252px;
    padding: 22px 26px 20px;
    border-top: 2px solid var(--lp-brass);
    background: var(--lp-ink);
    color: #fff;
    box-shadow: 0 34px 60px -34px rgba(15, 30, 48, 0.8);
}

.home-hero__stat-value {
    color: var(--lp-cream);
    font-family: var(--lp-serif);
    font-size: 35px;
    line-height: 1;
}

.home-hero__stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* ==========================================================================
   5. Stats band
   ========================================================================== */

.home-stats {
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-paper);
}

.home-stats__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 42px 34px;
    border-left: 1px solid var(--lp-line);
}

.home-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-stat:last-child {
    padding-right: 0;
}

.home-stat__value {
    font-family: var(--lp-serif);
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: 1;
    letter-spacing: -0.01em;
}

.home-stat__label {
    color: var(--lp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* ==========================================================================
   6. Practice areas
   ========================================================================== */

.home-practice {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 116px) 0;
    background: var(--lp-ink);
    color: #fff;
}

.home-practice::after {
    content: "";
    position: absolute;
    top: -260px;
    right: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 138, 84, 0.16), transparent 64%);
    pointer-events: none;
}

.home-practice .home-shell {
    position: relative;
    z-index: 1;
}

.home-practice .home-section-head__title {
    color: #fff;
}

.home-practice__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 54px;
    border: 1px solid var(--lp-ink-line);
    background: var(--lp-ink-line);
}

.home-practice__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 286px;
    padding: 38px 42px 34px;
    background: var(--lp-ink);
    transition: background 0.3s var(--lp-ease);
}

.home-practice__card:hover,
.home-practice__card:focus {
    background: var(--lp-ink-soft);
}

.home-practice__num {
    color: var(--lp-brass-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
}

.home-practice__title {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(23px, 1.9vw, 30px);
    line-height: 1.2;
}

.home-practice__text {
    max-width: 44ch;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.7;
}

.home-practice__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.25s var(--lp-ease);
}

.home-practice__card:hover .home-practice__link {
    color: #fff;
}

.home-practice__card:hover .home-icon--arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   7. The firm
   ========================================================================== */

.home-firm {
    padding: clamp(72px, 8vw, 118px) 0;
    background: var(--lp-cream);
}

.home-firm__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: start;
}

.home-firm__figure {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--lp-cream-deep);
}

.home-firm__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-firm__caption {
    margin-top: 14px;
    color: var(--lp-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-recognition {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--lp-line);
}

.home-recognition__label {
    color: var(--lp-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.home-recognition__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-recognition__list li {
    padding: 0 18px;
    border-left: 1px solid var(--lp-line);
    color: #3f4a57;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.home-recognition__list li:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-recognition__list sup {
    position: relative;
    top: -0.35em;
    font-size: 7px;
    line-height: 0;
}

.home-firm__copy > .home-section-head__title {
    max-width: 18ch;
}

.home-firm__copy .home-section-head__title {
    font-size: clamp(32px, 3.2vw, 48px);
}

.home-firm__copy > p {
    max-width: 56ch;
    margin-top: 16px;
    color: var(--lp-body);
    font-size: 15.5px;
    line-height: 1.72;
}

.home-firm__copy > .home-firm__lead {
    margin-top: 24px;
    color: #2b3846;
    font-size: 18px;
    line-height: 1.66;
}

.home-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
    margin: 34px 0 30px;
    border-top: 1px solid var(--lp-line);
}

.home-fact {
    padding: 16px 0;
    border-bottom: 1px solid var(--lp-line);
}

.home-fact dt {
    color: var(--lp-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-fact dd {
    margin: 6px 0 0;
    color: var(--lp-ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* ==========================================================================
   8. Insights
   ========================================================================== */

.home-insights {
    padding: clamp(72px, 8vw, 116px) 0;
    border-top: 1px solid var(--lp-line);
    background: var(--lp-paper);
}

.home-insights__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 52px;
}

.home-post {
    border-top: 2px solid var(--lp-ink);
    transition: border-color 0.3s var(--lp-ease);
}

.home-post:hover {
    border-top-color: var(--lp-brass);
}

.home-post__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 22px;
}

.home-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--lp-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.home-post__cat {
    color: var(--lp-brass-deep);
}

.home-post__title {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 16px;
    font-size: clamp(21px, 1.5vw, 24px);
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    transition: color 0.25s var(--lp-ease);
}

.home-post:hover .home-post__title {
    color: var(--lp-brass-deep);
}

.home-post__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 12px;
    color: var(--lp-body);
    font-size: 14.5px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-post__more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--lp-line-strong);
    color: var(--lp-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: border-color 0.25s var(--lp-ease);
}

.home-post:hover .home-post__more {
    border-color: var(--lp-brass);
}

.home-post:hover .home-icon--arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   9. Closing CTA
   ========================================================================== */

.home-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 8.5vw, 122px) 0;
    background: var(--lp-ink);
    color: #fff;
}

.home-cta::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 138, 84, 0.2), transparent 64%);
    pointer-events: none;
}

.home-cta__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(44px, 6vw, 90px);
    align-items: start;
}

.home-cta__title {
    color: #fff;
    font-size: clamp(38px, 4vw, 57px);
    line-height: 1.06;
}

.home-cta__title em {
    color: var(--lp-brass-light);
}

.home-cta__lead {
    max-width: 46ch;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 16.5px;
    line-height: 1.72;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.home-cta__details {
    border-top: 1px solid var(--lp-ink-line);
}

.home-detail {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--lp-ink-line);
}

.home-detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--lp-brass-light);
}

.home-detail__icon .home-icon {
    width: 17px;
    height: 17px;
}

.home-detail__label {
    color: rgba(255, 255, 255, 0.56);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
}

.home-detail__value {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.6;
}

.home-detail__value a {
    transition: color 0.2s var(--lp-ease);
}

.home-detail__value a:hover,
.home-detail__value a:focus {
    color: var(--lp-brass-light);
}

.home-detail__link {
    display: inline-block;
    margin-top: 6px;
    padding-bottom: 1px;
    border-bottom: 1px solid rgba(216, 183, 138, 0.42);
    color: var(--lp-brass-light);
    font-size: 12.5px;
    transition: color 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease);
}

.home-detail__link:hover,
.home-detail__link:focus {
    border-color: var(--lp-brass-light);
    color: #fff;
}

/* ==========================================================================
   10. Footer (mirrored production markup, restyled for the home page)
   ========================================================================== */

.footer {
    padding: 0;
    background: #0a1522;
    color: rgba(255, 255, 255, 0.6);
}

.footer .container {
    width: 100%;
    max-width: var(--lp-shell);
    padding: 0 var(--lp-gutter);
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px 64px;
    padding: 64px 0 34px;
    background: transparent;
}

/* Bootstrap's .clearfix pseudo-elements become flex items; drop them. */
.footer-wrapper::before,
.footer-wrapper::after,
.footer-menu::before,
.footer-menu::after {
    display: none;
    content: none;
}

.footer-wrapper > div {
    float: none;
    width: auto;
}

.footer-left {
    max-width: 470px;
}

.footer-logo {
    float: none;
    width: auto;
    padding: 0;
}

.footer-logo img {
    display: block;
    width: 232px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-logo p {
    max-width: 430px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.75;
}

.footer-menu {
    float: none;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 10px 26px;
    width: auto;
    margin-top: 26px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
    transition: color 0.2s var(--lp-ease);
}

.footer-menu li a:hover,
.footer-menu li a:focus {
    color: #fff;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
    margin-left: auto;
    text-align: right;
}

.social-media ul {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}

.social-media ul li {
    padding: 0;
}

.social-media ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: border-color 0.25s var(--lp-ease), background 0.25s var(--lp-ease);
}

.social-media ul li a:hover,
.social-media ul li a:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}

.social-media svg {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.25s var(--lp-ease);
}

.social-media ul li a:hover svg,
.social-media ul li a:focus svg {
    opacity: 1;
}

.copyright {
    margin: 0;
}

.copyright p {
    color: rgba(255, 255, 255, 0.54);
    font-size: 11.5px;
    letter-spacing: 0.02em;
    line-height: 1.9;
    text-transform: none;
}

.copyright p a {
    display: inline-block;
    margin-left: 14px;
    padding: 0 0 1px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.2s var(--lp-ease), border-color 0.2s var(--lp-ease);
}

.copyright p a:first-child {
    margin-left: 0;
}

.copyright p a:hover,
.copyright p a:focus {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.design-by {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    text-transform: none;
}

/* ==========================================================================
   11. Entrance motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .home-hero__copy > * {
        animation: home-fade-up 0.85s var(--lp-ease) both;
    }

    .home-hero__copy > *:nth-child(1) {
        animation-delay: 0.05s;
    }

    .home-hero__copy > *:nth-child(2) {
        animation-delay: 0.13s;
    }

    .home-hero__copy > *:nth-child(3) {
        animation-delay: 0.22s;
    }

    .home-hero__copy > *:nth-child(4) {
        animation-delay: 0.31s;
    }

    .home-hero__copy > *:nth-child(5) {
        animation-delay: 0.4s;
    }

    .home-hero__figure {
        animation: home-fade-in 1.1s var(--lp-ease) 0.2s both;
    }
}

@keyframes home-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home * {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
    }

    .home-js [data-reveal]:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 1360px) {
    .home-nav__phone {
        display: none;
    }

    .home-menu__list {
        gap: 24px;
    }

    .home-brand {
        width: 236px;
    }
}

@media (max-width: 1280px) {
    .home-menu__list {
        gap: 22px;
    }

    .home-brand {
        width: 232px;
    }
}

@media (max-width: 1080px) {
    .home-brand {
        width: 226px;
    }

    .home-nav__book {
        display: none;
    }

    .home-burger {
        display: flex;
    }

    /* Mobile menu panel */
    .home-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 30;
        display: none;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        margin: 0;
        padding: 6px 0 22px;
        border-bottom: 1px solid var(--lp-line);
        background: var(--lp-paper);
        box-shadow: 0 34px 50px -40px rgba(15, 30, 48, 0.7);
    }

    .home-nav.is-open .home-menu {
        display: block;
    }

    .home-menu__list {
        display: block;
        padding: 0 var(--lp-gutter);
    }

    .home-menu__item {
        border-bottom: 1px solid var(--lp-line);
    }

    .home-menu__item > a,
    .home-menu__link {
        display: block;
        padding: 18px 44px 18px 0;
        font-size: 14px;
        letter-spacing: 0.12em;
    }

    .home-menu__item > a::after {
        display: none;
    }

    .home-menu__item--sub {
        position: relative;
    }

    .home-menu__toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 56px;
        color: var(--lp-muted);
    }

    .home-menu__toggle .home-icon--chev {
        transition: transform 0.25s var(--lp-ease);
    }

    .home-menu__item--sub.is-expanded .home-menu__toggle .home-icon--chev {
        transform: rotate(180deg);
    }

    .home-menu__sub {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 12px;
        padding: 0 0 0 16px;
        border: 0;
        border-left: 1px solid var(--lp-line);
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .home-menu__item--sub.is-expanded .home-menu__sub {
        display: block;
    }

    .home-menu__sub a {
        padding: 11px 0;
        color: #4a5663;
        font-size: 14.5px;
    }

    .home-menu__sub a:hover {
        background: transparent;
        color: var(--lp-brass-deep);
    }

    .home-menu__cta {
        display: block;
        margin-top: 20px;
        border-bottom: 0;
    }

    .home-menu__cta .home-btn {
        width: 100%;
    }

    .home-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
        padding-top: 56px;
    }

    .home-hero__title {
        max-width: 18ch;
        font-size: clamp(43px, 7.4vw, 64px);
    }

    .home-hero__media {
        max-width: none;
    }

    .home-hero__frame {
        aspect-ratio: 16 / 10;
    }

    .home-hero__frame img {
        object-position: 50% 42%;
        transform: scale(1);
    }

    .home-hero__stat {
        bottom: -24px;
        left: 0;
    }

    .home-stats__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-stat {
        padding: 30px 26px;
        border-top: 1px solid var(--lp-line);
    }

    .home-stat:nth-child(1),
    .home-stat:nth-child(2) {
        border-top: 0;
    }

    .home-stat:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .home-stat:nth-child(even) {
        padding-right: 0;
    }

    .home-practice__card {
        min-height: 0;
        padding: 34px 32px 30px;
    }
}

@media (max-width: 900px) {
    .home-firm__grid,
    .home-cta__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-practice__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-insights__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .home-insights__grid .home-post:last-child {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .home {
        --lp-gutter: 22px;
    }

    .home-header {
        top: -34px;
    }

    .home-topbar__note {
        display: none;
    }

    .home-topbar__inner {
        justify-content: flex-end;
        height: 34px;
    }

    .home-nav__inner {
        height: 70px;
        gap: 16px;
    }

    .home-brand {
        width: 196px;
    }

    .home-menu {
        max-height: calc(100vh - 70px);
    }

    .home-hero::before {
        display: none;
    }

    .home-hero__inner {
        gap: 44px;
        padding-top: 44px;
        padding-bottom: 56px;
    }

    .home-hero__title {
        font-size: clamp(39px, 10.4vw, 53px);
        max-width: 100%;
    }

    .home-hero__lead {
        margin-top: 20px;
        font-size: 16.5px;
    }

    .home-hero__actions {
        gap: 14px;
        margin-top: 28px;
    }

    .home-hero__actions .home-btn {
        width: 100%;
    }

    .home-hero__meta {
        margin-top: 24px;
        font-size: 12.5px;
    }

    .home-hero__frame {
        aspect-ratio: 4 / 4.6;
    }

    .home-hero__frame img {
        object-position: 3% 50%;
        transform: scale(1.02);
    }

    .home-hero__stat {
        position: static;
        width: 100%;
        margin-top: 14px;
        padding: 20px 22px;
    }

    .home-hero__stat-value {
        font-size: 30px;
    }

    .home-stat {
        padding: 24px 18px;
    }

    .home-stat__value {
        font-size: 27px;
    }

    .home-stat__label {
        font-size: 9.5px;
        letter-spacing: 0.1em;
    }

    .home-section-head {
        align-items: flex-start;
    }

    .home-section-head__aside {
        max-width: 100%;
    }

    .home-practice {
        padding: 62px 0;
    }

    .home-practice__grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
    }

    .home-practice__card {
        padding: 30px 26px 28px;
    }

    .home-firm {
        padding: 62px 0;
    }

    .home-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .home-insights {
        padding: 62px 0;
    }

    .home-insights__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        margin-top: 36px;
    }

    .home-insights__grid .home-post:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .home-post__title {
        font-size: 22px;
        -webkit-line-clamp: 5;
    }

    .home-cta {
        padding: 66px 0;
    }

    .home-cta__actions .home-btn {
        width: 100%;
    }

    .home-recognition__list {
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
        gap: 8px 0;
    }

    .home-recognition__list li {
        padding: 0 10px;
        font-size: 9.5px;
        letter-spacing: 0.08em;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 36px;
        padding: 52px 0 28px;
    }

    .footer-logo img {
        width: 200px;
    }

    .footer-menu {
        grid-template-columns: repeat(2, auto);
        gap: 10px 30px;
    }

    .footer-right {
        align-items: flex-start;
        margin-left: 0;
        text-align: left;
    }

    .social-media ul {
        justify-content: flex-start;
    }

    .copyright p a {
        margin-left: 0;
        margin-right: 14px;
    }
}

@media (max-width: 420px) {
    .home-brand {
        width: 168px;
    }

    .home-burger {
        width: 42px;
        height: 42px;
    }

    .home-hero__stat-label {
        font-size: 9.5px;
    }
}

/* Admin bar offsets */
@media screen and (max-width: 782px) {
    .admin-bar .home-header {
        top: 12px;
    }

    .home-menu {
        max-height: calc(100vh - 104px);
    }
}

/* Chinese home: keep short italic phrases together and give CJK more leading. */
.mod-page:lang(zh-Hans) .home-hero__title {
    line-height: 1.16;
}

.mod-page:lang(zh-Hans) .home-hero__title em,
.mod-page:lang(zh-Hans) .home-firm__copy .home-section-head__title em {
    white-space: nowrap;
}
/* Brand images keep their intrinsic ratio on every page. */
.home-brand img {
    height: auto;
}
/* Anchor colour resets on .home are more specific than the button classes. */
.home .home-btn,
.mod-page .home-btn {
    color: var(--lp-ink);
}

.home .home-btn--primary,
.mod-page .home-btn--primary {
    color: #fff;
}

.home .home-btn--light,
.mod-page .home-btn--light {
    color: var(--lp-ink);
}

.home .home-btn--outline,
.mod-page .home-btn--outline {
    color: #fff;
}

.home .home-link-arrow--light,
.mod-page .home-link-arrow--light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.88);
}
/* Focus ring for every inner page (the legacy reset removes the UA outline). */
.mod-page a:focus-visible,
.mod-page button:focus-visible {
    outline: 2px solid var(--lp-brass);
    outline-offset: 3px;
}
