/*
----------------------------------------
RESET
----------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/*
----------------------------------------
BASE TYPOGRAPHY
----------------------------------------
*/

body {
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/*
----------------------------------------
GLOBAL LAYOUT
----------------------------------------
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 2rem;
}

.page {
    padding: 4rem 0;
}

/*
----------------------------------------
HEADER
----------------------------------------
*/

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.5rem 2rem;

    font-size: 1rem;
    z-index: 100;
}

.site-logo img {
    display: block;
    max-height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    position: relative;
}

/*
----------------------------------------
LINK UNDERLINE HOVER
----------------------------------------
*/

.site-nav a::after,
.site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-footer a:hover::after {
    width: 100%;
}

/*
----------------------------------------
LANGUAGE SWITCHER
----------------------------------------
*/

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.is-active {
    font-weight: 600;
}

/*
----------------------------------------
GLOBAL BUTTON SYSTEM
----------------------------------------
*/

.button {
    display: inline-block;

    padding: 0.8rem 1.4rem;

    border: 1px solid currentColor;

    font-size: 1rem;
    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/*
----------------------------------------
CONTENT TYPOGRAPHY
----------------------------------------
*/

.page h1 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.intro {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.content {
    line-height: 1.7;
}

/*
----------------------------------------
PROJECTS OVERVIEW
----------------------------------------
*/

.projects-header {
    margin-bottom: 3rem;
}

.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    flex-wrap: wrap;

    margin-bottom: 3rem;
}

/*
----------------------------------------
PROJECTS FILTERS
----------------------------------------
*/

.project-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-filters a {
    padding: 0.45rem 0.85rem;

    border: 1px solid black;
    border-radius: 999px;

    font-size: 0.9rem;
    line-height: 1;
}

.project-filters a.active {
    background: black;
    color: white;
}

/*
----------------------------------------
PROJECTS VIEW SWITCH
----------------------------------------
*/

.view-switch {
    display: inline-flex;

    border: 1px solid black;
    border-radius: 999px;

    overflow: hidden;
}

.view-switch a {
    padding: 0.45rem 0.85rem;

    font-size: 0.9rem;
    line-height: 1;
}

.view-switch a.active {
    background: black;
    color: white;
}

/*
----------------------------------------
PROJECTS GRID VIEW
----------------------------------------
*/

.projects-view.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card-media {
    position: relative;

    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-card-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-card-slides img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transition: opacity 1.5s ease;
}

.project-card-slides img.active {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    left: 1rem;
    bottom: 1rem;

    z-index: 5;

    color: white;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.project-client {
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

/*
----------------------------------------
PROJECTS LIST VIEW
----------------------------------------
*/

.projects-view.list {
    border-top: 1px solid black;
}

.project-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 5rem;

    padding: 1rem 0;

    border-bottom: 1px solid black;

    color: inherit;
}

.project-list-row div {
    color: black;
}

.project-list-row div:last-child {
    text-align: right;
}

/*
----------------------------------------
PROJECT CARD
----------------------------------------
*/

.project-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.project-meta {
    margin-top: 0.75rem;
}

/*
----------------------------------------
PROJECT DETAIL
----------------------------------------
*/

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 3rem;
}

.project-header h1 {
    margin: 0 0 1.25rem 0;

    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.project-header-left div {
    margin-bottom: 0.35rem;
}

.project-close {
    font-size: 2rem;
    line-height: 1;
}

/*
----------------------------------------
PROJECT SLIDER
----------------------------------------
*/

.project-slider {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4rem;
}

.project-slides {
    width: 100%;
    height: 40vw;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.project-slide {
    position: absolute;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;
}

.project-slide.active {
    display: flex;
}

.project-slide img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.slider-nav {
    background: none;
    border: none;

    font-size: 2rem;
    cursor: pointer;

    padding: 1rem;
}

/*
----------------------------------------
PROJECT CONTENT
----------------------------------------
*/

.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.project-description {
    max-width: 70ch;
}

.project-credits {
    margin-top: 3rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-meta h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;

    font-size: 1rem;
}

.project-meta ul {
    margin: 0 0 2rem 0;
    padding: 0;
    list-style: none;
}

.project-meta li {
    margin-bottom: 0.35rem;
}

.project-meta a {
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.meta-group h2 {
    margin: 0 0 0.75rem 0;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.meta-group p {
    margin: 0;
}

/*
----------------------------------------
FOOTER
----------------------------------------
*/

.site-footer {
    padding: 2rem;
    font-size: 1rem;
}
