@charset "utf-8";
.editor {
    --ed-point-text-maxw: 310px;
    --ed-stage-radius: var(--radius-panel-lg);
}
.editor {
    padding-block: var(--section-y);
    background: var(--surface);
}
.editor--hosted {
    padding-block: 0;
    background: none;
}
.editor--chapter {
    padding-block: var(--s-sec-y);
    background: none;
}
.editor__body {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    column-gap: var(--grid-gap);
    row-gap: var(--space-25);
}
.editor__stage {
    grid-column: 2 / span 18;
    aspect-ratio: 1150 / 646;
    display: flex;
    background: var(--surface-sub);
    border-radius: var(--ed-stage-radius);
}
@supports (corner-shape: squircle) {
    .editor__stage { corner-shape: squircle; }
}
.editor__media {
    width: 67%;
    margin: auto;
    background: var(--surface-sub);
    box-shadow: var(--shadow-media-md);
}
.editor__video {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface);
}
.editor__points {
    grid-column: 2 / span 18;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-20) var(--grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}
.editor__point {
    flex-shrink: 0;
    width: calc(29% - var(--grid-gap) * 2 / 3);
}
.editor__point:nth-child(1) { --ed-i: 0; }
.editor__point:nth-child(2) { --ed-i: 1; }
.editor__point:nth-child(3) { --ed-i: 2; }
.editor__point:nth-child(4) { --ed-i: 3; }
.editor__point:nth-child(5) { --ed-i: 4; }
.editor__point:nth-child(6) { --ed-i: 5; }
.editor__point:nth-child(7) { --ed-i: 6; }
.editor__point:nth-child(8) { --ed-i: 7; }
.editor__point:nth-child(9) { --ed-i: 8; }
.editor__point-text {
    max-width: var(--ed-point-text-maxw);
}
@media (max-width: 1280px) {
    .editor {
        --ed-point-text-maxw: 240px;
    }
    .editor__body {
        grid-template-columns: repeat(10, 1fr);
        row-gap: var(--space-20);
    }
    .editor__stage,
    .editor__points {
        grid-column: 1 / span 10;
    }
    .editor__point {
        width: calc(30% - var(--grid-gap) * 2 / 3);
    }
}
@media (max-width: 991px) {
    .editor {
        --ed-point-text-maxw: none;
    }
    .editor__body {
        display: flex;
        flex-direction: column;
        gap: var(--space-25);
    }
    .editor__media {
        width: 75%;
    }
    .editor__points {
        gap: var(--space-14) var(--grid-gap);
    }
    .editor__point {
        width: calc(50% - var(--grid-gap) / 2);
    }
}
@media (max-width: 767px) {
    .editor {
        --ed-stage-radius: var(--radius-lg);
    }
    .editor__title-line {
        display: block;
    }
    .editor__body {
        gap: var(--space-20);
    }
    .editor__points {
        gap: var(--space-10);
    }
    .editor__point {
        width: 100%;
    }
}
@keyframes ed-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ed-media-settle {
    from { transform: scale(0.94); }
    to   { transform: scale(1); }
}
@keyframes ed-point-rise {
    from { transform: translateY(20px); }
    to   { transform: none; }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .editor__media {
            transform-origin: 50% 50%;
            animation: ed-fade var(--ease-out-quad) both,
                       ed-media-settle var(--ease-out-expo) both;
            animation-timeline: view(), view();
            animation-range: cover 8% cover 45%, cover 8% cover 45%;
        }
        .editor__point {
            --in-a: calc(6% + var(--ed-i, 0) * 2%);
            --in-b: calc(34% + var(--ed-i, 0) * 2%);
            animation: ed-fade var(--ease-out-quad) both,
                       ed-point-rise var(--ease-out-expo) both;
            animation-timeline: view(), view();
            animation-range: cover var(--in-a) cover var(--in-b),
                             cover var(--in-a) cover var(--in-b);
        }
    }
    @media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
        .editor__point {
            --in-a: 0%;
            --in-b: 26%;
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    .editor__media,
    .editor__point {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}
