@charset "utf-8";
.modules {
    --module-media-max:   var(--card-media-max);
    --module-pad-x:       var(--card-pad-x);
    --module-pad-top:     var(--card-pad-t);
    --module-pad-bottom:  var(--card-pad-b);
    --module-tail:        var(--card-tail);
    --module-gap:         var(--card-gap);
    --module-text-gap:    var(--card-text-gap);
    --module-text-w:      400px;
    --module-radius: var(--radius-panel-lg);
    --module-slot: 4.2s;
    padding-block: var(--section-y);
}
@media (min-width: 992px) { .modules { --module-text-w: 416px; } }
.modules--hosted { padding-block: var(--s-sec-y); }
.modules__grid {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.modules__cell:nth-child(odd)  { grid-column: 2 / span 9; }
.modules__cell:nth-child(even) { grid-column: 11 / span 9; }
@media (min-width: 992px) {
    .modules--hosted .modules__cell:nth-child(odd)  { grid-column: 1 / span 10; }
    .modules--hosted .modules__cell:nth-child(even) { grid-column: 11 / span 10; }
    .modules--hosted .modules__grid > :last-child:nth-child(odd) { grid-column: 1 / span 20; }
}
@media (min-width: 992px) {
    .modules__grid > :last-child:nth-child(odd) {
        grid-column: 2 / span 18;
    }
    .modules__grid > :last-child:nth-child(odd) .module {
        flex-direction: row;
        align-items: center;
        gap: var(--module-pad-x);
    }
    .modules__grid > :last-child:nth-child(odd) .module__media {
        flex: 0 0 auto;
        min-width: 0;
        width: calc(50% - var(--grid-gap) / 2 - var(--module-pad-x) * 2);
        margin: var(--module-pad-top) 0 var(--module-pad-top) var(--module-pad-x);
    }
    .modules__grid > :last-child:nth-child(odd) .module__body {
        flex: 1 1 0;
        justify-content: center;
        margin: var(--module-pad-top) var(--module-pad-x) var(--module-pad-top) 0;
        padding-bottom: 0;
    }
}
.module {
    display: flex;
    flex-direction: column;
    gap: var(--module-gap);
    height: 100%;
    padding-bottom: var(--module-tail);
    background: var(--surface-sub);
    border-radius: var(--module-radius);
}
@supports (corner-shape: squircle) {
    .module { corner-shape: squircle; }
}
.module__media {
    position: relative;
    width: calc(100% - var(--module-pad-x) * 2);
    max-width: var(--module-media-max);
    margin: var(--module-pad-top) auto 0;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-media-sm);
}
.module__reel {
    position: relative;
}
.module__shot {
    display: block;
    width: 100%;
    height: auto;
}
.module__shot + .module__shot {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.module__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--module-text-gap);
    margin: 0 var(--module-pad-x);
    padding-bottom: var(--module-pad-bottom);
}
.module__text {
    max-width: var(--module-text-w);
    color: var(--card-copy-color);
}
.module__go {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: var(--space-2);
    min-height: 44px;
    margin-left: calc(-1 * var(--space-3));
    padding-inline: var(--space-3);
    border-radius: var(--radius-pill);
    color: var(--text-title);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-body);
    transition: background var(--dur-fast);
}
.module__go:hover,
.module__go:focus-visible { background: var(--fill-hover); }
.module__go svg {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform var(--dur-slow) var(--ease-overshoot);
}
.module__go:hover svg,
.module__go:focus-visible svg { transform: translateX(3px); }
@media (max-width: 991px) {
    .modules__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
    }
    .modules__cell:nth-child(odd),
    .modules__cell:nth-child(even) {
        grid-column: auto;
    }
}
@media (max-width: 767px) {
    .modules {
        --module-radius: var(--radius-lg);
    }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .modules__cell {
            --in-a: 4%;
            --in-b: 34%;
            view-timeline-name: --module-in;
            animation: module-fade var(--ease-out-quad) both,
                       module-rise var(--ease-out-expo) both;
            animation-timeline: --module-in, --module-in;
            animation-range: cover var(--in-a) cover var(--in-b),
                             cover var(--in-a) cover var(--in-b);
        }
        .modules__cell:nth-child(2) { --in-a: 6%;  --in-b: 36%; }
        .modules__cell:nth-child(3) { --in-a: 8%;  --in-b: 38%; }
        .modules__cell:nth-child(4) { --in-a: 11%; --in-b: 41%; }
        .modules__cell:nth-child(5) { --in-a: 14%; --in-b: 44%; }
        .modules__cell:nth-child(6) { --in-a: 17%; --in-b: 47%; }
    }
    @media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
        .modules__cell,
        .modules__cell:nth-child(2),
        .modules__cell:nth-child(3),
        .modules__cell:nth-child(4),
        .modules__cell:nth-child(5),
        .modules__cell:nth-child(6) {
            --in-a: 0%;
            --in-b: 26%;
        }
    }
}
@keyframes module-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes module-rise {
    from { transform: translateY(20px); }
    to   { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .module__reel--3 > .module__shot,
    .module__reel--4 > .module__shot {
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
    }
    .module__reel--3 > .module__shot {
        animation-name: module-cycle-3;
        animation-duration: calc(var(--module-slot) * 3);
    }
    .module__reel--4 > .module__shot {
        animation-name: module-cycle-4;
        animation-duration: calc(var(--module-slot) * 4);
    }
    .module__reel--3 > .module__shot:nth-child(1) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot) * 3); }
    .module__reel--3 > .module__shot:nth-child(2) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot) * 2); }
    .module__reel--3 > .module__shot:nth-child(3) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot)); }
    .module__reel--4 > .module__shot:nth-child(1) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot) * 4); }
    .module__reel--4 > .module__shot:nth-child(2) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot) * 3); }
    .module__reel--4 > .module__shot:nth-child(3) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot) * 2); }
    .module__reel--4 > .module__shot:nth-child(4) { animation-delay: calc(var(--module-phase, 0s) - var(--module-slot)); }
    .modules__cell:nth-child(2) { --module-phase: calc(var(--module-slot) * -0.2); }
    .modules__cell:nth-child(3) { --module-phase: calc(var(--module-slot) * -0.4); }
    .modules__cell:nth-child(4) { --module-phase: calc(var(--module-slot) * -0.6); }
    .modules__cell:nth-child(6) { --module-phase: calc(var(--module-slot) * -0.8); }
    .modules--js .module__shot {
        animation-play-state: paused;
    }
    .modules--js .is-cycling .module__shot {
        animation-play-state: running;
    }
    .modules--js .modules__cell {
        --module-phase: 0s;
    }
    .modules__cell:hover .module__shot,
    .modules__cell:focus-within .module__shot {
        animation-play-state: paused;
    }
}
@keyframes module-cycle-3 {
    0%, 28.571%      { opacity: 1; }
    33.333%, 95.238% { opacity: 0; }
    100%             { opacity: 1; }
}
@keyframes module-cycle-4 {
    0%, 21.429%    { opacity: 1; }
    25%, 96.429%   { opacity: 0; }
    100%           { opacity: 1; }
}
.module {
    transition: transform 0.4s var(--ease-overshoot);
}
@media (hover: hover) {
    .modules__cell:hover .module {
        transform: scale(0.96);
    }
}
.modules__cell:focus-within .module {
    transform: scale(0.96);
}
@media (prefers-reduced-motion: reduce) {
    .modules__cell {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .module {
        transition: none;
    }
}
