:root {
    --color-dark-brown: #521C0D;
    --color-rust: #D5451B;
    --color-amber: #FF9B45;
    --color-cream: #F4E7E1;
    --font-playfair: 'Playfair Display', serif;
    --font-bebas: 'Bebas Neue', sans-serif;
    --font-cormorant: 'Cormorant Garamond', serif;
    --font-cinzel: 'Cinzel', serif;
    --font-josefin: 'Josefin Sans', sans-serif;
    --font-abril: 'Abril Fatface', serif;
    --font-raleway: 'Raleway', sans-serif;
    --font-merriweather: 'Merriweather', serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lora: 'Lora', serif;
    --font-oswald: 'Oswald', sans-serif;
    --font-great-vibes: 'Great Vibes', cursive;
    --font-righteous: 'Righteous', sans-serif;
}

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

body {
    font-family: var(--font-cormorant);
    background: linear-gradient(135deg,
        #521C0D 0%,
        #3a1408 25%,
        #D5451B 50%,
        #6B2410 75%,
        #2d0f05 100%);
    background-size: 300% 300%;
    background-attachment: fixed;
    color: var(--color-cream);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    animation: bgDrift 40s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255, 155, 69, 0.1) 0%, transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(213, 69, 27, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

/* Language toggle: plain text, fixed top-right. Shows the OTHER language; a
   click switches. Above all content but a plain click, so it never interferes
   with the wheel/swipe reveal gesture. */
.lang-toggle {
    position: fixed;
    top: 1.1rem;
    right: 1.3rem;
    z-index: 60;
    font-family: var(--font-josefin);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--color-cream);
    background: transparent;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.lang-toggle:hover {
    opacity: 1;
    color: var(--color-amber);
}

@media (max-width: 480px) {
    .lang-toggle {
        top: 0.8rem;
        right: 0.9rem;
    }
}

/* Full-page glitch: the whole composition jitters/skews while a viewport-wide
   rust/amber/cream flash sweeps over it. Fired on the wheel/swipe swap. */
.container.glitching {
    animation: pageGlitch 0.18s steps(2, end);
}

.page-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 50;
    mix-blend-mode: screen;
}

.page-flash.glitching {
    animation: pageFlash 0.18s steps(3, end);
}

@keyframes pageGlitch {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-7px, 3px) skewX(-1.2deg); }
    40%  { transform: translate(8px, -4px); }
    60%  { transform: translate(-9px, 2px) skewX(1.2deg); }
    80%  { transform: translate(5px, -2px); }
    100% { transform: translate(0, 0); }
}

@keyframes pageFlash {
    0%, 100% { opacity: 0; }
    20%      { opacity: 0.45; background: var(--color-rust); }
    50%      { opacity: 0.35; background: var(--color-amber); }
    80%      { opacity: 0.25; background: var(--color-cream); }
}

/* Single centered viewport: the swap is driven by wheel/swipe direction, so the
   page itself does not need to scroll. */
.stage-inner {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Media slot: logo and photo are stacked in the same fixed-size box so the
   scroll-triggered swap never reflows the content below it. */
.hero-media {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: clamp(220px, 46vmin, 380px);
    margin: 0 auto;
}

.logo-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.photo-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 440px);
    margin: 0;
    padding: 0;
    display: none;
    border: 8px solid #fff;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.hero-photo {
    display: block;
    width: 100%;
    height: auto;
}

.hero-media.show-photo .logo-canvas {
    display: none;
}

.hero-media.show-photo .photo-frame {
    display: block;
}

/* Glitch-cut: a quick jitter + rust/amber/cream flash, swapped at mid-burst. */
.hero-media.glitching {
    animation: mediaGlitch 0.18s steps(2, end);
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    mix-blend-mode: screen;
}

.hero-media.glitching::after {
    animation: mediaFlash 0.18s steps(3, end);
}

@keyframes mediaGlitch {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-5px, 3px); }
    40%  { transform: translate(6px, -4px); }
    60%  { transform: translate(-7px, 2px); }
    80%  { transform: translate(4px, -2px); }
    100% { transform: translate(0, 0); }
}

@keyframes mediaFlash {
    0%, 100% { opacity: 0; }
    20%      { opacity: 0.55; background: var(--color-rust); }
    45%      { opacity: 0.45; background: var(--color-amber); }
    70%      { opacity: 0.35; background: var(--color-cream); }
}

.scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-cream);
    opacity: 0.55;
    animation: scrollBob 2.4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
}

@keyframes scrollBob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.subtitle {
    font-family: var(--font-cormorant);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-amber);
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

/* Secondary line under the tagline: the three offerings, separated by a
   CSS-applied middot so the markup carries no dashes. */
.offerings {
    font-family: var(--font-josefin);
    font-size: clamp(0.72rem, 1.8vw, 0.95rem);
    color: var(--color-cream);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.6rem;
}

.offering + .offering::before {
    content: '\00B7';
    margin: 0 0.5em;
    opacity: 0.7;
}

.band-info {
    margin: 1.2rem 0 1.6rem;
}

.band-info.is-off {
    display: none;
}

.band-info.glitching {
    animation: teaserGlitch 0.18s steps(2, end);
}

.duo-description {
    font-family: var(--font-josefin);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-cream);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.artist {
    color: var(--color-amber);
    font-weight: 400;
}

.role {
    color: var(--color-cream);
    opacity: 0.7;
    font-size: 0.9em;
}

/* The player stays hidden until the scroll threshold, then glitches in. */
.teaser {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.6rem;
}

.teaser.is-on {
    display: flex;
}

.teaser.glitching {
    animation: teaserGlitch 0.18s steps(2, end);
}

@keyframes teaserGlitch {
    0%   { transform: translate(0, 0);   opacity: 0.15; }
    20%  { transform: translate(-4px, 2px);  opacity: 0.8; }
    40%  { transform: translate(5px, -3px);  opacity: 0.35; }
    60%  { transform: translate(-5px, 1px);  opacity: 0.9; }
    80%  { transform: translate(3px, -2px);  opacity: 0.55; }
    100% { transform: translate(0, 0);   opacity: 1; }
}

.teaser-button {
    flex: 0 0 auto;
    width: clamp(48px, 12vw, 60px);
    height: clamp(48px, 12vw, 60px);
    border-radius: 50%;
    border: 1px solid rgba(255, 155, 69, 0.5);
    background: rgba(255, 155, 69, 0.12);
    color: var(--color-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.teaser-button:hover {
    color: var(--color-amber);
    background: rgba(255, 155, 69, 0.2);
    transform: translateY(-3px);
}

.teaser-button svg {
    width: 45%;
    height: 45%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Play/pause icon is driven by the button's aria-pressed state. */
.icon-pause {
    display: none;
}

.teaser-button[aria-pressed="true"] .icon-play {
    display: none;
}

.teaser-button[aria-pressed="true"] .icon-pause {
    display: block;
}

.waveform {
    width: clamp(160px, 32vw, 280px);
    height: 52px;
}

.teaser-time {
    font-family: var(--font-josefin);
    font-size: 0.95rem;
    color: var(--color-cream);
    opacity: 0.7;
    letter-spacing: 0.05em;
    min-width: 3ch;
    text-align: left;
}

.booking-cta {
    font-family: var(--font-cormorant);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: var(--color-cream);
    opacity: 0.85;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    color: var(--color-cream);
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.social-link:hover {
    color: var(--color-amber);
    opacity: 1;
    transform: translateY(-3px);
}

.social-link svg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .stage-inner {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stage-inner {
        padding: 1rem;
    }

    .band-info {
        margin: 1rem 0 1.2rem;
    }

    .teaser {
        gap: 0.75rem;
    }

    .waveform {
        width: clamp(120px, 44vw, 200px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }

    .social-link {
        animation: none;
        transition: none;
    }

    .scroll-hint {
        animation: none;
    }

    .hero-media.glitching {
        animation: none;
    }

    .hero-media.glitching::after {
        animation: none;
    }

    .teaser.glitching,
    .band-info.glitching,
    .container.glitching,
    .page-flash.glitching {
        animation: none;
    }
}
