/* LAYOUT — Shared section scaffolding: spacing, container width, headings. */

section {
    padding: 6rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: repeating-linear-gradient(
    90deg,
    #000000 0px,
    #000000 15px,
    transparent 15px,
    transparent 25px
    );
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* The ornaments hang off the heading TEXT, not off the full-width h2 box —
   without this inner span they end up pinned to the page edges. */
h2 span {
    position: relative;
    display: inline-block;
}

h2 span::before,
h2 span::after {
    content: '✱';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.2);
}

h2 span::before {
    left: -3rem;
}

h2 span::after {
    right: -3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    h2 {
        font-size: 2.5rem;
    }
}
