@charset "UTF-8";

/* ==========================================================================
   Recruit page film: full-screen panels of footage inside a thin white frame,
   and the opening that uncovers them (js/recruit-opening.js, js/recruit.js).
   ========================================================================== */
/* How far the colour wave has run through a line of a title (0–1). */
@property --wave {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

:root {
    --film-accent: #2bb3c0;
    --film-ink: #0c1518;
    --film-gap: 8px;
    /* The words that follow a title come this much sooner on PCs. */
    --film-pace: 0.85;
    --film-en: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
}

.recruit-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Panels ---------- */
.recruit-film {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--film-gap);
    padding: var(--film-gap);
    background: #fff;
}

.film-panel {
    position: relative;
    isolation: isolate;
    /* One panel and its frame are exactly one screen. */
    height: calc(100vh - var(--film-gap) * 2);
    height: calc(100svh - var(--film-gap) * 2);
    overflow: hidden;
    border-radius: 8px;
    background: #1b2427;
    color: #fff;
    scroll-margin-top: var(--film-gap);
}

/* header.js reads this picture to keep the phone tab bar hidden until scrolling starts. */
.recruit-hero {
    background: #1b2427 url('../assets/images/recruit/film/kind-nurse.webp') center / cover no-repeat;
}

/* Shade for the words: a little everywhere, more toward the lower left and under the header. */
.film-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(6, 14, 17, 0.36), rgba(6, 14, 17, 0) 20%),
        linear-gradient(26deg, rgba(6, 14, 17, 0.6), rgba(6, 14, 17, 0.16) 44%, rgba(6, 14, 17, 0) 70%),
        linear-gradient(to left top, rgba(6, 14, 17, 0.4), rgba(6, 14, 17, 0) 26%),
        rgba(6, 14, 17, 0.1);
    pointer-events: none;
}

/* White uniforms and walls: more shade so that the white words stay readable. */
.film-panel--bright::after {
    background:
        linear-gradient(to bottom, rgba(6, 14, 17, 0.4), rgba(6, 14, 17, 0) 22%),
        linear-gradient(26deg, rgba(6, 14, 17, 0.78), rgba(6, 14, 17, 0.34) 46%, rgba(6, 14, 17, 0.04) 76%),
        linear-gradient(to left top, rgba(6, 14, 17, 0.5), rgba(6, 14, 17, 0) 30%),
        rgba(6, 14, 17, 0.16);
}

/* The photos move at half the speed of the page, so that a panel slides over its picture like a window.
   Where the browser can tie it to scrolling it does so itself; elsewhere js/recruit.js sets --shift.
   (The extra height covers the moments when a phone's toolbars make the screen taller than the panel.) */
.film-shots {
    position: absolute;
    inset: -7% 0;
    z-index: -2;
    transform: translate3d(0, var(--shift, 0px), 0);
    /* filter: the photos are put together on a layer of their own before the panel's rounded edge cuts them, so that
       the edge is drawn the same in every frame while a photo grows. Without it, where the edge falls between two
       device pixels (DevTools shrinking an iPad Pro 13 to fit, for one) the pixel at the edge flickers. */
    will-change: transform, filter;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .film-panel {
            view-timeline: --film-panel block;
        }

        .film-shots {
            animation: film-lag linear both;
            animation-timeline: --film-panel;
        }
    }
}

/* From the moment a panel's top enters the screen until its bottom leaves, the page moves two screens. */
@keyframes film-lag {
    from { transform: translate3d(0, -50vh, 0); transform: translate3d(0, -50svh, 0); }
    to { transform: translate3d(0, 50vh, 0); transform: translate3d(0, 50svh, 0); }
}

/* Each photo comes in over the one before, slowly, and grows a little all the while it is on screen.
   js/recruit.js adds is-on to the one coming in, is-leaving to the one under it until it is covered, and is-live
   while a photo moves. */
.film-shot {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
}

.film-shot.is-on {
    z-index: 1;
    opacity: 1;
    transition: opacity 1.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.film-shot.is-leaving {
    opacity: 1;
}

.film-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
}

@media (orientation: portrait) {
    .film-shot img {
        object-position: var(--focus-portrait, var(--focus, 50% 50%));
    }
}

/* Phones and tablets held upright: some shots show an upright photo (film-shot__phone, film-shot__tablet) in
   place of the wide one. A photo that is not shown is never fetched (they are all lazy).
   Tablets are told by their size alone, touch or not (a browser's device preview may not emulate touch):
   upright, up to 1032px wide (an iPad Pro 13 is 1032 x 1376); on their side, up to 1376px wide and no wider than
   31:20 (iPads are 4:3 to about 3:2; PC screens are 16:10 or wider). Touch screens up to 1376px wide count as well. */
.film-shot__phone,
.film-shot__tablet {
    display: none;
}

@media (min-width: 768px) and (max-width: 1032px) and (orientation: portrait),
    (min-width: 768px) and (max-width: 1376px) and (pointer: coarse) and (orientation: portrait) {
    .film-shot .film-shot__tablet {
        display: block;
        object-position: var(--focus-tablet, 50% 50%);
    }

    .film-shot:has(.film-shot__tablet) .film-shot__wide {
        display: none;
    }
}

/* Tablets on their side: a shot can show its wide photo smaller (--trim-tablet-landscape takes that much off the
   extra height above and below, as on phones), placed differently (--focus-tablet-landscape) and growing less
   (--drift-tablet-landscape), so that the faces at its sides stay in the narrower frame. */
@media (min-height: 600px) and (max-width: 1024px) and (orientation: landscape),
    (min-height: 600px) and (max-width: 1376px) and (max-aspect-ratio: 31/20) and (orientation: landscape),
    (min-height: 600px) and (max-width: 1376px) and (pointer: coarse) and (orientation: landscape) {
    .film-shot .film-shot__wide {
        top: var(--trim-tablet-landscape, 0px);
        height: calc(100% - 2 * var(--trim-tablet-landscape, 0px));
        object-position: var(--focus-tablet-landscape, var(--focus, 50% 50%));
        --drift: var(--drift-tablet-landscape, 1.08);
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .film-shot img {
        object-position: var(--focus-phone, var(--focus-portrait, var(--focus, 50% 50%)));
    }

    .film-shot .film-shot__wide {
        display: none;
    }

    /* A shot can have its phone photo enlarged less: --trim-phone takes that much off the extra height above and
       below (kept for the parallax), and --drift-phone is how far it grows while it is on screen. */
    .film-shot .film-shot__phone {
        display: block;
        top: var(--trim-phone, 0px);
        height: calc(100% - 2 * var(--trim-phone, 0px));
        --drift: var(--drift-phone, 1.08);
    }
}

/* Its four seconds and the dissolve after them; the second photo drifts the other way. */
.film-shot.is-live img {
    animation: film-drift 5.6s linear both;
}

.film-shot.is-live:nth-child(even) img {
    animation-name: film-drift-back;
}

/* It moves sideways by an eighth of what it grows (1% at the usual 1.08), so that no edge ever shows. */
@keyframes film-drift {
    from { transform: none; }
    to { transform: scale(var(--drift, 1.08)) translate3d(calc((1 - var(--drift, 1.08)) * 12.5%), 0, 0); }
}

@keyframes film-drift-back {
    from { transform: none; }
    to { transform: scale(var(--drift, 1.08)) translate3d(calc((var(--drift, 1.08) - 1) * 12.5%), 0, 0); }
}

.recruit-film.is-paused .film-shot img,
.recruit-film.is-paused .film-scroll__ball {
    animation-play-state: paused !important;
}

/* ---------- Words ---------- */
.film-panel__body {
    position: absolute;
    left: clamp(16px, 1.7vw, 32px);
    right: clamp(16px, 1.7vw, 32px);
    bottom: clamp(22px, 2.2vw, 36px);
}

.film-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 clamp(8px, 1.1vw, 18px);
    font: 700 clamp(13px, 1.15vw, 20px)/1.5 'Zen Kaku Gothic New', sans-serif;
    letter-spacing: 0.06em;
}

.film-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--film-accent);
}

.film-title {
    margin: 0;
    color: #fff;
    font: 700 min(5vw, 8.6vh)/1.17 'Zen Kaku Gothic New', sans-serif;
    font-size: min(5vw, 8.6svh);
    letter-spacing: 0;
    font-feature-settings: 'palt';
}

.recruit-hero .film-title {
    font-size: min(8.4vw, 15.5vh);
    font-size: min(8.4vw, 15.5svh);
    line-height: 1.1;
}

.film-line {
    display: block;
    width: max-content;
    max-width: 100%;
    /* Room for the glyph edges, which the clipped background would otherwise cut. */
    padding: 0.03em 0.08em 0.07em 0;
    margin-bottom: -0.07em;
}

.film-link {
    position: absolute;
    right: clamp(16px, 1.7vw, 32px);
    bottom: clamp(24px, 2.4vw, 40px);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 8px;
    color: #fff;
    text-decoration: none;
}

.film-link__word {
    font: 600 clamp(26px, 2.9vw, 54px)/1 var(--film-en);
    letter-spacing: -0.01em;
}

.film-link__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    font-size: 13px;
    line-height: 1;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.film-link::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: currentColor;
    transform-origin: left;
}

.film-link:focus-visible,
.film-pause:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 5px;
}

@media (hover: hover) {
    .film-link:hover .film-link__icon {
        background: #fff;
        color: var(--film-ink);
    }

    .film-link:hover::after {
        animation: film-underline 0.7s cubic-bezier(0.65, 0, 0.2, 1);
    }
}

@keyframes film-underline {
    0% { transform: scaleX(1); transform-origin: right; }
    45% { transform: scaleX(0); transform-origin: right; }
    46% { transform: scaleX(0); transform-origin: left; }
    100% { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Building up: js adds is-armed first, is-built on arrival, then removes both ---------- */
/* A line slides in from the right while three colours run through it from right to left: ink, accent, white. */
.film-panel.is-armed .film-line {
    --front: calc(var(--wave) * (100% + 6.6em));
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(255deg,
        #fff calc(var(--front) - 6em),
        var(--film-accent) calc(var(--front) - 6em) calc(var(--front) - 3em),
        var(--film-ink) calc(var(--front) - 3em) var(--front),
        transparent var(--front));
    -webkit-background-clip: text;
    background-clip: text;
    transform: translate3d(0.8em, 0, 0);
}

.film-panel.is-built .film-line {
    --wave: 1;
    transform: none;
    transition: --wave 1.15s cubic-bezier(0.35, 0.1, 0.35, 1) calc(var(--k, 0) * 0.18s * var(--film-pace)),
        transform 1.25s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--k, 0) * 0.18s * var(--film-pace));
}

.film-panel.is-armed .film-label,
.film-panel.is-armed .film-link__word,
.film-panel.is-armed .film-link__icon {
    opacity: 0;
}

.film-panel.is-armed .film-link__icon {
    transform: scale(0);
}

.film-panel.is-armed .film-link::after {
    transform: scaleX(0);
}

.film-panel.is-built .film-label {
    opacity: 1;
    transition: opacity 0.7s ease calc(0.75s * var(--film-pace));
}

.film-panel.is-built .film-link__word {
    opacity: 1;
    transition: opacity 0.6s ease calc(1.2s * var(--film-pace));
}

.film-panel.is-built .film-link__icon {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease calc(1.6s * var(--film-pace)), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(1.6s * var(--film-pace));
}

.film-panel.is-built .film-link::after {
    transform: none;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.2, 1) calc(1.3s * var(--film-pace));
}

/* ---------- "Scroll": its dot comes as a pen, drawing a line with a heart in it (js/recruit.js) ---------- */
.film-ink {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: var(--film-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.film-ink circle {
    fill: var(--film-accent);
    stroke: none;
}

.film-scroll {
    position: absolute;
    top: 50%;
    right: clamp(14px, 1.9vw, 36px);
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: -30px;
    font: 600 13px/1 var(--film-en);
    pointer-events: none;
}

.film-scroll__ball {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--film-accent);
    animation: film-dot 2.6s ease-in-out 3s infinite;
}

.film-scroll span {
    writing-mode: vertical-rl;
    letter-spacing: 0.02em;
}

.film-scroll.is-arrived span {
    transition: opacity 0.6s ease;
}

.film-panel.is-armed .film-scroll__ball,
.film-panel.is-armed .film-scroll span {
    opacity: 0;
}

.film-panel.is-built .film-scroll__ball,
.film-panel.is-built .film-scroll span,
.film-panel .film-scroll.is-arrived span {
    opacity: 1;
}

/* While the pen draws, it is the dot; the word waits for it. */
.film-panel .film-scroll.is-drawing .film-scroll__ball,
.film-panel .film-scroll.is-drawing:not(.is-arrived) span {
    opacity: 0;
    animation: none;
}

@keyframes film-dot {
    0%, 60%, 100% { translate: 0 0; }
    30% { translate: 0 -9px; }
}

/* ---------- Stop / play: stays at the right edge for as long as the film is on screen ---------- */
.film-controls {
    position: absolute;
    inset: 0 0 64px;
    z-index: 3;
    pointer-events: none;
}

.film-pause {
    position: sticky;
    top: calc(50vh + 52px);
    top: calc(50svh + 52px);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 clamp(16px, 1.9vw, 36px) 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 18, 21, 0.4);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(6px);
    transition: background-color 0.3s ease;
}

.film-pause:hover {
    background: rgba(8, 18, 21, 0.75);
}

.film-pause svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.film-pause .film-pause__play,
.film-pause[aria-pressed="true"] .film-pause__stop {
    display: none;
}

.film-pause[aria-pressed="true"] .film-pause__play {
    display: block;
}

/* ---------- Header: the footage runs under it, so it stays clear until the film has passed ---------- */
@media (min-width: 768px) {
    body.recruit-body .header.is-over-film.is-scrolled:not(:has(.header__nav.active)) {
        --header-ink: #fff;
        /* A little shade, so that the words passing under the menu do not run into it. */
        background: linear-gradient(to bottom, rgba(6, 14, 17, 0.5), rgba(6, 14, 17, 0)) var(--film-gap) 0 / calc(100% - var(--film-gap) * 2) 100% no-repeat;
        border-color: transparent;
        box-shadow: none !important;
    }

    body.recruit-body .header.is-over-film.is-scrolled:not(:has(.header__nav.active))::before {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.recruit-body .header.is-over-film.is-scrolled:not(:has(.header__nav.active)) .header__item--cta .btn {
        background: #fff;
        color: #00475b;
    }
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) {
    :root {
        --film-pace: 1;
    }

    /* Keep the words clear of the tab bar (it appears once scrolling starts). */
    html.has-tabbar .film-panel:not(.recruit-hero) .film-panel__body {
        bottom: calc(var(--tabbar-h, 64px) + var(--tabbar-gap, 8px) * 2 + 26px + env(safe-area-inset-bottom));
    }

    html.has-tabbar .film-panel:not(.recruit-hero) .film-link {
        bottom: calc(var(--tabbar-h, 64px) + var(--tabbar-gap, 8px) * 2 + 22px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 1032px) and (orientation: portrait), (max-width: 1376px) and (pointer: coarse) and (orientation: portrait) {
    .film-title {
        font-size: min(6.4vw, 6svh);
    }

    .recruit-hero .film-title {
        font-size: min(10.6vw, 11svh);
    }

    .film-link__word {
        font-size: clamp(22px, 4vw, 42px);
    }
}

@media (max-width: 767px) {
    .film-label {
        font-size: 13px;
    }

    .film-title {
        font-size: min(7.4vw, 5.4svh);
        line-height: 1.22;
    }

    .recruit-hero .film-title {
        font-size: min(13.6vw, 9.4svh);
    }

    .film-link__word {
        font-size: 19px;
    }

    /* The link sits under the words, at the right. */
    .film-panel__body,
    .recruit-hero .film-panel__body {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .film-link {
        bottom: calc(28px + env(safe-area-inset-bottom));
    }

    html.has-tabbar .film-panel:not(.recruit-hero) .film-panel__body {
        bottom: calc(var(--tabbar-h, 64px) + var(--tabbar-gap, 8px) * 2 + 66px + env(safe-area-inset-bottom));
    }

    html.has-tabbar .film-panel:not(.recruit-hero) .film-link {
        bottom: calc(var(--tabbar-h, 64px) + var(--tabbar-gap, 8px) * 2 + 18px + env(safe-area-inset-bottom));
    }

    .film-panel::after {
        background:
            linear-gradient(to bottom, rgba(6, 14, 17, 0.36), rgba(6, 14, 17, 0) 18%),
            linear-gradient(to top, rgba(6, 14, 17, 0.72), rgba(6, 14, 17, 0.34) 42%, rgba(6, 14, 17, 0.04) 74%),
            rgba(6, 14, 17, 0.12);
    }

    .film-panel--bright::after {
        background:
            linear-gradient(to bottom, rgba(6, 14, 17, 0.36), rgba(6, 14, 17, 0) 18%),
            linear-gradient(to top, rgba(6, 14, 17, 0.8), rgba(6, 14, 17, 0.46) 44%, rgba(6, 14, 17, 0.04) 76%),
            rgba(6, 14, 17, 0.14);
    }

    .film-scroll {
        top: 40%;
    }

    /* The header's right side is empty here, and the words never reach it. */
    .film-pause {
        top: 22px;
        margin-top: 14px;
    }
}

/* Very short screens (a phone on its side). */
@media (max-height: 480px) {
    .film-pause {
        top: 22vh;
        top: 22svh;
    }

    .film-scroll {
        display: none;
    }
}

/* ==========================================================================
   Opening: the mark swings in, the name writes itself, then two slanted slits
   open over the first panel. Built and removed by js/recruit-opening.js.
   ========================================================================== */
html.recruit-opening-on .header {
    opacity: 0;
    translate: 0 -14px;
}

html.recruit-opening-seen .header {
    transition: opacity 0.7s ease, translate 0.9s cubic-bezier(0.16, 1, 0.3, 1), background-color 600ms ease, box-shadow 600ms ease;
}

.recruit-opening {
    position: fixed;
    inset: 0;
    z-index: 29000;
    overflow: hidden;
    cursor: pointer;
}

.recruit-opening__sheet {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #dedede;
    will-change: clip-path;
}

.recruit-opening__logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 24px);
}

.recruit-opening__mark {
    position: relative;
    flex: none;
    width: clamp(46px, 7.2vw, 112px);
    aspect-ratio: 1;
    perspective: 900px;
}

.recruit-opening__mark svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
    transform-origin: 50% 33%;
}

.recruit-opening__building { transform-origin: 50% 50%; }
.recruit-opening__building { fill: #00475b; }
.recruit-opening__beam,
.recruit-opening__post { fill: var(--film-accent); }

.recruit-opening__word {
    display: flex;
    margin: 0;
    font: 700 clamp(30px, 5.2vw, 84px)/1.2 'Outfit', 'Zen Kaku Gothic New', sans-serif;
    letter-spacing: -0.015em;
    white-space: pre;
}

/* Each letter rises out of its foot: accent first, then ink. */
.recruit-opening__word span {
    --front: calc(var(--wave) * 260%);
    padding-bottom: 0.08em;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(0deg,
        #1c2629 calc(var(--front) - 130%),
        var(--film-accent) calc(var(--front) - 130%) var(--front),
        transparent var(--front));
    -webkit-background-clip: text;
    background-clip: text;
}

.recruit-opening__caption {
    position: absolute;
    top: calc(100% + clamp(8px, 1vw, 18px));
    left: 0;
    right: 0;
    margin: 0;
    color: #55666b;
    font: 700 clamp(12px, 1.05vw, 17px)/1.5 'Zen Kaku Gothic New', sans-serif;
    letter-spacing: 0.4em;
    text-align: center;
    text-indent: 0.4em;
    white-space: nowrap;
    opacity: 0;
}

.recruit-opening__skip {
    position: absolute;
    right: clamp(16px, 2vw, 34px);
    bottom: clamp(16px, 2vw, 30px);
    color: #6b7a7e;
    font: 600 12px/1 var(--film-en);
    letter-spacing: 0.14em;
}

.recruit-opening.is-running .recruit-opening__sheet { animation: opening-ground 0.75s ease 0.25s both; }
.recruit-opening.is-running .recruit-opening__building { animation: opening-building 1.05s cubic-bezier(0.5, 0.05, 0.12, 1) 0.05s both; }
.recruit-opening.is-running .recruit-opening__beam { animation: opening-beam 1.05s cubic-bezier(0.5, 0.05, 0.12, 1) 0.05s both; }
.recruit-opening.is-running .recruit-opening__post { animation: opening-post 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.92s both; }
.recruit-opening.is-running .recruit-opening__word span { animation: opening-letter 0.75s cubic-bezier(0.3, 0.2, 0.3, 1) calc(0.86s + var(--i) * 0.033s) both; }
.recruit-opening.is-running .recruit-opening__caption { animation: opening-caption 0.7s ease 1.35s both; }

/* The words fade as the slits open. */
.recruit-opening__logo { transition: opacity 0.5s ease 0.28s; }
.recruit-opening.is-opening .recruit-opening__logo { opacity: 0; }
.recruit-opening.is-opening .recruit-opening__skip { opacity: 0; }

@keyframes opening-ground { from { background-color: #dedede; } to { background-color: #fff; } }
@keyframes opening-building {
    0% { opacity: 0; filter: blur(1.4px); transform: translate3d(20vw, -4vh, 0) rotateX(56deg) rotateZ(-44deg) scale(13); }
    12% { opacity: 1; }
    100% { opacity: 1; filter: none; transform: none; }
}
/* A long beam of light sweeps in and settles as the cross's bar; its post then springs out. */
@keyframes opening-beam {
    0% { opacity: 0; transform: translate3d(-12vw, 26vh, 0) rotateX(56deg) rotateZ(-30deg) scale(70, 17); }
    12% { opacity: 0.78; }
    75% { opacity: 0.78; }
    100% { opacity: 1; transform: none; }
}
@keyframes opening-post {
    from { opacity: 1; transform: scaleY(0); }
    to { opacity: 1; transform: none; }
}
@keyframes opening-letter {
    from { --wave: 0; transform: translateY(0.18em); }
    to { --wave: 1; transform: none; }
}
@keyframes opening-caption { to { opacity: 1; } }

/* ---------- Reduced motion, high contrast ---------- */
@media (prefers-reduced-motion: reduce) {
    .film-shots { inset: 0; transform: none; }
    /* No extra height here to take the trims from (the photos are drawn smaller anyway, by that much). */
    .film-shot .film-shot__wide,
    .film-shot .film-shot__phone { top: 0; height: 100%; }
    .film-shot img,
    .film-scroll__ball { animation: none !important; }
    .film-pause { display: none; }
    .recruit-opening { display: none; }
}

@media (forced-colors: active) {
    .film-panel.is-armed .film-line { color: CanvasText; -webkit-text-fill-color: currentColor; background: none; }
}
