/* ==========================================================================
   Heritage Crest Build — Service page "featured project" timelapse band
   Sits between intro and portfolio. Dark band, full-bleed cinematic video.
   ========================================================================== */

.sp-feature {
    background: #0a0a0a;
    color: #fff;
    padding: 80px 24px 70px;
    text-align: center;
}

.sp-feature-text {
    max-width: 760px;
    margin: 0 auto 36px;
}

.sp-feature-eyebrow {
    display: inline-block;
    color: #ac8d56;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.sp-feature-text h2 {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin: 0 0 14px;
}

.sp-feature-text p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    letter-spacing: 0.02em;
}

.sp-feature-video {
    max-width: 1320px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

.sp-feature-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-feature-caption {
    max-width: 1320px;
    margin: 26px auto 0;
    text-align: right;
}

.sp-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 11px 22px 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sp-feature-cta:hover {
    background: #ac8d56;
    border-color: #ac8d56;
    color: #fff;
}

.sp-feature-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sp-feature-cta:hover .sp-feature-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .sp-feature { padding: 56px 18px 50px; }
    .sp-feature-caption { text-align: center; margin-top: 20px; }
}

/* ---- Timelapse: rest on the finished photo, then play -------------------
   A paused <video> paints NOTHING (the section background shows through), and
   `poster` stops applying once the browser decodes. So an <img> plate sits
   under the video and the video fades in over it when it actually starts. */
.sp-feature-video { position: relative; }
.sp-feature-plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-feature-video.is-running .sp-feature-plate { opacity: 0; }
.sp-feature-video video {
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.sp-feature-video.is-running video { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .sp-feature-plate, .sp-feature-video video { transition: none; }
}
