/* ============================================================
   TRITRUE — Black Heart Festival · Home Hero
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg: #080808;
    --fg: #efefef;
    --fg-dim: rgba(239, 239, 239, 0.55);
    --border: rgba(239, 239, 239, 0.12);
    --nav-h: 88px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Titillium Web', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --pad-x: clamp(1.5rem, 5vw, 5rem);
    --container-w: 1152px;
    /* ~Tailwind max-w-6xl */
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: none;
    color: inherit;
    font: inherit;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--fg);
    mix-blend-mode: difference;
    transition: width .2s var(--ease-out), height .2s var(--ease-out), opacity .3s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(239, 239, 239, .4);
    mix-blend-mode: difference;
    transition: width .35s var(--ease-out), height .35s var(--ease-out);
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
    width: 0;
    height: 0;
    opacity: 0;
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
    width: 64px;
    height: 64px;
}

/* ══════════════════════════════════════════════════════════════
   NAVIGATION  —  3-col: left links | center logo img | right links
   ══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background .5s ease, border-bottom-color .5s ease;
    border-bottom: 1px solid transparent;
    animation: navSlideDown 0.75s 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav.is-scrolled {
    background: rgba(8, 8, 8, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* links left */
.nav__links--left {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-start;
}

/* links right */
.nav__links--right {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-end;
}

.nav__link {
    font-family: 'Titillium Web', sans-serif;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fg-dim);
    position: relative;
    padding-bottom: 3px;
    transition: color .3s ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fg);
    transition: width .35s var(--ease-out);
}

.nav__link:hover {
    color: var(--fg);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.is-active {
    color: var(--fg);
}

.nav__link.is-active::after {
    width: 100%;
}

/* center logo image */
.nav__logo-img {
    display: block;
    height: 52px;
    width: auto;
    filter: invert(1);
    /* makes black logo white on dark bg */
    transition: opacity .3s ease;
}

.nav__logo-img:hover {
    opacity: .75;
}

/* Lock logo anchor to center column at every width */
.nav__inner>a {
    grid-column: 2;
    justify-self: center;
    align-self: center;
}

/* Instagram nav icon — hidden on desktop, shown on mobile */
.nav__link--ig {
    display: none;
    align-items: center;
    justify-content: center;
}

/* hamburger — kept in CSS but never shown */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 1001;
    /* always sits in col-3 so it never displaces the logo */
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--fg);
    transition: transform .35s var(--ease-out), opacity .25s ease;
}

/* ══════════════════════════════════════════════════════════════
   HERO — Full viewport, concert background
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--nav-h);
    /* overflow removed — hero__bg handles its own clipping */
}

/* Background image */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* ── <img> approach — cover with smart anchor point ── */
.hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* pull focal point down so centered logo appears visually centered */
    object-position: center 65%;
    animation: bgReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bgReveal {
    from {
        opacity: 0;
        transform: scale(1.07);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* on mobile viewport is taller relative to width — push slightly lower */
@media (max-width: 768px) {
    .hero__bg img {
        object-position: center 72%;
    }
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(8, 8, 8, .55) 0%,
            rgba(8, 8, 8, 0) 30%,
            rgba(8, 8, 8, 0) 55%,
            rgba(8, 8, 8, .25) 100%);
    z-index: 1;
}

/* Content wrapper */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

/* Festival logo image */
.hero__festival-logo {
    width: clamp(320px, 68vw, 900px);
    height: auto;
    margin-top: 0;
    /* subtle drop shadow to pop on any bg */
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, .65));
    animation:
        logoIntro 2.4s 1.3s cubic-bezier(0.22, 1, 0.36, 1) both,
        logoWiggle 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 4.0s infinite;
    transform-origin: center center;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(3.5);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoWiggle {
    0% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(-4px, 3px) rotate(-0.5deg);
    }

    50% {
        transform: translate(3px, -4px) rotate(0.5deg);
    }

    75% {
        transform: translate(-3px, 4px) rotate(-0.4deg);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
}

/* Date label */
.hero__date {
    margin-top: 1rem;
    font-family: 'Rockwell', 'Rockwell Extra Bold', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: .04em;
    color: #2a2a2a;
    /* sitting on a lighter part of the sky in the BG photo */
    text-shadow: 0 2px 12px rgba(255, 255, 255, .18);
    animation: dateMaterialize 1.1s 2.6s var(--ease-out) both;
}

@keyframes dateMaterialize {
    0% {
        opacity: 0;
        letter-spacing: 0.45em;
        transform: scaleX(0.82) translateY(-6px);
        filter: blur(8px);
    }

    55% {
        opacity: 1;
        filter: blur(0);
    }

    80% {
        letter-spacing: 0.06em;
        transform: scaleX(1.01) translateY(1px);
    }

    100% {
        opacity: 1;
        letter-spacing: 0.04em;
        transform: scaleX(1) translateY(0);
        filter: blur(0);
    }
}

/* ──────────────────────────────────────────────────
   BOTTOM STATS BAR — "2 STAGES  1 UNFORGETTABLE..."
   ────────────────────────────────────────────────── */
.hero__stats {
    position: absolute;
    bottom: 4%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
    line-height: 1;
}

.hero__stat-item {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.hero__button {
    display: inline-block;
    margin-top: .75rem;
    padding: .75rem 2rem;
    font-family: var(--font-display);
    font-size: clamp(.9rem, 4vw, 1.25rem);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #080808;
    background: transparent;
    border: 1.5px solid #080808;
    position: relative;
    overflow: hidden;
    cursor: none;
    /* entry animation — fade + rise in after date */
    animation: btnFadeIn 0.9s 3.4s var(--ease-out) both;
    transition: color .35s ease, background .35s ease, border-color .35s ease, transform .25s var(--ease-out), box-shadow .35s ease;
}

/* shimmer sweep pseudo-element */
.hero__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .45) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0s;
}

.hero__button:hover {
    color: var(--fg);
    background: #080808;
    border-color: var(--fg);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.hero__button:hover::before {
    left: 150%;
    transition: left .55s ease;
}

@keyframes btnFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__stat-num {
    font-family: 'Rockwell', 'Rockwell Extra Bold', 'Frank Ruhl Libre', Georgia, serif;
    font-size: clamp(5rem, 14vw, 11rem);
    color: var(--fg);
    line-height: .9;
    letter-spacing: -.02em;
    opacity: 80%;
}

.hero__stat-word {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
    align-items: flex-start;
    text-align: left;
    margin-left: -.15em;
}

.hero__stat-word span {
    font-family: 'Rockwell', 'Rockwell Extra Bold', 'Frank Ruhl Libre', Georgia, serif;
    font-size: clamp(2rem, 6vw, 4.9rem);
    line-height: .82;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 80%;
}

/* ── Right-side floating icons ──────────────────────── */
.hero__side-icons {
    position: absolute;
    right: clamp(1rem, 3vw, 2.5rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: sideIconIn 0.7s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sideIconIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(28px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero__side-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(239, 239, 239, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s ease, background .3s ease;
    color: var(--fg);
}

.hero__side-icon:hover {
    border-color: var(--fg);
    background: rgba(239, 239, 239, .08);
}

.hero__side-icon svg {
    width: 46px;
    height: 46px;
    fill: var(--fg);
}

/* Instagram — no white fill override, gradient handles it */
.hero__side-icon--ig {
    border: none;
    background: none;
}

.hero__side-icon--ig:hover {
    border: none;
    background: none;
    opacity: .8;
}

/* ── Decorative creatures (Owl + Vulture) ──────────────────── */
.hero__creature-wrap {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --owl class has Vulture.png — bottom-left */
.hero__creature-wrap--owl {
    left: clamp(4rem, 10vw, 14rem);
    bottom: 10%;
    top: auto;
    animation: creatureEnterLeft 1.1s 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --vulture class has Owl.png — top-right */
.hero__creature-wrap--vulture {
    right: clamp(4rem, 10vw, 14rem);
    top: calc(var(--nav-h) + 1.5rem);
    animation: creatureEnterRight 1.1s 1.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes creatureEnterLeft {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes creatureEnterRight {
    from {
        opacity: 0;
        transform: translateX(70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__creature {
    display: block;
    width: clamp(160px, 20vw, 300px);
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .55));
    pointer-events: auto;
    cursor: none;
    animation: creatureWiggle 5s 3.0s ease-in-out infinite;
}

.hero__creature-wrap--vulture .hero__creature {
    animation-delay: 3.2s;
}

@keyframes creatureWiggle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-5px, 4px) rotate(-1deg);
    }

    50% {
        transform: translate(4px, -5px) rotate(1deg);
    }

    75% {
        transform: translate(-4px, 5px) rotate(-0.8deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.hero__creature:hover {
    animation: creatureWiggleFast 0.55s ease-in-out infinite;
}

@keyframes creatureWiggleFast {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    15% {
        transform: translate(-9px, 6px) rotate(-2.5deg);
    }

    35% {
        transform: translate(8px, -7px) rotate(2.5deg);
    }

    55% {
        transform: translate(-7px, 8px) rotate(-2deg);
    }

    75% {
        transform: translate(6px, -5px) rotate(2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* ── Responsive ─────────────────────────────────────── */

/* Tablet landscape — ≤1200px */
@media (max-width: 1200px) {
    .hero__bg img {
        object-position: center 60%;
    }

    .hero__festival-logo {
        width: clamp(320px, 72vw, 780px);
    }

    .hero__stat-num {
        font-size: clamp(4rem, 12vw, 8rem);
    }

    .hero__stat-word span {
        font-size: clamp(1.6rem, 5vw, 4rem);
    }
}

/* Tablet portrait — ≤768px */
@media (max-width: 768px) {

    :root {
        --nav-h: 64px;
    }

    /* nav */
    .nav__links--left {
        display: none;
    }

    .nav__logo-img {
        height: 38px;
    }

    .nav__link--ig {
        display: flex;
    }

    /* hide desktop side icons on mobile — IG is now in nav */
    .hero__side-icons {
        display: none;
    }

    /* hero */
    .hero__content {
        margin-top: clamp(2rem, 7vh, 4rem);
    }

    .hero__bg img {
        object-position: center 68%;
    }

    .hero__festival-logo {
        width: clamp(280px, 88vw, 520px);
    }

    /* date: keep dark — stays readable on the lighter sky area */
    .hero__date {
        font-size: clamp(1.2rem, 4.5vw, 1.8rem);
        margin-top: .5rem;
        color: #2a2a2a;
        text-shadow: 0 1px 8px rgba(255, 255, 255, .25);
    }

    /* creatures: scale down, diagonal positions */
    .hero__creature {
        width: clamp(100px, 13vw, 180px);
    }

    /* vulture — bottom-left */
    .hero__creature-wrap--owl {
        left: 0.25rem;
        bottom: 8%;
        top: auto;
    }

    /* owl — top-right */
    .hero__creature-wrap--vulture {
        right: 0.25rem;
        top: calc(var(--nav-h) + 0.75rem);
    }

    .hero__stats {
        bottom: 2%;
    }

    /* tighter sizes so UNFORGETTABLE fits at ~768px */
    .hero__stat-num {
        font-size: clamp(3.2rem, 13vw, 5.5rem);
    }

    .hero__stat-word span {
        font-size: clamp(.85rem, 4.2vw, 1.8rem);
    }

    /* side icons — move to top-right below nav so it never overlaps stats */
    .hero__side-icons {
        top: calc(var(--nav-h) + 0.75rem);
        bottom: auto;
        right: 1rem;
        transform: none;
        flex-direction: column;
        gap: .5rem;
    }

    .hero__side-icon {
        width: 46px;
        height: 46px;
    }

    .hero__side-icon svg {
        width: 36px;
        height: 36px;
    }

    /* hide cursor on touch */
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* Stack stats at ≤640px — prevents UNFORGETTABLE from overflowing */
@media (max-width: 640px) {
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
        left: var(--pad-x);
        right: var(--pad-x);
    }

    .hero__stat-num {
        font-size: clamp(2.4rem, 14vw, 3.8rem);
    }

    .hero__stat-word span {
        font-size: clamp(.7rem, 4.5vw, 1.3rem);
    }
}

/* Mobile — ≤480px */
@media (max-width: 480px) {

    :root {
        --nav-h: 56px;
    }

    .hero__bg img {
        object-position: center 75%;
    }

    .hero__festival-logo {
        width: clamp(220px, 90vw, 380px);
    }

    .hero__date {
        font-size: clamp(.9rem, 5vw, 1.3rem);
        color: #2a2a2a;
    }

    /* hide creatures on small phones — too cramped */
    .hero__creature-wrap {
        display: none;
    }

    /* Stack stats vertically so UNFORGETTABLE never overflows */
    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        left: var(--pad-x);
        right: var(--pad-x);
    }

    .hero__stat-num {
        font-size: clamp(2.4rem, 14vw, 3.8rem);
    }

    .hero__stat-word span {
        font-size: clamp(.7rem, 4.5vw, 1.3rem);
    }

    /* button full-width on small phones */
    .hero__button {
        width: 100%;
        text-align: center;
        padding: .7rem 1rem;
    }
}

/* ── Short viewport (landscape / small laptop) — max-height ── */
@media (max-height: 820px) {
    .hero__stat-num {
        font-size: clamp(2.5rem, 8vh, 5rem);
    }

    .hero__stat-word span {
        font-size: clamp(1rem, 3.5vh, 2.5rem);
    }

    .hero__stats {
        bottom: 1.5%;
    }

    .hero__festival-logo {
        width: clamp(260px, 50vh, 640px);
    }

    .hero__date {
        font-size: clamp(1rem, 3vh, 2rem);
        margin-top: .4rem;
    }

    .hero__button {
        margin-top: .4rem;
        padding: .5rem 1.6rem;
        font-size: clamp(.75rem, 1.8vh, 1rem);
    }
}