:root {
    --bg: #070607;
    --fg: #f1f1f1;
    --muted: #cfcfcf;
    --line: rgba(255, 255, 255, 0.12);
    --action-color: #fff5e8;
    --action-hover: #fffaf2;
    --action-opacity: 0.9;
    --action-letter: 0.18em;
    --action-letter-hover: 0.21em;
    --focus-ring: rgba(255, 245, 232, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg);
    color: var(--fg);
    /*
     * HIG: prefer the system font (San Francisco on Apple devices).
     * DM Sans is the brand fallback for non-Apple platforms.
     */
    font-family: -apple-system, BlinkMacSystemFont, "DM Sans", sans-serif;
    overflow-x: hidden;
    text-transform: lowercase;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.hero {
    position: relative;
    min-height: 100svh; /* iOS 15 fallback */
    min-height: 100dvh; /* HIG: dynamic viewport — excludes collapsible Safari chrome */
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-media,
.hero-tint,
.hero-grain,
.hero-vignette {
    position: absolute;
    inset: 0;
}

.hero-media {
    background: url("../assets/hero.webp") center/cover no-repeat;
    filter: saturate(160%) contrast(100%) brightness(0.6);
    z-index: -4;
    transform: translate3d(0, 0, 0) scale(1.06);
    animation: hero-background-drift 18s cubic-bezier(0.32, 0.04, 0.2, 1) infinite alternate;
    will-change: transform;
}

.hero-tint {
    background: url("../assets/glitch.gif") center/cover no-repeat;
    mix-blend-mode: screen;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
    transform: none;
}

.hero-grain {
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.02) 1px 3px),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08) 0 12%, rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 80% 78%, rgba(0, 0, 0, 0.18) 0 12%, rgba(0, 0, 0, 0) 36%);
    opacity: 0.58;
    z-index: -2;
    pointer-events: none;
    transform: none;
}

.hero-vignette {
    background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.08) 0 26%, rgba(0, 0, 0, 0.2) 62%, rgba(0, 0, 0, 0.36) 100%);
    z-index: -1;
    pointer-events: none;
    transform: none;
}

@keyframes hero-background-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1.06);
    }
    50% {
        transform: translate3d(0.7%, -0.55%, 0) scale(1.095);
    }
    100% {
        transform: translate3d(-0.55%, 0.45%, 0) scale(1.075);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media {
        animation: none;
        transform: scale(1.06);
    }

    /* HIG Cognitive: auto-playing GIF may flash/strobe — hide it entirely
     * under Reduce Motion so people who are sensitive to motion don't see it */
    .hero-tint {
        display: none;
    }

    .hero-grain,
    .hero-vignette {
        transform: none;
    }
}

.overlay-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
}

.overlay-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.top-menu {
    position: relative;
}

.icon-btn {
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    line-height: 0;
    list-style: none;
    user-select: none;
    transition: opacity 140ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* HIG Mobility: minimum touch target is 44×44pt for iOS/iPadOS */
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
}

.icon-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.9rem;
    height: 2px;
    background: #fafafa;
    border-radius: 999px;
    box-shadow: 0 -0.28rem 0 #fafafa, 0 0.28rem 0 #fafafa;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    transition: transform 140ms ease;
}

.mini-logo {
    display: inline-block;
    line-height: 1;
}

.mini-logo img {
    display: block;
    width: clamp(86px, 10vw, 132px);
    height: auto;
    filter:
        brightness(0)
        saturate(100%)
        invert(93%)
        sepia(10%)
        saturate(280%)
        hue-rotate(343deg)
        brightness(98%)
        contrast(95%)
        drop-shadow(0 0 6px rgba(0, 0, 0, 0.28));
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* HIG Mobility: minimum touch target 44×44pt */
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0.9;
    transition: opacity 120ms ease, transform 120ms ease;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.42));
    border-radius: 999px;
}

.header-social a[aria-label="youtube"] {
    width: 3rem;
}

.header-social a:hover,
.header-social a:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.header-social img {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-social svg {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    fill: #fff;
}

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

.top-menu-links {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: max-content;
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    background: rgba(7, 7, 7, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.top-menu-links a {
    font-family: -apple-system, BlinkMacSystemFont, "DM Sans", sans-serif;
    font-weight: 700;
    color: var(--action-color);
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    opacity: var(--action-opacity);
    transition: opacity 120ms ease, letter-spacing 120ms ease, color 120ms ease;
    /* HIG Mobility: minimum 44pt touch target */
    min-height: 2.75rem;
    padding: 0.35rem 0.3rem;
    display: inline-flex;
    align-items: center;
}

.top-menu-links a:hover,
.top-menu-links a:focus-visible {
    opacity: 1;
    color: var(--action-hover);
    letter-spacing: 0.16em;
}

.top-menu[open] .icon-btn {
    opacity: 0.9;
}

.top-menu[open] .icon-btn::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hero-logo-wrap {
    position: relative;
    z-index: 1;
    width: min(1300px, 94vw);
    transform: translateY(-7vh);
}

.hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(82vw, 1020px);
    height: auto;
    margin: 0 auto;
    opacity: 1;
    filter:
        brightness(0)
        saturate(100%)
        invert(93%)
        sepia(10%)
        saturate(280%)
        hue-rotate(343deg)
        brightness(98%)
        contrast(95%);
}

.hero-cta {
    margin-top: 2.5rem;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    color: var(--action-color);
    font-size: clamp(14px, 1.8vw, 20px);
    letter-spacing: var(--action-letter);
    text-transform: uppercase;
    font-variant: normal;
    line-height: 1.45;
}

.hero-cta p,
.hero-cta-link {
    display: block;
    opacity: var(--action-opacity);
}

.hero-cta-link {
    transition: opacity 120ms ease, letter-spacing 120ms ease, color 120ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* HIG Mobility: 44pt minimum */
    min-height: 2.75rem;
    padding-inline: 0.55rem;
}

.hero-cta p + .hero-cta-link {
    margin-top: 0.2rem;
}

.hero-link-list {
    position: absolute;
    top: 74%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.05rem;
    z-index: 2;
}

.hero-link-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "DM Sans", sans-serif;
    font-weight: 700;
    color: var(--action-color);
    font-size: clamp(14px, 1.8vw, 20px);
    letter-spacing: var(--action-letter);
    text-transform: uppercase;
    line-height: 1.45;
    opacity: var(--action-opacity);
    transition: opacity 120ms ease, letter-spacing 120ms ease, color 120ms ease;
    /* HIG Mobility: 44pt minimum touch target */
    min-height: 2.75rem;
    padding-inline: 0.45rem;
}

.hero-link-list a:hover,
.hero-link-list a:focus-visible {
    opacity: 1;
    color: var(--action-hover);
    letter-spacing: var(--action-letter-hover);
}

.hero-cta-link:hover,
.hero-cta-link:focus-visible {
    opacity: 1;
    color: var(--action-hover);
    letter-spacing: var(--action-letter-hover);
}

.band-section {
    border-top: 1px solid var(--line);
    padding: 3.8rem 0;
    background: #080808;
}

.shell {
    width: min(980px, 92vw);
    margin: 0 auto;
}

.shell h2 {
    font-family: "DM Sans", sans-serif;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    font-size: clamp(1.5rem, 3.3vw, 2.6rem);
}

.shell p {
    color: var(--muted);
    margin-top: 0.65rem;
}

.video-wrap {
    margin-top: 1.1rem;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #0b0b0b;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.show-list {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

.show-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    padding: 0.9rem 1rem;
    border-radius: 10px;
}

.show-row a {
    background: #fff;
    color: #050505;
    padding: 0.52rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: lowercase;
    /* HIG Typography: 11px is the absolute minimum — raised to 13px for comfort */
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    /* HIG Mobility: 44pt minimum touch target */
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 900px) {
    .overlay-header {
        padding: 2rem 2.3rem;
    }

    .mini-logo img {
        width: clamp(96px, 9vw, 150px);
    }

    .top-menu-links a {
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .hero-media {
        background-position: 54% center;
    }

    .mini-logo img {
        width: clamp(78px, 19vw, 112px);
    }

    .header-social {
        gap: 0.85rem;
    }

    .header-social a {
        width: 2.95rem;
        height: 2.95rem;
    }

    .header-social a[aria-label="youtube"] {
        width: 3.45rem;
    }

    .header-social img,
    .header-social svg {
        width: 1.72rem;
        height: 1.72rem;
    }

    .hero-logo {
        width: min(86vw, 680px);
    }

    .hero-link-list {
        top: 75%;
        gap: 0.9rem;
    }

    .hero-logo-wrap {
        transform: translateY(-5vh);
    }

    .top-menu-links {
        top: calc(100% + 0.65rem);
        padding: 0.62rem 0.72rem;
    }

    .top-menu-links a {
        font-size: 0.82rem;
        letter-spacing: 0.11em;
        min-height: 2.45rem;
        padding: 0.38rem 0.34rem;
    }

    .show-row {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.45rem;
    }

    .show-row a {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .overlay-header {
        padding: 1.05rem 0.9rem;
    }

    .header-social {
        gap: 0.78rem;
    }

    .header-social a {
        width: 3.25rem;
        height: 3.25rem;
    }

    .header-social a[aria-label="youtube"] {
        width: 3.75rem;
    }

    .header-social img,
    .header-social svg {
        width: 1.95rem;
        height: 1.95rem;
    }

    .hero-logo-wrap {
        width: 94vw;
        transform: translateY(-4vh);
    }

    .hero-logo {
        width: 88vw;
    }

    .hero-link-list {
        top: 76%;
        gap: 0.8rem;
    }

    .top-menu-links {
        right: -0.2rem;
    }

    .top-menu-links a {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        /* HIG Mobility: keep above 44pt minimum at all breakpoints */
        min-height: 2.75rem;
        padding: 0.42rem 0.36rem;
    }

    .band-section {
        padding: 2.8rem 0;
    }
}

/* ─── High-contrast support (HIG: Increase Contrast setting) ───────────── */
@media (prefers-contrast: more) {
    :root {
        --line: rgba(255, 255, 255, 0.5);
        --muted: #e8e8e8;
        --action-opacity: 1;
        --focus-ring: #ffffff;
    }

    /* Remove decorative noise layers that reduce text legibility */
    .hero-tint,
    .hero-grain {
        display: none;
    }

    /* Stronger border on menus */
    .top-menu-links {
        background: #000;
        border-color: rgba(255, 255, 255, 0.7);
    }

    .show-row {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .band-section {
        border-top-color: rgba(255, 255, 255, 0.5);
    }

    /* Ensure all links read at full opacity */
    .hero-cta p,
    .hero-cta-link,
    .hero-link-list a {
        opacity: 1;
    }
}
