/*
 * Basement page (/basement/): the opening picture, the four folders,
 * a few words about Basement.
 *
 * Read off the earlier page as it was shown, at every width; the
 * breakpoints are that page's own (800px and 1024px).
 */

html body.tcg-bm-page {
    background-color: #0d0d0d;
}

.tcg-bm {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #0d0d0d;
    color: #f1eee8;
}


/* ---------------------------------------------------------
   OPENING PICTURE
--------------------------------------------------------- */

.tcg-bm .tcg-bm-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 72vh;
    min-height: 640px;
    margin: 0;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .62) 100%), var(--tcg-bm-hero, none);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.tcg-bm .tcg-bm-hero__shade {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .04) 0%, rgba(0, 0, 0, .04) 35%, rgba(0, 0, 0, .5) 100%);
    pointer-events: none;
}

.tcg-bm .tcg-bm-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    text-align: center;
    transform: translateY(10px);
}

.tcg-bm .tcg-bm-hero__label {
    display: block;
    margin-bottom: 17px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(241, 238, 232, .65);
    opacity: .78;
}

.tcg-bm .tcg-bm-hero__title {
    margin: 0;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
    font-size: clamp(48px, 5.1vw, 88px);
    font-weight: 700;
    font-stretch: condensed;
    line-height: .88;
    letter-spacing: -.055em;
    text-transform: inherit;
    color: #f1eee8;
    text-shadow: rgba(0, 0, 0, .22) 0 4px 18px;
    transform: scaleX(.84);
    transform-origin: center center;
}

.tcg-bm .tcg-bm-hero__line {
    margin: 18px 0 0;
    overflow-wrap: break-word;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #f1eee8;
    opacity: .88;
}


/* ---------------------------------------------------------
   FOLDERS
--------------------------------------------------------- */

.tcg-bm .tcg-bm-folders {
    position: relative;
    display: block;
    width: 100%;
    padding: 100px clamp(35px, 8vw, 150px) 115px;
    background-color: #0b0b0b;
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .024), transparent 40%);
}

.tcg-bm .tcg-bm-folders__inner {
    display: flex;
    flex-direction: column;
    gap: 42px;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.tcg-bm .tcg-bm-folder {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 24px;
    align-items: center;
    width: 100%;
    background-color: transparent;
    color: #111;
    text-decoration: none;
    transition: all .1s ease;
}

.tcg-bm a.tcg-bm-folder:hover,
.tcg-bm a.tcg-bm-folder:focus {
    color: #111;
    text-decoration: none;
}

.tcg-bm .tcg-bm-folder--ways {
    cursor: default;
    transition: none;
}

.tcg-bm .tcg-bm-folder__index {
    position: relative;
    align-self: start;
    padding-top: 18px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .42);
    opacity: .72;
}

.tcg-bm .tcg-bm-folder__index::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-left: 10px;
    vertical-align: middle;
    background-color: rgba(255, 255, 255, .18);
}

.tcg-bm .tcg-bm-folder__paper {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 205px;
    padding: 53px 58px 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 2px 5px 4px 3px;
    background-color: #cbb696;
    background-image: linear-gradient(105deg, rgba(255, 255, 255, .1) 0%, transparent 18%, rgba(0, 0, 0, .024) 46%, rgba(255, 255, 255, .043) 72%, rgba(0, 0, 0, .07) 100%);
    color: #111;
    box-shadow: rgba(255, 255, 255, .3) 0 1px 0 inset, rgba(80, 55, 30, .12) 0 -2px 3px inset, rgba(0, 0, 0, .1) 0 4px 4px, rgba(0, 0, 0, .2) 0 16px 30px;
    transform: perspective(1200px) rotateX(.25deg) rotateZ(-.08deg);
    transform-origin: center center;
    transition: transform .48s cubic-bezier(.16, .8, .24, 1), box-shadow .48s ease, filter .48s ease;
}

.tcg-bm .tcg-bm-folder:nth-child(2) .tcg-bm-folder__paper {
    transform: perspective(1200px) rotateX(.2deg) rotateZ(.1deg);
}

.tcg-bm .tcg-bm-folder:nth-child(3) .tcg-bm-folder__paper {
    transform: perspective(1200px) rotateX(.2deg) rotateZ(-.13deg);
}

.tcg-bm .tcg-bm-folder:nth-child(4) .tcg-bm-folder__paper {
    transform: perspective(1200px) rotateX(.15deg) rotateZ(.07deg);
}

.tcg-bm .tcg-bm-folder--ways .tcg-bm-folder__paper {
    align-items: center;
}

/* the paper's grain */
.tcg-bm .tcg-bm-folder__paper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: repeating-linear-gradient(3deg, rgba(70, 48, 27, .055) 0, rgba(70, 48, 27, .055) 1px, transparent 1px, transparent 5px), repeating-linear-gradient(92deg, rgba(255, 255, 255, .043) 0, rgba(255, 255, 255, .043) 1px, transparent 1px, transparent 8px);
    opacity: .36;
    pointer-events: none;
}

/* the sheets underneath */
.tcg-bm .tcg-bm-folder__paper::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -4px;
    z-index: -1;
    height: 5px;
    background-color: #9c8565;
    opacity: .55;
    filter: blur(.3px);
    transition: bottom .4s ease, opacity .4s ease;
}

.tcg-bm .tcg-bm-folder__tab {
    position: absolute;
    top: -22px;
    left: 0;
    z-index: 0;
    width: 190px;
    height: 31px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 0;
    border-radius: 7px 18px 0 0;
    background-image: linear-gradient(105deg, #d2bea0 0%, #c4aa84 100%);
    box-shadow: rgba(255, 255, 255, .26) 0 1px 0 inset, rgba(0, 0, 0, .1) 2px -3px 7px;
}

.tcg-bm .tcg-bm-folder__copy {
    position: relative;
    z-index: 3;
}

.tcg-bm .tcg-bm-folder__title {
    position: relative;
    z-index: 3;
    margin: 0 0 13px;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(36px, 3.7vw, 62px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.045em;
    text-transform: inherit;
    color: #111;
    transform: scaleX(.91);
    transform-origin: left center;
}

.tcg-bm .tcg-bm-folder__line {
    position: relative;
    z-index: 3;
    margin: 0;
    overflow-wrap: break-word;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, .72);
    opacity: .76;
}

.tcg-bm .tcg-bm-folder__arrow {
    position: absolute;
    right: 38px;
    bottom: 34px;
    z-index: 10;
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    color: #111;
    opacity: .72;
    transition: transform .35s cubic-bezier(.16, .8, .24, 1), opacity .35s ease;
}

/* the corner that folds over */
.tcg-bm .tcg-bm-folder__fold {
    position: absolute;
    top: -1px;
    right: -1px;
    z-index: 8;
    width: 0;
    height: 0;
    border: 0 solid transparent;
    filter: drop-shadow(rgba(0, 0, 0, .26) -8px 10px 8px);
    transition: border-width .5s cubic-bezier(.16, .8, .24, 1), filter .5s ease;
}

.tcg-bm .tcg-bm-folder:hover .tcg-bm-folder__paper {
    transform: perspective(1200px) translate3d(7px, -9px, 20px) rotateX(1deg) rotateZ(-.18deg);
    filter: brightness(1.055) saturate(.93);
    box-shadow: rgba(255, 255, 255, .36) 0 1px 0 inset, rgba(80, 55, 30, .1) 0 -2px 3px inset, rgba(0, 0, 0, .12) -5px 9px 10px, rgba(0, 0, 0, .36) 0 30px 55px;
}

.tcg-bm .tcg-bm-folder:hover .tcg-bm-folder__paper::after {
    bottom: -7px;
    opacity: .8;
}

.tcg-bm .tcg-bm-folder:hover .tcg-bm-folder__fold {
    border-width: 0 0 88px 88px;
    border-color: transparent transparent #79664e;
    filter: drop-shadow(rgba(0, 0, 0, .31) -13px 14px 11px);
}

.tcg-bm .tcg-bm-folder:hover .tcg-bm-folder__arrow {
    opacity: 1;
    transform: translateX(10px);
}

/* Archive: two ways in */
.tcg-bm .tcg-bm-folder__ways {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 34px;
    margin-top: 24px;
}

.tcg-bm .tcg-bm-folder__ways a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 105px;
    padding: 7px 0;
    border-top: 1px solid rgba(17, 17, 17, .2);
    border-bottom: 1px solid rgba(17, 17, 17, .38);
    background-color: transparent;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .14em;
    color: #111;
    text-decoration: none;
    transition: padding-left .3s ease, padding-right .3s ease, background .3s ease;
}

.tcg-bm .tcg-bm-folder__ways a:hover,
.tcg-bm .tcg-bm-folder__ways a:focus {
    gap: 26px;
    padding-left: 10px;
    padding-right: 10px;
    border-color: #111;
    background-color: rgba(17, 17, 17, .06);
    color: #111;
    text-decoration: none;
}

.tcg-bm .tcg-bm-folder__ways span {
    font-size: 17px;
    line-height: 1;
}


/* ---------------------------------------------------------
   ABOUT
--------------------------------------------------------- */

.tcg-bm .tcg-bm-about {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    min-height: 250px;
    margin-top: 0;
    padding: 55px clamp(55px, 10vw, 190px) 60px clamp(35px, 8vw, 150px);
    border-top: 1px solid rgba(255, 255, 255, .06);
    background-color: #101010;
    text-align: left;
}

.tcg-bm .tcg-bm-about::before {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(55px, 10vw, 190px);
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, .2);
}

.tcg-bm .tcg-bm-about__label {
    display: block;
    margin: 0 0 13px;
    font-family: Lato, Arial, sans-serif;
    font-size: 7px;
    font-weight: 300;
    letter-spacing: .24em;
    text-align: right;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .36);
}

.tcg-bm .tcg-bm-about__title {
    width: 100%;
    max-width: 440px;
    margin: 0 0 15px;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(21px, 1.7vw, 29px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.035em;
    text-align: right;
    text-transform: inherit;
    color: rgba(241, 238, 232, .92);
}

.tcg-bm .tcg-bm-about__text {
    width: 100%;
    max-width: 390px;
    margin: 0;
    overflow-wrap: break-word;
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.65;
    text-align: right;
    color: rgba(241, 238, 232, .43);
    opacity: .85;
}


/* ---------------------------------------------------------
   TABLETS AND PHONES
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-bm .tcg-bm-hero__label,
    .tcg-bm .tcg-bm-folder__line,
    .tcg-bm .tcg-bm-about__label {
        font-size: 10.5px;
    }

    .tcg-bm .tcg-bm-hero__line {
        font-size: 11px;
        line-height: 1.5;
    }

    .tcg-bm .tcg-bm-folder__index {
        font-size: 10px;
    }

    .tcg-bm .tcg-bm-folder__ways a {
        min-height: 44px;
        font-size: 11px;
    }

    .tcg-bm .tcg-bm-about {
        align-items: flex-start;
        padding: 55px clamp(35px, 8vw, 150px) 60px;
    }

    .tcg-bm .tcg-bm-about::before {
        left: clamp(35px, 8vw, 150px);
        right: auto;
    }

    .tcg-bm .tcg-bm-about__label {
        text-align: left;
    }

    .tcg-bm .tcg-bm-about__title {
        text-align: left;
    }

    .tcg-bm .tcg-bm-about__text {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }
}

@media (max-width: 800px) {

    .tcg-bm .tcg-bm-hero {
        height: 58vh;
        min-height: 500px;
    }

    .tcg-bm .tcg-bm-hero__title {
        font-size: clamp(43px, 13vw, 68px);
    }

    .tcg-bm .tcg-bm-folder {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tcg-bm .tcg-bm-folder__index {
        margin-bottom: 4px;
    }

    .tcg-bm .tcg-bm-folder__paper {
        min-height: 165px;
        padding: 42px 25px 27px;
    }

    .tcg-bm .tcg-bm-folder__tab {
        top: -18px;
        width: 125px;
        height: 24px;
    }

    .tcg-bm .tcg-bm-folder__ways {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        width: 100%;
    }

    .tcg-bm .tcg-bm-folder__ways a {
        width: 100%;
    }

    .tcg-bm .tcg-bm-about {
        min-height: 220px;
        padding: 52px 22px 55px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tcg-bm .tcg-bm-folder__paper,
    .tcg-bm .tcg-bm-folder__paper::after,
    .tcg-bm .tcg-bm-folder__arrow,
    .tcg-bm .tcg-bm-folder__fold,
    .tcg-bm .tcg-bm-folder__ways a {
        transition: none;
    }
}
