/* Explain: Styles for page layout, sections, hero, and call-to-action elements. */
.section {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--paper {
    background: rgba(10, 14, 19, .42);
}

.band-dark {
    background: rgba(9, 13, 17, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.band-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(224, 110, 30, 0));
}

section[id],
article[id],
div[id="top"] {
    scroll-margin-top: 96px;
}

.section-head {
    max-width: 62ch;
}

.section-head h2 {
    margin-top: 1.15rem;
    font-size: clamp(1.95rem, 4.2vw, 3rem);
}

.section-sub {
    margin-top: 1.4rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 66ch;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 13, 17, .97) 0%, rgba(9, 13, 17, .89) 44%, rgba(9, 13, 17, .62) 100%);
}

.hero-inner {
    position: relative;
    padding-top: clamp(2.75rem, 6vw, 4rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hero h1 {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 6vw, 4.2rem);
    line-height: 1.1;
    max-width: 22ch;
}

.hero .lede {
    margin-top: 1.9rem;
    color: #ffffff;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
    max-width: 62ch;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero-foot {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero-foot--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Step rail */
.step {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Dark CTA background texture */
.cta-band {
    position: relative;
    background: rgba(9, 13, 17, .66);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -40%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle at center, rgba(224, 110, 30, .26), transparent 65%);
    pointer-events: none;
}

/* Section flow safety */
main > section {
    position: relative;
    display: block;
}

/* Mobile-first grid helpers: keep homepage rows separated even before utility styles resolve */
.grid-facts,
.grid-capability,
.grid-coverage,
.grid-cta,
.grid-process,
.grid-work,
.grid-quotes,
.grid-herofoot {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.grid-facts > *,
.grid-capability > *,
.grid-coverage > *,
.grid-cta > *,
.grid-process > *,
.grid-work > *,
.grid-quotes > *,
.grid-herofoot > * {
    min-width: 0;
}

.grid-facts {
    gap: 2.5rem;
}

.grid-capability,
.grid-coverage {
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.grid-cta {
    gap: 3rem;
    align-items: center;
}

.grid-process {
    gap: 2rem;
    margin-top: 3.5rem;
}

.grid-work,
.grid-quotes {
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.grid-herofoot {
    gap: 1rem 2rem;
}

@media (min-width: 640px) {
    .grid-facts,
    .grid-coverage,
    .grid-process,
    .grid-work,
    .grid-herofoot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .grid-quotes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-capability,
    .grid-work,
    .grid-quotes,
    .grid-herofoot {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-process {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}