.stop-blog {
    background: #01010B;
    position: relative;
    z-index: 1;
    padding: 9rem 0 clamp(4rem, 8vh, 7rem);
}

.stop-blog__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.stop-blog__heading .accent { color: #00C0E8; }

.stop-blog__heading {
    font-family: 'Atma', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 96px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: var(--color-text);
    max-width: 480px;
}

.blog-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* stage height also sets the whole page height, which the journey line's
   y-percentages are measured against — do not shrink it. The slides are
   absolutely centred (top:50%), so they stay put whatever this is. */
.blog-slider__stage {
    position: relative;
    width: 100%;
    height: 440px;
    perspective: 650px;
    gap: 2rem;
}

/* the card SVGs are 419x419 — the box must stay square or `contain`
   leaves dead space above and below the artwork */
.blog-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 232px;
    height: 232px;
    margin-left: -116px;
    margin-top: -116px;
    transition: transform 0.75s cubic-bezier(0.16,1,0.3,1), opacity 0.75s cubic-bezier(0.16,1,0.3,1);
}

.blog-slide[data-pos="-1"] {
    transform: translateX(-170px) rotateY(-48deg) scale(0.82);
    opacity: 0.6;
}

.blog-slide[data-pos="0"] {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
}

.blog-slide[data-pos="1"] {
    transform: translateX(170px) rotateY(48deg) scale(0.82);
    opacity: 0.6;
}

.blog-slide { display: block; }

/* with four cards, the one opposite the front card waits hidden behind it */
.blog-slide[data-pos="2"],
.blog-slide[data-pos="-2"] {
    transform: translateX(0) rotateY(0deg) scale(0.6);
    opacity: 0;
    pointer-events: none;
}

.blog-slide:focus-visible {
    outline: 3px solid #00C0E8;
    outline-offset: 6px;
    border-radius: 18px;
}

/* HTML cards (Filing Cabinet, Bio) drawn on the same hand-drawn frame as the SVG cards */
.blog-slide__card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    container-type: inline-size;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}
.blog-slide__card--yellow { color: #FFCC00; }
.blog-slide__card--cyan   { color: #00C0E8; }

.blog-slide__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blog-slide__body {
    position: absolute;
    inset: 13% 10% 12% 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5cqw;
    text-align: center;
    color: #fff;
    font-family: 'Architects Daughter', cursive;
}

.blog-slide__title {
    font-family: 'Atma', sans-serif;
    font-weight: 600;
    font-size: 10cqw;
    line-height: 1;
}

.blog-slide__desc {
    font-size: 4.6cqw;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60cqw;
}

.blog-slide__btn {
    display: inline-flex;
    align-items: center;
    padding: 1.8cqw 5cqw;
    border: 1.5px solid #fff;
    border-radius: 1.5cqw;
    font-size: 4.2cqw;
    line-height: 1;
    white-space: nowrap;
}

/* hourglass doodle under the heading, centred on the heading's own width */
.stop-blog__doodle {
    display: flex;
    justify-content: center;
    max-width: 480px;
    margin-top: 1.25rem;
}
.stop-blog__doodle .ld-hourglass { width: 48px; }

.blog-slide__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.blog-slider__arrows {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-arrow {
    width: 51px;
    height: 51px;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.2s, opacity 0.2s;
}

.blog-arrow:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.blog-arrow svg {
    display: block;
    width: 51px;
    height: 51px;
}

@media (max-width: 900px) {
    .stop-blog {
        padding: 8rem 0 4rem;
    }

    .stop-blog__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-inline: clamp(1rem, 5vw, 2rem);
    }

    .stop-blog__heading {
        font-size: clamp(2.4rem, 7vw, 3.2rem);
        max-width: 100%;
    }

    .blog-slider__stage {
        height: 380px;
    }

    .blog-slide {
        width: 200px;
        height: 200px;
        margin-left: -100px;
        margin-top: -100px;
    }

    .blog-slide[data-pos="-1"] {
        transform: translateX(-160px) rotateY(-25deg) scale(0.87);
    }

    .blog-slide[data-pos="1"] {
        transform: translateX(160px) rotateY(25deg) scale(0.87);
    }
}

@media (min-width: 1441px) {
    /* +180px: more room above the section (the road routes account for it) */
    .stop-blog { padding-top: calc(9rem + 180px); }
}

@media (min-width: 1441px) {
    .stop-blog__inner {
        max-width: 1550px;
        padding-inline: 2.5rem;
    }

    .stop-blog__heading {
        font-size: 96px;
        max-width: 480px;
    }

    .blog-slider__stage {
        height: 340px;
        perspective: 750px;
    }

    .blog-slide {
        width: 320px;
        height: 320px;
        margin-left: -160px;
        margin-top: -160px;
    }

    .blog-slide[data-pos="0"] {
        transform: translateX(0) rotateY(0deg) scale(1);
    }

    .blog-slide[data-pos="-1"] {
        transform: translateX(-230px) rotateY(-48deg) scale(0.82);
    }

    .blog-slide[data-pos="1"] {
        transform: translateX(230px) rotateY(48deg) scale(0.82);
    }
}

/* --- small desktop: 901px – 1440px only --- */
@media (min-width: 901px) and (max-width: 1440px) {
    .stop-blog { padding: calc(8rem + 130px) 0 clamp(3rem, 6vh, 5rem); }   /* +130px: more room above the section (the road routes account for it) */
    .stop-blog__inner { max-width: 1120px; gap: clamp(2.5rem, 5vw, 4.5rem); }
    .stop-blog__heading { font-size: 62px; max-width: 340px; }
    .blog-slider { gap: 1.75rem; }
    .blog-slider__stage { height: 256px; }
    .blog-slide { width: 236px; height: 236px; margin-left: -118px; margin-top: -118px; }
    .blog-slide[data-pos="-1"] { transform: translateX(-168px) rotateY(-48deg) scale(0.82); }
    .blog-slide[data-pos="1"]  { transform: translateX(168px)  rotateY(48deg)  scale(0.82); }
}

/* --- phones: the side cards used to spill past the viewport --- */
@media (max-width: 600px) {
    .stop-blog { padding: 6rem 0 3rem; }
    .stop-blog__heading { font-size: clamp(2rem, 9vw, 2.6rem); }
    .blog-slider { gap: 1.5rem; }
    .blog-slider__stage { height: 260px; }
    .blog-slide { width: 168px; height: 168px; margin-left: -84px; margin-top: -84px; }
    .blog-slide[data-pos="-1"] { transform: translateX(-104px) rotateY(-30deg) scale(0.8); }
    .blog-slide[data-pos="1"]  { transform: translateX(104px)  rotateY(30deg)  scale(0.8); }
    .blog-arrow, .blog-arrow svg { width: 42px; height: 42px; }
}

/* narrowest desktops: stop 1 sits right beside the heading here, so the heading is set
   a little smaller in a narrower box (still three lines, so the section height holds) */
@media (min-width: 901px) and (max-width: 1000px) {
    .stop-blog__heading { max-width: 300px; font-size: 56px; }
    .stop-blog__doodle { max-width: 300px; }
}

/* phones: the cards were too small to read — one card reads at a time, the neighbours
   sit clear of it as a hint of what is next rather than overlapping its words */
@media (max-width: 600px) {
    .stop-blog__heading { font-size: clamp(2.2rem, 10vw, 2.9rem); }
    .blog-slider { gap: 0.75rem; }
    /* Card and offset both scale with the screen — at a fixed size the neighbours ran
       off both edges below about 430px. The neighbours are drawn at 0.62, so each is
       0.31 of a card wide either side of its own centre; half a card out (0.48) leaves
       them a clear peek past the front card and still finishes inside a 320px screen.
       The stage is only a little taller than a card, so the arrows sit close under it. */
    .blog-slider__stage {
        --ld-card: min(250px, 56vw);
        --ld-step: calc(var(--ld-card) * 0.48);
        height: calc(var(--ld-card) + 28px);
        perspective: 900px;
    }
    .blog-slide {
        width: var(--ld-card);
        height: var(--ld-card);
        margin-left: calc(var(--ld-card) / -2);
        margin-top: calc(var(--ld-card) / -2);
    }
    .blog-slide[data-pos="-1"] { transform: translateX(calc(var(--ld-step) * -1)) rotateY(-30deg) scale(0.62); opacity: 0.4; }
    .blog-slide[data-pos="1"]  { transform: translateX(var(--ld-step))            rotateY(30deg)  scale(0.62); opacity: 0.4; }
    /* the front card must sit above the neighbours it now tucks behind it */
    .blog-slide[data-pos="0"] { z-index: 2; }
    .blog-arrow, .blog-arrow svg { width: 48px; height: 48px; }
    .stop-blog__doodle { margin-top: 1.75rem; }
}
