:root {
    --bg-dark: #0f1726;
    --bg-mid: #1a2a40;
    --bg-soft: #f6f3ee;
    --ink-dark: #111111;
    --ink-light: #f5f7fa;
    --accent: #ff5e3a;
    --accent-alt: #00c2a8;
    --card: rgba(255, 255, 255, 0.08);
    --header-height: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1rem, 0.35vw + 0.95rem, 1.2rem);
    color: var(--ink-light);
    background:
        radial-gradient(circle at 15% 20%, #20365a 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, #0c3240 0%, transparent 38%),
        linear-gradient(160deg, var(--bg-dark), #121e2f 45%, #0b1a1d 100%);
    line-height: 1.6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: var(--header-height);
    padding: 0.8rem 5vw;
    backdrop-filter: blur(10px);
    background: rgba(10, 16, 28, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-block h1 {
    margin: 0;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.06em;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--accent-alt);
    font-size: clamp(0.8rem, 0.35vw + 0.72rem, 1rem);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-nav a {
    color: var(--ink-light);
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.18rem);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

main {
    display: flex;
    flex-direction: column;
}

.panel {
    min-height: 100vh;
    scroll-margin-top: var(--header-height);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-content {
    max-width: 780px;
    width: 80%;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border-radius: 18px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Fallback: subtle load animation for browsers without view-timeline support. */
.panel:not(.hero) .panel-content {
    animation: section-load 700ms ease-out both;
}

.hero {
    display: flex;
    min-height: 100vh;
    padding: 2rem 5vw;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.panel:not(.hero) .panel-content {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: clamp(1.5rem, 3vw, 3rem) 5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(0.9rem, 2vh, 2rem);
}

.panel:not(.hero) .panel-content > :not(.decorative-image) {
    max-width: 72ch;
}

.hero .panel-content {
    flex: 1 1 360px;
    min-height: clamp(420px, 72vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h2,
.panel h2 {
    margin: 0.35rem 0 0.7rem;
    font-size: clamp(2.4rem, 5.1vw, 4.5rem);
    line-height: 1.1;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.04em;
}

.panel p,
.panel li {
    font-size: clamp(1.12rem, 0.7vw + 0.98rem, 1.42rem);
    line-height: 1.68;
}

.hero-image-wrap {
    position: relative;
    margin: 0;
    flex: 1 1 280px;
    min-height: clamp(420px, 72vh, 760px);
    max-width: 440px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.18);
    animation: hero-float 6s ease-in-out infinite, hero-enter 900ms ease-out both;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    
    display: block;
    object-fit: cover;
    transform-origin: center;
    animation: hero-zoom 8s ease-in-out infinite alternate;
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(0, 194, 168, 0.3), rgba(255, 94, 58, 0.35));
    mix-blend-mode: screen;
    opacity: 0.55;
    animation: hero-glow 3.5s ease-in-out infinite;
}

.hero-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-130%);
    animation: hero-shimmer 5.5s ease-in-out infinite;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes hero-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

@keyframes hero-glow {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes hero-shimmer {
    0%,
    65% {
        transform: translateX(-130%);
    }

    100% {
        transform: translateX(135%);
    }
}

.cta {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #111;
    background: linear-gradient(135deg, var(--accent), #ff8860);
    font-weight: 700;
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
}

.cta:hover,
.cta:focus-visible {
    filter: brightness(1.07);
    outline: 2px solid var(--ink-light);
    outline-offset: 2px;
}

.milestones,
.show-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.show-list h3 {
    margin: 0.2rem 0;
    font-size: clamp(1.24rem, 0.8vw + 1rem, 1.7rem);
    line-height: 1.25;
}

.show-list p {
    margin: 0;
}

.decorative-image {
    margin: auto 0 0;
    width: min(100%, 1200px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.decorative-image img {
    width: 100%;
    height: clamp(220px, 36vh, 420px);
    display: block;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

@supports (animation-timeline: view()) {
    .panel:not(.hero) .panel-content {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
        animation-name: section-reveal;
        animation-duration: 1ms;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: view();
        animation-range: entry 12% cover 42%;
    }

    .panel:not(.hero) .decorative-image {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        animation-name: image-pop;
        animation-duration: 1ms;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: view();
        animation-range: entry 20% cover 44%;
    }

    .panel#career .panel-content {
        animation-range: entry 16% cover 45%;
    }

    .panel#shows .panel-content {
        animation-range: entry 18% cover 48%;
    }
}

@keyframes section-load {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes section-reveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes image-pop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98) rotate(-0.5deg);
        clip-path: inset(12% 0 0 0 round 14px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        clip-path: inset(0 0 0 0 round 14px);
    }
}

.site-footer {
    padding: 1.2rem 5vw 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: var(--accent-alt);
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
    outline: none;
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        position: static;
    }

    .panel {
        min-height: 100vh;
        scroll-margin-top: 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel:not(.hero) .panel-content,
    .panel:not(.hero) .decorative-image,
    .hero-image-wrap,
    .hero-image-wrap::before,
    .hero-image-wrap::after,
    .hero-image-wrap img {
        animation: none;
        transform: none;
    }
}
