@font-face {
    font-family: Metropolis;
    src: url("/gfx/font/metropolis-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #20211f;
    --paper: #f7f6f1;
    --yellow: #ffcc00;
    --rule: #ceccc2;
    --gutter: clamp(20px, 5vw, 88px);
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.6 system-ui, sans-serif;
}

h1, h2, h3 {
    margin: 0;
    font-family: Metropolis, sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #3969bd; outline-offset: 4px; }

.shell {
    width: min(100% - var(--gutter) * 2, 1320px);
    margin-inline: auto;
}

.skipLink {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 4;
    transform: translateY(-150%);
    padding: 8px 16px;
    background: var(--paper);
}

.skipLink:focus { transform: none; }

.siteHeader {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid var(--rule);
}

.headerRow {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 52px);
}

.brand { flex: 0 0 auto; }
.brand img { width: 132px; height: auto; }

.desktopNav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: clamp(16px, 2.5vw, 42px);
}

.desktopNav a, .headerPhone, .mobileNav a {
    text-decoration: none;
    font-weight: 650;
    white-space: nowrap;
}

.desktopNav a {
    padding: 8px 0;
    border-bottom: 3px solid transparent;
}

.desktopNav a:hover, .desktopNav [aria-current="page"] {
    border-color: var(--yellow);
}

.headerPhone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--rule);
}

.headerPhone img { flex: 0 0 auto; }
.headerPhone:hover { border-color: var(--ink); }
.mobileNav { display: none; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
    min-height: clamp(470px, 41vw, 640px);
    background: var(--ink);
    color: #fff;
}

.heroCopy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(46px, 7vw, 110px) clamp(26px, 4vw, 64px) clamp(46px, 7vw, 110px) max(var(--gutter), calc((100vw - 1320px) / 2));
}

.hero h1 {
    max-width: 9ch;
    font-size: clamp(48px, 6vw, 96px);
    line-height: .99;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.heroLead {
    max-width: 36ch;
    margin-top: 24px;
    color: #deddd5;
    font-size: clamp(17px, 1.5vw, 22px);
}

.heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
    align-items: center;
    margin-top: 30px;
}

.primaryButton, .videoLaunch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 11px 18px;
    text-decoration: none;
    font-weight: 750;
}

.primaryButton {
    background: var(--yellow);
    color: var(--ink);
}

.primaryButton:hover { background: #ffe15a; }

.heroContact {
    color: #fff;
    font-weight: 650;
    text-underline-offset: 5px;
}

.heroContact:hover { color: var(--yellow); }

.heroMedia { position: relative; min-height: 100%; }

.heroMedia img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
}

.videoLaunch {
    position: absolute;
    bottom: clamp(16px, 3vw, 46px);
    left: clamp(16px, 3vw, 46px);
    background: var(--paper);
    color: var(--ink);
}

.videoLaunch:hover { background: var(--yellow); }

.playIcon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
}

.playIcon::after {
    content: "";
    margin-left: 2px;
    border: 6px solid transparent;
    border-right: 0;
    border-left: 9px solid var(--yellow);
}

.textLink {
    display: inline-flex;
    gap: 10px;
    align-items: baseline;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.textLink:hover { text-decoration-thickness: 2px; }

.pageHeading {
    position: relative;
    isolation: isolate;
    padding-block: clamp(42px, 6vw, 90px);
    background: var(--ink);
    color: #fff;
    border-bottom: 5px solid var(--yellow);
}

.pageHeading::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 26%;
    background:
        linear-gradient(90deg, var(--ink), rgb(32 33 31 / 60%) 42%, rgb(32 33 31 / 24%)),
        url("/assets/home-header.jpg") center 48% / cover no-repeat;
}

.pageHeading h1 { font-size: clamp(39px, 6vw, 80px); }
.articleLayout, .contactLayout, .sitemapLinks { padding-block: clamp(32px, 5vw, 70px); }

.prose { font-size: clamp(16px, 1.5vw, 19px); }
.prose article { max-width: 66ch; }
.prose h2 { font-size: clamp(25px, 3.2vw, 39px); margin-bottom: .75em; }
.prose p + p { margin-top: .5em; }
.prose a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.prose img { height: auto; }

.contactLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 32px clamp(25px, 6vw, 95px);
}

.contactMap iframe {
    display: block;
    width: 100%;
    min-height: 390px;
    border: 1px solid var(--rule);
    margin-bottom: 14px;
}

.sitemapLinks { display: grid; justify-items: start; gap: 12px; }

.siteFooter {
    border-top: 4px solid var(--yellow);
    background: var(--ink);
    color: #fff;
}

.footerRow {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 22px;
    padding-block: 33px;
}

.footerRow p { color: #deddd5; }
.footerRow nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footerRow a { text-underline-offset: 4px; }

body:has(.videoDialog[open]) { overflow: hidden; }

.videoDialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #141414;
}

.videoDialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.videoDialog::backdrop { background: rgba(0, 0, 0, .8); }
.videoDialog form { display: flex; justify-content: flex-end; padding: 8px 12px; }

.videoDialogClose {
    padding: 8px 12px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #141414;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.videoDialog iframe { width: 100%; height: 100%; border: 0; }

.primaryButton,
.videoLaunch,
.headerPhone,
.mobileNav summary,
.videoDialogClose {
    border-radius: 6px;
}

@media (max-width: 920px) {
    .desktopNav { display: none; }
    .headerRow { min-height: 73px; gap: 12px; }
    .brand img { width: 110px; }
    .headerPhone { margin-left: auto; border: 0; padding: 0; }
    .mobileNav { display: block; }

    .mobileNav summary {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        list-style: none;
        border: 1px solid var(--rule);
    }

    .mobileNav summary::-webkit-details-marker { display: none; }

    .menuIcon {
        position: relative;
        width: 20px;
        height: 16px;
    }

    .menuIcon span {
        position: absolute;
        top: 7px;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .menuIcon span:first-child { transform: translateY(-7px); }
    .menuIcon span:last-child { transform: translateY(7px); }
    .mobileNav[open] .menuIcon span:first-child { transform: rotate(45deg); }
    .mobileNav[open] .menuIcon span:nth-child(2) { opacity: 0; }
    .mobileNav[open] .menuIcon span:last-child { transform: rotate(-45deg); }

    .mobileNav nav {
        position: absolute;
        inset: 100% 0 auto;
        display: grid;
        padding: 12px var(--gutter);
        background: #fff;
        border-bottom: 1px solid var(--rule);
    }

    .mobileNav a { padding-block: 8px; }
    .mobileNav [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
    .hero { grid-template-columns: 1fr; }
    .heroCopy { padding: clamp(38px, 6vw, 60px) var(--gutter); }
    .hero h1 { max-width: 12ch; }
    .heroMedia { min-height: clamp(245px, 53vw, 440px); }
}

@media (max-width: 610px) {
    .pageHeading::before {
        left: 0;
        background-image:
            linear-gradient(90deg, rgb(32 33 31 / 95%), rgb(32 33 31 / 62%)),
            url("/assets/home-header.jpg");
    }
    .contactLayout { grid-template-columns: 1fr; }
    .contactMap iframe { min-height: 300px; }
    .footerRow { display: grid; }
}

@media (max-width: 380px) {
    .headerRow { gap: 8px; }
    .brand img { width: 84px; }
    .headerPhone { font-size: 14px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .menuIcon span { transition: none; }
}
