.film {
    position: absolute;
    inset: 0;
    z-index: 12;
    visibility: hidden;
    pointer-events: none;
}

.film.is-live {
    visibility: visible;
}

.film__prompt {
    position: absolute;
    z-index: 30;
    top: clamp(14px,3svh,32px);
    left: 50%;
    translate: -50% 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(600px,calc(100vw - 32px));
    padding: 13px 18px;
    background: #121216f2;
    border: 1px solid #f4f1ee40;
    font: 500 clamp(14px,1.2vw,17px)/1.4 var(--voice);
    color: var(--sen-letter);
    opacity: var(--po,0);
}

.film__prompt-mark {
    color: var(--seal-lit);
}

.film__caret {
    flex: none;
    align-self: stretch;
    width: 2px;
    background: var(--seal-lit);
    animation: caret 1000ms steps(2,start) infinite;
}

@keyframes caret {
    to {
        visibility: hidden;
    }
}

.world {
    position: absolute;
    inset: 0;
    visibility: hidden;
    --it: 0%;
    --ir: 0%;
    --ib: 0%;
    --il: 0%;
    opacity: var(--wo,1);
    transform: translate3d(calc((var(--i,0) - 1) * 31% * var(--pb,0)),calc(var(--pb,0) * -9%),0) scale(calc(1 - var(--pb,0) * .73));
}

.world.is-on {
    visibility: visible;
}

.world--halden {
    --i: 0;
}

.world--mora {
    --i: 1;
}

.world--elsewhere {
    --i: 2;
}

.world__quote {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.world__frame {
    position: absolute;
    inset: 0;
    box-shadow: 0 calc(var(--pb,0) * 36px) calc(var(--pb,0) * 80px) rgb(0 0 0 / calc(var(--pb,0) * .65));
}

.world__clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(var(--it) var(--ir) var(--ib) var(--il));
}

.world__scene {
    position: absolute;
    inset: 0;
    container-type: size;
    transform: scale(calc(1 - var(--cover,0) * .06));
    overflow: hidden;
}

.world__veil {
    position: absolute;
    inset: 0;
    background: #121216;
    opacity: calc(var(--cover,0) * .62);
    pointer-events: none;
}

.world__rim {
    position: absolute;
    inset: var(--it) var(--ir) var(--ib) var(--il);
    border: 8px solid;
    border-image: linear-gradient(135deg,#f6f6f8,#8c8f99 26%,#e1e3e8 50%,#6c6e78 74%,#eef0f3) 1;
    opacity: var(--ro,0);
    pointer-events: none;
}

.world__notes {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: calc(1 - var(--pb,0) * 5);
}

.wnote {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    align-items: center;
    translate: -6px -50%;
}

.wnote--l {
    flex-direction: row-reverse;
    translate: calc(-100% + 6px) -50%;
}

.wnote__dot {
    flex: none;
    width: 12px;
    height: 12px;
    border: 2px solid var(--seal-lit);
    background: #121216b3;
    transform: rotate(45deg) scale(var(--n,0));
}

.wnote__line {
    flex: none;
    width: var(--len,60px);
    height: 1px;
    background: var(--seal-lit);
    transform: scaleX(clamp(0,calc(var(--n,0) * 2),1));
    transform-origin: left center;
}

.wnote--l .wnote__line {
    transform-origin: right center;
}

.wnote__card {
    flex: none;
    width: clamp(200px,17vw,270px);
    padding: 11px 14px 12px;
    background: #121216;
    border: 1px solid #f4f1ee33;
    font: 400 clamp(12.5px,.98vw,14.5px)/1.42 var(--voice);
    color: var(--sen-letter);
    opacity: clamp(0,calc((var(--n,0) - .45) * 3),1);
    translate: calc((1 - clamp(0,calc((var(--n,0) - .45) * 3),1)) * -14px) 0;
}

.wnote--l .wnote__card {
    translate: calc((1 - clamp(0,calc((var(--n,0) - .45) * 3),1)) * 14px) 0;
}

.wnote__card b {
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    color: #f4a0b4;
}

.film__caps {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: clamp(0,calc((var(--pb,0) - .72) * 4),1);
}

.film__caps li {
    position: absolute;
    top: 60%;
    left: calc(50% + (var(--c) - 1) * 31%);
    translate: -50% 0;
    width: 27%;
    text-align: center;
}

.film__caps li:nth-child(1) {
    --c: 0;
}

.film__caps li:nth-child(2) {
    --c: 1;
}

.film__caps li:nth-child(3) {
    --c: 2;
}

.film__caps b {
    display: block;
    font: 600 16px/1.3 var(--voice);
}

.film__caps span {
    font: 400 15px/1.4 var(--prose);
    color: var(--sen-secondary);
}

.film__outro {
    position: absolute;
    left: 50%;
    top: 73%;
    translate: -50% 0;
    width: min(820px,calc(100vw - 2 * var(--page-edge)));
    text-align: center;
    opacity: clamp(0,calc((var(--pb,0) - .7) * 3.4),1);
}

.film__outro h2 {
    font: 600 clamp(30px,4.4vw,68px)/1.02 var(--voice);
    letter-spacing: -.025em;
}

.film__outro p {
    max-width: 52ch;
    margin: 14px auto 0;
    font: 400 clamp(16px,1.3vw,19px)/1.5 var(--prose);
    color: var(--sen-secondary);
}

.world--halden .world__scene {
    background: #d5dbde;
    color: #14181b;
}

.h-gridv,.h-gridh {
    position: absolute;
    inset: 0;
    background-size: calc(100% / 12) 100%;
    background-image: linear-gradient(90deg,#14181b2e 1px,transparent 1px);
    clip-path: inset(0 0 calc((1 - var(--b2,0)) * 100%) 0);
}

.h-gridh {
    background-size: 100% 12.5%;
    background-image: linear-gradient(180deg,#14181b2e 1px,transparent 1px);
    clip-path: inset(0 calc((1 - var(--b2,0)) * 100%) 0 0);
}

.h-photo {
    position: absolute;
    inset: var(--pt,0%) var(--pr,0%) var(--pbm,0%) var(--pl,46%);
    overflow: hidden;
}

.h-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(calc(1 + var(--b3,0) * .12));
}

.h-nav {
    opacity: var(--b1,0);
    position: absolute;
    top: 5cqh;
    left: 4cqw;
    display: flex;
    gap: 1.8cqw;
    margin: 0;
    font: 600 max(13px,1.05cqw)/1 var(--voice);
}

.h-nav b {
    margin-right: 1.4cqw;
    font-weight: 800;
}

.h-dim {
    position: absolute;
    top: 22cqh;
    left: 62cqw;
    right: 6cqw;
    height: 14px;
    translate: 0 -50%;
    color: #ff5b14;
}

.h-dim i {
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(var(--b2,0));
    transform-origin: left center;
}

.h-dim::before,.h-dim::after {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 14px;
    background: currentColor;
}

.h-dim::before {
    left: 0;
}

.h-dim::after {
    right: 0;
    opacity: var(--b2,0);
}

.h-dim em {
    position: absolute;
    left: 50%;
    top: -22px;
    translate: -50% 0;
    padding: 2px 8px;
    background: #14181b;
    font: 500 13px/1.3 var(--mono);
    font-style: normal;
    opacity: var(--b2,0);
}

.h-title {
    position: absolute;
    left: 3.4cqw;
    top: 30cqh;
    margin: 0;
    font: 400 15.4cqw/.86 var(--poster-face);
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.h-title span,.m-title span,.e-title span {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}

.h-title i,.m-title i,.e-title i {
    display: block;
    font-style: normal;
}

.h-title span:nth-child(1) i {
    transform: translate3d(0,calc((1 - clamp(0,calc(var(--b1,0) * 1.5),1)) * 108%),0);
}

.h-title span:nth-child(2) i {
    transform: translate3d(0,calc((1 - clamp(0,calc(var(--b1,0) * 1.5 - .5),1)) * 108%),0);
}

.h-body {
    position: absolute;
    left: 4cqw;
    bottom: 11cqh;
    max-width: 24ch;
    margin: 0;
    font: 400 max(15px,1.35cqw)/1.45 var(--prose);
    opacity: var(--b2,0);
    translate: 0 calc((1 - var(--b2,0)) * 16px);
}

.h-link {
    position: absolute;
    left: 4cqw;
    bottom: 5cqh;
    padding-bottom: 3px;
    border-bottom: 2px solid #ff5b14;
    font: 600 max(14px,1.1cqw)/1.2 var(--voice);
    opacity: var(--b2,0);
}

.world--mora .world__scene {
    background: #19110f;
    color: #f2e6d6;
}

.m-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.m-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 50%;
    filter: sepia(.28) saturate(.92) contrast(1.04);
    transform: scale(calc(1.3 - var(--b3,0) * .26)) translate3d(calc(var(--b3,0) * 2%),0,0);
}

.m-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#19110f66,#19110f00 28%),linear-gradient(270deg,#9a3f2b33,#9a3f2b00 55%);
}

.m-ring {
    position: absolute;
    left: 31cqw;
    top: 56cqh;
    width: 38cqw;
    aspect-ratio: 1;
    translate: -50% -50%;
    border: 1px solid #f2e6d6b3;
    border-radius: 50%;
    transform: scale(calc(.45 + var(--b2,0) * .55));
    opacity: calc(var(--b2,0) * (1 - var(--b3,0) * .35));
}

.m-nav {
    position: absolute;
    top: 5cqh;
    left: 4cqw;
    display: flex;
    gap: 2.2cqw;
    margin: 0;
    font: 600 max(13px,1.05cqw)/1 var(--voice);
    text-shadow: 0 1px 14px #0008;
}

.m-nav b {
    margin-right: 1.4cqw;
    font-weight: 800;
}

.m-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 47cqw;
    padding: 3.6cqw 3.6cqw 3.2cqw;
    background: #9a3f2b;
    transform: translate3d(calc((1 - var(--b1,0)) * 104%),0,0);
}

.m-title {
    margin: 0;
    font: 800 5.5cqw/.96 var(--voice);
    letter-spacing: -.035em;
}

.m-title span:nth-child(1) i {
    transform: translate3d(0,calc((1 - clamp(0,calc(var(--b2,0) * 1.6),1)) * 108%),0);
}

.m-title span:nth-child(2) i {
    transform: translate3d(0,calc((1 - clamp(0,calc(var(--b2,0) * 1.6 - .6),1)) * 108%),0);
}

.m-body {
    max-width: 26ch;
    margin: 1.6cqw 0 0;
    font: 400 max(15px,1.35cqw)/1.45 var(--prose);
    opacity: var(--b2,0);
}

.m-link {
    display: inline-block;
    margin-top: 1.4cqw;
    padding-bottom: 3px;
    border-bottom: 1px solid currentColor;
    font: 600 max(14px,1.1cqw)/1.2 var(--voice);
    opacity: var(--b2,0);
}

.world--elsewhere .world__scene {
    background: #0e1a2b;
    color: #f6e3d3;
}

.e-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.e-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0,calc((1 - var(--b3,0)) * 5%),0) scale(calc(1.3 - var(--b3,0) * .22));
}

.e-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,#0e1a2bd9 0%,#0e1a2b33 38%,#0e1a2b00 55%,#0e1a2bf2 100%);
}

.e-nav {
    position: absolute;
    top: 5cqh;
    left: 4cqw;
    right: 4cqw;
    display: flex;
    gap: 2.2cqw;
    margin: 0;
    font: 400 max(14px,1.15cqw)/1 var(--prose);
}

.e-nav b {
    margin-right: auto;
    font-size: max(18px,1.7cqw);
    font-weight: 500;
    letter-spacing: -.01em;
}

.e-title {
    position: absolute;
    left: 4cqw;
    top: 14cqh;
    margin: 0;
    font: 300 12.6cqw/.88 var(--prose);
    letter-spacing: -.04em;
}

.e-title i {
    opacity: clamp(0,calc(var(--b1,0) * 1.6),1);
    transform: translate3d(calc((1 - var(--b1,0)) * -6cqw),0,0);
}

.e-title span:nth-child(2) i {
    opacity: clamp(0,calc(var(--b1,0) * 1.6 - .5),1);
    color: #f08a5d;
}

.e-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.e-route polyline {
    fill: none;
    stroke: #f08a5d;
    stroke-width: 3px;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: var(--rl,4000px);
    stroke-dashoffset: calc((1 - var(--b2,0)) * var(--rl,4000px));
}

.e-stop {
    position: absolute;
    left: var(--x);
    top: var(--y);
    --th: calc(.16 + var(--r) * .38);
    opacity: clamp(0,calc((var(--b2,0) - var(--th)) * 9),1);
}

.e-stop i {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 14px;
    height: 14px;
    background: #f6e3d3;
    border: 3px solid #f08a5d;
    transform: rotate(45deg);
}

.e-stop em {
    position: absolute;
    left: -2px;
    bottom: 16px;
    translate: -100% 0;
    white-space: nowrap;
    font: 400 max(15px,1.4cqw)/1 var(--prose);
    font-style: italic;
    text-shadow: 0 1px 12px #0e1a2b;
}

.e-body {
    position: absolute;
    right: 4cqw;
    top: 15cqh;
    max-width: 18ch;
    margin: 0;
    font: 400 max(15px,1.4cqw)/1.45 var(--prose);
    opacity: var(--b2,0);
    text-align: right;
    text-shadow: 0 1px 14px #0e1a2b;
}

.e-link {
    position: absolute;
    right: 4cqw;
    bottom: 5cqh;
    padding-bottom: 3px;
    border-bottom: 1px solid #f08a5d;
    font: 400 max(14px,1.2cqw)/1.2 var(--prose);
    opacity: var(--b2,0);
}

.world--halden .wnote:nth-child(1) {
    --x: 62%;
    --y: 22%;
    --len: 56px;
}

.world--halden .wnote:nth-child(2) {
    --x: 6%;
    --y: 22%;
    --len: 40px;
}

.world--halden .wnote:nth-child(3) {
    --x: 83%;
    --y: 75%;
    --len: 56px;
}

.world--mora .wnote:nth-child(1) {
    --x: 53%;
    --y: 58%;
    --len: 56px;
}

.world--mora .wnote:nth-child(2) {
    --x: 24%;
    --y: 70%;
    --len: 0px;
}

.world--mora .wnote:nth-child(3) {
    --x: 40%;
    --y: 38%;
    --len: 56px;
}

.world--elsewhere .wnote:nth-child(1) {
    --x: 64%;
    --y: 31%;
    --len: 56px;
}

.world--elsewhere .wnote:nth-child(2) {
    --x: 52%;
    --y: 47%;
    --len: 56px;
}

.world--elsewhere .wnote:nth-child(3) {
    --x: 90%;
    --y: 46%;
    --len: 56px;
}

.film.is-static {
    position: relative;
    inset: auto;
    visibility: visible;
    display: grid;
    gap: 64px;
    pointer-events: auto;
}

.film.is-static .film__prompt,.film.is-static .film__caps {
    display: none;
}

.film.is-static .world {
    position: relative;
    inset: auto;
    visibility: visible;
    opacity: 1;
    transform: none;
}

.film.is-static .world__quote {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 14px;
    clip-path: none;
    font: 400 19px/1.45 var(--prose);
    color: var(--sen-secondary);
}

.film.is-static .world__frame {
    position: relative;
    inset: auto;
    aspect-ratio: 16/10;
    box-shadow: none;
}

.film.is-static .world__clip {
    clip-path: none;
}

.film.is-static .world__rim {
    --ro: 1;
}

.film.is-static .world__scene {
    --b1: 1;
    --b2: 1;
    --b3: 1;
    transform: none;
}

.film.is-static .world__veil {
    display: none;
}

.film.is-static .world__notes {
    position: static;
    display: grid;
    gap: 12px;
    margin-top: 18px;
    opacity: 1;
}

.film.is-static .wnote {
    position: static;
    display: block;
    translate: none;
}

.film.is-static .wnote__dot,.film.is-static .wnote__line {
    display: none;
}

.film.is-static .wnote__card {
    width: auto;
    max-width: 62ch;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    translate: none;
    font-size: 16px;
}

.film.is-static .film__outro {
    position: static;
    translate: none;
    width: auto;
    text-align: left;
    opacity: 1;
}

.film.is-static .film__outro p {
    margin-left: 0;
}

@media(max-width:700px) {
    .film.is-static .world__frame {
        aspect-ratio: 4/5;
    }
    .film__prompt {
        top: 12px;
        padding: 10px 12px;
        font-size: 13.5px;
    }
    .film:not(.is-static) .wnote {
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 14px;
        translate: none;
        display: block;
        opacity: calc(1 - var(--f,0));
    }
    .film:not(.is-static) .wnote__dot,.film:not(.is-static) .wnote__line {
        display: none;
    }
    .film:not(.is-static) .wnote__card {
        width: auto;
        font-size: 14px;
    }
    .film:not(.is-static) .wnote:not(:first-child) {
        pointer-events: none;
    }
    .film__caps li {
        top: 58%;
        width: 32%;
    }
    .film__caps b {
        font-size: 12px;
    }
    .film__caps span {
        display: none;
    }
    .film__outro {
        top: 70%;
    }
}

@container (max-aspect-ratio: 1/1) {
    .h-nav,.m-nav,.e-nav {
        top: 10.5cqh;
    }
    .h-nav span,.m-nav span,.e-nav span {
        display: none;
    }
    .h-title {
        top: 47cqh;
        font-size: 17cqw;
    }
    .h-dim {
        top: 20cqh;
        left: 30cqw;
    }
    .h-body {
        bottom: 12cqh;
    }
    .m-panel {
        width: 100%;
        padding: 6cqw;
    }
    .m-title {
        font-size: 11.5cqw;
    }
    .m-body {
        font-size: 15px;
        margin-top: 3cqw;
    }
    .m-ring {
        left: 50cqw;
        top: 30cqh;
        width: 70cqw;
    }
    .e-title {
        font-size: 21cqw;
        top: 15cqh;
    }
    .e-body {
        top: 48cqh;
        font-size: 15px;
    }
    .e-link {
        bottom: 14cqh;
    }
}
