/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }

/* ── TOKENS ────────────────────────────────────────── */
:root {
    --black:    #0a0907;
    --dark:     #110f0c;
    --white:    #ffffff;
    --gold:     #dbaf51;
    --cream:    #e8cf98;
    --text:     #fef3cf;
    --text-dim: rgba(254,243,207,.6);
    --muted:    #8c8476;
    --border:   #252018;
    --display:  'Heroes', 'Bebas Neue', Impact, sans-serif;
    --body:     'Charter', 'Bitstream Charter', Georgia, serif;
    --ui:       system-ui, -apple-system, sans-serif;
    --pad:      52px;
}

/* ── FONTS ─────────────────────────────────────────── */
@font-face {
    font-family: 'Heroes';
    src: url('../fonts/Heroes.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Charter';
    src: url('../fonts/Charter-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ── BASE ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
    background: var(--black);
    color: var(--text);
    font-family: var(--body);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── GRAIN OVERLAY ─────────────────────────────────── */
.grain { position: relative; }
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 280px 280px;
    mix-blend-mode: overlay;
    z-index: 10;
}

/* ── UTILITY ───────────────────────────────────────── */
.gold { color: var(--gold); }
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--pad);
    z-index: 999;
    background: var(--gold);
    color: var(--black);
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 24px;
    transition: top .2s;
}
.skip-link:focus { top: 8px; }
.hairline {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-size: 13px;
    font-weight: normal;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 36px;
}
.display {
    font-family: var(--display);
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 0.9;
}
.body-copy { font-size: 17px; line-height: 1.85; color: var(--text-dim); }
.body-copy p + p { margin-top: 22px; }
.body-copy strong { color: var(--text); font-weight: 400; }

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: .1em;
    padding: 20px 56px;
    text-decoration: none;
    background: none;
    cursor: pointer;
    transition: background .25s, color .25s;
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--gold); color: var(--black); outline: none; }

/* ── NAV ───────────────────────────────────────────── */
nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px var(--pad);
}
nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,9,7,.92) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}
nav.scrolled::before { opacity: 1; }
.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-size: 16px;
    font-weight: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
    filter: drop-shadow(2px 2px 1px rgba(0,0,0,0.25));
    transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:focus-visible {
    color: var(--gold);
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 1px;
}
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    filter: drop-shadow(2px 2px 1px rgba(0,0,0,0.25));
}
.nav-logo-img { height: 36px; width: auto; display: block; }
.nav-end {
    position: absolute;
    right: var(--pad);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}
.nav-social { display: flex; gap: 18px; list-style: none; }
.nav-social a {
    color: #D1C097;
    filter: drop-shadow(2px 2px 1px rgba(0,0,0,0.25));
    transition: color .2s;
    display: flex;
    align-items: center;
}
.nav-social a:hover,
.nav-social a:focus-visible { color: var(--gold); }

/* ── HAMBURGER ─────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px; height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(2px 2px 1px rgba(0,0,0,0.25));
}
.nav-hamburger span {
    display: block;
    width: 100%; height: 3px;
    background: var(--text);
    transition: transform .3s ease, opacity .3s ease;
    transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 190;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay ul:not(.nav-overlay-social) {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 52px;
}
.nav-overlay ul a {
    font-family: var(--display);
    font-size: clamp(48px, 12vw, 80px);
    letter-spacing: .06em;
    color: var(--cream);
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s, color .2s;
    display: block;
    line-height: 1.05;
}
.nav-overlay ul a:hover { opacity: 1; color: var(--gold); }
.nav-overlay ul a[aria-current="page"] { opacity: 1; color: var(--gold); }
.nav-overlay-social { display: flex; gap: 15px; list-style: none; }
.nav-overlay-social a {
    color: var(--text);
    opacity: .4;
    transition: opacity .2s;
    display: flex;
    align-items: center;
}
.nav-overlay-social a:hover { opacity: 1; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
    padding: 36px var(--pad);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand img { height: 24px; width: auto; opacity: .6; }
.footer-links {
    display: flex;
    gap: 36px;
    list-style: none;
    justify-self: center;
}
.footer-links a {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links a:focus-visible {
    color: var(--white);
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 1px;
}
.footer-links a[aria-current="page"] { color: var(--text); }
.footer-copy {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--muted);
    justify-self: end;
}

/* ── BACK TO TOP ───────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: var(--pad);
    z-index: 100;
    background: rgba(17,15,12,.92);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--ui);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, color .2s, border-color .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { color: var(--cream); border-color: var(--muted); }

/* ── VIEW TRANSITIONS ──────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }

/* ── SCROLL REVEAL keyframe (selectors are page-specific) ── */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        @keyframes reveal-up {
            from { opacity: 0; transform: translateY(40px); }
            to   { opacity: 1; transform: translateY(0); }
        }
    }
}

/* ── COOKIE BANNER ─────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 250;
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 18px var(--pad);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-text {
    font-family: var(--ui);
    font-size: 13px;
    color: var(--text-dim);
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}
.cookie-text a { color: var(--gold); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-decline {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 1px solid var(--border);
    padding: 10px 20px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.cookie-decline:hover { color: var(--text); border-color: var(--muted); }
.cookie-accept {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    background: none;
    border: 1px solid var(--gold);
    padding: 10px 20px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.cookie-accept:hover { background: var(--gold); color: var(--black); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    :root { --pad: 28px; }
    .nav-links, .nav-social { display: none; }
    .nav-hamburger { display: flex; }
    .nav-center { gap: 0; }
    .btn-primary { font-size: 16px; padding: 18px 28px; gap: 12px; width: 100%; justify-content: center; }
    footer {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
        padding: 32px var(--pad);
    }
    .footer-brand { justify-content: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
    .footer-copy { justify-self: center; }
    .back-to-top { display: none; }
}
