/* ============================================================
   VAELOR — HERO V2 (Cinematic)
   Scoped to .v-hero-v2 so the rest of the site is untouched.
   ============================================================ */

:root {
    --v-paper:      #0a0a0a;
    --v-paper-ink:  #f2f2f2;
    --v-paper-line: #2a2a2a;
}

/* ----- Hero wrapper ----- */
body.vaelor-theme .v-hero-v2 {
    position: relative;
    min-height: 100vh;
    background: var(--v-paper);
    color: var(--v-paper-ink);
    overflow: hidden;
    padding: 88px 0 0;
    display: flex;
    flex-direction: column;
    cursor: none; /* hide default cursor; custom one takes over */
}

/* ----- Background grain + grid ----- */
body.vaelor-theme .v-hero-v2__bg {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
body.vaelor-theme .v-hero-v2__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ----- Eyebrow ----- */
body.vaelor-theme .v-hero-v2__eyebrow-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    margin-bottom: 18px;
}
body.vaelor-theme .v-hero-v2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--v-paper-line);
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
body.vaelor-theme .v-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.18);
    animation: vPulse 1.8s ease-in-out infinite;
}
@keyframes vPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(22,163,74,0.18); }
    50%      { box-shadow: 0 0 0 8px rgba(22,163,74,0.05); }
}

/* ----- Stage: top type / center jersey / bottom type ----- */
body.vaelor-theme .v-hero-v2__stage {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 0 24px;
}

body.vaelor-theme .v-hero-v2__line,
body.vaelor-theme h1.v-hero-v2__line {
    font-family: var(--v-font-display);
    font-weight: 900;
    font-size: clamp(80px, 17vw, 260px);
    line-height: 0.82;
    letter-spacing: -0.05em;
    color: var(--v-paper-ink);
    margin: 0;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    will-change: transform;
}
body.vaelor-theme .v-hero-v2__line--top {
    align-self: end;
    transform: translateY(0.15em); /* sink slightly so jersey overlaps */
}
body.vaelor-theme .v-hero-v2__line--bottom {
    align-self: start;
    transform: translateY(-0.18em);
}
body.vaelor-theme .v-hero-v2__line em {
    font-style: normal;
    -webkit-text-stroke: 2px var(--v-paper-ink);
    color: transparent;
    letter-spacing: -0.05em;
}

/* ----- Center: jersey image ----- */
body.vaelor-theme .v-hero-v2__center {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 0;
    /* Pull jersey up so it overlaps the BUILT word */
    margin-top: -18vh;
}
body.vaelor-theme .v-hero-v2__jersey {
    height: min(62vh, 640px);
    width: auto;
    max-width: 92vw;
    object-fit: contain;
    filter: drop-shadow(0 40px 60px rgba(0,0,0,0.18));
    will-change: transform;
    user-select: none;
    pointer-events: none;
}
body.vaelor-theme .v-hero-v2__jersey--placeholder {
    width: min(380px, 60vw);
    height: auto;
    color: var(--v-paper-ink);
    opacity: 0.35;
}
body.vaelor-theme .v-hero-v2__jersey--placeholder svg { width: 100%; height: auto; }

/* ----- Stickers ----- */
body.vaelor-theme .v-sticker {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #ffffff;
    color: #0a0a0a;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    font-family: var(--v-font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.05;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
    white-space: nowrap;
    z-index: 4;
    will-change: transform;
}
body.vaelor-theme .v-sticker span { display: block; }
body.vaelor-theme .v-sticker--1 { top: 8%;  left: -2%;  transform: rotate(-12deg); }
body.vaelor-theme .v-sticker--2 { top: 18%; right: -4%; transform: rotate(8deg); padding: 12px 22px; }
body.vaelor-theme .v-sticker--3 { bottom: 12%; left: 2%; transform: rotate(6deg); }
body.vaelor-theme .v-sticker--4 {
    bottom: 6%; right: 2%; transform: rotate(-8deg);
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* ----- Footer row ----- */
body.vaelor-theme .v-hero-v2__footer {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 32px 28px;
    gap: 24px;
}
body.vaelor-theme .v-hero-v2__footer > a { justify-self: start; }
body.vaelor-theme .v-hero-v2__meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.vaelor-theme .v-hero-v2__meta-num {
    font-family: var(--v-font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}
body.vaelor-theme .v-hero-v2__meta-lbl {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
body.vaelor-theme .v-hero-v2__scroll {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
body.vaelor-theme .v-hero-v2__scroll svg {
    width: 14px; height: 14px;
    animation: vBob 2.2s ease-in-out infinite;
}
@keyframes vBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

/* ----- Marquee ticker ----- */
body.vaelor-theme .v-hero-v2__ticker {
    position: relative;
    z-index: 4;
    overflow: hidden;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 0;
    background: #ffffff;
    color: #0a0a0a;
}
body.vaelor-theme .v-hero-v2__ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    animation: vMarquee 38s linear infinite;
    padding-left: 36px;
}
body.vaelor-theme .v-hero-v2__ticker-track span {
    font-family: var(--v-font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
@keyframes vMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   CUSTOM CURSOR + WIND TRAIL
   ============================================================ */
body.vaelor-theme .v-hero-v2__cursor {
    position: fixed;
    top: 0; left: 0;
    width: 52px; height: 52px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    will-change: transform;
    opacity: 0;
    transition: opacity .25s ease;
    display: none; /* enabled by JS on desktop */
}
body.vaelor-theme .v-hero-v2__cursor svg { width: 100%; height: 100%; }
body.vaelor-theme .v-hero-v2__cursor.is-visible { opacity: 1; }
body.vaelor-theme .v-hero-v2__cursor.is-pressing { transform: translate(-50%, -50%) scale(.85); }

body.vaelor-theme .v-wind {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    border-radius: 999px;
    transform-origin: center;
    will-change: transform, opacity;
    z-index: 9998;
}

/* When hovering interactive elements, swap cursor mode */
body.vaelor-theme .v-hero-v2 a:not([disabled]) { cursor: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    body.vaelor-theme .v-hero-v2__line { font-size: clamp(64px, 16vw, 180px); }
    body.vaelor-theme .v-hero-v2__jersey { height: min(48vh, 480px); }
    body.vaelor-theme .v-hero-v2__center { margin-top: -10vh; }
    body.vaelor-theme .v-sticker { font-size: 11px; padding: 10px 14px; }
    body.vaelor-theme .v-sticker--1 { top: 6%; left: 2%; }
    body.vaelor-theme .v-sticker--2 { top: 14%; right: 2%; }
}

@media (max-width: 768px) {
    body.vaelor-theme .v-hero-v2 {
        cursor: auto; /* re-enable default cursor */
        padding-top: 56px;
        min-height: auto;
    }
    body.vaelor-theme .v-hero-v2__cursor,
    body.vaelor-theme .v-hero-v2 a:not([disabled]) { cursor: auto; }
    body.vaelor-theme .v-hero-v2__cursor { display: none !important; }

    body.vaelor-theme .v-hero-v2__line { font-size: clamp(54px, 16vw, 110px); white-space: nowrap; }
    body.vaelor-theme .v-hero-v2__line--top { transform: translateY(0.08em); }
    body.vaelor-theme .v-hero-v2__line--bottom { transform: translateY(-0.08em); }
    body.vaelor-theme .v-hero-v2__jersey { height: 38vh; }
    /* Reset desktop pull-up so jersey stays vertically centered on mobile */
    body.vaelor-theme .v-hero-v2__center { margin-top: 0; }

    body.vaelor-theme .v-sticker {
        font-size: 9.5px;
        padding: 8px 12px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    }
    body.vaelor-theme .v-sticker--1 { top: 4%; left: -8px; }
    body.vaelor-theme .v-sticker--2 { top: 14%; right: -8px; }
    body.vaelor-theme .v-sticker--3 { bottom: 14%; left: -8px; }
    body.vaelor-theme .v-sticker--4 { bottom: 6%; right: -8px; }

    body.vaelor-theme .v-hero-v2__footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 20px 18px 24px;
    }
    body.vaelor-theme .v-hero-v2__footer > a { justify-self: center; }
    body.vaelor-theme .v-hero-v2__meta { align-items: center; }
    body.vaelor-theme .v-hero-v2__scroll { display: none; }

    body.vaelor-theme .v-hero-v2__ticker-track span { font-size: 12px; }
}

/* Reduced motion: kill animations */
@media (prefers-reduced-motion: reduce) {
    body.vaelor-theme .v-hero-v2__cursor,
    body.vaelor-theme .v-wind,
    body.vaelor-theme .v-hero-v2__ticker-track,
    body.vaelor-theme .v-hero-v2__scroll svg,
    body.vaelor-theme .v-dot {
        animation: none !important;
        transition: none !important;
    }
    body.vaelor-theme .v-hero-v2 { cursor: auto; }
    body.vaelor-theme .v-hero-v2__cursor { display: none !important; }
}
