* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-width: 1200px;
    background: #f0eee8;
    color: #f5f5f2;
    font-family: "Pretendard", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
/* =========================
   COMMON HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    height: 90px;

    background: rgba(255, 255, 255, 0.08);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.15);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 1200px;
    height: 100%;

    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;

    width: 120px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.nav a {
    position: relative;

    color: rgba(255, 255, 255, 0.85);

    font-size: 15px;
    line-height: 1;
    font-weight: 600;

    transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
    color: #fff;
}

.nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -9px;

    width: 100%;
    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}
.portfolio-page {
    padding-top: 0;
}


.portfolio-inner {
    position: relative;
    z-index: 2;
    width: 1200px;
    margin: 0 auto;
}

.portfolio-hero {
    position: relative;
    padding: 190px 0 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 8%,
            rgba(255, 255, 255, .32),
            transparent 30%
        ),
        radial-gradient(
            circle at 18% 88%,
            rgba(69, 91, 84, .24),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #5f6a66 0%,
            #7d8782 48%,
            #a4a39b 100%
        );
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .28;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eyebrow,
.project-total {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .16em;
}

.project-total span {
    color: #fff;
}

.portfolio-hero h1 {
    margin-top: 38px;
    font-size: 132px;
    line-height: .88;
    font-weight: 900;
    letter-spacing: -.08em;
}

.filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 76px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.filter-tabs button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .42);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .25s ease, background .25s ease;
}

.filter-tabs button:first-child {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.filter-tabs button span {
    font-size: 10px;
    color: rgba(255, 255, 255, .3);
}

.filter-tabs button::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: -1px;
    left: 20px;
    height: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
}

.filter-tabs button:hover,
.filter-tabs button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .045);
}

.filter-tabs button.is-active::after {
    transform: scaleX(1);
}

.portfolio-list {
    padding: 72px 0 140px;
    background: #e8e8e4;
    color: #111312;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 64px;
}

.portfolio-card {
    display: block;
    min-width: 0;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.portfolio-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #d8d6d0;
}

.portfolio-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, .08);
    pointer-events: none;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    filter: saturate(.9);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.portfolio-card__view {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(5, 6, 6, .46);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.055);
    filter: saturate(1);
}

.portfolio-card:hover .portfolio-card__view {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card__info {
    padding-top: 18px;
}

.portfolio-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.portfolio-card__type,
.portfolio-card__date {
    color: rgba(17, 19, 18, .48);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portfolio-card__title {
    margin-top: 13px;
    color: #111312;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.035em;
}

.portfolio-card__role {
    margin-top: 10px;
    color: rgba(17, 19, 18, .58);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-card img,
    .portfolio-card__view,
    .filter-tabs button::after {
        transition-duration: .01ms;
    }
}