:root {
    --site-font: "Inter", sans-serif;
    --navy: #10253b;
    --navy-deep: #071827;
    --ink: #172033;
    --muted: #647184;
    --paper: #10253b;
    --surface: #ffffff;
    --line: #dfe5de;
    --orange: #ea3f25;
    --gold: #d7b46a;
    --teal: #2c7a7b;
    --cream: #f6efde;
    --cream-soft: rgba(246, 239, 222, 0.72);
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--site-font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    letter-spacing: 0;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: var(--site-font);
    letter-spacing: 0;
}

.site-container,
.container {
    width: min(1120px, calc(100% - 40px));
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(16, 37, 59, 0.98);
    border-bottom: 1px solid rgba(246, 239, 222, 0.18);
    /* No backdrop-filter: it creates a containing block so fixed mobile nav anchors to document top when scrolled. */
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo img {
    width: 58px;
    height: auto;
    aspect-ratio: 1;
    display: block;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.nav-toggle-bar {
    width: 22px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 1px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    color: rgba(246, 239, 222, 0.76);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--cream);
    background: rgba(246, 239, 222, 0.08);
}

.site-nav a:last-child {
    color: var(--cream);
    background: var(--orange);
}

.site-nav a:last-child:hover,
.site-nav a:last-child:focus-visible {
    background: #c83420;
}

.hero,
.page-hero {
    color: var(--cream);
    background: var(--navy);
}

.hero {
    position: relative;
    padding: 0;
}

.hero-screen {
    position: relative;
}

/* Homepage hero (index.php) */
.hero-layout {
    min-height: calc(100svh - 70px);
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: 56px;
    align-items: center;
    padding: 70px 0 72px;
}

.hero-intro {
    min-width: 0;
}

/* Mobile-only brand mark; desktop uses .hero-panel logo */
.hero-intro-logo {
    display: none;
}

.hero .eyebrow {
    font-size: 1.32rem;
}

/* Must beat `.hero p { margin: 0 }` from shared page-hero styles */
.hero p.hero-copy,
.hero .hero-copy {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--cream-soft);
    font-size: 1.17rem;
    line-height: 1.68;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: var(--cream);
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button-secondary {
    color: var(--cream);
    background: transparent;
    border-color: rgba(246, 239, 222, 0.45);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(246, 239, 222, 0.08);
    border-color: var(--cream);
}

.hero-panel {
    display: grid;
    gap: 34px;
    align-content: center;
    min-height: 500px;
    padding-left: 42px;
    border-left: 1px solid rgba(246, 239, 222, 0.18);
}

.hero-logo {
    width: min(330px, 82%);
    height: auto;
    aspect-ratio: 1;
    display: block;
}

.panel-copy {
    display: grid;
    gap: 14px;
}

.panel-copy h2 {
    max-width: 390px;
    margin: 0;
    color: var(--cream);
    font-size: 1.42rem;
    line-height: 1.18;
}

.panel-row {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 14px;
    align-items: start;
    max-width: 430px;
    padding-top: 14px;
    border-top: 1px solid rgba(246, 239, 222, 0.18);
    color: var(--cream-soft);
}

.panel-row::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 7px;
    background: var(--orange);
    border-radius: 2px;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: translateX(-50%);
    color: var(--cream-soft);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
    color: var(--cream);
}

.hero-scroll:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 6px;
    border-radius: 4px;
}

.hero-scroll-icon {
    width: 28px;
    height: 28px;
    display: block;
    animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-icon {
        animation: none;
    }
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-title {
    margin: 0 0 24px;
    color: var(--gold);
    font-size: 1.38rem;
    line-height: 1.2;
    text-transform: uppercase;
}

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

.section-title a:hover,
.section-title a:focus-visible {
    color: var(--cream);
}

.section-intro {
    margin: 12px 0 0;
    color: var(--cream-soft);
    font-size: 1.04rem;
}

.home-product-card {
    min-height: 0;
    align-content: start;
    gap: 16px;
    padding: 18px;
}

.home-product-card::after {
    content: "";
    align-self: end;
    margin-top: auto;
}

.home-product-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.section > .container {
    padding-top: 42px;
    border-top: 1px solid rgba(246, 239, 222, 0.18);
}

.is-home .hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--cream);
    font-size: 4.25rem;
    line-height: 1.08;
}

.is-home .hero .eyebrow {
    margin: 0 0 18px;
}

.is-home .hero .cta-row {
    margin-top: 34px;
}

.page-hero {
    padding: 68px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 54px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 900px;
    margin: 0 0 24px;
    font-size: 3.5rem;
    line-height: 1.04;
    text-wrap: balance;
}

.hero p,
.page-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(246, 239, 222, 0.82);
    font-size: 1.14rem;
}

.hero-card {
    min-height: 360px;
    display: grid;
    align-content: center;
    gap: 20px;
    padding: 30px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-card h2,
.card h2,
.card h3 {
    margin-top: 0;
    color: var(--navy);
}

.hero-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.section {
    padding: 72px 0;
    background: var(--navy);
}

.section h2 {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--cream);
    font-size: 2.25rem;
    line-height: 1.15;
}

.content-narrow {
    max-width: 780px;
}

.content-narrow p,
.section > .site-container > p,
.section > .container > p {
    color: rgba(246, 239, 222, 0.76);
    font-size: 1.06rem;
}

.about-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    align-items: start;
}

.about-section-column p {
    margin: 0;
    color: rgba(246, 239, 222, 0.76);
    font-size: 1.06rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    margin-top: 30px;
}

.balanced-card-grid {
    --matrix-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--matrix-gap);
}

.balanced-card-grid > [data-card-columns] {
    flex: 0 1 100%;
}

.balanced-card-grid > [data-card-columns="2"] {
    flex-basis: calc((100% - var(--matrix-gap)) / 2);
}

.balanced-card-grid > [data-card-columns="3"] {
    flex-basis: calc((100% - (var(--matrix-gap) * 2)) / 3);
}

.balanced-card-grid > [data-card-columns="4"] {
    flex-basis: calc((100% - (var(--matrix-gap) * 3)) / 4);
}

.matrix-row-break {
    flex: 0 0 100%;
    width: 100%;
    height: 0;
    margin-block: calc(var(--matrix-gap) * -0.5);
    overflow: hidden;
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card {
    height: 100%;
    min-height: 210px;
    display: grid;
    align-content: space-between;
    gap: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
}

.card::after {
    content: "";
    width: 42px;
    height: 4px;
    display: block;
    background: var(--orange);
    border-radius: 2px;
}

.card-link .card {
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card-link:hover .card,
.card-link:focus-visible .card {
    border-color: rgba(44, 122, 123, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card p {
    margin: 0;
    color: var(--muted);
}

.product-card-image-frame,
.product-title-image-frame {
    position: relative;
    isolation: isolate;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.product-card-image-frame {
    aspect-ratio: 16 / 9;
    padding: 18px;
    border-radius: 8px;
}

.product-group-card-matrix > .card-link {
    height: auto;
}

.product-title-image-frame {
    height: 330px;
    padding: 24px;
    border: 1px solid rgba(246, 239, 222, 0.16);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.manufacturer-logo {
    width: min(200px, 100%);
    max-height: 74px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.manufacturer-list-card {
    align-content: stretch;
    grid-template-rows: 74px auto minmax(0, 1fr) auto auto;
    overflow-wrap: anywhere;
    scroll-margin-top: 96px;
}

.manufacturer-list-logo-slot {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.manufacturer-list-copy {
    display: grid;
    gap: 1em;
    align-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
}

.manufacturer-list-action {
    align-self: end;
}

.product-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 52px;
    align-items: center;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.product-breadcrumb a:hover,
.product-breadcrumb a:focus-visible {
    color: var(--cream);
}

.product-breadcrumb span:last-child {
    color: rgba(246, 239, 222, 0.64);
}

.product-title-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.card-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: transparent;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.detail-main p,
.detail-sidebar p {
    color: var(--muted);
}

.product-category-section .site-container {
    display: grid;
    gap: 34px;
}

.product-group-overview {
    padding: 8px 0 8px 24px;
    color: var(--cream);
    background: transparent;
    border: 0;
    border-left: 3px solid var(--orange);
    border-radius: 0;
    box-shadow: none;
}

.product-group-overview p {
    max-width: 920px;
    margin: 0;
    color: rgba(246, 239, 222, 0.88);
    font-size: 1.02rem;
    line-height: 1.65;
}

.page-hero .product-group-manufacturer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 24px 0 0;
    padding: 4px 0 4px 14px;
    border-left: 3px solid var(--orange);
    text-align: left;
}

.product-group-manufacturer span {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.product-group-manufacturer a {
    max-width: 100%;
    padding-bottom: 3px;
    color: var(--cream);
    border-bottom: 2px solid rgba(234, 63, 37, 0.72);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.product-group-manufacturer a:hover,
.product-group-manufacturer a:focus-visible {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.manufacturer-list-card:target {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(234, 63, 37, 0.2), var(--shadow);
}

.product-item-grid {
    --product-item-card-height: 500px;
    margin-top: 0;
    align-items: flex-start;
}

.product-item-grid > [data-card-columns] {
    flex: 0 0 calc((100% - (var(--matrix-gap) * 2)) / 3);
}

.product-item-card {
    height: var(--product-item-card-height);
    min-height: var(--product-item-card-height);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    padding: 20px;
    overflow: hidden;
}

.product-item-card.has-product-details:not(.is-expanded) {
    cursor: pointer;
}

.product-item-card:has(.product-item-details[open]) {
    height: auto;
}

@media (min-width: 861px) {
    .product-item-grid.has-expanded-product,
    .product-item-grid:has(.product-item-details[open]) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: dense;
        grid-auto-rows: calc((var(--product-item-card-height) - var(--matrix-gap)) / 2);
        align-items: stretch;
        overflow: visible;
    }

    .product-item-grid.has-expanded-product > .product-item-card,
    .product-item-grid:has(.product-item-details[open]) > .product-item-card {
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        grid-column: span 1;
        grid-row: span 2;
    }

    .product-item-grid.has-expanded-product > .matrix-row-break,
    .product-item-grid:has(.product-item-details[open]) > .matrix-row-break {
        display: none;
    }

    .product-item-grid > .product-item-card.is-expanded,
    .product-item-grid > .product-item-card:has(.product-item-details[open]) {
        grid-column: span 2;
        grid-row: span 4;
        grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        align-content: stretch;
        column-gap: 28px;
        row-gap: 18px;
        padding: 28px;
        overflow: hidden;
    }

    .product-item-card.is-expanded .product-item-image-frame,
    .product-item-card:has(.product-item-details[open]) .product-item-image-frame {
        height: 260px;
        min-height: 0;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .product-item-card.is-expanded .product-item-image-frame img,
    .product-item-card:has(.product-item-details[open]) .product-item-image-frame img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .product-item-card.is-expanded .product-item-copy,
    .product-item-card:has(.product-item-details[open]) .product-item-copy {
        min-height: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .product-item-card.is-expanded .product-item-details,
    .product-item-card:has(.product-item-details[open]) .product-item-details {
        min-height: 0;
        grid-column: 1 / -1;
        grid-row: 2;
        padding-right: 8px;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .product-item-card.is-expanded .product-item-actions,
    .product-item-card:has(.product-item-details[open]) .product-item-actions {
        grid-column: 2;
        grid-row: 3;
    }

    .product-item-card.is-expanded::after,
    .product-item-card:has(.product-item-details[open])::after {
        grid-column: 1;
        grid-row: 3;
    }
}

.product-item-card::after {
    align-self: end;
    margin-top: auto;
}

.product-item-image-frame {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 18px;
    border: 1px solid #edf0f3;
    border-radius: 8px;
    background: #ffffff;
}

.product-item-image-frame.is-empty {
    background: #f4f6f8;
}

.product-item-image-frame img {
    width: auto;
    max-width: 100%;
    height: 120px;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
}

.product-item-copy {
    min-height: 132px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.product-item-copy h3 {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.16rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-item-copy p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-item-details {
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.product-item-details summary {
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.product-item-details summary::marker {
    color: var(--orange);
}

.product-item-details > div {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.product-item-actions {
    min-width: 0;
    display: none;
    align-self: end;
    gap: 16px;
}

.product-item-card.is-expanded .product-item-actions,
.product-item-card:has(.product-item-details[open]) .product-item-actions {
    display: grid;
}

.product-item-link {
    justify-self: start;
}

.product-document-links {
    min-width: 0;
    display: grid;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.product-document-heading {
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-document-links a {
    min-width: 0;
    color: var(--teal);
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-document-links a:hover,
.product-document-links a:focus-visible {
    color: var(--orange);
}

.button-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    color: var(--cream);
    background: var(--navy);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
    background: var(--teal);
}

.back-link-wrap {
    margin: 24px 0 0;
}

.back-link {
    color: var(--cream);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--gold);
}

.contact-page {
    padding: 72px 0 56px;
    color: var(--cream);
    background: var(--navy);
}

.contact-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.82fr);
    gap: 56px;
    align-items: start;
}

.contact-info-panel h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: var(--cream);
    font-size: 2.5rem;
    line-height: 1.08;
    text-transform: uppercase;
    text-wrap: balance;
}

.contact-page-intro {
    margin: 0;
    color: rgba(246, 239, 222, 0.8);
    font-size: 1.06rem;
}

.contact-methods {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.contact-method {
    display: grid;
    gap: 8px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(246, 239, 222, 0.18);
}

.contact-method h2 {
    margin: 0;
    color: var(--cream);
    font-size: 1.15rem;
}

.contact-method a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-form-panel {
    display: grid;
    gap: 18px;
    padding: 28px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form-panel h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.75rem;
}

.contact-form-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.contact-message-form {
    display: grid;
    gap: 10px;
}

.contact-message-form label {
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 400;
}

.contact-message-form input,
.contact-message-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
}

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

.contact-message-form .button-link {
    width: max-content;
    margin-top: 8px;
}

.contact-hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-status {
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
}

.contact-form-status.success {
    color: #166534;
    background: #dcfce7;
}

.contact-form-status.error {
    color: #991b1b;
    background: #fee2e2;
}

section.contact-team-section {
    padding: 18px 0 72px;
    background: #17324f;
}

.contact-team-section h2 {
    margin-bottom: 22px;
    color: var(--cream);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    overflow: visible;
}

.team-row {
    flex: 0 1 100%;
    height: 300px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px;
    color: var(--ink);
    font: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.05);
    overflow: hidden;
}

.team-row::after {
    content: "";
    width: 34px;
    height: 3px;
    display: block;
    margin-top: auto;
    background: var(--orange);
    border-radius: 2px;
}

.team-photo-slot {
    width: 120px;
    height: 120px;
    margin-bottom: 4px;
}

.team-photo {
    width: 120px;
    height: 120px;
    display: block;
    object-fit: cover;
    border: 0;
    padding: 0;
    background: transparent;
}

.team-row a,
.team-row span {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    color: var(--muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.team-row .team-member-name,
.team-row .team-member-role {
    font-size: 1rem;
}

.team-row .team-member-name {
    color: var(--navy);
    font-weight: 700;
}

.team-row .team-member-email,
.team-row .team-member-phone {
    font-size: 0.92rem;
    line-height: 1.35;
}

.site-footer {
    padding: 52px 0 22px;
    color: rgba(246, 239, 222, 0.78);
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) 1fr 1fr;
    gap: 34px;
    align-items: start;
}

.footer-logo {
    width: 82px;
    height: auto;
    aspect-ratio: 1;
    display: block;
    margin-bottom: 16px;
}

.footer-text {
    max-width: 420px;
    margin: 0;
}

.site-footer h4 {
    margin: 0 0 14px;
    color: var(--cream);
    font-size: 0.96rem;
}

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold);
}

.footer-bottom {
    width: min(1120px, calc(100% - 40px));
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(246, 239, 222, 0.18);
    font-size: 0.85rem;
    color: rgba(246, 239, 222, 0.58);
}

.site-header {
    box-shadow: 0 12px 32px rgba(7, 24, 39, 0.22);
}

.site-nav a {
    letter-spacing: 0;
}

.hero,
.page-hero {
    background:
        linear-gradient(180deg, rgba(7, 24, 39, 0.34), rgba(16, 37, 59, 0) 38%),
        var(--navy);
}

.eyebrow {
    letter-spacing: 0;
}

.hero h1,
.page-hero h1,
.contact-info-panel h1 {
    letter-spacing: 0;
}

.section {
    border-top: 1px solid rgba(246, 239, 222, 0.08);
}

.section:nth-of-type(even) {
    background: #071827;
}

.cards,
.balanced-card-grid {
    margin-top: 34px;
}

.card {
    border-color: rgba(246, 239, 222, 0.12);
    box-shadow: 0 18px 42px rgba(7, 24, 39, 0.22);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.card:hover,
.card-link:hover .card,
.card-link:focus-visible .card {
    border-color: rgba(73, 164, 162, 0.55);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.card h2,
.card h3,
.contact-form-panel h2 {
    letter-spacing: 0;
}

.button-link {
    background: var(--orange);
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.button-link:hover,
.button-link:focus-visible {
    background: #c83420;
    transform: translateY(-1px);
}

.detail-main,
.detail-sidebar,
.contact-form-panel {
    border-top: 4px solid var(--orange);
}

.contact-page {
    background:
        linear-gradient(180deg, rgba(7, 24, 39, 0.34), rgba(16, 37, 59, 0) 38%),
        var(--navy);
}

.contact-message-form {
    gap: 12px;
}

.contact-message-form label {
    font-weight: 600;
}

.contact-message-form input,
.contact-message-form textarea {
    border-color: #cfd8e3;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.contact-message-form input:focus,
.contact-message-form textarea:focus {
    border-color: var(--teal);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(73, 164, 162, 0.16);
}

.team-row {
    box-shadow: 0 18px 42px rgba(7, 24, 39, 0.18);
}

.site-footer {
    border-top: 1px solid rgba(246, 239, 222, 0.14);
}

.site-footer h4 {
    letter-spacing: 0;
    text-transform: uppercase;
}

.footer-admin-link {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 400;
}

@media (max-width: 860px) {
    :root {
        --site-header-height: 61px;
    }

    .site-container,
    .container,
    .footer-bottom {
        width: min(100% - 32px, 1120px);
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    main {
        padding-top: var(--site-header-height);
    }

    .header-inner {
        min-height: 56px;
        padding: 8px 0;
        gap: 12px;
    }

    .site-logo img {
        width: 44px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    body.nav-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.nav-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        top: var(--site-header-height);
        left: 0;
        right: 0;
        z-index: 39;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 16px 18px;
        background: rgba(7, 24, 39, 0.98);
        border-bottom: 1px solid rgba(246, 239, 222, 0.18);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        min-height: 48px;
        padding: 12px 14px;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .site-nav a:last-child {
        justify-content: center;
        margin-top: 6px;
    }

    .hero,
    .page-hero {
        padding: 54px 0;
    }

    .is-home .hero {
        padding: 0;
    }

    /* First-screen intro: centered between nav and Explore cue */
    .hero-screen {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: calc(100svh - var(--site-header-height));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 0 52px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .hero-layout {
        width: min(100% - 32px, 1120px);
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        margin-inline: auto;
        box-sizing: border-box;
    }

    .hero-intro {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        text-align: center;
    }

    .hero-intro-logo {
        display: block;
        width: min(205px, 53vw);
        height: auto;
        margin: 0 auto 18px;
    }

    .hero .eyebrow {
        margin: 0 0 12px;
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }

    .is-home .hero h1,
    .hero p.hero-copy,
    .hero .hero-copy {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-panel {
        display: none;
    }

    .hero-scroll {
        position: absolute;
        left: 50%;
        bottom: 10px;
        z-index: 2;
        transform: translateX(-50%);
    }

    .is-home .hero h1 {
        max-width: 100%;
        min-width: 0;
        font-size: clamp(1.85rem, 7.2vw, 2.35rem);
        line-height: 1.12;
        text-wrap: pretty;
        overflow-wrap: break-word;
    }

    .hero-grid,
    .contact-page-layout,
    .product-hero-layout,
    .detail-grid,
    .footer-grid,
    .about-section-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.45rem;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero p,
    .page-hero p {
        font-size: 0.98rem;
        line-height: 1.5;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero p.hero-copy,
    .hero .hero-copy {
        margin-top: 14px;
        font-size: 0.98rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .is-home .hero .cta-row,
    .cta-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 22px;
        width: 100%;
        max-width: 100%;
    }

    .is-home .hero .cta-row .button,
    .cta-row .button {
        width: min(100%, 320px);
        max-width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    .contact-page {
        padding: 54px 0;
    }

    .contact-info-panel h1 {
        font-size: 2.45rem;
    }

    .balanced-card-grid {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: visible;
    }

    .balanced-card-grid > [data-card-columns],
    .product-item-grid > [data-card-columns] {
        flex: 0 0 auto;
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }

    .product-item-grid {
        --product-item-card-height: auto;
        flex-direction: column;
    }

    .product-item-card {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .product-item-image-frame {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .matrix-row-break {
        display: none;
    }

    .hero-card {
        min-height: auto;
    }

    .product-title-image-frame {
        height: min(60vw, 320px);
        min-height: 220px;
        padding: 18px;
    }

    .section {
        padding: 52px 0;
    }

    .section > .container {
        padding-top: 28px;
    }
}

@media (max-width: 520px) {
    .button-link,
    .button {
        width: 100%;
    }

    .contact-form-panel {
        padding: 22px;
    }

    .contact-message-form .button-link {
        width: 100%;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.15rem;
    }

    .is-home .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.1rem);
    }

    .hero .eyebrow {
        font-size: 0.72rem;
    }

    .hero p.hero-copy,
    .hero .hero-copy {
        font-size: 0.94rem;
    }
}
