body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../images/bg.jpg') center / cover no-repeat;
}

html {
    background-color: black;
    /* shows behind the image while it loads */
}

html,
body {
    margin: 0;
    width: 100%;
    font-family: 'Bricolage Grotesque', sans-serif;
}

body {
    overflow-x: hidden;
    /* or clip */
}

a,
a:visited,
a:active {
    color: white;
    text-decoration: none;
}

.wave {
    text-align: center;
}

.wave video {
    width: 50vw; height; auto; margin: 0 auto; position:relative; display: inline-block;
}

@media screen and (max-width: 767px) {


.wave video {
    width: 95vw; height; auto; margin: 0 auto; position:relative; display: inline-block;
}

}

@media screen and (min-width: 768px) and (max-width: 991px) {


.wave video {
    width: 85vw; height; auto; margin: 0 auto; position:relative; display: inline-block;
}

}


@media screen and (min-width: 601px) and (max-width: 991px) {

    html {
        scroll-behavior: smooth;
        height: 100%;
        width: 100%;
    }
}

h1,
h2 {
    font-size: 64px;
}

h1 {
    color: #F54111;
    font-weight: 600;
}

h2 {
    color: #3BB2BD;
    font-weight: 600;
    margin-bottom: 1rem !important;
}

.top {
    margin-top: -1rem;
    width: 100%;
    height: auto;
    display: flex;
    position: relative;
}

.top-left,
.top-right {
    flex: 1;
    width: 45%;
    display: inline-block;
    position: relative;

}

.top-left p {
    color: white;
    font-size: 18px;
    font-weight: 300;
    margin-top: 0 !important;
    text-align: justify;
    text-justify: inter-word;
    padding-right: 35%;
}

.top-left {
    float: left;
    padding-left: 5% !important;
}

.top-right {
    padding-right: 5% !important;
    text-align: right;
    float: right;
}

.middle {
    margin-top: 2.5rem;
    width: 100%;
    position: inline-block;
    display: relative;
}

.top-left {
    float: left;
    padding-left: 2rem;
}

.top-right {
    padding-right: 2rem;
    text-align: right;
    float: right;
}

.middle-left,
.middle-right {
    display: inline-block;
    position: relative;
}

.middle-left {
    padding-left: 2.5%;
    float: left;
    width: 35%;
}

.middle-right {
    padding-right: 5%;
    text-align: right;
    float: right;
    width: 55%;
}

.middle-right img {
    max-height: 45vh;
    max-width: 90%;
}

/* Keep every panel in the layout (stacked in one grid cell) and only toggle
   visibility, so the row's height doesn't change when the selection changes. */
.middle-right {
    display: grid;
}

.middle-right .panel {
    grid-area: 1 / 1;
}

.middle-right .panel[hidden] {
    display: block;
    visibility: hidden;
}


@media screen and (max-width: 375px) {

    h1 {
      
        font-size: 48px !important;
    }
    h2 {

        font-size: 2.25rem;
    

            margin-top: 0rem !important;
            margin-bottom: 0!important;
}
.top-left p {
    font-size: 17px;
}


    .top-right {
        margin-top: 1rem;
    }

    .middle-right {
        margin-top: 5px !important;
    }
}

@media screen and (min-width: 376px) and (max-width:600px) {
    .top-right {
        margin-top:2rem;
    }

        h1 {
      
        font-size: 54px !important;
    }

    h2 {
        font-size: 2.5rem;
    }

}

@media screen and (min-width: 376px) and (max-width: 400px) {

    .middle-right {
        margin-top: 2rem !important;
    }

}





@media screen and (max-width: 400px) {

    .top-left p {
        padding-right: 15%;
    }

    html,
    body {
        /* background-color: black;*/
        min-height: 101vh;
        margin: 0;
        width: 100.5vw;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    h2 {
        padding-top: 0 !important;
    }

    
    .top-left,
    .top-right,
    .middle-left,
    .middle-right {
        padding: 0;
        width: 100%;
    }

    :root {
        --row: 31px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
    }

    .list {
        padding-block: calc(var(--row) * (var(--rows) - 1) / 4) !important;
    }

    .nav.down {
        bottom: -10px !important;
    }

    .middle-right img {
        max-width: auto;
        max-height: 195px !important;
        margin: 0 auto;
        float: none;
    }

    .top-left,
    .top-right,
    .middle-left,
    .middle-right {
        padding: 0;
        width: 100%;
    }

    h2 {
        padding-top: 0 !important;
    }

 /*   h1 {
        font-size: 56px !important;
    }*/

}

@media screen and (min-width: 401px) and (max-width: 600px) {

    html,
    body {
        /* background-color: black;*/
        min-height: 101vh;
        margin: 0;
        width: 100.5vw;
        overflow-x: hidden;
        overflow-y: hidden;
    }


    :root {
        --row: 40px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
    }

    .top-left p {

        padding-right: 10%;
    }


    .middle-right img {
        max-width: 67%;
        max-height: auto;
        margin: 0 auto;
        float: none;
    }

    .top-left,
    .top-right,
    .middle-left,
    .middle-right {
        padding: 0;
        width: 100%;
    }

    h2 {
        margin-top: 1rem !important;
        padding-top: 0 !important;
    }

    h1 {
        font-size: 66px !important;
    }
}

.narrowheightonly {
    width: 100%;
    display: none;
}


@media screen and (min-height: 412px) and (max-height: 500px) {

    :root {

        --row: 37px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
    }

    .narrowheightonly {

        padding: 4rem 0 0 0;
        display: inline-block;
        position: relative;
        color: white;
        font-size: 64px;
        text-align: center;

    }

    .middle-left {
        margin-top: 2.5rem;
        margin-left: -10rem !important;
    }


    .middle-right img {
        padding-top: 10px;
    }

}

@media screen and (max-width: 600px) {

    .top {
        flex-direction: column-reverse;
    }

   h1 {
    margin: 0 auto;
        padding: 0;

    }

    
    .top-right {
        text-align: center;
    }

    .middle-left,
    .middle-right {
        padding: 0;
        width: 100%;
    }


    .middle-right {
        margin-top: 4rem;
        text-align: center;
    }

    .nav {
        padding: 2rem;
        font-size: 1.25rem !important;
    }

    .picker {
        min-height: 10rem
    }

}

@media screen and (min-width: 601px) and (max-width: 768px) and (min-height: 412px) {

    .top-left p {

        padding-right: 15%;
    }

    :root {
        --row: 45px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
    }

    .nav {
        font-size: 1.25rem !important;
    }


    .middle {
        margin-top: 2.5rem;
        width: 100%;
        position: inline-block;
        display: relative;
    }

    .picker {
        height: 35vh !important;
    }

    .nav.down {
        bottom: 4rem !important;
    }

    .middle-left {
        margin-top: 1rem;
        padding-left: 1.5%;
        float: none;
        width: 100%;
    }

    .middle-right {
        margin-top: -2rem;
        padding-right: 0;
        text-align: center;
        float: none;
        width: 100%;
    }

    .middle-right img {
        max-width: 46%;
        margin: 0 auto;
        float: none;
    }

}

@media screen and (min-width: 769px) and (max-width: 923px),
screen and (min-width: 601px) and (max-width: 768px) and (max-height: 411px) {

    :root {
        --row: 40px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
    }

    .nav {
        font-size: 1.5rem !important;
    }

    .middle {
        margin-top: 4.5rem;
        width: 100%;
        position: inline-block;
        display: relative;
    }

    .picker {
        margin-left: -12.5% !important;
        height: 35% !important;
    }

    .nav.down {
        position: relative;
        bottom: 0 !important;
    }

    .middle-left {
        margin-top: 3rem;
        padding-left: 0 !important;

    }

    .middle-right {
        padding-right: 0;
        text-align: center;

    }

    .middle-right img {
        max-height: auto !important;
        max-width: 66%;
        margin: 4rem auto 0 auto;
        float: none;
    }

}

/* @media screen and (max-width: 400px) {

    .top-left p {
        padding-right: 15%;
    }

    html,
    body {
     
        min-height: 101vh;

        margin: 0;
        width: 100.5vw;
        font-family: 'Bricolage Grotesque', sans-serif;
        overflow-x: hidden;
        background: url('../images/bg.jpg') center / cover no-repeat;

    }

    h2 {
       margin-top:1rem!important; padding-top: 0 !important;
    }

    h1 {
        font-size: 62px;
    }

    .middle {
        margin-top: 1rem!important;
    }

    .middle-right {
        margin-top: 3rem!important;
    }

    :root {
        --row: 32px !important;
        --rows: 3 !important;
    }
}*/

@media screen and (min-width: 924px) and (max-width: 1200px) {

    :root {
        --row: 40px !important;
        /* height of one item */
        --rows: 5 !important;
        /* visible rows (odd number) */
    }


    .nav {
        font-size: 1.5rem !important;
    }


    .middle {
        margin-top: 4.5rem;
        width: 100%;
        position: inline-block;
        display: relative;
    }

    .picker {
        height: 35vh !important;
    }

    .nav.down {
        position: relative;
        bottom: 0 !important;
    }

    .middle-left {
        padding-left: 0%;
        float: left;
        width: 30%;
        margin-left: -5% !important;
    }

    .middle-right {
        padding-right: 0%;
        text-align: center;
        float: right;
        width: 55%;
    }

    .middle-right img {
        max-height: auto !important;
        max-width: 75%;
        margin: 0 auto;
        float: none;
    }

}

/** LIST **/
/*thumbnail play icon overlay */
@supports (position-area: center) {
  .panel img { anchor-name: --thumb; }
  .panel a   { position: relative; }

  .panel a::after {
    content: "";
    position: absolute;
    position-anchor: --thumb;
    position-area: center;                       /* centered on the image, whatever its size */
    /* width: max(28px, calc(anchor-size(width) * .12));*/
    width: 2.5rem;
    aspect-ratio: 7 / 8;
    background: #fff;
    opacity: .65;                                /* low opacity */
    clip-path: polygon(0 0, 100% 50%, 0 100%);   /* sharp right-pointing triangle */
    translate: 6% 0;                             /* a triangle looks centered when nudged slightly right */
    pointer-events: none;                        /* clicks still reach the link */
  }
}


.panel.dark a::after {
  background: #a1a1a1;
  opacity: .5;
}

#chemical {
    padding-bottom: 2.5rem !important;
}

:root {

    --peak: clamp(1.75rem, 6.5vw, 3rem);
    --peak-tall: clamp(1rem, 4.2vw, 26px);


    --bg: #f3f1ec;
    --ink: #1d2a2a;
    --accent: #0f6b66;
    --row: 45px;
    /* height of one item */
    --rows: 5;
    /* visible rows (odd number) */
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #14201f;
        --ink: #e8efee;
        --accent: #5fd0c8;
    }
}

:root[data-theme="dark"] {
    --bg: #14201f;
    --ink: #e8efee;
    --accent: #5fd0c8;
}


.middle-left {
    color: var(--ink);
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    display: grid;
    place-items: center;
}

.picker {
    position: relative;
    width: min(600px, 94vw);
}

/* highlight band behind the selected row 
  .picker::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: var(--row);
    transform: translateY(-50%);
    border-block: 2px solid var(--accent);
    opacity: .35;
    pointer-events: none;
  }*/

.list {
    height: calc(var(--row) * var(--rows));
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    /* pad so first/last items can reach the center */
    padding-block: calc(var(--row) * (var(--rows) - 1) / 2);
    /* keeps the first/last items snappable at the center */
    scroll-padding-block: calc(var(--row) * (var(--rows) - 1) / 2);
}

.list::-webkit-scrollbar {
    display: none;
}

.list li {
    height: var(--row);
    display: grid;
    place-items: center;
    scroll-snap-align: center;
    white-space: pre;
    padding-inline: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    /* Fallback if scroll-driven animations aren't supported */
    font-size: clamp(1.3rem, 6.5vw, 2.125rem);
    opacity: .5;
}

.list li {
    transition: scale .25s ease, translate .15s ease;
}

/* When "O Chemical Brothers" (index 23) is selected, shrink the rows right above and below it */
.list[data-selected="23"] li:nth-child(30n + 23),
/* index 22: Point <br> */
.list[data-selected="23"] li:nth-child(30n + 25) {
    /* index 24: Saturday Evening Glitchtoons */
    scale: .8;
}

/* Open a little more space below "O Chemical Brothers" when it's selected */
.list[data-selected="23"] li:nth-child(30n + 25),
.list[data-selected="23"] li:nth-child(30n + 26),
.list[data-selected="23"] li:nth-child(30n + 27),
.list[data-selected="23"] li:nth-child(30n + 28) {
    translate: 0 7px;
}

/* "Point <br>" (22) selected: shrink O Chemical Brothers (below it) and TNK_GRL (above it) */
.list[data-selected="22"] li:nth-child(30n + 24),
/* index 23: O Chemical Brothers */
.list[data-selected="22"] li:nth-child(30n + 22) {
    /* index 21: TNK_GRL */
    scale: .9;
}

/* "Saturday Evening Glitchtoons" (24) selected: shrink O Chemical Brothers (above it) and Recut Gems (below it) */
.list[data-selected="24"] li:nth-child(30n + 24),
/* index 23: O Chemical Brothers */
.list[data-selected="24"] li:nth-child(30n + 26) {
    /* index 25: Recut Gems */
    scale: .9;
}

/* "Should I Marry Darren Aronofsky?" is index 20, so it's the 21st child of each copy */
.list li:nth-child(30n + 21) {
    white-space: nowrap;
}

/* the \n collapses to a space on wide screens */

@media (max-width: 1025px) {
    .list li:nth-child(30n + 21) {
        white-space: pre;
        /* honor the \n: two lines */
        line-height: 1.05;
        animation-name: focus-tall;
        /* reuse the smaller-peak keyframes from O Chemical Brothers */
    }

    /* When it's selected: shrink the rows directly above (happy2gether) and below (TNK_GRL) */
    .list[data-selected="20"] li:nth-child(30n + 20),
    .list[data-selected="20"] li:nth-child(30n + 22) {
        scale: .8;
    }

    /* When it's selected: open a little more space below it */
    .list[data-selected="20"] li:nth-child(30n + 22),
    .list[data-selected="20"] li:nth-child(30n + 23),
    .list[data-selected="20"] li:nth-child(30n + 24),
    .list[data-selected="20"] li:nth-child(30n + 25) {
        translate: 0 6px;
    }

    /* When a neighbor is selected: shrink this title and the mirrored row on the other side */
    .list[data-selected="19"] li:nth-child(30n + 21),
    /* happy2gether selected: this title (below it)... */
    .list[data-selected="19"] li:nth-child(30n + 19),
    /* ...and MA~ (above it) */
    .list[data-selected="21"] li:nth-child(30n + 21),
    /* TNK_GRL selected: this title (above it)... */
    .list[data-selected="21"] li:nth-child(30n + 23) {
        /* ...and Point <br> (below it) */
        scale: .95;
    }
}

/* each item animates based on its position inside the scroll container.
     The "view" timeline runs 0%→100% as the item crosses the scrollport;
     50% is exactly when it is centered. */
@supports (animation-timeline: view()) {
    .list li {
        animation: focus linear both;
        animation-timeline: view(block);
        animation-range: entry 0% exit 100%;
    }

    @keyframes focus {

        0%,
        100% {
            transform: scale(.42);
            opacity: .15;
        }

        25%,
        75% {
            transform: scale(.52);
            opacity: .45;
        }

        33% {
            transform: translateY(7px) scale(.67);
        }

        /* in @keyframes focus */
        50% {
            font-size: var(--peak);
            opacity: 1;
            font-weight: 600;
        }

        67% {
            transform: translateY(-7px) scale(.67);
        }
    }
}

@keyframes focus-tall {

    0%,
    100% {
        font-size: .9rem;
        opacity: .15;
    }

    25%,
    75% {
        font-size: 1.2rem;
        opacity: .45;
    }

    33% {
        transform: translateY(7px);
    }

    /* in @keyframes focus-tall (O Chemical Brothers, and Darren Aronofsky on narrow screens) */
    50% {
        font-size: var(--peak-tall);
        opacity: 1;
        font-weight: 600;
    }

    67% {
        transform: translateY(-7px);
    }
}

.list li:nth-child(30n + 24) {
    animation-name: focus-tall;
    line-height: 1.05;
}

.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    border: 0;
    background: none;
    color: #3BB2BD;
    font-size: 1rem;
    line-height: 1.05;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav.up {
    top: -40px;
}

.nav.down {
    bottom: -40px;
}

.nav:hover {
    opacity: .7;
}

.nav:active {
    transform: translateX(-50%) scale(.9);
}

.nav:focus-visible {
    outline: 2px solid #3BB2BD;
    outline-offset: 2px;
    border-radius: 6px;
}

.list:focus {
    outline: none;
}

/* no ring on mouse clicks */

.list:focus-visible {
    /* ring only for keyboard focus */
    outline: 2px solid #3BB2BD;
    outline-offset: 4px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .list {
        scroll-behavior: auto;
    }
}

@media screen and (min-height: 412px) and (max-height: 500px) {

    html,
    body {
        width: 100vw;
        height: auto;
    }

    :root {

        --row: 40px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
        --peak: clamp(1.5rem, 6.2vw, 2.25rem);
        /* each value x 0.95 */
        --peak-tall: clamp(.95rem, 4vw, 24.7px);
    }

    .middle-left {
        margin-top: 2.5rem;
        margin-left: -5rem !important;
    }



    .middle-left {
        padding-top: 1rem;

    }

    .middle-right img {
        padding-top: 0;
        max-height: 85vh !important;
    }


    .narrowheightonly {
        margin-top: -10px;

    }

}

@media screen and (max-height: 411px) {

    :root {
        --row: 37px !important;
        /* height of one item */
        --rows: 3 !important;
        /* visible rows (odd number) */
        --peak: clamp(1.5rem, 6.2vw, 2.25rem);
        /* each value x 0.95 */
        --peak-tall: clamp(.95rem, 4vw, 24.7px);
    }

    .narrowheightonly {
        margin-top: -20px;
        padding: 0rem 0 0 0;
        display: inline-block;
        position: relative;
        color: white;
        font-size: 64px;
        text-align: center;
    }

    .middle {
        padding-top: .5rem;
    }

    .middle-left {
        margin-top: 2.5rem;
        margin-left: -5rem !important;
    }

    .middle-right img {
        padding-top: 0;
        max-height: 80vh !important;
    }

}