/*
 * Behind Design page (/behind-design/): the dark title, the lab note
 * that slides over it, the material lab.
 *
 * Read off the earlier page as it was shown, at every width; the
 * breakpoints are that page's own (900px and 1024px).
 */

html body.tcg-bd-page {
    background-color: #090909;
}

.tcg-bd {
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}


/* ---------------------------------------------------------
   TITLE
--------------------------------------------------------- */

.tcg-bd .tcg-bd-hero {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 80px clamp(28px, 6vw, 110px) 130px;
    overflow: hidden;
    background-color: #090909;
    background-image: radial-gradient(circle at 65% 35%, rgba(255, 255, 255, .06), transparent 28%), linear-gradient(135deg, #171717 0%, #0d0d0d 48%, #080808 100%);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* a faint woven grid, turned a little */
.tcg-bd .tcg-bd-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image: repeating-linear-gradient(0deg, transparent 0, transparent 7px, rgba(255, 255, 255, .024) 8px), repeating-linear-gradient(90deg, transparent 0, transparent 11px, rgba(255, 255, 255, .02) 12px);
    opacity: .22;
    transform: rotate(-4deg);
}

.tcg-bd .tcg-bd-hero__grain {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .45));
    pointer-events: none;
}

.tcg-bd .tcg-bd-hero__meta {
    position: absolute;
    left: clamp(28px, 12vw, 225px);
    bottom: 82px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .19em;
    color: rgba(241, 238, 232, .38);
}

.tcg-bd .tcg-bd-hero__meta span {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .18em;
    white-space: nowrap;
    color: rgba(241, 238, 232, .42);
}

.tcg-bd .tcg-bd-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 30px;
}

.tcg-bd .tcg-bd-hero__kicker {
    display: block;
    margin-bottom: 20px;
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: .23em;
    color: rgba(241, 238, 232, .52);
}

.tcg-bd .tcg-bd-hero__title {
    margin: 0 0 24px;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
    font-size: clamp(52px, 5.2vw, 88px);
    font-weight: 700;
    line-height: .86;
    letter-spacing: -.055em;
    text-transform: inherit;
    color: #f1eee8;
    transform: scaleX(.86);
    transform-origin: left center;
}

.tcg-bd .tcg-bd-hero__line {
    margin: 18px 0 0;
    overflow-wrap: break-word;
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: .18em;
    white-space: nowrap;
    color: rgba(241, 238, 232, .58);
}


/* ---------------------------------------------------------
   LAB NOTE
--------------------------------------------------------- */

.tcg-bd .tcg-bd-intro {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: clamp(60px, 8vw, 150px);
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 0;
    margin: -76px 0 0;
    padding: 105px clamp(30px, 8vw, 150px) 125px;
    overflow: hidden;
    border-radius: 34px 34px 0 0;
    background-color: #f1eee8;
    color: #111;
    box-shadow: rgba(0, 0, 0, .12) 0 -20px 45px;
}

/* the sheet's handle */
.tcg-bd .tcg-bd-intro::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 5;
    width: 46px;
    height: 3px;
    border-radius: 20px;
    background-color: rgba(17, 17, 17, .15);
    transform: translateX(-50%);
}

/* paper dots */
.tcg-bd .tcg-bd-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(100, 88, 72, .08) 0, rgba(100, 88, 72, .08) 1px, transparent 1.3px);
    background-size: 12px 12px;
    mix-blend-mode: multiply;
    opacity: .18;
    pointer-events: none;
}

.tcg-bd .tcg-bd-intro__copy {
    position: relative;
    z-index: 3;
    width: min(590px, 100%);
    max-width: 590px;
    margin: 0 0 0 auto;
    padding: 0;
    text-align: left;
}

.tcg-bd .tcg-bd-intro__title {
    margin: 0 0 14px;
    padding: 0;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(32px, 2.8vw, 48px);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: inherit;
    color: #111;
}

.tcg-bd .tcg-bd-intro__copy p {
    max-width: 520px;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    font-family: Lato, Arial, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(17, 17, 17, .62);
}


/* ---------------------------------------------------------
   MATERIAL LAB
--------------------------------------------------------- */

.tcg-bd .tcg-bd-lab {
    position: relative;
    z-index: 21;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 80px clamp(30px, 6vw, 105px) 110px;
    background-color: #090909;
    color: #f1eee8;
}

.tcg-bd .tcg-bd-lab__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(241, 238, 232, .12);
    font-family: Lato, Arial, sans-serif;
    font-size: 9px;
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: .2em;
    color: rgba(241, 238, 232, .36);
}

.tcg-bd .tcg-bd-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 0;
}

.tcg-bd .tcg-bd-panel__visual {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.45 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 6px;
    background-color: #161616;
    cursor: none;
}

.tcg-bd .tcg-bd-panel__texture {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .22s ease-out;
}

.tcg-bd .tcg-bd-panel__visual:hover .tcg-bd-panel__texture {
    filter: contrast(1.08) brightness(1.03);
    transform: scale(1.08);
}

.tcg-bd .tcg-bd-panel--thread .tcg-bd-panel__visual:hover .tcg-bd-panel__texture {
    transform: scale(1.06);
}

/* the magnifier that follows the mouse (assets/behind-page.js) */
.tcg-bd .tcg-bd-panel__lens {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: 145px;
    height: 145px;
    margin: -72.5px 0 0 -72.5px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .024);
    box-shadow: rgba(0, 0, 0, .22) 0 12px 35px, rgba(0, 0, 0, .1) 0 0 0 1px inset;
    -webkit-backdrop-filter: brightness(1.08) contrast(1.1);
    backdrop-filter: brightness(1.08) contrast(1.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tcg-bd .tcg-bd-panel__visual:hover .tcg-bd-panel__lens {
    opacity: 1;
}

.tcg-bd .tcg-bd-panel__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 35px;
    min-width: 0;
    min-height: 0;
    padding: 22px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 6px;
    background-color: #111;
    transition: border-color .28s ease, background .28s ease, transform .28s ease;
}

.tcg-bd .tcg-bd-panel:hover .tcg-bd-panel__info {
    border-color: rgba(255, 255, 255, .1);
    background-color: #141414;
    transform: translateY(-2px);
}

.tcg-bd .tcg-bd-panel__number {
    display: block;
    align-self: flex-start;
    margin: 0 0 28px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .18em;
    color: rgba(241, 238, 232, .3);
}

.tcg-bd .tcg-bd-panel__info > div {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.tcg-bd .tcg-bd-panel__label {
    display: block;
    margin: 0 0 9px;
    font-family: Lato, Arial, sans-serif;
    font-size: 8px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .19em;
    color: rgba(241, 238, 232, .42);
}

.tcg-bd .tcg-bd-panel__title {
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 0 0 13px;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    font-size: clamp(23px, 1.75vw, 32px);
    font-weight: 600;
    line-height: .92;
    letter-spacing: -.035em;
    text-transform: inherit;
    color: #f1eee8;
}

.tcg-bd .tcg-bd-panel--ink .tcg-bd-panel__title {
    font-size: clamp(22px, 1.65vw, 30px);
}

.tcg-bd .tcg-bd-panel--stitch .tcg-bd-panel__title {
    font-size: clamp(21px, 1.55vw, 28px);
    letter-spacing: -.04em;
}

.tcg-bd .tcg-bd-panel__line {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
    white-space: normal;
    font-family: Lato, Arial, sans-serif;
    font-size: 7px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: .14em;
    color: rgba(241, 238, 232, .38);
}


/* ---------------------------------------------------------
   TABLETS AND PHONES
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .tcg-bd .tcg-bd-hero__meta span,
    .tcg-bd .tcg-bd-hero__kicker,
    .tcg-bd .tcg-bd-lab__head span {
        font-size: 10.5px;
    }

    .tcg-bd .tcg-bd-hero__line {
        font-size: 11px;
        line-height: 1.5;
    }

    .tcg-bd .tcg-bd-panel__number,
    .tcg-bd .tcg-bd-panel__label,
    .tcg-bd .tcg-bd-panel__line {
        font-size: 10px;
    }
}

@media (max-width: 900px) {

    .tcg-bd .tcg-bd-hero {
        position: relative;
        height: 88vh;
        min-height: 88vh;
        padding: 70px 22px 95px;
        background-attachment: scroll;
    }

    .tcg-bd .tcg-bd-hero__meta {
        left: 22px;
        bottom: 60px;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .tcg-bd .tcg-bd-hero__title {
        font-size: 52px;
    }

    .tcg-bd .tcg-bd-intro {
        gap: 35px;
        margin: -42px 0 0;
        border-radius: 24px 24px 0 0;
    }

    .tcg-bd .tcg-bd-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tcg-bd .tcg-bd-panel__visual {
        aspect-ratio: 1 / 1;
        cursor: auto;
    }

    .tcg-bd .tcg-bd-panel__lens {
        display: none;
    }

    .tcg-bd .tcg-bd-panel__info {
        min-height: 145px;
    }

    .tcg-bd .tcg-bd-panel__title,
    .tcg-bd .tcg-bd-panel--ink .tcg-bd-panel__title {
        font-size: 26px;
    }

    .tcg-bd .tcg-bd-panel--stitch .tcg-bd-panel__title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tcg-bd .tcg-bd-panel__texture,
    .tcg-bd .tcg-bd-panel__info {
        transition: none;
    }
}
