/* Four moments of making Whalemath surround one centered teaching story. */
.wm-landing .wl-makers {
    position: relative;
    margin-top: 28px;
    padding-block: 88px 96px;
    scroll-margin-top: 96px;
    background: radial-gradient(ellipse at 12% 54%, #eee7fa80, transparent 60%),
        linear-gradient(180deg, #faf8fd, var(--wl-paper));
}

.wl-makers::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9ccec 28%, #e9e1f3 72%, transparent);
}

.wl-makers-layout {
    display: grid;
    width: min(1480px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "research content teachers" "coding content testing";
    align-items: center;
    gap: 28px clamp(20px, 2vw, 32px);
}

.wl-makers-content { grid-area: content; min-width: 0; text-align: center; }
.wl-makers-art--research { grid-area: research; }
.wl-makers-art--teachers { grid-area: teachers; }
.wl-makers-art--coding { grid-area: coding; }
.wl-makers-art--testing { grid-area: testing; }

.wm-landing .wl-makers-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--wl-purple);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.wl-makers-eyebrow::before,
.wl-makers-eyebrow::after {
    content: "";
    flex: 0 1 36px;
    height: 2px;
    background: var(--wl-emphasis-gradient);
}

.wl-makers-eyebrow::after { transform: scaleX(-1); }

.wm-landing .wl-makers-heading h2 {
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.5;
    letter-spacing: -.055em;
}

.wl-makers-heading h2 span,
.wl-makers-lead strong {
    color: var(--wl-purple);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .wl-makers-heading h2 span,
    .wl-makers-lead strong {
        background: var(--wl-emphasis-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.wl-makers-art {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin: 0;
    min-width: 0;
}

.wl-makers-illustration {
    display: block;
    width: 100%;
    height: auto;
}

.wl-makers-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Project an unchanged excerpt of the real test onto the tablet, facing the teachers.
   Coordinates use the illustration's 1536 × 1024 plane; the clip preserves hands/stylus. */
.wl-makers-screen-plane {
    position: absolute;
    width: 1040px;
    height: 300px;
    overflow: hidden;
    transform-origin: 0 0;
    transform: matrix3d(-0.5309813931, 0.0286459917, 0, 0.0000526842, 0.7864091559, 0.1557546495, 0, 0.0008905579, 0, 0, 1, 0, 1087, 948, 0, 1);
}

.wl-makers-screen-plane img {
    position: absolute;
    left: -10px;
    top: -345px;
    display: block;
    width: 1265px;
    height: 712px;
    max-width: none;
}

.wl-makers-copy {
    display: grid;
    gap: 20px;
    padding-top: 28px;
}

.wm-landing .wl-makers-lead {
    margin: 0;
    color: var(--wl-ink);
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: -.035em;
}

.wm-landing .wl-makers-ending { font-weight: 600; }

/* Keep each concept accent together while using the shared purple text gradient. */
.wl-makers-concept {
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .wl-makers-layout {
        width: min(820px, calc(100% - 64px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "content content" "research teachers" "coding testing";
        gap: 26px 32px;
    }
    .wl-makers-content { padding-bottom: 12px; }
    .wm-landing .wl-makers-heading h2 { font-size: 36px; }
}

@media (max-width: 760px) {
    .wm-landing .wl-makers { margin-top: 24px; padding-block: 64px 72px; }
    .wl-makers-layout { width: calc(100% - 36px); gap: 18px 12px; }
    .wm-landing .wl-makers-eyebrow { margin-bottom: 18px; font-size: 13px; }
    .wm-landing .wl-makers-heading h2 { font-size: clamp(26px, 6.6vw, 34px); }
    .wl-makers-copy { gap: 18px; padding-top: 24px; }
    .wm-landing .wl-makers-lead { font-size: 17px; }
}

@media (max-width: 350px) {
    .wm-landing .wl-makers-heading h2 { font-size: 24px; }
    .wm-landing .wl-makers-lead { font-size: 16px; }
}

@media screen and (forced-colors: none) {
    html[data-wm-theme="dark"] .wm-landing .wl-makers {
        background: radial-gradient(ellipse at 12% 54%, #7959bd1f, transparent 60%),
            linear-gradient(180deg, var(--wm-theme-soft), var(--wl-paper));
    }
    html[data-wm-theme="dark"] .wm-landing .wl-makers::before {
        background: linear-gradient(90deg, transparent, var(--wl-line) 28%, var(--wl-line) 72%, transparent);
    }
}
