/* Homepage refresh
   Scoped to .home-page so legacy public pages are not affected. */

.home-page {
    --home-ink: #181818;
    --home-muted: #666;
    --home-line: #e9e9e9;
    --home-surface: #f6f6f6;
    --home-radius: 18px;
    --home-section-space: clamp(54px, 7vw, 92px);
    background: #fff;
    color: var(--home-ink);
}

.home-page #container {
    overflow: hidden;
}

.home-page .home-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--jv-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-page .home-eyebrow--light {
    color: rgba(255, 255, 255, .78);
}

.home-page .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.home-page .home-button:hover,
.home-page .home-button:focus {
    transform: translateY(-2px);
    text-decoration: none;
}

.home-page .home-button--light {
    background: #fff;
    color: var(--jv-red);
}

.home-page .home-button--light:hover,
.home-page .home-button--light:focus {
    background: #f3f3f3;
    color: var(--jv-red-dark);
}

.home-page .home-button--outline {
    border-color: rgba(255, 255, 255, .72);
    background: transparent;
    color: #fff;
}

.home-page .home-button--outline:hover,
.home-page .home-button--outline:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.home-page .home-button--red {
    background: var(--jv-red);
    color: #fff;
}

.home-page .home-button--red:hover,
.home-page .home-button--red:focus {
    background: var(--jv-red-dark);
    color: #fff;
}

/* Hero */
.home-page .home-hero {
    position: relative;
    min-height: clamp(500px, 55vw, 650px);
    overflow: hidden;
    background: #1d1d1d;
    color: #fff;
}

.home-page .home-hero__carousel,
.home-page .home-hero__carousel .carousel-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .home-hero__carousel .item {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-page .home-hero__carousel picture {
    display: block;
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .home-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-page .home-hero__placeholder {
    background:
        radial-gradient(circle at 78% 34%, rgba(255, 255, 255, .16), transparent 0 13%, transparent 14%),
        linear-gradient(120deg, #95030c 0%, var(--jv-red) 48%, #2a0b0d 100%);
}

.home-page .home-hero__placeholder::before {
    position: absolute;
    right: -3%;
    bottom: -44%;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    border: clamp(34px, 5vw, 70px) solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
}

.home-page .home-hero__track {
    position: absolute;
    right: -8%;
    bottom: -26%;
    width: min(74vw, 940px);
    height: min(38vw, 440px);
    border: 2px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.home-page .home-hero__track--two {
    right: -4%;
    bottom: -19%;
}

.home-page .home-hero__track--three {
    right: 0;
    bottom: -12%;
}

.home-page .home-hero__shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, .65) 48%, rgba(12, 12, 12, .12) 78%),
        linear-gradient(0deg, rgba(12, 12, 12, .35), transparent 45%);
    pointer-events: none;
}

.home-page .home-hero__slide--overlay-red .home-hero__shade {
    background:
        linear-gradient(90deg, rgba(109, 0, 8, .94), rgba(165, 3, 13, .64) 52%, rgba(42, 11, 13, .2) 82%),
        linear-gradient(0deg, rgba(12, 12, 12, .3), transparent 45%);
}

.home-page .home-hero__slide--overlay-soft .home-hero__shade {
    background:
        linear-gradient(90deg, rgba(12, 12, 12, .72), rgba(12, 12, 12, .38) 52%, rgba(12, 12, 12, .08) 82%),
        linear-gradient(0deg, rgba(12, 12, 12, .28), transparent 45%);
}

.home-page .home-hero__slide--content-right .home-hero__shade {
    background:
        linear-gradient(270deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, .65) 48%, rgba(12, 12, 12, .12) 78%),
        linear-gradient(0deg, rgba(12, 12, 12, .35), transparent 45%);
}

.home-page .home-hero__slide--content-right.home-hero__slide--overlay-red .home-hero__shade {
    background:
        linear-gradient(270deg, rgba(109, 0, 8, .94), rgba(165, 3, 13, .64) 52%, rgba(42, 11, 13, .2) 82%),
        linear-gradient(0deg, rgba(12, 12, 12, .3), transparent 45%);
}

.home-page .home-hero__slide--content-right.home-hero__slide--overlay-soft .home-hero__shade {
    background:
        linear-gradient(270deg, rgba(12, 12, 12, .72), rgba(12, 12, 12, .38) 52%, rgba(12, 12, 12, .08) 82%),
        linear-gradient(0deg, rgba(12, 12, 12, .28), transparent 45%);
}

.home-page .home-hero__content-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: clamp(500px, 55vw, 650px);
}

.home-page .home-hero__content-wrap::before,
.home-page .home-hero__content-wrap::after {
    display: none;
    content: none;
}

.home-page .home-hero__slide--content-right .home-hero__content-wrap {
    justify-content: flex-end;
}

.home-page .home-hero__content {
    max-width: 680px;
    padding: 76px 0;
}

.home-page .home-hero__slide--content-right .home-hero__content {
    max-width: 620px;
}

.home-page .home-hero__content h1,
.home-page .home-hero__content h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-transform: none;
}

.home-page .home-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: -2px 0 17px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(0, 0, 0, .16);
    color: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.home-page .home-hero__meta .fa {
    color: #fff;
}

.home-page .home-hero__content p {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(16px, 1.7vw, 21px);
    font-weight: 400;
    line-height: 1.55;
}

.home-page .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-page .home-hero__control {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    background: none;
    color: #fff;
    font-size: 36px;
    opacity: .72;
    text-shadow: none;
}

.home-page .home-hero__control:hover,
.home-page .home-hero__control:focus {
    opacity: 1;
}

.home-page .home-hero__indicators {
    z-index: 6;
    bottom: 22px;
}

.home-page .home-hero__indicators li {
    width: 28px;
    height: 4px;
    margin: 0 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
}

.home-page .home-hero__indicators li.active {
    width: 40px;
    height: 4px;
    margin: 0 3px;
    background: #fff;
}

/* Common section heading */
.home-page .home-section {
    padding: var(--home-section-space) 0;
}

.home-page .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.home-page .home-section-heading h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.home-page .home-section-heading p {
    margin: 10px 0 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.55;
}

.home-page .home-text-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--jv-red);
    color: var(--home-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-page .home-text-link:hover,
.home-page .home-text-link:focus {
    color: var(--jv-red);
    text-decoration: none;
}

/* Quick access */
.home-page #container > .services-strip {
    margin: 0;
}

.home-page .services-strip {
    padding: var(--home-section-space) 0;
    background: #fff;
}

.home-page .services-strip__title {
    margin: 0 0 12px;
    color: var(--home-ink);
    font-size: clamp(32px, 3.8vw, 48px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    text-transform: none;
}

.home-page .services-strip__subtitle {
    max-width: 380px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.55;
}

.home-page .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-page .service-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .055);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-page .service-card:hover,
.home-page .service-card:focus {
    border-color: rgba(227, 6, 19, .28);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
    transform: translateY(-3px);
}

.home-page .service-card__icon {
    width: 54px;
    height: 54px;
    border-width: 1.5px;
    border-radius: 14px;
}

.home-page .service-card__icon .fa {
    font-size: 24px;
}

.home-page .service-card__title {
    color: var(--home-ink);
    font-size: clamp(16px, 1.7vw, 21px);
    font-weight: 800;
}

/* Upcoming competitions */
.home-page .home-upcoming {
    background: var(--home-surface);
}

.home-page .home-upcoming__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-page .home-event-card {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .055);
}

.home-page .home-event-card__date {
    display: flex;
    flex: 0 0 92px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: var(--jv-red);
    color: #fff;
    text-align: center;
}

.home-page .home-event-card__date strong {
    font-size: 34px;
    line-height: 1;
}

.home-page .home-event-card__date span {
    margin-top: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-page .home-event-card__content {
    min-width: 0;
    padding: 20px;
}

.home-page .home-event-card__content h3 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.home-page .home-event-card__content p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

.home-page .home-event-card__content i {
    margin-right: 6px;
    color: var(--jv-red);
}

.home-page .home-upcoming__empty {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.home-page .home-upcoming__empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(227, 6, 19, .08);
    color: var(--jv-red);
    font-size: 25px;
}

.home-page .home-upcoming__empty h3 {
    margin: 0 0 5px;
    color: var(--home-ink);
    font-size: 20px;
    font-weight: 800;
}

.home-page .home-upcoming__empty p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.5;
}

/* News */
.home-page .section.news-section {
    padding: var(--home-section-space) 0;
    background: #fff;
}

.home-page .news-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-page .news-item {
    width: auto !important;
    min-width: 0;
}

.home-page .news-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .065);
}

.home-page .news-card:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, .11);
}

.home-page .news-card__thumb {
    aspect-ratio: 478 / 250;
    overflow: hidden;
    background: #f4f4f4;
}

.home-page .news-card__thumb picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-page .news-card__img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

.home-page .news-card__img--placeholder {
    padding: clamp(34px, 5vw, 68px);
    object-fit: contain !important;
    opacity: .72;
}

.home-page .news-card__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 18px 18px 0;
    color: #888;
    font-size: 12px;
    font-weight: 700;
}

.home-page .news-card__meta i {
    color: var(--jv-red);
}

.home-page .news-card__title {
    min-height: 0;
    padding: 10px 18px 30px;
    font-size: 16px;
    line-height: 1.35;
}

/* Stats */
.home-page .home-stats {
    padding: clamp(46px, 6vw, 76px) 0;
    background:
        linear-gradient(100deg, rgba(227, 6, 19, .94), rgba(143, 2, 10, .96)),
        #a5030d;
    color: #fff;
}

.home-page .home-stats .container {
    display: grid;
    grid-template-columns: minmax(230px, .85fr) minmax(0, 2fr);
    align-items: center;
    gap: clamp(38px, 6vw, 84px);
}

.home-page .home-stats .container::before,
.home-page .home-stats .container::after,
.home-page .home-join__inner::before,
.home-page .home-join__inner::after {
    display: none;
    content: none;
}

.home-page .home-stats__intro h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.home-page .home-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .home-stat {
    min-width: 0;
    padding: 10px clamp(18px, 3vw, 34px);
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.home-page .home-stat strong {
    display: block;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.home-page .home-stat span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

/* Structures */
.home-page .section--band {
    padding: var(--home-section-space) 0;
    background: var(--home-surface);
}

.home-page .home-section-title {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.home-page .home-section-subtitle {
    margin: 10px 0 30px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.55;
}

.home-page #portfolio-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-page #portfolio-list li {
    max-width: none;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .055);
}

.home-page #portfolio-list li img {
    height: auto;
    aspect-ratio: 470 / 250;
    padding: 0;
    object-fit: cover;
}

.home-page .logo-caption {
    min-height: 68px;
    margin: 0;
    padding: 20px;
    color: var(--home-ink);
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}

/* Final CTA */
.home-page .home-join {
    padding: clamp(48px, 6vw, 78px) 0;
    background:
        radial-gradient(circle at 82% 40%, rgba(255, 255, 255, .13), transparent 0 15%, transparent 16%),
        #202020;
    color: #fff;
}

.home-page .home-join__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.home-page .home-join h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 50px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.home-page .home-join p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 16px;
}

.home-page .home-join__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 12px;
}

/* Partners */
.home-page .partners-section,
.home-page .sponsors-section {
    margin-top: 0;
    padding-top: clamp(48px, 6vw, 72px);
}

.home-page .sponsors-section {
    margin-bottom: 0;
    padding-bottom: clamp(48px, 6vw, 72px);
}

.home-page .partners-section .home-section-title,
.home-page .sponsors-section .home-section-title {
    margin-bottom: 24px;
    font-size: clamp(25px, 3vw, 36px);
}

@media (max-width: 991px) {
    .home-page .home-hero,
    .home-page .home-hero__content-wrap {
        min-height: 560px;
    }

    .home-page .home-hero__content {
        max-width: 610px;
        padding: 72px 0;
    }

    .home-page .home-hero__shade {
        background: linear-gradient(90deg, rgba(12, 12, 12, .60), rgba(12, 12, 12, .5));
    }

    .home-page .services-strip__row {
        display: block;
    }

    .home-page .services-strip__row > .col-md-5,
    .home-page .services-strip__row > .col-md-7 {
        float: none;
        width: 100%;
        max-width: none;
    }

    .home-page .services-strip__row > .col-md-5 {
        margin-bottom: 28px;
    }

    .home-page .home-upcoming__grid {
        grid-template-columns: 1fr;
    }

    .home-page .home-stats .container {
        grid-template-columns: 1fr;
    }

    .home-page .home-stats__intro {
        max-width: 520px;
    }

    .home-page .home-join__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .home-page .home-hero,
    .home-page .home-hero__content-wrap {
        min-height: 540px;
    }

    .home-page .home-hero__content {
        padding: 58px 0;
    }

    .home-page .home-hero__content h1,
    .home-page .home-hero__content h2 {
        max-width: 520px;
        font-size: clamp(40px, 13vw, 58px);
    }

    .home-page .home-hero__slide .home-hero__shade {
        background:
            linear-gradient(0deg, rgba(12, 12, 12, .80), rgba(12, 12, 12, .3)),
            linear-gradient(90deg, rgba(12, 12, 12, .62), rgba(12, 12, 12, .2));
    }

    .home-page .home-hero__slide--content-right .home-hero__content-wrap {
        justify-content: flex-start;
    }

    .home-page .home-hero__control {
        display: none;
    }

    .home-page .services-list {
        grid-template-columns: 1fr;
    }

    .home-page .service-card {
        min-height: 96px;
    }

    .home-page .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .home-page .home-upcoming__empty {
        grid-template-columns: auto 1fr;
    }

    .home-page .home-upcoming__empty .home-button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .home-page .news-list {
        grid-template-columns: 1fr;
    }

    .home-page .home-stats__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-page .home-stat {
        display: grid;
        grid-template-columns: minmax(100px, .45fr) 1fr;
        align-items: center;
        gap: 18px;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, .26);
        border-left: 0;
    }

    .home-page .home-stat:first-child {
        margin-top: 8px;
    }

    .home-page .home-stat span {
        margin-top: 0;
    }

    .home-page #portfolio-list {
        grid-template-columns: 1fr;
    }

    .home-page .home-join__actions {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .home-page .home-hero__actions,
    .home-page .home-join__actions {
        flex-direction: column;
    }

    .home-page .home-button {
        width: 100%;
    }

    .home-page .home-upcoming__empty {
        grid-template-columns: 1fr;
    }

    .home-page .home-upcoming__empty .home-button {
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
