:root {
    --default-bezier: cubic-bezier(0.06, 1.01, 0.35, 0.97);
    --page-bezier: cubic-bezier(0, 0.76, 0.35, 0.97);
}

@keyframes turnstileIn {
    from {
        transform: translateX(200px) perspective(3000px) rotateY(80deg);
    }

    to {
        transform: translateX(0) perspective(-100px) rotateY(0deg);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(600px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleOut {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body {
    margin: 0;
    font-family: "Noto Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: clip;
    background-color: #fafafa;
}

hr {
    width: 100%;
    height: 1px;
    border: 0;
    margin-bottom: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
}

button,
.a-button {
    display: block;
    padding: 0.3rem 0.7rem;
    font-size: 1rem;
    text-decoration: none !important;
    color: #000;
    letter-spacing: 0.5px;
    width: fit-content;
    border: 2px solid #000;
    transition: 0.1s;
    font-weight: 500;
}

button:hover,
.a-button:hover {
    background-color: #fff;
    cursor: pointer;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.bold-caps {
    font-weight: 900;
    text-transform: uppercase;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    text-decoration: none !important;
    gap: 1rem;
    align-items: center;
    position: relative;
    transition: 0.1s;
}

.list-item::after {
    content: "open_in_new";
    font-family: "Material Symbols Outlined";
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    font-size: 20px;
    color: #000;
    font-weight: 300;
}

.list-item:hover::after {
    opacity: 1;
}

.list-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.toggle-sidebar {
    padding: 0;
    display: flex;
    height: fit-content;
    width: fit-content;
    border-radius: 9999px;
    background: none !important;
    border: 3px solid #000;
}

.toggle-sidebar span {
    font-weight: 500;
    font-size: 2rem;
}

.sidebar {
    z-index: 999;
    top: 0;
    left: 0;
    position: fixed;
    height: 100dvh;
    padding: 100px 2rem;
    background-color: var(--default-accent);
    transform: translateX(-100%);
    transition: all 0.4s cubic-bezier(0.06, 1.01, 0.35, 0.97);
}

.sidebar a {
    margin-bottom: 2rem;
    display: block;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar a {
    font-family: "Noto Sans";
    font-size: 2.5rem;
    font-weight: 300;
}

.tile-grid {
    align-content: start;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tile-grid > *:active {
    transform: scale(0.95);
}

/* Shared Tile Properties */
.std-tile,
.person-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    color: var(--color-white);
    text-decoration: none !important;
    transition: filter 0.3s var(--page-bezier);
}

.std-tile img,
.person-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter filter 0.3s var(--page-bezier);
    z-index: -1;
}

.std-tile h4,
.person-tile h4 {
    position: absolute;
    left: 6px;
    bottom: 4px;
    font-weight: 500;
    z-index: 2;
    font-size: 0.9em;
}

/* Standard Tile */
.std-tile.wide {
    grid-column: span 2;
    aspect-ratio: auto;
}

.std-tile.more {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--default-accent);
}

.std-tile.more .material-symbols-outlined {
    font-size: 2rem;
}

.tile-info {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 6px 8px;
    background-color: var(--color-green);
    transform: translateY(100%);
    transition: 0.3s var(--page-bezier);
}

.tile-info p {
    font-size: 0.8em;
    font-weight: 500;
}

.std-tile:hover .tile-info {
    transform: translateY(0);
}

/* Person Tile */
.person-tile h4 {
    opacity: 0;
    transition: all 0.3s;
}

.person-tile:hover h4 {
    opacity: 1;
}

.person-tile:hover img {
    filter: brightness(0.85);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.intelli-grid {
    display: flex;
    gap: 48px;
    padding: 28px 20px 20px;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    animation: turnstileIn 400ms var(--page-bezier);
    transform-origin: left 50vh;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 280px;
}

.intelli-grid > .flex-column {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 421px) {
    .intelli-grid > .flex-column {
        flex: 0 0 80vw;
    }
}

@media (min-width: 800px) {
    .intelli-grid > .flex-column {
        flex: 0 0 50vw;
    }
}

@media (min-width: 1200px) {
    .intelli-grid > .flex-column {
        flex: 0 0 30vw;
    }
}

@media (min-width: 800px) {
    .intelli-grid {
        scroll-padding-left: 64px;
        padding-top: 64px;
        padding-left: 64px;
    }
}

.flex-only {
    display: flex;
    gap: 1rem;
}

.dialog-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.25);
    animation: fadeIn 350ms backwards;
    animation-delay: 500ms;
}

.dialog {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--default-accent);
}
