#page-blackout {
    position: fixed;
    inset: 0;
    background: rgb(255, 255, 255);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#page-blackout.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#scene-root {

    z-index: 1000000;
    pointer-events: none;
    image-rendering: pixelated;
}

body {
    color: rgb(0, 0, 0);
    margin: 0;
    background-color: rgb(255, 255, 255);
    background-size: fill;
    background-repeat: repeat-y repeat-x;

    font-family: Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;

}


.layout {
    display: flex;
    min-height: 100vh;
    --reveal-x: 80px;
    --reveal-y: 80px;
    clip-path: circle(0px at var(--reveal-x) var(--reveal-y));

    transition: clip-path 2s cubic-bezier(0.22, 0.9, 0.32, 1);
    z-index: 10000;
}

.layout.is-revealed {
    clip-path: circle(200vmax at var(--reveal-x) var(--reveal-y));
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    background: rgba(255, 255, 255, 1);
    width: 60px;
    height: 60px;
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    /* background-image: url("assets/toggle.svg"); */
    border: 1.5px solid rgb(0, 0, 0);
    padding: 8px 12px;
    font-size: 14px;
    font-style: bold;
    cursor: pointer;
    color: black;
    visibility: hidden;
}

.sidebar {
    width: 350px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 1);

    border-right: 1.5px solid rgba(0, 0, 0);
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    z-index: 100;
}

.sidebar-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    text-decoration: none;
    color: black;
}

#title {
    text-decoration: none;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-decoration: none;

}

.menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;


}


.menu a.active {

    border: 1.5px solid rgb(0, 0, 0);

    padding: 3px;

}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 12px;
}

.sidebar-bottom a {
    color: rgb(0, 0, 0);
    text-decoration: none;


}

.sidebar-svg {
    display: flex;
    justify-content: flex-start;
    align-self: flex-start;
    min-height: 100px;
    margin-top: 12px;
    margin-bottom: 12px;
    visibility: hidden;

}

.sidebar-svg svg {
    width: auto;


    display: block;
    height: 10vh;
}

@media (max-width: 900px) {
    .sidebar-svg {
        display: none;
    }

}


.content {
    flex: 1;
    padding-left: 1vw;
    position: relative;
}

.content-blackout {
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.project-content {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.project-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.facts {
    margin: 0;
    font-size: 1rem;
    color: black;

}

.facts-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.content.is-loading .content-blackout {
    opacity: 1;
    transition: none;
}

.content.is-loading .project-content {
    opacity: 0;
}

.content.is-revealing .content-blackout {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.content.is-revealing .project-content {
    opacity: 1;
}

@media (max-width: 900px) {
    .layout {
        display: block;
    }

    .sidebar-toggle {
        display: inline-block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: min(80vw, 320px);
        transform: translateX(-110%);
        transition: transform 0.25s ease-in-out;
        z-index: 1000;
        background: rgba(255, 255, 255, 1);
        padding-top: 10vh;


        border-top: 1.5px solid rgba(0, 0, 0);
        border-right: 1.5px solid rgba(0, 0, 0);
        border-bottom: 1.5px solid rgba(0, 0, 0);

    }

    body {
        color: rgb(0, 0, 0);
        margin: 0;
        background-color: rgb(255, 255, 255);
        background-size: fill;
        background-repeat: repeat-y repeat-x;

        font-family: Helvetica, sans-serif;
        overflow-x: hidden;
        overflow-y: auto;
    }



    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .content {
        padding-left: 0;
        padding-top: 0;
    }

    .project-split-layout {
        flex-direction: column;
    }

    .project-split-media {
        width: 100%;
        max-width: none;
    }

    .home-spotlight-card {
        width: 100%;
        max-height: none;
    }

    .home-spotlight-media {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        transform: translate(0, 0);
        z-index: -100;

    }

    .carousel {
        grid-template-columns: minmax(0, 1fr);
    }

    .carousel-track {
        grid-column: 1;
    }

    .carousel-controls-stack,
    .carousel-btn,
    .carousel-dots {
        display: none !important;
    }

    .sidebar-bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;

        padding-top: 2px;
    }

    .sidebar-bottom a {
        color: rgb(0, 0, 0);
        text-decoration: none;


    }
}

section {
    margin-bottom: 36px;
}

.project-split-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.project-split-text {
    flex: 1;
    min-width: 0;
}

.project-split-media {
    flex: 1;
    min-width: 0;
    max-width: 700px;

}

.project-split-media .carousel {
    margin-top: 0;
}

.project-content {

    padding: 16px;
    background: rgba(255, 255, 255, 0);
}

.home-spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 1200px);
    max-height: 100%;
}

.home-spotlight-media {
    width: 100vw;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left;
    filter: blur(20px);
    transform: translate(0, 0);
}

.content:has(.home-random-card) {
    padding-left: 0;
}

.project-content:has(.home-random-card) {
    padding: 0;
}

.home-random-card {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 900px) {
    .home-random-card {
        /* height: calc(100vh - 56px); */
        height: 100vh;
    }
}

.home-random-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
    animation: random-media-pan 100s infinite;
}

/* With object-fit: cover only the cropped axis has room to move, so animating both axes pans along the cut-off direction. Starts centered, goes to one end, then the other, and returns to the center. */
@keyframes random-media-pan {
    0% {
        object-position: 50% 50%;
        animation-timing-function: ease-out;
    }

    25% {
        object-position: 20% 20%;
        animation-timing-function: ease-in-out;
    }

    75% {
        object-position: 80% 80%;
        animation-timing-function: ease-in;
    }

    100% {
        object-position: 50% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-random-media {
        animation: none;
        object-position: center;
    }
}

.home-random-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0px;
    padding: 80px 16px 16px;

}

.home-random-title {
    max-width: 75%;
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
    color: rgb(255, 255, 255);
}

.home-random-button {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1.5px solid rgb(0, 0, 0);
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

@media (min-width: 901px) {
    .home-spotlight-media {
        transform: translate(0, -10%);
    }
}

.home-spotlight-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.home-spotlight-card.spotlight-overlay {
    position: relative;
    width: min(100%, 1200px);
    max-width: 100%;
    max-height: none;
}

.home-spotlight-card.spotlight-overlay::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(38%, 220px);

    pointer-events: none;
}

.home-spotlight-card.spotlight-overlay {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
}

.home-spotlight-card.spotlight-overlay .home-spotlight-info {
    position: absolute;
    left: 16px;
    right: auto;
    width: min(calc(var(--spotlight-media-width, 100%) - 32px), calc(100% - 32px));
    max-width: calc(var(--spotlight-media-width, 100%) - 32px);
    top: 16px;
    z-index: 2;
    margin-bottom: 0;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;

}

.home-spotlight-card.spotlight-overlay .home-spotlight-title {
    display: block;
    width: 100%;
    white-space: normal;
    max-width: 400px;
    overflow-wrap: anywhere;
    word-break: normal;
    color: rgb(255, 255, 255);
    mix-blend-mode: difference;
}



.home-spotlight-card.spotlight-overlay .home-spotlight-button {
    background: rgba(255, 255, 255);
}

.home-spotlight-title {
    font-size: var(--spotlight-title-size, 1rem);
    font-weight: var(--spotlight-title-weight, 700);
    line-height: 1.15;
}


.home-spotlight-button {
    font-size: 14px;
    border: 1.5px solid rgb(0, 0, 0);
    background: white;
    color: black;
    padding: 6px 10px;
    cursor: pointer;
}

@media (min-width: 900px) {
    .home-spotlight-card.spotlight-layout {
        display: inline-grid;
        grid-template-columns: max-content minmax(220px, 30ch);
        align-items: start;
        justify-content: start;
        column-gap: 10px;
        width: fit-content;
        max-width: 100%;
    }

    .home-spotlight-card.spotlight-layout .home-spotlight-media {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        max-width: none;
        height: 100%;

    }

    .home-spotlight-card.spotlight-layout .home-spotlight-info {
        grid-column: 2;
        grid-row: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        position: static;

    }

    .home-spotlight-media {

        transform: translate(0, -10%) scale(1.5);
        z-index: -100;

    }


}

@media (max-width: 900px) {




    .home-spotlight-media {

        transform: translate(0, -10%) scale(1.5);
        z-index: -100;


    }

    .home-spotlight-card.spotlight-overlay {
        width: 100%;
    }

    .home-spotlight-card.spotlight-overlay {
        width: 100%;
    }

    .home-spotlight-card.spotlight-overlay .home-spotlight-title {
        display: block;
        width: 100%;
        white-space: normal;
        max-width: 90%;
        overflow-wrap: anywhere;
        word-break: normal;
        color: rgb(255, 255, 255);
        mix-blend-mode: difference;
        font-size: 5rem;
    }
}

.carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    align-content: start;
    column-gap: 6px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;

    margin: 16px 0;
    padding-bottom: 2vh;
    overflow: hidden;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.carousel-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.carousel-track {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    height: var(--carousel-slide-height, auto);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 18px;
    margin-bottom: -18px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
    will-change: scroll-position;
    scrollbar-width: none;

}

.carousel-track>* {
    scroll-snap-align: center;
    flex: 0 0 100%;
    min-width: 100%;
    max-height: 100%;
    scrollbar-width: none;

}

.carousel-track img,
.carousel-track video,
.carousel-track iframe {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;

}

.carousel-track iframe {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    display: block;
    object-fit: contain;
}

.carousel-video-slide {
    position: relative;
}

.carousel-video-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 120px;
    border: none;

    background: rgba(255, 255, 255, 0);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("assets/play.svg");
}

.carousel-video-toggle span {
    font-size: 18px;
    line-height: 1;
}

.carousel-video-slide:not(.is-paused) .carousel-video-toggle {
    opacity: 0;
    pointer-events: none;
}

.carousel-btn {
    position: static;
    transform: none;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 1);
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.carousel-btn img {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

.carousel-btn.prev {
    z-index: 100;
    visibility: visible;
}

.carousel-btn.next {
    z-index: 100;
    visibility: visible;
}

.carousel-controls-stack {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: start;
}

.carousel-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
}

.carousel-dot {
    width: 32px;
    height: 32px;
    border-radius: 0%;
    border: 1px solid rgba(0, 0, 0, 1);
    background: transparent;
    cursor: pointer;
    z-index: 9999;
}

.carousel-dot.active {
    background: rgba(0, 0, 0, 1);
}

a:link {
    color: rgb(0, 0, 0);
}

a:visited {
    color: rgb(0, 0, 0);
}

#basics {
    background-image: url("assets/basics.gif");
    width: 225px;
    height: 30px;
    background-size: cover;
    border: none;
    cursor: pointer;
}

#newmedia {
    background-image: url("assets/newmedia.gif");
    width: 225px;
    height: 30px;

    background-size: cover;
    border: none;
    cursor: pointer;
}

.rainbow {
    --angle: 0deg;
    border: 2px solid transparent;
    border-radius: 0px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from var(--angle), #ffffff 60%, #ff0000 75%, #ffee00 80%, #00c803 85%, #008cff 90%) border-box;
    animation: 10s rotate linear infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}