/* The photograph bridges static documents; destination content appears around it. */
.recruit-transition {
    position: fixed; inset: 0; z-index: 31000; pointer-events: all; isolation: isolate;
}
.recruit-transition__backdrop {
    position: absolute; inset: 0; background: #f7f8f4;
    opacity: 0; transition: opacity 240ms ease;
}
.recruit-transition.is-covered .recruit-transition__backdrop { opacity: 1; }
.recruit-transition__photo {
    position: absolute; overflow: hidden; box-sizing: border-box; transform-origin: center;
    background: #e2ebe5; box-shadow: 0 18px 60px #23434a20; will-change: translate;
}
.recruit-transition__photo img {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.recruit-transition__destination { opacity: 0; will-change: opacity; }
/* The way across is a separate animation of translate (js/recruit-navigation.js), which keeps moving while the page
   is busy; a photo that has far to go gets a longer, softer move (--move-time, --move-ease). */
.recruit-transition.is-arriving .recruit-transition__photo {
    --move: var(--move-time, 800ms) var(--move-ease, cubic-bezier(.22, 1, .36, 1));
    transition: width var(--move), height var(--move), transform var(--move), border-radius var(--move),
        box-shadow 800ms ease, opacity 650ms ease;
}
/* A card and its page may crop the same photo differently: the crop glides over with the frame, on both copies. */
.recruit-transition.is-arriving .recruit-transition__photo img { transition: object-position var(--move), transform 800ms ease; }
.recruit-transition.is-revealing .recruit-transition__backdrop { opacity: 0; transition: opacity 650ms ease; }
.recruit-transition.is-revealing .recruit-transition__photo { box-shadow: none; }
.recruit-transition.is-revealing .recruit-transition__photo img { transform: none !important; }
.recruit-transition.is-revealing .recruit-transition__photo .recruit-transition__destination {
    opacity: 1; transition: object-position var(--move), transform 800ms ease, opacity 380ms 350ms ease;
}
.recruit-transition.is-dissolving .recruit-transition__photo { opacity: 0; transform: translateY(-16px) scale(1.025) !important; }
.recruit-photo-target { visibility: hidden !important; }
/* Nursing: two panels close; nursing.html draws its heartbeat and brain on them, then opens them. */
.recruit-pulse__panel { position: absolute; left: 0; right: 0; }
/* The panels meet at the stroke's height (--seam, set with the drawing), or else at the middle. The top panel reaches
   48px further down, behind the bottom one, so no gap opens while they bounce apart where they meet (18px each). */
.recruit-pulse__panel--top { top: 0; bottom: calc(100% - var(--seam, 50%) - 48px); background: #fcebed; }
.recruit-pulse__panel--bottom { top: var(--seam, 50%); bottom: 0; background: #f9dfe7; box-shadow: 0 -10px 30px #d84f721f; }
.recruit-pulse__panel span {
    position: absolute; left: 50%; bottom: 160px; translate: -50% 0; color: #d84f72;
    font-family: "Shippori Mincho", serif; font-size: 14px; letter-spacing: .5em; text-indent: .5em; white-space: nowrap;
}
/* Nursing: the heartbeat and the brain's outline drawn on the closing panels; nursing.html shows it finished. */
/* Sized in pixels to the window (width/height attributes), so a scrollbar never squeezes the line. */
.recruit-pulse__art { position: absolute; left: 0; top: 0; max-width: none; max-height: none; overflow: visible; pointer-events: none; }
.recruit-pulse__art path, .recruit-pulse__brain path {
    fill: none; stroke: #d84f72; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
/* Phones show the drawing much smaller, so its stroke is thinner (as in css/nursing-hero-intro.css). */
@media (max-width: 767px) { .recruit-pulse__art path, .recruit-pulse__brain path { stroke-width: 2; } }
.recruit-pulse:not(.is-arriving) .recruit-pulse__art path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.recruit-pulse__probe { visibility: hidden; }
/* Arriving: the line, and the outline as an HTML layer of its own (GPU-animated beat and glide). */
.recruit-pulse__drawing { position: absolute; inset: 0; pointer-events: none; will-change: opacity; }
.recruit-pulse__drawing .recruit-pulse__art { will-change: transform; }
.recruit-pulse__drawing.is-detached { position: fixed; z-index: 31001; }
.recruit-pulse__brain { position: absolute; transform-origin: 0 0; will-change: transform; }
/* While nursing.html loads, the finished drawing simply waits, still, on every screen size. */
.recruit-pulse__beat { width: 100%; height: 100%; }
.recruit-pulse__beat svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
    .recruit-transition { display: none; }
    .recruit-photo-target { visibility: visible !important; }
}
