:root {
    --dark-color-h: 334.29;
    --dark-color-s: 32.03%;
    --dark-color-l: 30%;
    --light-color-h: 19.2;
    --light-color-s: 30.86%;
    --light-color-l: 84.12%;
    --dark-color: hsl(var(--dark-color-h), var(--dark-color-s), var(--dark-color-l));
    --dark-color-lighter: hsl(var(--dark-color-h), var(--dark-color-s), calc(var(--dark-color-l) + 10%));
    --dark-color-darker: hsl(var(--dark-color-h), var(--dark-color-s), calc(var(--dark-color-l) - 10%));
    --dark-color-translucent: hsla(var(--dark-color-h), var(--dark-color-s), var(--dark-color-l), 0.75);
    --dark-color-darker-translucent: hsla(var(--dark-color-h), var(--dark-color-s), calc(var(--dark-color-l) - 10%), 0.75);
    --light-color: hsl(var(--light-color-h), var(--light-color-s), var(--light-color-l));
    --light-color-lighter: hsl(var(--light-color-h), var(--light-color-s), calc(var(--light-color-l) + 10%));
    --light-color-darker: hsl(var(--light-color-h), var(--light-color-s), calc(var(--light-color-l) - 10%));
    --light-color-translucent: hsla(var(--light-color-h), var(--light-color-s), var(--light-color-l), 0.75);
    --color-bg: var(--dark-color);
    --color-text: var(--light-color);
    --color-muted: color-mix(in oklab, var(--color-text) 50%, var(--color-bg) 50%);
    --color-accent: color-mix(in oklab, var(--color-text) 80%, var(--color-bg) 20%);
    --color-border: color-mix(in oklab, var(--color-text) 30%, var(--color-bg) 70%);
    --resources-bg-color: var(--dark-color-darker-translucent);
    --resources-active-color: color-mix(in srgb, var(--light-color) 75%, transparent);
    --resources-color: var(--color-text);
    --ts-h6: clamp(12px, 1.0753vw + 8.9892px, 20px);
    --ts-h5: clamp(14.4px, 1.2903vw + 10.7871px, 24px);
    --ts-h4: clamp(17.28px, 1.5484vw + 12.9445px, 28.8px);
    --ts-h3: clamp(20.736px, 1.8581vw + 15.5334px, 34.56px);
    --ts-h2: clamp(24.8832px, 2.2297vw + 18.6401px, 41.472px);
    --ts-h1: clamp(29.8598px, 2.6756vw + 22.3681px, 49.7664px);
}

*,
::after,
::before {
    border-style: solid;
    border-width: 0;
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    width: 100%;
}

.viewport-wrapper {
    height: auto;
    overflow: visible;
    position: relative;
}

.content-scroll {
    display: block;
    width: 100%;
}

body:not(.normalize-scroll) .viewport-wrapper {
    bottom: 0;
    height: 100%;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
}

body:not(.normalize-scroll) .content-scroll {
    overflow: visible;
}

body:not(.normalize-scroll) .content-scroll .seq-wrapper {
    perspective: 2000px;
}

body:not(.normalize-scroll) .content-scroll .pin-spacer {
    transform-style: preserve-3d;
}

h2 {
    font-size: var(--ts-h2);
}

h2,
h3 {
    color: var(--color-accent);
    font-weight: 400;
    letter-spacing: .025em;
    line-height: 1.3;
    margin-bottom: .65rem;
    margin-top: 0;
}

h3 {
    font-size: var(--ts-h3);
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: .5em;
}

code {
    background: var(--dark-color-darker-translucent);
    border-radius: .1875rem;
    padding: .125rem .25rem;
    white-space: normal;
    word-break: break-word;
}

pre code {
    overflow-x: auto;
    padding: 1rem;
    white-space: pre;
    word-break: normal;
}

main,
pre code {
    display: block;
}

main {
    margin: 0;
    position: relative;
}

section {
    display: block;
    psoition: relative;
}

section:is(.intro, .indicator) {
    margin: 4rem auto;
    max-width: 56.25rem;
    width: calc(100% - 2rem);
}

section.intro a,
section.intro a:visited {
    color: var(--color-text);
}

section.intro a:active {
    color: var(--color-accent);
}

section.intro a:focus-visible {
    color: var(--color-accent);
    outline: none;
}

section.indicator {
    text-align: center;
}

section.indicator h3 {
    font-size: var(--ts-h5);
    font-weight: 400;
    margin: 0;
}

section:has(.seq-wrapper) {
    background: var(--dark-color-darker);
    padding: 4rem 0;
}

.seq-wrapper {
    --border-radius: clamp(0.5rem, 1.5vh, 1.5rem);
    display: block;
    margin-inline: auto;
    max-width: 64rem;
    position: relative;
    width: calc(100% - 2rem);
}

.seq-wrapper-full-view {
    min-height: 100lvh;
    width: 100%;
}

.seq-pin-container {
    aspect-ratio: 16/9;
    display: grid;
    max-height: 100lvh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.seq-img-layer {
    aspect-ratio: inherit;
    overflow: hidden;
    z-index: 1;
}

.seq-img-layer:after {
    background: linear-gradient(-90deg, transparent, color-mix(in srgb, #111 85%, transparent));
    background-size: 100% 100%;
    content: "";
    display: block;
    grid-area: 1/-1;
    height: 100%;
    pointer-events: none;
    position: relative;
    width: 100%;
    z-index: 5;
}

.seq-overlay-layer {
    z-index: 2;
}

.seq-preloader-layer {
    background: #000;
    display: block;
    grid-area: 1/-1;
    pointer-events: none;
    position: relative;
    transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    z-index: 3;
}

.seq-keyhole-layer {
    z-index: 4;
}

:is(.seq-img-layer, .seq-overlay-layer, .seq-overlay, .seq-keyhole-layer) {
    display: grid;
    grid-area: 1/-1;
    height: 100%;
    position: relative;
    width: 100%;
}

.seq-img {
    aspect-ratio: inherit;
    backface-visibility: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    border: 0;
    color: transparent;
    display: block;
    font: 0/0 a;
    grid-area: 1/-1;
    max-width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    outline: none;
    padding: 0;
    text-color-shadow: none;
    vertical-align: middle;
}

.seq-img,
.seq-overlay-inner {
    height: 100%;
    pointer-events: none;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
}

.seq-overlay-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    padding: 1rem;
    text-align: center;
}

.seq-overlay-inner h2 {
    color: var(--light-color-lighter);
    margin-bottom: .25em;
    text-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .5);
}

.seq-overlay-inner p {
    margin-top: -.5em;
}

.seq-keyhole {
    background: var(--dark-color-darker);
    -webkit-clip-path: polygon(0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%, 100% 100%, 100% 0);
    clip-path: polygon(0 0, 0 100%, 0 100%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%, 100% 100%, 100% 0);
    height: 100%;
    position: relative;
    width: 100%;
}

.seq-keyhole,
.seq-keyhole-corner {
    display: block;
    grid-area: 1/-1;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.seq-keyhole-corner {
    --keyhole-corner-color-bg: var(--dark-color-darker);
    height: var(--border-radius);
    position: absolute;
    width: var(--border-radius);
}

.seq-keyhole-corner:is(.top-left, .top-right) {
    margin-top: -.03125rem;
}

.seq-keyhole-corner:is(.bottom-left, .bottom-right) {
    margin-top: calc(-1 * var(--border-radius) + .03125rem);
}

.seq-keyhole-corner:is(.top-left, .bottom-left) {
    margin-left: -.03125rem;
}

.seq-keyhole-corner:is(.top-right, .bottom-right) {
    margin-left: calc(-1 * var(--border-radius) + .03125rem);
}

.seq-keyhole-corner.top-left {
    background: radial-gradient(circle at bottom right, transparent calc(var(--border-radius) - .0625rem), var(--keyhole-corner-color-bg) var(--border-radius));
}

.seq-keyhole-corner.top-right {
    background: radial-gradient(circle at bottom left, transparent calc(var(--border-radius) - .0625rem), var(--keyhole-corner-color-bg) var(--border-radius));
}

.seq-keyhole-corner.bottom-left {
    background: radial-gradient(circle at top right, transparent calc(var(--border-radius) - .0625rem), var(--keyhole-corner-color-bg) var(--border-radius));
}

.seq-keyhole-corner.bottom-right {
    background: radial-gradient(circle at top left, transparent calc(var(--border-radius) - .0625rem), var(--keyhole-corner-color-bg) var(--border-radius));
}

.seq-track {
    display: block;
    height: var(--track-height, 100lvh);
    margin-top: var(--track-offset-y, -100lvh);
    pointer-events: none;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
}

.seq-track-markers {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.seq-track-time-marker {
    border-top: thin dashed var(--light-color);
    color: var(--light-color);
    font-size: .625rem;
    left: 0;
    padding-right: .25rem;
    position: absolute;
    text-align: right;
    width: 100%;
}

.seq-track-overlay-marker {
    align-items: center;
    display: flex;
    height: .0625rem;
    left: 0;
    position: absolute;
    width: 100%;
}

.seq-track-overlay-marker.start {
    background-color: #2ecc71;
}

.seq-track-overlay-marker.end {
    background-color: #e74c3c;
}

.seq-track-overlay-label {
    background: var(--light-color);
    border-radius: .1875rem;
    color: var(--dark-color-darker);
    font-size: .625rem;
    margin-left: .25rem;
    padding: .125rem .25rem;
}

.spacer {
    display: block;
    height: 100lvh;
    position: relative;
}

.resources-layer {
    bottom: 0;
    display: block;
    position: fixed;
    right: 0;
    z-index: 1000;
}

.resources {
    background: var(--resources-bg-color);
    display: grid;
    font-size: .6875rem;
    font-weight: 300;
    grid-auto-flow: column;
    line-height: 1.3;
    padding: .5rem;
    pointer-events: auto;
}

.resources a {
    align-content: center;
    display: grid;
    justify-content: center;
    padding: 0 .5rem;
    place-content: center;
    transition: color .2s ease-in-out;
}

.resources a,
.resources a:visited {
    color: var(--resources-color);
}

.resources a:active,
.resources a:focus-visible {
    color: var(--resources-active-color);
}

.resources a:focus-visible {
    outline: none;
}

.resources a:not(:first-child) {
    border-inline-start: thin solid currentColor;
}

@media (max-width:51.29875em) {
    .seq-wrapper {
        --border-radius: clamp(0.5rem, 2vh, 1rem);
    }

    .seq-pin-container {
        aspect-ratio: 4/3;
    }
}

@media (max-width:36.04875em) {
    .seq-pin-container {
        aspect-ratio: 1/1;
    }
}

@media (hover:hover) and (pointer:fine) {

    section.intro a:active:not(:hover),
    section.intro a:hover {
        color: var(--color-accent);
    }

    .resources a:active:not(:hover),
    .resources a:hover {
        color: var(--resources-active-color);
    }
}