@font-face {
    font-family: "Courier New";
    src: local("CourierNewPSMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-ItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: italic;
    font-display: block;
}

@font-face {
    font-family: "Courier New";
    src: local("CourierNewPS-BoldItalicMT"), url("/fonts/CutiveMono-Regular.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: block;
}


.contact-title {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    width: 72%;
    max-width: 1100px;
    color: #383834;
    font-family: "Blue Screen", monospace;
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    z-index: 5;
}

.contact-title span {
    display: inline;
}

.contact-back {
    position: absolute;
    left: 0;
    top: -4px;
    color: #383834;
    text-decoration: none;
    font-family: "Blue Screen", monospace;
    font-size: 28px;
    font-weight: normal;
    line-height: 1;
    z-index: 6;
}

.contact-back:hover {
    color: #33332d;
}

.contact-panel {
    position: absolute;
    top: 92px;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.contact-description {
    margin: 0;
    color: #080908;
    font-family: "Blue Screen", monospace;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .4px;
    text-align: center;
}

.contact-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 22px;
    margin: 12px 0 8px;
    font-family: "Blue Screen", monospace;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #080908;
}

.contact-sort {
    margin: 0;
    padding: 2px 0;
    border: none;
    background: transparent;
    color: #080908;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    opacity: .5;
    -webkit-tap-highlight-color: transparent;
}

.contact-sort:hover,
.contact-sort:focus-visible {
    opacity: .85;
    outline: none;
}

.contact-sort[aria-pressed="true"] {
    opacity: 1;
}

.contact-sort::before {
    content: "[ ";
    visibility: hidden;
}

.contact-sort::after {
    content: " ]";
    visibility: hidden;
}

.contact-sort[aria-pressed="true"]::before,
.contact-sort[aria-pressed="true"]::after {
    visibility: visible;
}

.contact-num {
    font-family: "Courier New", Courier, monospace;
    font-size: .8em;
    letter-spacing: 1px;
}


.contact-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 6px;
    padding: 2px 0 4px;
}

.contact-swatches[hidden] {
    display: none;
}

.contact-swatch {
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: none;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(8, 9, 8, .55);
    opacity: .6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity .2s ease;
}

.contact-swatch::before {
    content: "";
    position: absolute;
    inset: -6px -3px;
}

.contact-swatch:hover,
.contact-swatch:focus-visible {
    opacity: .9;
    outline: none;
}

.contact-swatch.is-active {
    opacity: 1;
    outline: 1px solid #080908;
    outline-offset: 2px;
}


.contact-sheet {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 10px 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    grid-auto-rows: max-content;
    gap: 3px;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #080908 transparent;
}

.contact-gap {
    aspect-ratio: 1 / 1;
}

.contact-heading {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 14px 0 4px;
    padding: 2px 8px 1px;
    line-height: 1.15;
    background: rgba(8, 9, 8, .72);
    color: #d6d6d2;
    font-family: "Blue Screen", monospace;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-heading:first-child {
    margin-top: 2px;
}

.contact-heading span {
    color: #a4a4a0;
}

.contact-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    border: none;
    background: #11120f;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.contact-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 1;
    filter: none;
    transition: transform .2s ease;
}

.contact-tile:hover img,
.contact-tile:focus-visible img {
    transform: scale(1.08);
}

.contact-tile:focus-visible {
    outline: 1px solid #d0d0cc;
    outline-offset: -1px;
    z-index: 1;
}

.contact-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(8, 9, 8, .96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.contact-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-lightbox-image-container {
    position: absolute;
    top: calc(5vh + 15px);
    right: 30px;
    bottom: 150px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.contact-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.contact-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 108px;
    padding: 0 20px;
    color: #92928c;
    font-family: "Blue Screen", monospace;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

.contact-lightbox-link {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    padding: 4px 8px;
    color: #a8a8a3;
    font-family: "Blue Screen", monospace;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.contact-lightbox-link:hover,
.contact-lightbox-link:focus-visible {
    color: #d0d0cc;
    outline: none;
}

.contact-lightbox button {
    position: absolute;
    border: none;
    background: none;
    color: #a8a8a3;
    font-family: "Courier New", Courier, monospace;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.contact-lightbox button:hover,
.contact-lightbox button:focus-visible {
    color: #d0d0cc;
    outline: none;
}

.contact-lightbox-close {
    top: 25px;
    right: 30px;
    font-size: 34px !important;
}

.contact-lightbox-previous {
    left: calc(50% - 95px);
    bottom: 30px;
    padding: 12px 22px;
    color: #92928c !important;
}

.contact-lightbox-next {
    left: calc(50% + 17px);
    bottom: 30px;
    padding: 12px 22px;
    color: #92928c !important;
}

@media screen and (max-width: 600px) {
    .contact-title {
        top: 58px;
        width: 88%;
        font-size: 20px;
    }

    .contact-back {
        top: -3px;
        font-size: 24px;
    }

    .contact-panel {
        top: 90px;
        bottom: 14px;
        width: 94%;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-controls {
        font-size: 14px;
        letter-spacing: 1px;
        gap: 4px 16px;
        margin: 10px 0 6px;
    }

    .contact-swatches {
        gap: 12px;
    }

    .contact-swatch {
        width: 22px;
        height: 22px;
    }

    .contact-sheet {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        padding: 5px;
        gap: 3px;
    }

    .contact-heading {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .contact-lightbox-image-container {
        right: 12px;
        left: 12px;
        bottom: 160px;
    }

    .contact-lightbox-caption {
        bottom: 118px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .contact-lightbox-link {
        bottom: 88px;
        font-size: 12px;
    }

    .contact-lightbox-close {
        top: 18px;
        right: 20px;
        font-size: 30px !important;
    }

    .contact-lightbox-previous {
        left: calc(50% - 75px);
        bottom: 26px;
        padding: 14px 22px;
    }

    .contact-lightbox-next {
        left: calc(50% + 11px);
        bottom: 26px;
        padding: 14px 22px;
    }
}

@media screen and (max-width: 380px) {
    .contact-title {
        font-size: 17px;
    }

    .contact-back {
        font-size: 22px;
    }

    .contact-description {
        font-size: 13px;
    }

    .contact-controls {
        font-size: 13px;
    }

}