:root {
    --ink: #17232d;
    --muted: #586771;
    --paper: #f6f5f0;
    --white: #ffffff;
    --navy: #0b304b;
    --navy-deep: #071f31;
    --gold: #c18a38;
    --coral: #b84d3e;
    --line: #d7d6ce;
    --max-width: 1240px;
    --body-font: "Trebuchet MS", Tahoma, sans-serif;
    --display-font: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-wrap {
    width: min(var(--max-width), calc(100% - 3rem));
    margin: 0 auto;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.skip-link:focus {
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    background: var(--white);
    padding: 0.5rem 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: rgba(7, 31, 49, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(7, 22, 32, 0.18);
}

.header-main {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr);
    gap: 2rem;
    align-items: center;
    min-height: 76px;
}

.brand-lockup {
    display: block;
    width: min(100%, 220px);
}

.brand-lockup img {
    width: 100%;
    filter: brightness(0) invert(1);
}

.site-search {
    display: flex;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    background: var(--white);
}

.site-search:focus-within {
    outline: 3px solid rgba(193, 138, 56, 0.42);
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 0.9rem;
    color: var(--ink);
    font: inherit;
}

.site-search button {
    border: 0;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 0 1.1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-links {
    display: flex;
    gap: 1.9rem;
    min-height: 44px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #f0bd6e;
}

.nav-toggle {
    display: none;
}

.home-hero {
    position: relative;
    min-height: min(680px, calc(100vh - 120px));
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(115deg, rgba(7, 31, 49, 0.98) 0%, rgba(11, 48, 75, 0.91) 56%, rgba(28, 76, 87, 0.86) 100%),
        repeating-linear-gradient(135deg, transparent 0 34px, rgba(255, 255, 255, 0.05) 34px 35px);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -8vw;
    bottom: -32vw;
    width: 64vw;
    aspect-ratio: 1;
    border: 1px solid rgba(193, 138, 56, 0.38);
    border-radius: 50%;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--coral);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-hero .eyebrow {
    color: #f0bd6e;
}

h1,
h2 {
    font-family: var(--display-font);
    font-weight: 700;
    line-height: 1.08;
}

h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3.4rem, 7vw, 6.8rem);
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.7rem);
}

.hero-copy {
    max-width: 54ch;
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    background: var(--gold);
    color: var(--navy-deep);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}

.hero-mark {
    display: grid;
    justify-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.66);
    font-family: var(--display-font);
    font-size: 1.2rem;
}

.hero-mark img {
    width: min(360px, 85%);
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.home-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 850px;
}

.section-heading > p:last-child {
    max-width: 68ch;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-section-accent {
    color: var(--white);
    background: var(--coral);
}

.home-section-accent .eyebrow,
.home-section-accent .section-heading > p:last-child {
    color: rgba(255, 255, 255, 0.82);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.feature-grid article + article {
    border-left: 1px solid var(--line);
    padding-left: 3rem;
}

.feature-grid h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.site-footer {
    color: rgba(255, 255, 255, 0.8);
    background: var(--navy-deep);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: baseline;
}

.footer-content strong {
    color: var(--white);
    font-size: 1.3rem;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    margin-left: auto;
}

.section-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 820px) {
    .site-wrap {
        width: min(var(--max-width), calc(100% - 2rem));
    }

    .header-main {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        padding: 0.7rem 0;
    }

    .nav-toggle {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 6px;
        background: transparent;
        color: var(--white);
        padding: 0 0.65rem;
        font: inherit;
    }

    .brand-lockup {
        width: min(180px, 100%);
    }

    .site-search {
        grid-column: 1 / -1;
    }

    .primary-nav {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .nav-links {
        display: grid;
        gap: 0;
        padding: 0.3rem 0 0.7rem;
    }

    .nav-links a {
        border-top: 1px solid rgba(255, 255, 255, 0.09);
        padding: 0.7rem 0;
    }

    .hero-layout,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 620px;
    }

    .hero-layout {
        gap: 1.5rem;
        padding: 3rem 0;
    }

    h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-mark {
        justify-items: start;
    }

    .hero-mark img {
        width: min(240px, 60%);
    }

    .feature-grid article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding-top: 2rem;
        padding-left: 0;
    }

    .footer-content {
        display: grid;
    }

    .footer-content a {
        margin-left: 0;
    }
}

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

    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}