@keyframes thoughts-head-explode {
    0%    { transform: translateY(0)    scale(1)    rotate(0deg);  }
    18%   { transform: translateY(-10px) scale(1)   rotate(0deg);  }
    36%   { transform: translateY(0)    scale(1)    rotate(0deg);  }
    52%   { transform: translateY(0)    scale(1)    rotate(-5deg); }
    54%   { transform: translateY(0)    scale(1)    rotate(5deg);  }
    56%   { transform: translateY(0)    scale(1)    rotate(-5deg); }
    58%   { transform: translateY(0)    scale(1)    rotate(4deg);  }
    60%   { transform: translateY(-6px) scale(1)    rotate(0deg);  }
    68%   { transform: translateY(-18px) scale(1.25) rotate(4deg); }
    76%   { transform: translateY(7px)  scale(0.92) rotate(-3deg); }
    86%   { transform: translateY(-5px) scale(1.08) rotate(1deg);  }
    100%  { transform: translateY(0)    scale(1)    rotate(0deg);  }
}

.stop-thoughts {
    background: #01010B;
    position: relative;
    z-index: 1;
    padding: 256px 0;   /* was 15rem; +32px gives back what the new type spec removed */
}

.stop-thoughts__inner {
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18rem;
    align-items: center;
}

.thoughts__illustration {
    display: flex;
    justify-content: center;
    animation: thoughts-head-explode 5s ease-in-out infinite;
}

.thoughts__illustration img {
    width: 100%;
    max-width: 420px;
    height: auto;
    /* the portrait sits on its own black square: fade the edges into the section */
    -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}

.thoughts__illustration--placeholder {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.thoughts__heading {
    font-family: 'Atma', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 96px;
    line-height: 100%;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 1.5rem;
}

.thoughts__heading .accent {
    color: #EFD020;
}

.thoughts__body {
    font-family: 'Architects Daughter', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 26px;
    line-height: 120%;
    letter-spacing: 0;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
}

.thoughts__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.thoughts__ctas .btn {
    font-family: 'Architects Daughter', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.01em;
    height: 49px;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    opacity: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.thoughts__ctas .btn--primary {
    min-width: 216px;
    background: #00C0E8;
    border: 1px solid #00C0E8;
    color: #03020E;
}

.thoughts__ctas .btn--outline {
    min-width: 90px;
    background: #EFD020;
    border: 1px solid #00C0E8;
    color: #03020E;
}

@media (max-width: 900px) {
    .stop-thoughts {
        padding: 5rem 0;
    }

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

    .thoughts__illustration {
        max-width: 260px;
        margin-inline: auto;
    }

    .thoughts__heading {
        font-size: clamp(3rem, 13vw, 60px);
    }

    .thoughts__body {
        font-size: 20px;
    }
}

/* Desktop heights are locked to the section's pre-redesign size so the dotted line's
   last stops (placed as a % of the road height) stay where they were. */
@media (min-width: 1441px) {
    .stop-thoughts__inner {
        max-width: 1500px;
        padding-inline: 2.5rem;
        height: 482px;
    }
    .thoughts__heading { max-width: 450px; }
}

/* --- small desktop: 901px – 1440px only --- */
@media (min-width: 901px) and (max-width: 1440px) {
    .stop-thoughts { padding: 123.5px 0; } /* was 10rem; -73px keeps the dotted line aligned */
    .stop-thoughts__inner { max-width: 1180px; gap: clamp(4rem, 10vw, 10rem); height: 451px; }
    .thoughts__illustration img { max-width: 330px; }
    .thoughts__heading { font-size: clamp(64px, 6.2vw, 96px); margin-bottom: 1.25rem; }
    .thoughts__body { margin-bottom: 2rem; }
}

/* --- phones --- */
@media (max-width: 600px) {
    .stop-thoughts { padding: 4rem 0; }
    .thoughts__heading { font-size: clamp(2.2rem, 11vw, 3rem); }
    .thoughts__body { font-size: 1rem; }
    .thoughts__illustration img { max-width: 220px; }
    .thoughts__ctas { justify-content: center; }
}

/* the words are positioned over the picture, so the picture's box is the wrapper's box; and the
   edges feather as a square so no bubble is clipped by the old round fade */
.thoughts__illustration .ld-portrait { width: 100%; max-width: 420px; }
.thoughts__illustration .ld-portrait img {
    max-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
