/* ==========================================================================
   Piner Appraisal — design system
   Palette is sampled from the company mark: deep teal, mid teal, slate.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
    --brand-900: #0a212c;
    --brand-800: #0f3143;
    --brand-700: #164459;
    --brand-600: #1d5670;
    --brand-500: #37708a;
    --brand-400: #5291a1;
    --brand-300: #8eabb8;
    --brand-100: #dceaf0;
    --brand-50:  #eef5f8;

    --accent-400: #5fb9cc;
    --accent-500: #45a5ba;

    --ink:     #12242e;
    --text:    #23404d;
    --muted:   #566d78;
    --line:    #dbe4e9;
    --canvas:  #f4f8fa;
    --surface: #ffffff;

    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1160px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(10, 33, 44, .06), 0 2px 8px rgba(10, 33, 44, .05);
    --shadow-md: 0 2px 6px rgba(10, 33, 44, .07), 0 12px 28px rgba(10, 33, 44, .08);
    --shadow-lg: 0 8px 20px rgba(10, 33, 44, .10), 0 24px 56px rgba(10, 33, 44, .12);

    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.012em;
    color: var(--ink);
}

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

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--accent-500);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: .7rem 1.1rem;
    background: var(--brand-800);
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Layout ------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--canvas); border-block: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: 3rem; }

.section__title {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    margin-bottom: .9rem;
}

.section__lede {
    font-size: 1.075rem;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 .7rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-500);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .5rem .9rem; font-size: .875rem; }
.btn--lg { padding: .88rem 1.6rem; font-size: 1rem; }

.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-800); color: #fff; box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent-400); color: var(--brand-900); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: #74c6d6; color: var(--brand-900); box-shadow: var(--shadow-md); }

.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.icon { flex: none; }

/* --- Header ------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
}
.brand img { width: 40px; height: auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__name {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.brand__sub {
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand-500);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav__list { display: flex; align-items: center; gap: .35rem; }

.site-nav__link {
    display: block;
    padding: .5rem .8rem;
    border-radius: var(--radius);
    font-size: .94rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.site-nav__link:hover { background: var(--brand-50); color: var(--brand-700); }

.site-nav__link.active {
    color: var(--brand-700);
    font-weight: 600;
    background: var(--brand-50);
}

.nav-toggle {
    display: none;
    padding: .45rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
}
.nav-toggle__close { display: none; }

/* --- Hero --------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 68vh, 40rem);
    padding-block: clamp(3.5rem, 8vw, 6rem);
    background: var(--brand-900);
    overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: 0; display: block; }

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Weighted to the left so the headline clears 4.5:1 against white while the
   right of the frame — waterfront, port, channel — stays readable as imagery. */
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg,
            rgba(8, 28, 38, .96) 0%,
            rgba(8, 28, 38, .91) 35%,
            rgba(8, 28, 38, .70) 60%,
            rgba(8, 28, 38, .30) 82%,
            rgba(8, 28, 38, .14) 100%),
        linear-gradient(to top, rgba(8, 28, 38, .55) 0%, transparent 40%);
}

.hero__inner { position: relative; z-index: 2; max-width: 45rem; }

/* --- Hero brand lockup -------------------------------------------------- */

.hero__brand {
    display: flex;
    align-items: center;
    gap: clamp(.85rem, 1.6vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.1rem);
}

.hero__brand-mark {
    width: clamp(58px, 7.5vw, 88px);
    height: auto;
    flex: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}

.hero__brand-text { display: flex; flex-direction: column; }

.hero__brand-name {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.015em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.hero__brand-sub {
    margin-top: .42rem;
    font-size: clamp(.72rem, 1.15vw, .92rem);
    font-weight: 600;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--accent-400);
}

.hero__eyebrow {
    margin: 0 0 1rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-400);
}

.hero__title {
    font-size: clamp(2.25rem, 5.6vw, 3.9rem);
    font-weight: 600;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero__lede {
    font-size: clamp(1.03rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .87);
    max-width: 38rem;
    margin-bottom: 2.1rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Page hero (interior pages) ----------------------------------------- */

.page-hero {
    padding-block: clamp(3rem, 6vw, 4.75rem);
    background: radial-gradient(120% 150% at 12% 0%, var(--brand-700) 0%, var(--brand-900) 62%);
    color: #fff;
}

.page-hero__eyebrow {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-400);
}

.page-hero__title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    color: #fff;
    margin-bottom: .9rem;
}

.page-hero__lede {
    max-width: 44rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .84);
    margin: 0;
}

/* --- Credentials strip -------------------------------------------------- */

.credentials {
    background: var(--brand-800);
    color: rgba(255, 255, 255, .82);
    padding-block: 2rem;
}

.credentials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.credential { display: flex; gap: .9rem; align-items: flex-start; }

.credential__icon { color: var(--accent-400); margin-top: .15rem; }

.credential__title {
    margin: 0 0 .2rem;
    font-weight: 600;
    color: #fff;
}

.credential__text { margin: 0; font-size: .9rem; line-height: 1.55; }

/* --- Cards -------------------------------------------------------------- */

.card-grid { display: grid; gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 1.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.feature-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand-600);
}

.feature-card__title { font-size: 1.28rem; margin-bottom: .6rem; }

.feature-card__text { color: var(--muted); font-size: .96rem; margin-bottom: 1.4rem; }

.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    font-weight: 600;
    font-size: .93rem;
    color: var(--brand-600);
    transition: gap .2s var(--ease);
}
.feature-card:hover .feature-card__link { gap: .65rem; }

.mini-card {
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.mini-card__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand-600);
}

.mini-card__title { font-size: 1.12rem; margin-bottom: .5rem; }
.mini-card p { color: var(--muted); font-size: .94rem; }

/* --- Split layout ------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.split__body > .btn { margin-top: 1.75rem; }

.split__aside { display: grid; gap: 1.25rem; }

.check-list { display: grid; gap: 1rem; margin-top: 1.5rem; }

.check-list li { display: flex; gap: .75rem; align-items: flex-start; }

.check-list .icon {
    margin-top: .3rem;
    padding: .12rem;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
}

.check-list strong { color: var(--ink); }

.panel {
    padding: 1.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.panel__title { font-size: 1.25rem; margin-bottom: 1.1rem; }

.panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.75rem;
}

.panel__list dt {
    font-weight: 600;
    color: var(--brand-700);
    margin-top: 1.1rem;
}
.panel__list dt:first-child { margin-top: 0; }

.panel__list dd {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.stat-card {
    padding: 1.6rem 1.75rem;
    background: var(--brand-800);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, .8);
}

.stat-card__value {
    margin: 0 0 .3rem;
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-400);
}

.stat-card__label { margin: 0; font-size: .93rem; line-height: 1.5; }

/* --- Prose -------------------------------------------------------------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-bottom: 1rem; }
.prose p { font-size: 1.05rem; }
.prose__lede { font-size: 1.18rem; line-height: 1.6; color: var(--text); }

/* --- Video -------------------------------------------------------------- */

.video-frame {
    max-width: 62rem;
    margin-inline: auto;
    padding: .6rem;
    background: var(--brand-800);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius-lg) - 5px);
    background: #000;
}

.video-note {
    margin-top: .9rem;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
}

/* --- Call to action band ------------------------------------------------ */

.cta-band {
    padding-block: clamp(3rem, 6vw, 4.25rem);
    background: linear-gradient(120deg, var(--brand-800), var(--brand-600));
    color: #fff;
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.cta-band__title { font-size: clamp(1.5rem, 3vw, 2.05rem); color: #fff; margin-bottom: .5rem; }

.cta-band__text { max-width: 38rem; color: rgba(255, 255, 255, .84); margin: 0; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --- Contact ------------------------------------------------------------ */

.contact {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact__heading { font-size: 1.5rem; margin-bottom: 1.5rem; }

.contact__list { display: grid; gap: 1.5rem; }

.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }

.contact__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand-600);
}

.contact__label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
}

.contact__value {
    display: block;
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
a.contact__value:hover { color: var(--brand-600); text-decoration: underline; }

.contact__map {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
    font-size: .88rem;
}

.contact__note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .95rem;
}

/* --- Product ------------------------------------------------------------ */

.product {
    max-width: 46rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.product__head { display: flex; gap: 1.15rem; align-items: center; margin-bottom: 1.5rem; }

.product__head img { width: 92px; height: auto; }

.product__title { font-size: 1.85rem; }
.product__mark { font-size: .95rem; vertical-align: super; color: var(--brand-500); }

.product__sub { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }

.product__text { font-size: 1.07rem; margin-bottom: 1.75rem; }

.partner-card {
    padding: 1.9rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.partner-card img { margin: 0 auto 1rem; width: 64px; height: auto; }

.partner-card__title { font-size: 1.3rem; margin-bottom: .6rem; }

.partner-card__text { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }

/* --- Counties ----------------------------------------------------------- */

.counties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: .6rem;
}

.county {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .72rem .95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.county:hover { border-color: var(--brand-300); transform: translateY(-1px); }

.county__icon { color: var(--brand-500); }

@media (prefers-reduced-motion: reduce) {
    .county:hover { transform: none; }
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
    max-width: 52rem;
    display: grid;
    gap: .75rem;
}

.faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq__q {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.15rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: color .16s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand-600); }

.faq__q::before {
    content: "";
    flex: none;
    width: .68rem;
    height: .68rem;
    margin-top: .5rem;
    border-right: 2px solid var(--brand-500);
    border-bottom: 2px solid var(--brand-500);
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
}

.faq__item[open] .faq__q::before { transform: rotate(-135deg); margin-top: .72rem; }

.faq__a {
    padding: 0 1.4rem 1.3rem 3.05rem;
    color: var(--muted);
}

@media (max-width: 40rem) {
    .faq__a { padding-left: 1.4rem; }
}

/* --- Message pages ------------------------------------------------------ */

.message-page { text-align: center; }
.message-page .section__title { margin-inline: auto; }
.message-page__text { max-width: 34rem; margin: 0 auto 1.75rem; color: var(--muted); }

.message-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: center;
    font-weight: 500;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    padding-block: clamp(3rem, 5vw, 4rem) 2rem;
    background: var(--brand-900);
    color: rgba(255, 255, 255, .72);
    font-size: .93rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__brand img { width: 44px; height: auto; margin-bottom: .9rem; }

.site-footer__name {
    margin: 0 0 .35rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.site-footer__tagline { margin: 0; max-width: 20rem; font-size: .9rem; }

.site-footer__heading {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.site-footer__list { display: grid; gap: .55rem; }

.site-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}
.site-footer__list a:hover { color: #fff; text-decoration: underline; }

.site-footer__address { margin-bottom: .75rem; line-height: 1.6; }

.site-footer__legal {
    padding-top: 1.75rem;
    font-size: .8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .55);
}
.site-footer__legal p { margin: 0 0 .3rem; }
.site-footer__legal a { color: rgba(255, 255, 255, .75); }

/* --- Utilities ---------------------------------------------------------- */

.u-hide-sm { display: none; }
@media (min-width: 40rem) { .u-hide-sm { display: inline; } }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 68rem) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 60rem) {
    .site-header__inner { min-height: 66px; }

    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.5rem 1.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .site-header.is-open .site-nav { display: flex; }
    .site-header.is-open .nav-toggle__open { display: none; }
    .site-header.is-open .nav-toggle__close { display: block; }

    .site-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
    .site-nav__link { padding: .7rem .8rem; font-size: 1rem; }
    .site-nav__cta { justify-content: center; margin-top: .4rem; }

    /* Narrow screens put the headline across the full frame, so the scrim has to
       darken evenly rather than clearing only the left. */
    .hero__scrim {
        background:
            linear-gradient(168deg,
                rgba(8, 28, 38, .94) 0%,
                rgba(8, 28, 38, .88) 55%,
                rgba(8, 28, 38, .74) 100%),
            linear-gradient(to top, rgba(8, 28, 38, .6), transparent 45%);
    }

    .credentials__grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .card-grid--3 { grid-template-columns: 1fr; }
    .split, .contact { grid-template-columns: 1fr; }
    .split__aside { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
    .container { padding-inline: 1.15rem; }
    .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-band__actions { width: 100%; }
    .cta-band__actions .btn { flex: 1 1 auto; }
    .hero__actions .btn { width: 100%; }
}

/* --- Motion preferences ------------------------------------------------- */

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

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

    .btn:hover, .feature-card:hover { transform: none; }
}

/* --- Print -------------------------------------------------------------- */

@media print {
    .site-header, .cta-band, .hero__media, .hero__scrim, .nav-toggle { display: none !important; }
    .hero, .page-hero, .credentials, .site-footer { background: #fff !important; color: #000 !important; }
    .hero__title, .page-hero__title, .site-footer__name { color: #000 !important; }
    body { font-size: 11pt; }
}
