/* ===========================================================================
   Homepage (views/index.html)

   Loaded after index.css, which still owns the hero's background slideshow,
   radar sweep and wordmark. Everything below the hero lives here, plus the
   overrides that cut the hero down from full-bleed to a banner — the page now
   leads with real listings rather than a screen of marketing.

   One naming system: .home-section wraps a titled block, .home-row is a
   horizontal card scroller, .hcard is an event card, .hlist is the
   date-grouped listing. The old home-media and home-event-card rules that
   lived in an inline <style> block in the template were folded into these.
   =========================================================================== */

:root {
    --home-max: 1280px;
    --home-gut: 1.5rem;
    --home-red: #ff0000;
    --home-red-dim: #cc0000;
    --home-line: rgba(255, 255, 255, 0.10);
    --home-line-soft: rgba(255, 255, 255, 0.06);
    --home-surface: #101010;
    --home-muted: #8a8a8a;
}

/* ---------------------------------------------------------------------------
   Hero — compact variant
   --------------------------------------------------------------------------- */

/* index.css and layout.css both set .hero height; this wins on specificity and
   load order. `main` carries a 60px top margin for the fixed header, so the
   pull-up has to match that exactly — it used to be -80px, which tucked 20px of
   hero behind the header. */
.hero--compact {
    height: auto;
    min-height: 0;
    padding: clamp(4.5rem, 12vh, 7rem) 1rem clamp(2.5rem, 6vh, 3.5rem);
    margin-top: -60px;
    padding-top: calc(60px + clamp(3rem, 9vh, 5rem));
}

.hero--compact .hero-content {
    max-width: 860px;
    width: 100%;
    /* index.css floats .hero-content up and down forever. Harmless over a
       wordmark, not over a <select> the visitor is trying to hit. */
    animation: none;
}

.hero--compact .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 4.5rem);
}

.hero--compact .hero-radar {
    width: min(360px, 78vw);
    height: min(360px, 78vw);
}

.hero--compact .hero-subtitle {
    font-size: clamp(0.95rem, 2.6vw, 1.35rem);
    margin-bottom: 1.75rem;
    letter-spacing: 1.5px;
}

.hero--compact .hero-stats {
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

/* The overlay gets a hard bottom fade so the hero hands off into the listings
   below instead of stopping on a seam. */
.hero--compact .hero-overlay {
    background: linear-gradient(
        rgba(0, 0, 0, 0.62),
        rgba(0, 0, 0, 0.78) 55%,
        #000 100%
    );
}

/* City finder ------------------------------------------------------------- */

.hero-finder {
    display: flex;
    gap: 0.5rem;
    max-width: 520px;
    margin: 0 auto;
    opacity: 0;
    animation: heroEnter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.hero-finder-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.hero-finder-field > i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--home-red);
    font-size: 0.85rem;
    pointer-events: none;
}

.hero-finder select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.85rem 2.2rem 0.85rem 2.4rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-finder select:hover,
.hero-finder select:focus {
    border-color: var(--home-red);
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}

/* Native option lists inherit the page's transparent background on some
   platforms and render white-on-white; pin them explicitly. */
.hero-finder select option {
    background: #111;
    color: #fff;
}

.hero-finder-caret {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.7rem;
    pointer-events: none;
}

.hero-finder button {
    flex: 0 0 auto;
    background: var(--home-red);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-finder button:hover {
    background: var(--home-red-dim);
    transform: translateY(-1px);
}

/* Quick-pick city chips --------------------------------------------------- */

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    animation: heroEnter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

.hero-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ddd;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-chip:hover {
    border-color: var(--home-red);
    background: rgba(255, 0, 0, 0.12);
    color: #fff;
}

.hero-chip--all {
    border-color: rgba(255, 0, 0, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .hero--compact {
        height: auto;
        min-height: 0;
        padding-bottom: 2.25rem;
        padding-top: calc(60px + 2.5rem);
    }
}

@media (max-width: 560px) {
    .hero-finder {
        flex-direction: column;
    }

    .hero-finder button {
        padding: 0.8rem 1.5rem;
    }
}

/* ---------------------------------------------------------------------------
   Signed-in welcome bar (replaces the hero for authenticated users)
   --------------------------------------------------------------------------- */

.home-welcome {
    max-width: var(--home-max);
    margin: 0 auto;
    padding: 2rem var(--home-gut) 0.5rem;
}

.home-welcome-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--home-line);
}

.home-welcome-hi {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.home-welcome-hi span {
    color: var(--home-red);
}

.home-welcome-sub {
    margin: 0.35rem 0 0;
    color: var(--home-muted);
    font-size: 0.88rem;
}

.home-welcome-sub a {
    color: #ddd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-welcome-sub a:hover {
    color: #fff;
}

.home-welcome-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.home-welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.home-welcome-btn:hover {
    border-color: var(--home-red);
    background: rgba(255, 0, 0, 0.12);
}

.home-welcome-btn--primary {
    background: var(--home-red);
    border-color: var(--home-red);
}

.home-welcome-btn--primary:hover {
    background: var(--home-red-dim);
    border-color: var(--home-red-dim);
}

/* Inline nudge for a signed-in user with no city on their profile. */
.home-setcity {
    max-width: var(--home-max);
    margin: 1.5rem auto 0;
    padding: 1.1rem var(--home-gut);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-setcity-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 0, 0, 0.35);
    border-left: 3px solid var(--home-red);
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.08), transparent 60%);
}

.home-setcity p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.home-setcity strong {
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Section shell
   --------------------------------------------------------------------------- */

.home-section {
    max-width: var(--home-max);
    margin: 0 auto;
    padding: 2.75rem var(--home-gut) 0;
}

.home-section--last {
    padding-bottom: 3.5rem;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--home-line);
}

.home-section-h {
    margin: 0;
    font-size: clamp(1.25rem, 3.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.home-section-h small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--home-muted);
}

.home-section-tools {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.home-section-more {
    color: var(--home-red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.home-section-more:hover {
    opacity: 0.7;
}

.home-section-more i {
    margin-left: 0.35rem;
    font-size: 0.72rem;
}

/* Carousel arrows --------------------------------------------------------- */

.home-arrows {
    display: flex;
    gap: 0.4rem;
}

.home-arrow {
    width: 34px;
    height: 34px;
    padding: 0;
    line-height: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.home-arrow:hover:not(:disabled) {
    background: var(--home-red);
    border-color: var(--home-red);
    transform: scale(1.1);
}

.home-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Arrows are a convenience on top of native scrolling; on touch, swiping is
   the real affordance and they only eat header space. */
@media (max-width: 768px) {
    .home-arrows {
        display: none;
    }
}

/* Horizontal card scroller ------------------------------------------------ */

.home-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.home-row::-webkit-scrollbar {
    display: none;
}

/* Let the last card in a row breathe against the gutter on phones. */
.home-row::after {
    content: '';
    flex: 0 0 0.25rem;
}

.home-empty {
    color: #777;
    font-size: 0.9rem;
    padding: 0.5rem 0 1rem;
}

.home-empty a {
    color: var(--home-red);
    text-decoration: none;
}

.home-empty a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Event card (.hcard) — poster-led, RA style
   --------------------------------------------------------------------------- */

.hcard {
    flex: 0 0 260px;
    /* Without this a flex item's automatic minimum size can push it past its
       basis, so one long word in a title made that card wider than the rest of
       the row. */
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hcard-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    /* The row stretches every card to the tallest one; without this the poster
       is a shrinkable flex item and gives up height to whichever card has a
       two-line title, so the artwork comes out ragged across the row. */
    flex: none;
    border-radius: 6px;
    overflow: hidden;
    background: var(--home-surface);
    margin-bottom: 0.8rem;
}

.hcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hcard:hover .hcard-media img {
    transform: scale(1.06);
}

/* Sits over the artwork so a missing poster still reads as a card rather than
   a hole — the scraped feeds leave plenty of events image-less. */
.hcard-media-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.02) 0 10px,
            transparent 10px 20px
        ),
        var(--home-surface);
}

.hcard-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 45%);
    pointer-events: none;
}

.hcard-date {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.hcard-date em {
    font-style: normal;
    color: var(--home-red);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.hcard-flag {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 1;
    padding: 0.22rem 0.5rem;
    border-radius: 3px;
    background: var(--home-red);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hcard-title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.hcard:hover .hcard-title {
    color: var(--home-red);
}

.hcard-meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--home-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .hcard {
        flex-basis: 78vw;
        max-width: 300px;
    }
}

/* ---------------------------------------------------------------------------
   Date-grouped listing (.hlist)
   --------------------------------------------------------------------------- */

.hlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlist-day {
    display: flex;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--home-line-soft);
}

.hlist-day:last-child {
    border-bottom: none;
}

.hlist-rail {
    flex: 0 0 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.35rem;
    line-height: 1.1;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.hlist-rail-dow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-red);
}

.hlist-rail-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.hlist-rail-mon {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-muted);
}

.hlist-rows {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hlist-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

.hlist-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.hlist-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--home-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.hlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hlist-body {
    flex: 1 1 auto;
    min-width: 0;
}

.hlist-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.hlist-row:hover .hlist-title {
    color: var(--home-red);
}

.hlist-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--home-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hlist-time {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: #bbb;
}

.hlist-go {
    flex: 0 0 auto;
    color: #444;
    font-size: 0.8rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hlist-row:hover .hlist-go {
    color: var(--home-red);
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .hlist-day {
        gap: 0.9rem;
    }

    .hlist-rail {
        flex-basis: 44px;
        position: static;
    }

    .hlist-rail-num {
        font-size: 1.4rem;
    }

    .hlist-thumb {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .hlist-time,
    .hlist-go {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   City grid
   --------------------------------------------------------------------------- */

.hcities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.75rem;
}

.hcity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    background: var(--home-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hcity:hover {
    border-color: var(--home-red);
    background: #161010;
    transform: translateY(-2px);
}

.hcity-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hcity-count {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--home-muted);
    font-variant-numeric: tabular-nums;
}

.hcity:hover .hcity-count {
    color: var(--home-red);
}

/* ---------------------------------------------------------------------------
   Artist + article cards (Music / Magazine rows)
   --------------------------------------------------------------------------- */

.hartist {
    flex: 0 0 170px;
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.hartist-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--home-surface);
    margin-bottom: 0.75rem;
    border: 1px solid var(--home-line);
    transition: border-color 0.2s ease, transform 0.25s ease;
}

.hartist:hover .hartist-img {
    border-color: var(--home-red);
    transform: translateY(-4px);
}

.hartist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hartist-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 2.2rem;
}

.hartist-name {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hartist-meta {
    margin: 0;
    font-size: 0.76rem;
    color: var(--home-muted);
    text-align: center;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.harticle {
    flex: 0 0 300px;
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}

.harticle-img {
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--home-surface);
    margin-bottom: 0.8rem;
}

.harticle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.harticle:hover .harticle-img img {
    transform: scale(1.06);
}

.harticle-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 2.2rem;
}

.harticle-cat {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-red);
}

.harticle-title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.harticle:hover .harticle-title {
    color: var(--home-red);
}

.harticle-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--home-muted);
}

@media (max-width: 600px) {
    .hartist,
    .hartist-img {
        flex-basis: 132px;
        width: 132px;
    }

    .hartist-img {
        height: 132px;
    }

    .harticle {
        flex-basis: 78vw;
        max-width: 300px;
    }
}

/* ---------------------------------------------------------------------------
   Join band — the one marketing strip, replacing four full-height sections
   --------------------------------------------------------------------------- */

.home-join {
    max-width: var(--home-max);
    margin: 3.5rem auto 0;
    padding: 0 var(--home-gut);
}

.home-join-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(255, 0, 0, 0.08), transparent 55%),
        var(--home-surface);
}

.home-join-col h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.home-join-col p {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    color: var(--home-muted);
    line-height: 1.5;
}

.home-join-divider {
    width: 1px;
    align-self: stretch;
    background: var(--home-line);
}

.home-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    background: var(--home-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-join-btn:hover {
    background: var(--home-red-dim);
    transform: translateY(-1px);
}

.home-join-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-join-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: #fff;
}

.home-join-alt {
    margin: 0.6rem 0 0;
    font-size: 0.76rem;
    color: #777;
}

.home-join-alt a {
    color: #ccc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-join-alt a:hover {
    color: #fff;
}

@media (max-width: 760px) {
    .home-join-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .home-join-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
    }
}

/* ---------------------------------------------------------------------------
   Merch CTA
   --------------------------------------------------------------------------- */

.home-merch-cta {
    position: relative;
    height: 60vh;
    min-height: 380px;
    margin-top: 3.5rem;
    overflow: hidden;
}

.home-merch-scroll {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-merch-scroll img {
    width: 100%;
    height: auto;
    min-height: 120%;
    object-fit: cover;
    display: block;
    animation: homeMerchScroll 22s ease-in-out infinite;
}

@keyframes homeMerchScroll {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-18%); }
    50%  { transform: translateY(-18%); }
    90%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.home-merch-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55));
}

.home-merch-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.home-merch-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--home-red);
}

.home-merch-title {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.home-merch-sub {
    margin: 0 0 2rem;
    max-width: 480px;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #ccc;
}

.home-merch-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    background: var(--home-red);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-merch-btn:hover {
    background: var(--home-red-dim);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .home-merch-cta {
        height: 50vh;
    }
}

/* ---------------------------------------------------------------------------
   Motion
   --------------------------------------------------------------------------- */

/* Sections start hidden ONLY when scripting is confirmed — `home-js` is set on
   <html> by an inline script at the top of the page. Without it the sections
   never get an opacity of 0, so a no-JS visitor reads a complete page rather
   than a blank one. */
.home-js .home-reveal {
    opacity: 0;
    transform: translateY(18px);
}

.home-js .home-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .home-js .home-reveal,
    .home-js .home-reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-finder,
    .hero-chips {
        animation: none;
        opacity: 1;
    }

    .home-merch-scroll img,
    .hcard-media img,
    .harticle-img img {
        animation: none;
        transition: none;
    }
}
