@font-face {
    font-family: 'ArticulatCF';
    src: url('Articulat CF Medium.otf') format('opentype');
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: black;
    /* fallback while image loads */
    color: white;
    font-family: 'ArticulatCF', sans-serif;
}

/* ─── z-index: 5 — physics canvas, in front of bin ─── */
canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
}

/* ─── z-index: 1 — looped video, behind background image ─── */
#loopedVideo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    max-width: 600px;
    z-index: 1;
    display: none;
    /* Hidden initially */
    pointer-events: none;
}

/* ─── z-index: 2 — full-bleed ASCII background image ─── */
#asciiBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    display: block;
    /* Always visible */
}

#landingPageCaption {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 3;
    pointer-events: none;
    display: none;
    /* Initially hidden until first click */
}



#bitOfText1,
#bitOfText2 {
    position: fixed;
    width: 15%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    z-index: 51;
    /* Above flickerImage and background */
    display: none;
    pointer-events: none;
}

#bitOfText1 {
    top: 5%;
    left: 5%;
    z-index: 52;
    /* Above bitOfText2 */
}

#bitOfText2 {
    top: 35%;
    left: 2%;
}

#theClutter {
    position: fixed;
    top: 15%;
    left: 9%;
    width: 20%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    z-index: 53;
    /* Above both text images */
    display: none;
    pointer-events: none;
}

#theClutter.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    /* Scaled up */
    height: 80vh;
    max-width: none;
    z-index: 500;
    /* Above the 18 images */
    object-fit: contain;
    display: block !important;
    pointer-events: none;
}

/* ─── z-index: 4 — bin icon, on top of everything ─── */
#recyclingBinVideo {
    position: fixed;
    bottom: 15%;
    right: 5%;
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 1;
    z-index: 4;
    pointer-events: none;
    display: none;
    background-color: transparent;
}

/* ─── z-index: 100 — cursor trail, always highest ─── */
.trail-image {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 100;
    width: 50px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#proceedFolder {
    position: fixed;
    top: 12%;
    left: 55%;
    transform: translateX(-50%);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#proceedFolder:hover {
    opacity: 0.7;
}

#proceedFolder img {
    width: 35px;
    /* Sized down a fair amount */
    height: auto;
}

/* Back Arrow Style */
#backArrow {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: none;
    color: white;
    font-size: 20px;
    /* Sized down from 30px */
    cursor: pointer;
    transition: opacity 0.3s ease;
    user-select: none;
}

#backArrow:hover {
    opacity: 0.6;
}

/* Image Grid Container */
#tabsContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 70;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    /* Removing padding to control spread better */
    box-sizing: border-box;
    /* Remove background so fixed image underneath is visible */
    background: transparent;
}

#tabsContent {
    position: relative;
    width: 100%;
    height: 400vh;
    /* Extended black space */
}

.image-item {
    position: absolute;
    display: block;
    pointer-events: none;
    opacity: 0;
    /* Hidden initially for sequential flash */
    transition: opacity 0.1s steps(1);
    /* Sharp flash appearance */
}

.image-item.visible {
    opacity: 1;
}

/* Scroll Lock Helper */
.lock-scroll {
    overflow: hidden !important;
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#fixedBottomImage {
    position: fixed;
    top: 132vh;
    /* Adjusted up to 132vh */
    left: 50%;
    transform: translateX(-50%);
    width: 1920px;
    max-width: 100vw;
    height: auto;
    z-index: 65;
    /* Behind tabsContainer (70) and images (80+) */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#sectionDivider {
    position: fixed;
    top: 0;
    left: -15px;
    /* Budged left */
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    /* Highest priority overlay */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#sectionDivider2 {
    position: fixed;
    top: 0;
    left: -15px;
    /* Budged left */
    width: 100vw;
    height: 100vh;
    z-index: 30000;
    /* Highest priority overlay for black screen */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#sectionDivider3 {
    position: fixed;
    top: 0;
    left: -15px;
    width: 100vw;
    height: 100vh;
    z-index: 30000;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#sectionDivider4 {
    position: fixed;
    top: 0;
    left: -15px;
    width: 100vw;
    height: 100vh;
    z-index: 50000;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#keepsakeCaption {
    position: fixed;
    top: 5vh;
    /* Nudged down slightly to match screenshot */
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 68;
    /* Behind tabsContainer (70) and images (80+) */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#theNotesImage {
    position: fixed;
    top: 200vh;
    /* Starting off-screen */
    right: 8%;
    /* Shunted further to the right */
    width: 300px;
    /* Scaled up 20% from 250px */
    z-index: 503;
    /* In front of TABS-TRANSPARENT-BG (65) and similar to video (502) */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#caption1Image {
    position: fixed;
    top: 200vh;
    right: 10%;
    width: 250px;
    /* Scaled down slightly from 300px */
    z-index: 503;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#caption2Image {
    position: fixed;
    top: 200vh;
    right: 14%;
    /* Moved a bit to the left from 10% */
    width: 250px;
    z-index: 503;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#caption3Image {
    position: fixed;
    top: 200vh;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 503;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#keepsakeVideo {
    position: fixed;
    top: 200vh;
    /* Starting off-screen */
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 67;
    /* Just below keepsake caption (68) */
    display: none;
    pointer-events: none;
    object-fit: cover;
    /* Fit entire screen */
}

#notesLoopVideo {
    position: fixed;
    top: 200vh;
    /* Starting off-screen */
    left: 8%;
    /* Moved slightly right */
    width: 22.5%;
    /* Scaled down 50% from 45% */
    height: auto;
    z-index: 69;
    /* Above keepsakeVideo */
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#galleryCaption {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'ArticulatCF', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 68;
    /* Between background (65) and container (70) */
    pointer-events: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ─── Notes Gallery Section ─── */
#notesSection {
    position: fixed;
    /* Starting off-screen */
    top: 200vh;
    /* Positioned relative to viewport to stay locked to background */
    left: 0;
    width: 100vw;
    height: 200px;
    z-index: 501;
    display: none;
    align-items: center;
    overflow: visible;
    pointer-events: auto;
}

#notesContainer {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#notesContainer::-webkit-scrollbar {
    display: none;
}

#notesRail {
    display: inline-flex;
    padding: 20px 50px;
    gap: 20px;
    align-items: center;
}

.note-item {
    height: 120px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.note-item:hover {
    transform: scale(1.05);
}

.note-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    user-select: none;
    transition: opacity 0.3s ease;
}

.note-arrow:hover {
    opacity: 0.7;
}

.note-arrow.left {
    left: 10px;
}

.note-arrow.right {
    right: 10px;
}

/* ─── Lightbox Overlay ─── */
#lightboxOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightboxContent {
    width: 90vw;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#lightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(0.4);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#lightboxOverlay.active #lightboxImage {
    transform: scale(0.8);
}

#lightboxOverlay.active {
    display: flex;
}

/* ─── Gallery Video ─── */
#videoContainer {
    position: fixed;
    /* Starting off-screen */
    top: 200vh;
    /* Positioned relative to viewport to stay locked to background */
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    /* Scaled down 50% from 800px */
    max-width: 90vw;
    z-index: 502;
    display: none;
    cursor: pointer;
}

#galleryVideo {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

#videoControls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

#videoContainer:hover #videoControls {
    background: rgba(0, 0, 0, 0.4);
}

#playButton {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 24px;
    padding-left: 5px;
    /* Visual centering for triangle */
    transition: transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#videoContainer:hover #playButton {
    transform: scale(1.1);
}

#videoContainer.playing #videoControls {
    opacity: 0;
    pointer-events: none;
}

#videoContainer.playing:hover #videoControls {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
}



#videoContainer.playing #playButton::before {
    content: '❙❙';
    font-size: 20px;
    color: black;
    display: flex;
}

#videoContainer.playing #playButton {
    font-size: 0;
    /* Hide the ▶ */
    padding-left: 0;
}

#newBlackScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    /* Above everything */
    z-index: 20000;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

#newBlackContent {
    position: relative;
    width: 100%;
    height: 400vh;
    /* Large scrollable abyss */
}

#newBlackScreenVideo {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16%;
    height: auto;
    background-color: transparent;
    object-fit: contain;
}

#musicCaption {
    position: absolute;
    top: 8vh;
    left: 65%;
    transform: translateX(-50%);
    font-family: 'ArticulatCF', sans-serif;
    color: white;
    font-size: 11px;
    letter-spacing: 1.2px;
    z-index: 20005;
    pointer-events: none;
    text-transform: uppercase;
}

#nextPageIcon {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: auto;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

#nextPageIcon:hover {
    opacity: 0.7;
}

#nextPageIcon img {
    width: 100%;
    height: auto;
}

.music-icon {
    position: absolute;
    width: 30px;
    /* Small icon size */
    height: auto;
    cursor: pointer;
    z-index: 20002;
    /* Above the video */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.music-icon:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

#albumSpread {
    position: absolute;
    top: 90vh;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 20003;
    pointer-events: none;
    display: block;
    object-fit: contain;
}

#newNoteImage {
    position: absolute;
    top: 80vh;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    /* Same as THE NOTES image */
    height: auto;
    z-index: 21000;
    pointer-events: none;
    object-fit: contain;
    display: none;
}

#loopedNotesVideo {
    position: absolute;
    top: 155vh;
    left: 75%;
    transform: translateX(-50%);
    width: 24%;
    height: auto;
    z-index: 20006;
    pointer-events: none;
    display: none;
}

#folderMusicVideoContainer {
    position: absolute;
    top: 125vh;
    left: 38%;
    /* Moved up further */
    transform: translateX(-50%);
    width: 24%;
    /* Match size of loopedNotesVideo */
    z-index: 20007;
    cursor: pointer;
}

#folderMusicVideo {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: black;
}

#folderMusicPlayButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 20px;
    padding-left: 5px;
    transition: transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#folderMusicVideoContainer:hover #folderMusicPlayButton {
    transform: translate(-50%, -50%) scale(1.1);
}

#folderMusicVideoContainer.playing #folderMusicPlayButton {
    opacity: 0;
    pointer-events: none;
}

#folderMusicVideoContainer.playing:hover #folderMusicPlayButton {
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
}

#folderMusicVideoContainer.playing #folderMusicPlayButton::before {
    content: '❙❙';
    font-size: 18px;
    color: black;
    display: flex;
}

#folderMusicVideoContainer.playing #folderMusicPlayButton {
    font-size: 0;
    padding-left: 0;
}

#musicCaptionImage {
    position: absolute;
    top: 180vh;
    /* Positioned below the video and shunted left */
    left: 30%;
    transform: translateX(-50%);
    width: 262px;
    /* Consistently sized with other captions */
    z-index: 20008;
    pointer-events: none;
    display: none;
    object-fit: contain;
}

#curatingMemoriesImage {
    position: absolute;
    top: 200vh;
    /* Positioned below MUSIC-CAPTION.png (180vh) */
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 20009;
    display: none;
    pointer-events: none;
    object-fit: cover;
}

#transcript1Image {
    position: absolute;
    top: 230vh;
    left: 65%;
    transform: translateX(-50%);
    width: 62.5vw;
    height: auto;
    z-index: 20010;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#albumSpread1Image {
    position: absolute;
    top: 285vh;
    right: 0;
    width: 63vw;
    height: auto;
    z-index: 20010;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#albumSequenceVideo {
    position: absolute;
    top: 230vh;
    left: 30%;
    transform: translateX(-50%);
    width: 25vw;
    height: auto;
    z-index: 20010;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#transcript2Image {
    position: absolute;
    top: 280vh;
    left: 50%;
    transform: translateX(-50%);
    width: 62.5vw;
    height: auto;
    z-index: 20011;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#newBitOfText1Image {
    position: absolute;
    top: 325vh;
    left: 65%;
    transform: translateX(-50%);
    width: 62.5vw;
    height: auto;
    z-index: 20012;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#discsImage {
    position: absolute;
    top: 330vh;
    left: 0;
    width: 62.5vw;
    height: auto;
    z-index: 20011;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#newBitOfText2Image {
    position: absolute;
    top: 360vh;
    left: 50%;
    transform: translateX(-50%);
    width: 62.5vw;
    height: auto;
    z-index: 20013;
    display: none;
    pointer-events: none;
    object-fit: contain;
}

#finalProceedFolder {
    position: absolute;
    top: 375vh;
    right: 18vw;
    z-index: 20020;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#finalProceedFolder:hover {
    opacity: 0.7;
}

#finalProceedFolder img {
    width: 35px;
    height: auto;
}

#blankBlackPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 20500;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

#blankBlackContent {
    position: relative;
    width: 100%;
    height: 250vh;
}

#savingPull {
    position: absolute;
    top: 165vh;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 20504;
    pointer-events: none;
}

#savingSequenceLooped {
    position: absolute;
    top: 165vh;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 20503;
    pointer-events: none;
}

#newImageSaving {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 20500;
    pointer-events: none;
}

#newAlignVideoContainer3 {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: auto;
    z-index: 20501;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: black;
}

#savingCaption {
    position: absolute;
    top: 50vh;
    left: 70vw;
    transform: translateY(-50%);
    width: 18vw;
    max-width: 250px;
    z-index: 20502;
    pointer-events: none;
    object-fit: contain;
}

#newAlignVideoPage3 {
    width: 100%;
    height: auto;
    pointer-events: none;
    display: block;
}

#interactiveFolderBox {
    position: absolute;
    top: 105vh;
    left: 25%;
    transform: translateX(-50%);
    width: 20vw;
    height: 20vw;
    max-width: 50vh;
    max-height: 50vh;
    border: 1px solid white;
    background: black;
    z-index: 20503;
    overflow: hidden;
    pointer-events: auto !important;
}

#interactiveFolderBox canvas {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

#newAlignVideoPlayButton3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 24px;
    padding-left: 5px;
    transition: transform 0.2s ease, opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

#newAlignVideoContainer3:hover #newAlignVideoPlayButton3 {
    transform: translate(-50%, -50%) scale(1.1);
}

#newAlignVideoContainer3.playing #newAlignVideoPlayButton3 {
    opacity: 0;
}

#newAlignVideoContainer3.playing:hover #newAlignVideoPlayButton3 {
    opacity: 1;
    background: rgba(255, 255, 255, 0.7);
}

#newAlignVideoContainer3.playing #newAlignVideoPlayButton3::before {
    content: '❙❙';
    font-size: 20px;
    color: black;
    display: flex;
}

#newAlignVideoContainer3.playing #newAlignVideoPlayButton3 {
    font-size: 0;
    padding-left: 0;
}


/* --- Abrasive Pop-up Styles --- */
.pop-up-window {
    position: fixed;
    width: 320px;
    /* Slightly larger */
    background: transparent;
    z-index: 22000;
    cursor: grab;
    user-select: none;
    pointer-events: none;
    touch-action: none;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6));
    transition: transform 0.1s linear, opacity 0.1s linear;
    /* Faster transitions for flashing */
}

.pop-up-window:active {
    cursor: grabbing;
}

.pop-up-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    pointer-events: none;
    /* Let parent handle drag */
}

#savingTranscript {
    position: absolute;
    top: 102vh;
    left: 60%;
    transform: translateX(-50%);
    width: 70vw;
    height: auto;
    z-index: 20502;
    pointer-events: none;
    object-fit: contain;
}

#clickOnMeCaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'ArticulatCF', sans-serif;
    color: white;
    font-size: 0.8vw;
    font-weight: 500;
    z-index: 200;
    pointer-events: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 0.8;
}

#blankBlackProceedFolder {
    position: absolute;
    top: 235vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20550;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#blankBlackProceedFolder:hover {
    opacity: 0.7;
}

#blankBlackProceedFolder img {
    width: 35px;
    height: auto;
}

#finalFinalBlackPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    z-index: 40000;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

#finalFinalBlackContent {
    position: relative;
    width: 100vw;
    min-height: 100vh;
}

#finalPageBg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    object-fit: cover;
}

#finalPageText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    object-fit: cover;
}

#finalFoldersCaption {
    position: absolute;
    top: 50%;
    right: 185px;
    left: auto;
    transform: none;
    font-family: 'ArticulatCF', sans-serif;
    font-size: 10px;
    color: white;
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.final-page-folder {
    position: absolute;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.final-page-folder:hover {
    opacity: 0.7;
    transform: scale(1.1) rotate(-3deg);
}

.final-page-folder img {
    width: 35px;
    height: auto;
}

/* Explicit scattered positions ensuring no overlap, avoiding the center */
.final-page-folder:nth-of-type(1) {
    top: 25%;
    left: 20%;
}

.final-page-folder:nth-of-type(2) {
    top: 36%;
    left: 32%;
}

.final-page-folder:nth-of-type(3) {
    top: 22%;
    left: 45%;
}

.final-page-folder:nth-of-type(4) {
    top: 35%;
    left: 57%;
}

.final-page-folder:nth-of-type(5) {
    top: 24%;
    left: 75%;
}

.final-page-folder:nth-of-type(6) {
    top: 37%;
    left: 83%;
}

.final-page-folder:nth-of-type(7) {
    top: 37%;
    left: 15%;
}

.final-page-folder:nth-of-type(8) {
    top: 24%;
    left: 30%;
}

.final-page-folder:nth-of-type(9) {
    top: 29%;
    left: 65%;
}

.final-page-folder:nth-of-type(10) {
    top: 38%;
    left: 42%;
}

.final-page-folder:nth-of-type(11) {
    top: 63%;
    left: 18%;
}

.final-page-folder:nth-of-type(12) {
    top: 78%;
    left: 20%;
}

.final-page-folder:nth-of-type(13) {
    top: 66%;
    left: 33%;
}

.final-page-folder:nth-of-type(14) {
    top: 78%;
    left: 41%;
}

.final-page-folder:nth-of-type(15) {
    top: 62%;
    left: 49%;
}

.final-page-folder:nth-of-type(16) {
    top: 73%;
    left: 54%;
}

.final-page-folder:nth-of-type(17) {
    top: 68%;
    left: 66%;
}

.final-page-folder:nth-of-type(18) {
    top: 80%;
    left: 64%;
}

.final-page-folder:nth-of-type(19) {
    top: 62%;
    left: 77%;
}

.final-page-folder:nth-of-type(20) {
    top: 74%;
    left: 82%;
}

.final-page-folder:nth-of-type(21) {
    top: 80%;
    left: 32%;
}

/* ──────────────────────────────────────────────────────────
   MOBILE OPTIMIZATIONS (Screen width < 768px)
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* 1. Make folders much easier to tap */
    .final-page-folder img {
        width: 55px;
        /* Bigger tap target */
    }

    #proceedFolder img,
    #finalProceedFolder img,
    #blankBlackProceedFolder img {
        width: 60px;
    }

    /* 2. Adjust captions for narrow screens */
    #finalFoldersCaption {
        right: 20px;
        /* Bring closer to edge but visible */
        font-size: 8px;
        /* Slightly smaller for mobile */
        top: 48%;
    }

    #musicCaption {
        font-size: 0.8rem;
    }

    /* 3. Ensure full-bleed images cover phone aspect ratios */
    #asciiBackground,
    #finalPageBg,
    #finalPageText,
    #landingPageCaption {
        object-fit: cover;
    }

    /* 4. Increase visibility of back arrow */
    #backArrow {
        font-size: 32px;
        left: 15px;
        top: 15px;
    }

    /* 5. Scale down the large fixed videos */
    #loopedVideo {
        width: 60%;
        /* Take up more space since screen is narrow */
    }

    #notesLoopVideo {
        width: 50%;
    }

    /* 6. Fix layouts for narrow screens in sub-pages */
    #savingSequenceLooped {
        width: 80% !important;
        /* Scale down the main sequence */
        left: 10% !important;
    }

    #newAlignVideoContainer3 {
        width: 70% !important;
        left: 15% !important;
    }

    #interactiveFolderBox {
        width: 90% !important;
        height: 60vh !important;
    }

    #finalFoldersCaption {
        top: 2%;
        /* Move to top of screen as a guide */
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        /* Semi-black strip */
        padding: 5px 0;
    }
}

/* ──────────────────────────────────────────────────────────
   MOBILE LANDSCAPE SPECIFIC PROPORTIONS
   ────────────────────────────────────────────────────────── */
@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Scale elements strictly by viewport percentage to match desktop feel */

    .final-page-folder img {
        width: 6vh;
        /* Scale relative to height for landscape */
    }

    #proceedFolder img,
    #finalProceedFolder img,
    #blankBlackProceedFolder img {
        width: 10vh;
    }

    /* Remove pixel-based max-widths that choke the layout on short screens */
    #bitOfText1,
    #bitOfText2,
    #theClutter {
        max-width: none !important;
    }

    #bitOfText1 {
        width: 12vw;
    }

    #bitOfText2 {
        width: 12vw;
    }

    #theClutter {
        width: 18vw;
    }

    /* Fix the Back Arrow for short screens */
    #backArrow {
        font-size: 5vh;
        left: 3vw;
        top: 3vh;
    }

    /* Ensure fixed videos don't dwarf the UI */
    #loopedVideo {
        width: 25vw;
    }

    #notesLoopVideo {
        width: 20vw;
    }
}