/* ---------- HEADING & PARAGRAPH SPLIT BLOCK ---------- */
.hp-block {
    position: relative;
    padding: 100px 0;
    
    /* Breakout of constrained containers */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.hp-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hp-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    /* Aligns the right text to the bottom of the left heading */
    align-items: end; 
}

/* Left Column: Pill & Heading */
.hp-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}

.hp-heading {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink); /* #0E1B2A */
    letter-spacing: -0.03em;
}

/* Strip unwanted margins from WYSIWYG paragraph tags */
.hp-heading p { 
    margin: 0; 
    display: inline; 
}

/* Right Column: Paragraph Text */
.hp-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--steel-soft); /* #5C7085 */
    padding-bottom: 5px; /* Fine-tunes the bottom alignment */
}

.hp-text p {
    margin-bottom: 15px;
}

.hp-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .hp-layout { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        align-items: start; 
    }
}

/* ---------- SEQUENCE ANIMATIONS ---------- */

/* 1. Initial Hidden States */
.hp-pill, 
.hp-heading, 
.hp-text {
    opacity: 0;
    visibility: hidden;
}

/* 2. Pill & Heading: Slide Down From Top */
.hp-anim-block.is-visible .hp-pill,
.hp-anim-block.is-visible .hp-heading {
    visibility: visible;
    animation: hpSlideDown 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 3. Text: Fade in AFTER Heading completes (0.7s delay) */
.hp-anim-block.is-visible .hp-text {
    visibility: visible;
    /* The last '0.7s' property is the delay */
    animation: hpFadeUp 0.6s ease-out forwards 0.7s; 
}

/* Keyframes */
@keyframes hpSlideDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes hpFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}