/* =========================================================================
   Homepage seasonal band -- "ECHO2027: Amplified" (until the camp, 4 June 2027).
   Rendered by includes/seasonal-echo.php; loaded by includes/header.php only
   on "/" and only while seasonal_echo_live() is true.

   Same identity as the event site (event-site.php): stage-lit gradient, grain,
   scanlines, cyan/pink fringe on the type, the sound-wave art and the VOL meter.
   Body copy uses the site's Montserrat (already loaded); only League Spartan is
   fetched, below the fold, with swap. The band carries its own colours and reads
   the same in both site themes.
   ========================================================================= */

@font-face {
    font-family: "League Spartan";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/league-spartan-latin-var.woff2") format("woff2");
}

body.home-redesign .eb,
.eb {
    --e-ink: #0a0714;
    --e-text: #f4f2f5;
    --e-muted: rgba(244, 242, 245, .82);
    --e-pink: #eb008b;
    --e-pink-2: #ff6cc4;
    --e-pink-deep: #d6007f;
    --e-cyan: #00e5ff;
    --e-display: "League Spartan", Montserrat, "Arial Black", sans-serif;
    --e-body: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
    --e-fringe: -.03em .025em 0 var(--e-cyan), .03em -.025em 0 var(--e-pink);

    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--e-cyan), #6a1bff 50%, var(--e-pink)) 1;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
        radial-gradient(75% 90% at 0% 100%, rgba(235, 0, 139, .62), transparent 70%),
        radial-gradient(70% 100% at 100% 0%, rgba(43, 43, 255, .8), transparent 70%),
        radial-gradient(60% 80% at 45% 40%, rgba(106, 27, 255, .5), transparent 75%),
        radial-gradient(30% 50% at 92% 100%, rgba(0, 229, 255, .2), transparent 70%),
        var(--e-ink);
    color: var(--e-text);
    font-family: var(--e-body);
    text-align: center;
}
/* Film grain */
.eb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px;
    opacity: .32;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.eb .eb-wave {
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 0;
    width: max(100%, 760px);
    max-width: none;
    height: 190px;
    transform: translateX(-50%);
    opacity: .7;
    pointer-events: none;
}

.eb-wrap {
    width: min(1120px, 100% - 2rem);
    margin-inline: auto;
    padding: 1.4rem 0 1.75rem;
    display: grid;
    gap: 1.1rem;
    justify-items: center;
}
.eb :where(h2, p) { margin: 0; }
html .eb :where(span, b, i, time) { color: inherit; } /* base.css recolours bare spans in dark mode */

/* ---------- Brand: eyebrow + VOL meter, the AMPLIFIED logo ---------- */
.eb-brand { display: grid; justify-items: center; gap: .5rem; min-width: 0; }
.eb .eb-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font: 800 .66rem / 1 var(--e-body);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--e-text);
    white-space: nowrap;
}
.eb .eb-eyebrow > span > i { font-style: normal; color: var(--e-pink-2); margin: 0 .2em; }
.eb-vol { display: inline-flex; align-items: center; gap: 2px; font-size: .56rem; letter-spacing: .3em; opacity: .9; }
.eb-vol b { font-weight: 800; margin-right: 4px; }
.eb-vol i { width: 3px; height: 9px; background: #fff; }
html .eb .eb-vol i:nth-of-type(n+7) { background: var(--e-cyan); }
html .eb .eb-vol i:nth-of-type(n+10) { background: var(--e-pink-2); }
.eb .eb-title { line-height: 0; font-size: 1rem; }
.eb .eb-title img {
    display: block;
    width: min(330px, 84vw);
    height: auto;
    filter: drop-shadow(0 8px 26px rgba(7, 6, 12, .6));
}

/* ---------- Copy ---------- */
.eb-copy { display: grid; justify-items: center; gap: .7rem; min-width: 0; }
.eb .eb-strap {
    max-width: 13ch;
    font: 800 clamp(1.9rem, 8.6vw, 2.5rem) / .92 var(--e-display);
    letter-spacing: -.015em;
    text-transform: uppercase;
    text-wrap: balance;
    color: #fff;
    text-shadow: var(--e-fringe);
}
.eb .eb-when {
    font: 800 .74rem / 1.5 var(--e-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}
.eb .eb-when time, .eb-where { white-space: nowrap; }
html .eb .eb-dot { color: var(--e-pink-2); margin: 0 .25em; }
html .eb .eb-where { color: var(--e-cyan); }
.eb .eb-hook {
    max-width: 30ch;
    font: 500 .95rem / 1.45 var(--e-body);
    color: var(--e-muted);
    text-wrap: balance;
}

/* ---------- Price, Book now, promo ---------- */
.eb-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .9rem 1.25rem;
    margin-top: .2rem;
}
.eb .eb-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font: 800 .62rem / 1 var(--e-body);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--e-text);
}
.eb .eb-price b {
    margin-top: .1em;
    font: 800 2.3rem / .9 var(--e-display);
    letter-spacing: -.02em;
    color: #fff;
    text-shadow: var(--e-fringe);
}
.eb .eb-btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 52px;
    padding: .2em 1.5em 0;
    background: var(--e-pink-deep);
    color: #fff;
    font: 800 1.3rem / 1 var(--e-display);
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: -5px 5px 0 var(--e-cyan);
    transition: transform .15s ease, box-shadow .15s ease;
}
.eb .eb-btn:hover, .eb .eb-btn:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translate(-2px, 2px);
    box-shadow: -3px 3px 0 var(--e-cyan), 4px -4px 0 #fff;
}
.eb .eb-btn:focus-visible, .eb .eb-promo:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.eb .eb-promo {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 44px;
    margin: -.3rem 0 -.6rem;
    font: 700 .68rem / 1 var(--e-body);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--e-cyan);
    text-underline-offset: .4em;
}
.eb .eb-promo:hover { color: var(--e-cyan); }
.eb .eb-promo svg { color: var(--e-cyan); }

/* ---------- Tablet / desktop: logo | copy | price + button ---------- */
@media (min-width: 900px) {
    body.home-redesign .eb, .eb { text-align: left; }
    .eb-wrap {
        grid-template-columns: minmax(0, 36%) minmax(0, 1fr) auto;
        column-gap: 2.75rem;
        align-items: center;
        justify-items: start;
        padding: 1.9rem 0 2rem;
    }
    .eb-brand, .eb-copy { justify-items: start; }
    .eb .eb-eyebrow { justify-content: flex-start; gap: .8rem; }
    .eb-vol { display: none; } /* the eyebrow has room for the meter from 1200 */
    .eb .eb-title img { width: 100%; }
    .eb .eb-wave { top: 50%; width: 100%; height: 120%; transform: translate(-50%, -50%); opacity: .4; }
    .eb-copy { gap: .6rem; }
    .eb .eb-strap { max-width: 14ch; font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
    .eb .eb-hook { max-width: 34ch; font-size: .92rem; }
    .eb-side { display: grid; justify-items: start; gap: .9rem; margin: 0; }
    .eb .eb-promo { margin: -.5rem 0 -.75rem; justify-content: flex-start; }
}

@media (min-width: 1200px) {
    .eb-vol { display: inline-flex; }
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .eb .eb-wave { animation: eb-swell 5s ease-in-out infinite alternate; }
    .eb-vol i:nth-of-type(n+8) { animation: eb-vol 1.6s steps(1) infinite; }
    .eb-vol i:nth-of-type(n+10) { animation-delay: .2s; }
    .eb-vol i:nth-of-type(12) { animation-delay: .45s; }
}
@keyframes eb-swell { from { scale: 1 .82; } to { scale: 1 1.08; } }
@keyframes eb-vol { 0%, 100% { opacity: 1; } 55% { opacity: .25; } 75% { opacity: 1; } }
