:root {
    --navy: #00436e;
    --navy-2: #00436e;
    --blue: #356d94;
    --blue-soft: #dcebf3;
    --gold: #b49a6a;
    --ink: #24323c;
    --muted: #3a434a;
    --cream: #f6f5f1;
    --paper: #fffefb;
    --line: #dfe3e3;
    --white: #fff;
    --serif: "Libre Baskerville", Georgia, serif;
    --sans: "Open Sans", Arial, sans-serif;
    --shadow: 0 24px 70px rgba(23, 54, 77, .12);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3 {
    color: var(--navy);
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
}

h1 {
    margin-bottom: 25px;
    font-size: clamp(2rem, 3vw, 2.1875rem);
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(1.9rem, 3vw, 2.1875rem);
}

h3 {
    font-size: 1.4rem;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    max-width: 1220px;
}

.skip-link {
    position: fixed;
    z-index: 1100;
    top: -80px;
    left: 20px;
    padding: 12px 18px;
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow);
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
}

.section-space {
    padding: 130px 0;
}

.btn {
    min-height: 52px;
    padding: 15px 23px 13px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.45;
    text-transform: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--blue);
    --bs-btn-hover-border-color: var(--blue);
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
}

.btn-cream {
    --bs-btn-color: var(--blue);
    --bs-btn-bg: var(--cream);
    --bs-btn-border-color: var(--cream);
    --bs-btn-hover-color: var(--blue);
    --bs-btn-hover-bg: var(--cream);
    --bs-btn-hover-border-color: var(--cream);
    --bs-btn-active-color: var(--blue);
    --bs-btn-active-bg: var(--cream);
    --bs-btn-active-border-color: var(--cream);
    align-self: flex-start;
}

.btn-white {
    --bs-btn-color: var(--blue);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--blue);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--blue);
    --bs-btn-active-bg: #fff;
    --bs-btn-active-border-color: #fff;
    align-self: flex-start;
}

.btn-blue {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
    align-self: flex-start;
}

.btn-outline-primary {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: #9aabb6;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
}

/* Header */
.site-header {
    background: rgba(246, 245, 241, .94);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition: box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled {
    border-color: rgba(23, 54, 77, .08);
    box-shadow: 0 8px 35px rgba(23, 54, 77, .07);
}

.navbar {
    min-height: 90px;
    padding: 10px 0;
}

.navbar-brand {
    padding: 0;
}

.brand-logo {
    height: 70px;
    width: auto;
}

.brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--navy);
    font-family: var(--serif);
    font-size: .95rem;
    letter-spacing: -.05em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-copy strong {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.navbar-nav {
    gap: 4px;
}

.offcanvas-lg-inline {
    display: none;
}

@media (min-width: 992px) {
    .offcanvas-lg-inline {
        display: block;
    }
}

.navbar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 14px !important;
    color: #2a333a;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
}

.navbar .dropdown-toggle::after,
.offcanvas .dropdown-toggle::after {
    display: none;
}

.dropdown-caret {
    width: 15px;
    height: 15px;
    margin-left: 6px;
    transition: transform .2s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-caret {
    transform: rotate(180deg);
}

.navbar .nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 1px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    margin-top: 10px;
    padding: 10px;
    background: var(--paper);
    border: 1px solid rgba(23, 54, 77, .08);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.dropdown-item {
    padding: 10px 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--cream);
    color: var(--navy);
}

.navbar-toggler {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.navbar-toggler span {
    width: 100%;
    height: 1px;
    background: var(--navy);
}

/* Mobile off-canvas menu */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 320px;
        background: #fff;
    }

    .offcanvas-header {
        padding: 22px 24px;
        border-bottom: 1px solid var(--line);
    }

    .offcanvas-header .brand-logo {
        height: 60px;
    }

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        padding: 24px;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .nav-link {
        padding: 12px 0 !important;
    }

    .navbar .nav-link::after {
        right: auto;
        left: 0;
        width: 40px;
    }

    .offcanvas .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 4px;
        border: 0;
        box-shadow: none;
        background: var(--cream);
    }

    .offcanvas-contact {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--line);
    }

    .offcanvas-contact li {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 16px;
    }

    .offcanvas-contact li:last-child {
        margin-bottom: 0;
    }

    .offcanvas-contact i {
        flex: none;
        width: 19px;
        height: 19px;
        margin-top: 3px;
        color: var(--gold);
    }

    .offcanvas-contact address,
    .offcanvas-contact a {
        color: var(--muted);
        font-size: 14px;
        font-style: normal;
    }
}

@media (min-width: 992px) {
    .offcanvas-header,
    .offcanvas-contact {
        display: none !important;
    }
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 850px;
    padding: 150px 0 80px;
    overflow: hidden;
}

.hero-section::before {
    position: absolute;
    top: 110px;
    right: -90px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(53, 109, 148, .11);
    border-radius: 50%;
    content: "";
}

.hero-section .container {
    position: relative;
    min-height: 665px;
}

.hero-image-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    height: 630px;
    overflow: hidden;
}

.hero-image-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 54, 77, .08), transparent 50%);
    content: "";
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    z-index: 2;
    top: 115px;
    left: 0;
    width: min(650px, 57%);
    padding: 64px 70px 68px 0;
    background: var(--cream);
}

.hero-lead {
    max-width: 565px;
    margin-bottom: 33px;
    color: var(--muted);
    font-size: 1rem;
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    right: -24px;
    bottom: 2px;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
}

.scroll-cue span {
    width: 12px;
    height: 12px;
    border-right: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    transform: translateY(-3px) rotate(45deg);
}

/* Practice */
.practice-section {
    position: relative;
    padding-top: 105px;
    background: #fff;
}

.section-heading {
    max-width: 660px;
    margin-bottom: 55px;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 14px;
}

.section-heading > p:last-child {
    color: var(--muted);
}

.practice-card {
    position: relative;
    display: block;
    min-height: 285px;
    padding: 39px 36px 32px;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid rgba(23, 54, 77, .05);
    box-shadow: 0 14px 35px rgba(23, 54, 77, .055);
    transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.practice-card:hover {
    background: var(--navy);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.practice-icon {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--blue);
    transition: color .3s ease;
}

.practice-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.6;
}

.practice-card h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    white-space: nowrap;
}

.practice-card p {
    max-width: 305px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.card-more {
    display: inline-block;
    width: fit-content;
    margin-top: 20px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
    font-size: .9rem;
    font-weight: 600;
}

.practice-card:hover h3,
.practice-card:hover p,
.practice-card:hover .practice-icon {
    color: var(--white);
}

/* About */
.about-section {
    padding-top: 70px;
}

.about-layout {
    position: relative;
    min-height: 710px;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 69%;
    height: 650px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.image-caption {
    position: absolute;
    bottom: 8px;
    left: 12px;
    padding: 4px 7px;
    background: rgba(255, 255, 255, .78);
    color: #59646b;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-card {
    position: absolute;
    z-index: 2;
    top: 76px;
    right: 0;
    width: 53%;
    padding: 62px 66px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.about-card h1,
.about-card h2 {
    margin-bottom: 28px;
}

.about-name-accent {
    display: inline-block;
    font-size: 1.5em;
    font-weight: 300;
}

.about-card p {
    color: var(--muted);
    font-size: 1rem;
}

.about-card .about-highlight {
    margin: 25px 0 29px;
    padding-left: 22px;
    border-left: 2px solid var(--gold);
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}

/* CTA bands */
.cta-band {
    position: relative;
    padding: 72px 0;
    overflow: hidden;
    background: var(--navy-2);
}

.cta-band::before,
.cta-band::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
}

.cta-band::before {
    top: -240px;
    left: -40px;
    width: 740px;
    height: 500px;
    transform: rotate(-12deg);
}

.cta-band::after {
    right: -170px;
    bottom: -370px;
    width: 800px;
    height: 660px;
}

.cta-card {
    position: relative;
    z-index: 1;
    width: 480px;
    max-width: 100%;
    padding: 43px 48px 46px;
    background: var(--paper);
    box-shadow: 0 20px 60px rgba(8, 29, 44, .18);
}

.cta-card h2 {
    margin-bottom: 13px;
    font-size: clamp(1.8rem, 3vw, 2.1875rem);
}

.cta-card p {
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 1rem;
}

/* Detailed services */
.services-detail {
    background: #f2f3f1;
}

.services-detail .row > div > p {
    color: var(--muted);
}

.service-list-card {
    padding: 48px 50px 40px;
    background: var(--paper);
    border: 1px solid rgba(23, 54, 77, .06);
}

.service-card-head {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 28px;
    padding-bottom: 27px;
    border-bottom: 1px solid var(--line);
}

.service-card-head h3 {
    margin: 0;
    font-size: 1.75rem;
}

.service-list {
    margin: 0;
}

.service-list li {
    position: relative;
    padding: 13px 0 13px 28px;
    color: #4f5c64;
    font-size: 1rem;
}

.service-list li::before {
    position: absolute;
    top: 20px;
    left: 2px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    content: "";
}

.service-list-card-dark {
    background: var(--navy);
}

.service-list-card-dark h3,
.service-list-card-dark .service-list li {
    color: var(--white);
}

.service-list-card-dark .service-card-head {
    border-color: rgba(255, 255, 255, .12);
}

/* Approach */
.approach-section {
    background: var(--cream);
}

.approach-image {
    position: relative;
    height: 590px;
}

.approach-image::before {
    position: absolute;
    z-index: 0;
    top: -26px;
    right: -26px;
    width: 155px;
    height: 155px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    content: "";
}

.approach-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.approach-section .col-lg-5 > p {
    margin-bottom: 35px;
    color: var(--muted);
}

.approach-points > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.approach-points strong {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.approach-points span {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 500;
}

.cta-band-bottom .cta-card {
    margin-left: auto;
}

/* Contact */
.contact-section {
    background: var(--paper);
}

.contact-panel {
    box-shadow: var(--shadow);
}

.contact-copy {
    padding: 65px 70px;
    background: var(--cream);
}

.contact-copy h2 {
    margin-bottom: 48px;
    font-size: clamp(1.8rem, 3vw, 2.1875rem);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 29px;
    border-top: 1px solid #d9dddd;
}

.contact-details > div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-details i {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--gold);
}

.contact-label {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-details address,
.contact-details a {
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: normal;
    line-height: 1.55;
}

.contact-details address {
    font-size: 1rem;
}

.contact-details a:hover {
    color: var(--blue);
}

.contact-aside {
    position: relative;
    display: flex;
    min-height: 430px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 65px 60px;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.contact-aside-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-aside::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 30, 51, .72);
    content: "";
}

.contact-aside > p,
.contact-aside > .btn {
    position: relative;
    z-index: 2;
}

.contact-aside > p {
    position: relative;
    margin-bottom: 30px;
    color: #d9e1e5;
    font-family: var(--serif);
    font-size: 1.75rem;
    line-height: 1.45;
}

/* Footer */
.site-footer {
    padding: 80px 0 28px;
    background: var(--navy);
    color: #b7c4cd;
}

.footer-main {
    padding-bottom: 45px;
}

.footer-logo {
    max-width: 100%;
    width: 300px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-intro {
    max-width: 320px;
    margin-top: 22px;
    color: #b7c4cd;
    font-size: 13px;
}

.footer-label {
    margin-bottom: 20px;
    color: #fff;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-links li::before {
    flex: none;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    content: "";
}

.footer-links a,
.site-footer address {
    color: #b7c4cd;
    font-family: var(--serif);
    font-size: 14px;
    font-style: normal;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact li i {
    flex: none;
    width: 19px;
    height: 19px;
    margin-top: 3px;
    color: var(--gold);
}

.footer-contact li a,
.footer-contact li span {
    color: #b7c4cd;
    font-family: var(--serif);
    font-size: 14px;
}

.footer-contact li a:hover {
    color: #fff;
}


.footer-legal {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
}

.footer-legal a {
    color: #b7c4cd;
    font-family: var(--serif);
}

.footer-legal a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8494a1;
    font-size: 13px;
    letter-spacing: .04em;
}

.footer-bottom a {
    color: #8494a1;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Service detail page */
.page-first-section {
    padding-top: 165px;
}

.service-detail-body p {
    color: var(--muted);
}

.service-detail-body .section-heading h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.1rem);
}

.service-points-title {
    margin: 28px 0 8px;
    font-size: 1.45rem;
}

/* Timeline */
.timeline-section {
    padding-top: 0;
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 34px;
    border-left: 1px solid var(--line);
}

.timeline-item {
    position: relative;
    padding-bottom: 38px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -39px;
    width: 11px;
    height: 11px;
    background: var(--gold);
    border: 3px solid var(--cream);
    border-radius: 50%;
}

.timeline-label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-item p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

/* Highlights */
.highlight-card {
    padding: 36px 34px;
    background: var(--paper);
    border: 1px solid rgba(23, 54, 77, .05);
    box-shadow: 0 14px 35px rgba(23, 54, 77, .055);
}

.highlight-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.highlight-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Contact form */
.contact-lead {
    max-width: 480px;
    margin-bottom: 20px;
    color: var(--muted);
}

.contact-form-panel {
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(23, 54, 77, .08);
}

.contact-form .contact-label {
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 13px;
}

.contact-form .form-control {
    padding: 10px 14px;
    background: var(--paper);
    border: 1px solid #ccd3d6;
    border-radius: 0;
    color: var(--ink);
    font-size: 14px;
    box-shadow: none;
}

.contact-form .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.contact-form textarea.form-control {
    resize: vertical;
}

.contact-form .form-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.contact-form .form-check-input {
    flex: none;
    margin-top: 4px;
    border-radius: 0;
}

.contact-form .form-check-input:checked {
    background-color: var(--navy);
    border-color: var(--navy);
}

.contact-form .form-check-label {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.contact-form .form-check-label a {
    color: var(--navy);
    text-decoration: underline;
}

.form-alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    font-size: 15px;
}

.form-alert p {
    margin: 0;
}

.form-alert p + p {
    margin-top: 4px;
}

.form-alert-success {
    background: var(--blue-soft);
    color: var(--navy);
    border-left: 3px solid var(--blue);
}

.form-alert-error {
    background: #fbeaea;
    color: #7a2626;
    border-left: 3px solid #b74747;
}

.contact-info-list li {
    margin-bottom: 20px;
}

.contact-info-list li:last-child {
    margin-bottom: 0;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal — resets per row, max 4 delay steps */
.practice-grid > .reveal:nth-child(3n+2),
.highlight-section .row > .reveal:nth-child(3n+2),
.services-detail .row > .reveal:nth-child(4n+2) {
    transition-delay: .12s;
}

.practice-grid > .reveal:nth-child(3n+3),
.highlight-section .row > .reveal:nth-child(3n+3),
.services-detail .row > .reveal:nth-child(4n+3) {
    transition-delay: .24s;
}

.services-detail .row > .reveal:nth-child(4n+4) {
    transition-delay: .36s;
}

@media (max-width: 1199.98px) {
    .container {
        max-width: 1040px;
    }

    .hero-card {
        padding-right: 45px;
    }

    .scroll-cue {
        right: 10px;
    }

    .about-card {
        width: 58%;
        padding: 50px;
    }
}

@media (max-width: 991.98px) {
    .container {
        padding-right: 25px;
        padding-left: 25px;
    }

    .section-space {
        padding: 95px 0;
    }

    .page-first-section {
        padding-top: 140px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 124px;
    }

    .hero-section .container {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .hero-image-wrap,
    .hero-card {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
    }

    .hero-image-wrap {
        order: 1;
        width: calc(100% - 65px);
        height: 480px;
        margin-left: auto;
    }

    .hero-card {
        z-index: 2;
        order: 2;
        width: calc(100% - 65px);
        margin-top: -145px;
        padding: 48px 50px 0 0;
    }

    .scroll-cue {
        right: 18px;
        bottom: -24px;
    }

    .about-layout {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .about-image,
    .about-card {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
    }

    .about-image {
        width: 86%;
        height: 560px;
    }

    .about-card {
        width: 72%;
        margin: -170px 0 0 auto;
    }

    .service-list-card {
        padding: 42px;
    }

    .approach-image {
        height: 500px;
    }

    .contact-aside {
        min-height: 310px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .section-space {
        padding: 78px 0;
    }

    .page-first-section {
        padding-top: 122px;
    }

    .navbar {
        min-height: 90px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .brand-logo {
        height: 52px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 15px;
    }

    .hero-section {
        padding: 108px 0 65px;
    }

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

    .hero-image-wrap {
        width: calc(100% - 20px);
        height: 370px;
    }

    .hero-image-wrap img {
        object-position: 62% center;
    }

    .hero-card {
        width: calc(100% - 20px);
        margin-top: -90px;
        padding: 35px 25px 0 0;
    }

    .hero-card h1 br {
        display: none;
    }

    .hero-lead {
        font-size: 15px;
    }

    .scroll-cue {
        display: none;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .practice-card {
        min-height: 0;
        padding: 30px;
    }

    .about-section {
        padding-top: 35px;
    }

    .about-image {
        width: 100%;
        height: 400px;
    }

    .about-image img {
        object-position: 40% center;
    }

    .about-card {
        width: calc(100% - 18px);
        margin-top: -75px;
        padding: 38px 30px;
    }

    .cta-band {
        padding: 50px 0;
    }

    .cta-card {
        width: calc(100% - 18px);
        padding: 35px 29px 38px;
    }

    .cta-band-bottom .cta-card {
        margin-left: 18px;
    }

    .service-list-card {
        padding: 33px 28px;
    }

    .service-card-head {
        gap: 17px;
    }

    .approach-image {
        height: 390px;
    }

    .approach-image::before {
        top: -14px;
        right: -7px;
    }

    .contact-copy,
    .contact-aside {
        padding: 43px 31px;
    }

    .contact-copy h2 {
        margin-bottom: 35px;
    }

    .contact-aside {
        min-height: 285px;
    }

    .site-footer {
        padding-top: 65px;
    }
}

@media (max-width: 430px) {
    .brand-copy strong {
        max-width: 150px;
        white-space: normal;
    }

    .hero-image-wrap {
        height: 320px;
    }

    .hero-card .btn {
        width: 100%;
    }

    .about-image {
        height: 350px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Private demo analytics */
.analytics-admin { min-height: 100vh; color: #d9e1e5; background: var(--navy); font-family: var(--sans); }
.analytics-login-shell { display: grid; min-height: 100vh; padding: 32px 25px; place-items: center; }
.analytics-login-card { width: 100%; max-width: 480px; padding: 48px; border: 1px solid rgba(255, 255, 255, .12); background: #003457; }
.analytics-label { display: block; margin-bottom: 18px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.analytics-login-card h1, .analytics-dashboard h1 { margin: 0 0 20px; color: #fff; font-family: var(--serif); font-size: clamp(40px, 6vw, 58px); line-height: 1.1; }
.analytics-login-card > p, .analytics-dashboard-header p { color: #a9bac5; font-size: 14px; line-height: 1.75; }
.analytics-login-card form { margin-top: 35px; }
.analytics-login-card label { display: block; margin-bottom: 9px; color: #a9bac5; font-size: 12px; }
.analytics-login-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 0; outline: 0; color: #fff; background: #002744; font-family: var(--sans); }
.analytics-login-card input:focus { border-color: var(--gold); }
.analytics-login-card button, .analytics-logout { min-height: 48px; margin-top: 14px; padding: 0 24px; border: 0; color: var(--navy); background: var(--gold); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.analytics-error { margin-top: 22px; padding: 13px 15px; color: #f4c9c2; background: #4a1f1a; font-size: 13px; }
.analytics-dashboard { width: min(1240px, calc(100% - 50px)); margin: 0 auto; padding: 72px 0 90px; }
.analytics-dashboard-header { display: flex; padding-bottom: 55px; border-bottom: 1px solid rgba(255, 255, 255, .12); justify-content: space-between; gap: 50px; align-items: flex-end; }
.analytics-dashboard-header p { max-width: 680px; margin: 0; }
.analytics-dashboard-header code { color: var(--gold); }
.analytics-logout { margin: 0; flex: 0 0 auto; color: #d9e1e5; background: rgba(255, 255, 255, .1); }
.analytics-stats { display: grid; padding: 50px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.analytics-stats > div { min-height: 105px; padding: 4px 35px; border-right: 1px solid rgba(255, 255, 255, .12); }
.analytics-stats > div:first-child { padding-left: 0; }
.analytics-stats > div:last-child { border-right: 0; }
.analytics-stats span { display: block; margin-bottom: 18px; color: #8fa2ae; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.analytics-stats strong { display: block; color: #fff; font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.2; }
.analytics-stats > div:last-child strong { font-family: var(--sans); font-size: 17px; font-weight: 400; }
.analytics-table-section { padding-top: 58px; }
.analytics-table-heading { display: flex; margin-bottom: 28px; justify-content: space-between; align-items: end; gap: 20px; }
.analytics-table-heading h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: 32px; }
.analytics-table-heading span { color: #8fa2ae; font-size: 12px; }
.analytics-table-wrap { overflow-x: auto; }
.analytics-table-section table { width: 100%; border-collapse: collapse; }
.analytics-table-section th, .analytics-table-section td { padding: 18px 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.analytics-table-section th { color: #8fa2ae; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.analytics-table-section td { color: #d9e1e5; font-size: 14px; }
.analytics-table-section td code { color: var(--gold); }
.analytics-empty { padding: 34px 0; color: #8fa2ae; }

@media (max-width: 767.98px) {
    .analytics-login-card { padding: 35px 24px; }
    .analytics-dashboard { width: calc(100% - 50px); padding-top: 45px; }
    .analytics-dashboard-header { align-items: flex-start; flex-direction: column; }
    .analytics-stats { grid-template-columns: 1fr; }
    .analytics-stats > div, .analytics-stats > div:first-child { min-height: 0; padding: 25px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .analytics-stats > div:last-child { border-bottom: 0; }
    .analytics-table-section th, .analytics-table-section td { padding: 16px 10px; white-space: nowrap; }
}
