:root {
    --c51-container: 1440px;
    --c51-gutter: clamp(1.25rem, 4vw, 3rem);
    --c51-radius: 0px;
    --c51-transition: 180ms ease;
}

html { scroll-behavior: smooth; }

body {
    background: var(--wp--preset--color--c51-black, #050505);
    color: var(--wp--preset--color--c51-text, #F2F2F2);
    text-rendering: optimizeLegibility;
}

.c51-container {
    width: min(calc(100% - (2 * var(--c51-gutter))), var(--c51-container));
    margin-inline: auto;
}

.c51-section {
    position: relative;
    padding-block: clamp(4rem, 9vw, 9rem);
}

.c51-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--wp--preset--color--c51-lime, #CDF580);
    font-size: var(--wp--preset--font-size--label);
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.c51-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .8rem 1.25rem;
    border: 1px solid var(--wp--preset--color--c51-lime, #CDF580);
    background: var(--wp--preset--color--c51-lime, #CDF580);
    color: var(--wp--preset--color--c51-black, #050505);
    font-weight: 800;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform var(--c51-transition), background var(--c51-transition);
}

.c51-button:hover,
.c51-button:focus-visible {
    transform: translateY(-2px);
    background: var(--wp--preset--color--c51-white, #FFFFFF);
}

.c51-button:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--wp--preset--color--c51-lime, #CDF580);
    outline-offset: 4px;
}

.c51-site-header {
    position: relative;
    z-index: 100;
    background: var(--wp--preset--color--c51-black, #050505);
    border-bottom: 1px solid var(--wp--preset--color--c51-border, #303030);
}

.c51-site-header__inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.c51-site-header__brand img {
    display: block;
    width: 3.5rem;
    height: auto;
}

.c51-site-header__nav {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 1.5vw, 1.5rem);
}

.c51-site-header__nav a {
    color: var(--wp--preset--color--c51-text, #F2F2F2);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.c51-site-header__nav a:hover,
.c51-site-header__nav .current-menu-item > a {
    color: var(--wp--preset--color--c51-lime, #CDF580);
}

.c51-mobile-toggle { display: none; }

@media (max-width: 900px) {
    .c51-site-header__nav { display: none; }
    .c51-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 3rem;
        min-height: 3rem;
        border: 1px solid var(--wp--preset--color--c51-border, #303030);
        background: transparent;
        color: var(--wp--preset--color--c51-lime, #CDF580);
        cursor: pointer;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


.c51-hero {
    position: relative;
    min-height: min(800px, 78vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--wp--preset--color--c51-black, #050505);
    isolation: isolate;
}

.c51-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
}

.c51-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.c51-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.82) 35%, rgba(5,5,5,.18) 72%, rgba(5,5,5,.45) 100%),
        linear-gradient(0deg, rgba(5,5,5,.42), transparent 45%);
    pointer-events: none;
}

.c51-hero h1 {
    max-width: 7ch;
    margin-block: 1rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: -.025em;
}

.c51-hero .has-lead-font-size {
    max-width: 42rem;
}

@media (max-width: 900px) {
    .c51-hero {
        min-height: 720px;
        align-items: end;
        padding-block: 5rem;
    }
    .c51-hero__media img {
        object-position: 65% center;
    }
    .c51-hero::after {
        background:
            linear-gradient(0deg, rgba(5,5,5,.98) 5%, rgba(5,5,5,.65) 48%, rgba(5,5,5,.12) 100%);
    }
}

@media (max-width: 600px) {
    .c51-hero {
        min-height: 680px;
    }
    .c51-hero__media img {
        object-position: 64% center;
    }
    .c51-hero h1 {
        max-width: 6ch;
    }
}

/* v0.1.3 — header brand lockup and responsive polish */
.c51-site-header__brand-lockup {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.c51-site-header__brand-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin: 0;
}

.c51-site-header__brand-name,
.c51-site-header__brand-tagline {
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.c51-site-header__brand-name {
    color: var(--wp--preset--color--c51-white, #FFFFFF);
    font-size: clamp(.9rem, .82rem + .2vw, 1.1rem);
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1;
}

.c51-site-header__brand-name span {
    color: var(--wp--preset--color--c51-lime, #CDF580);
}

.c51-site-header__brand-tagline {
    color: var(--wp--preset--color--c51-muted, #A5A5A5);
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.2;
}

.c51-site-header__inner {
    min-height: 5.5rem;
}

@media (max-width: 960px) {
    .c51-site-header__inner {
        min-height: 4.75rem;
    }

    .c51-site-header__brand img {
        width: 3.25rem;
    }
}

@media (max-width: 600px) {
    .c51-site-header__brand img {
        width: 3rem;
    }

    .c51-site-header__brand-copy {
        gap: .1rem;
    }

    .c51-site-header__brand-name {
        font-size: .86rem;
    }

    .c51-site-header__brand-tagline {
        font-size: .4rem;
    }
}

/* Hero artwork is the supplied cohesive composite; CSS keeps it intact and responsive. */
.c51-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
    background-image: url('../images/hero-desktop.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.c51-hero__media img {
    display: none;
}

@media (max-width: 1100px) {
    .c51-hero__media {
        background-image: url('../images/hero-tablet.webp');
    }
}

@media (max-width: 700px) {
    .c51-hero__media {
        background-image: url('../images/hero-mobile.webp');
        background-position: 65% center;
    }
}
