/* Human Practice and Collaboration: the same paper-blue language as Wetlab Design. */
.people-hero-visual {
    position: absolute;
    z-index: 3;
    top: calc(var(--dogma-nav-clearance) - 44px);
    right: max(34px, calc((100vw - 1580px) / 4 + 14px));
    width: min(43vw, 624px);
    min-width: 580px;
    aspect-ratio: 640 / 520;
    color: #397AA9;
    isolation: isolate;
}
.people-hero-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.human-practice-page .result-hero-copy { position: relative; z-index: 5; }
.people-hero-svg :is(path,polygon) { stroke-linejoin: round; stroke-linecap: round; }
.people-replay {
    position: absolute;
    right: 8%; bottom: 1%;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border: 1px solid rgba(57,122,169,.25);
    border-radius: 50%;
    background: var(--dogma-page, #F5FAFE);
    color: var(--dogma-blue, #397AA9);
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s, transform .2s, border-color .2s;
}
.people-replay:hover { opacity: 1; transform: rotate(-18deg); border-color: currentColor; }
.people-replay:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 4px; }
.people-replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Complete, scalable vector artwork remains visible when JavaScript is disabled. */
.people-shard { opacity: 1; }
.people-finish-light { pointer-events: none; }
/* Pre-rendered vector frames keep camera motion and pose blending on compositor layers. */
.people-crowd-viewport {
    position: absolute; inset: 0; visibility: hidden;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 62%, rgba(0,0,0,.8) 77%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, #000 62%, rgba(0,0,0,.8) 77%, transparent 100%);
    will-change: opacity, filter;
    pointer-events: none;
}
.people-crowd-camera {
    position: absolute; inset: 0; transform-origin: 0 0;
    will-change: transform;
}
.people-crowd-frame, .people-finished-emblem {
    position: absolute; inset: 0;
    display: block; width: 100%; height: 100%; max-width: none;
    pointer-events: none; user-select: none;
    will-change: opacity;
}
.people-finished-emblem { opacity: 1; }
/* Six tiles that settle into a 2x3 mosaic; DOM order is top-left, top-right,
   middle-left, middle-right, bottom-left, bottom-right. */
.people-tiles-stage {
    position: absolute;
    top: 8%; left: 15%;
    width: 70%; height: 74%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    pointer-events: none;
}
.people-tile {
    display: block;
    width: 100%; height: 100%;
    justify-self: center;
    align-self: center;
    max-width: none;
    object-fit: contain;
    opacity: 1;
    user-select: none;
    will-change: transform, opacity, filter;
    filter: drop-shadow(0 6px 9px rgba(9, 38, 66, .16));
}
/* Column nudge of 1cm toward the centre line, with each tile stepping upward as the
   assembly settles; tiles 1 and 6 sit slightly larger than the rest. */
.people-tile:nth-child(1) { translate: 1cm -2.3cm; scale: 1; }
.people-tile:nth-child(2) { translate: -2.2cm -1.85cm; scale: .83; }
.people-tile:nth-child(3) { translate: 1.05cm -3.65cm; scale: .83; }
.people-tile:nth-child(4) { translate: -1.95cm -4.15cm; scale: .95; }
.people-tile:nth-child(5) { translate: 0.1cm -6.3cm; scale: 1.1; }
.people-tile:nth-child(6) { translate: -2.4cm -6.8cm; scale: 1.4; }
.people-replay { z-index: 4; }

@media (max-width: 1100px) {
    .people-hero-visual { right: 10px; width: 43vw; min-width: 480px; top: calc(var(--dogma-nav-clearance) - 10px); }
}
@media (max-width: 980px) {
    .education-page.human-practice-page > .dogma-wave-hero {
        min-height: 100svh;
        padding-left: clamp(24px, 5vw, 60px);
        padding-right: clamp(24px, 5vw, 60px);
        padding-bottom: 260px;
        overflow: hidden;
    }
    .education-page.human-practice-page .result-hero-copy { width: 100%; min-width: 0; }
    .education-page.human-practice-page .result-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(40px, 6vw, 76px);
        line-height: 1.08;
        white-space: normal;
    }
    .education-page.human-practice-page .result-hero-copy .dogma-subpage-lead {
        width: 100%; max-width: 720px; margin-left: 0; margin-right: 0;
    }
    .education-page.human-practice-page .people-hero-visual {
        position: relative;
        top: auto; right: auto;
        width: min(100%, 640px); min-width: 0;
        margin: 10px auto -60px;
        flex-shrink: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .people-replay { display: none; }
    .people-hero-visual * { transition: none !important; }
}
