/* Explain: Layout utilities and background styles for page sections. */
.section-pad {
    padding-top: clamp(5.5rem, 10vw, 9rem);
    padding-bottom: clamp(5.5rem, 10vw, 9rem);
}

/* Painted pitch markings that stay fixed behind the whole page */
.pitch-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.pitch-overlay::before {
    position: absolute;
    top: 10vh;
    left: 50%;
    width: min(82vw, 62rem);
    aspect-ratio: 1;
    border: 2px solid var(--pitch-marking);
    border-radius: 50%;
    content: "";
    opacity: 0.75;
    transform: translateX(-50%);
}

.pitch-overlay::after {
    position: absolute;
    top: 0;
    right: 1.75rem;
    bottom: 0;
    left: 1.75rem;
    border-right: 2px solid var(--pitch-marking);
    border-left: 2px solid var(--pitch-marking);
    border-radius: 0.9rem;
    content: "";
    opacity: 0.75;
}

.hero-split {
    background:
        radial-gradient(circle at 82% 18%, rgba(166, 206, 57, 0.3), transparent 24rem),
        radial-gradient(circle at 94% 86%, rgba(0, 169, 206, 0.18), transparent 26rem),
        radial-gradient(circle at 6% 92%, var(--pitch-glow), transparent 28rem),
        linear-gradient(115deg, rgba(243, 243, 226, 0.96) 0%, rgba(243, 243, 226, 0.84) 48%, rgba(23, 166, 180, 0.14) 100%);
}

/* Faint centre circle, like markings painted on a pitch */
.hero-split::before {
    position: absolute;
    left: 50%;
    bottom: -24rem;
    width: 60rem;
    height: 42rem;
    border: 2px solid var(--track-line);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.4rem rgba(255, 255, 255, 0.18);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
    z-index: -1;
}

/* Chalk line closing the hero and opening the pitch below */
.hero-split::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--track-line) 18%, var(--track-line) 82%, transparent);
    content: "";
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.orb-teal {
    width: 24rem;
    height: 24rem;
    right: 8%;
    top: 10%;
    background: rgba(23, 179, 190, 0.2);
}

.orb-slate {
    width: 18rem;
    height: 18rem;
    left: 4%;
    bottom: 10%;
    background: rgba(166, 206, 57, 0.24);
}

@media (max-width: 767px) {
    .hero-split::before {
        width: 34rem;
        height: 26rem;
        bottom: -14rem;
    }

    .pitch-overlay::before {
        top: 6vh;
        width: 96vw;
    }

    .pitch-overlay::after {
        right: 0.75rem;
        left: 0.75rem;
        opacity: 0.5;
    }
}