* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    color: #111111;
    font-family: Helvetica, Arial, sans-serif;
}

button,
a {
    color: inherit;
    font: inherit;
}


/* 固定導覽列 */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    padding: 24px 36px;

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

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.site-header a {
    text-decoration: none;
}

.site-name {
    font-size: 14px;
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    font-size: 14px;
    letter-spacing: 1px;
}


/* 首頁 */

.home-section {
    position: relative;

    width: 100%;
    min-height: 100vh;

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

    overflow: visible;
}

.home-background {
    position: absolute;
    top: 62px;
    left: 50%;

    width: 108vw;
    height: calc(100vh - 80px);

    background-image: url("images/chen-background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: var(--chen-opacity, 0);

    transform:
        translateX(-50%)
        scale(var(--chen-scale, 0.94));

    pointer-events: none;
    z-index: 0;

    transition:
        opacity 1.6s ease,
        transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-content {
    position: relative;
    z-index: 2;

    text-align: center;
}

.home-content h1 {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 6px;
}

.home-content p {
    margin-top: 18px;

    color: #777777;

    font-size: 18px;
    letter-spacing: 4px;
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    bottom: 36px;
    z-index: 2;

    transform: translateX(-50%);

    text-decoration: none;
    font-size: 20px;

    animation: arrowFloat 1.8s ease-in-out infinite;
}

@keyframes arrowFloat {
    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}


/* 通用區塊 */

.section-heading {
    min-height: 70vh;
    padding: 120px 36px 60px;

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

    text-align: center;
}

.section-heading h2 {
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 300;
    letter-spacing: 3px;
}

@media (max-width: 700px) {
    .section-heading h2 {
        font-size: 38px;
        letter-spacing: 2px;
    }
}

.section-heading h3 {
    margin-top: 24px;

    font-size: 24px;
    font-weight: 300;
}


/* 作品縮圖 */

.project-preview {
    min-height: 100vh;
    padding: 100px 8vw;

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

.project-button {
    width: min(900px, 100%);

    border: 0;
    background: transparent;

    cursor: pointer;
    text-align: left;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;

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

    background: #eeeeee;
    color: #777777;
}

.project-button h3 {
    margin-top: 18px;

    font-size: 20px;
    font-weight: 400;
}

.section-arrow {

    min-height: 30vh;

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

    font-size: 20px;

    animation: sectionArrowFloat 1.8s ease-in-out infinite;

    will-change: transform;

}


@keyframes sectionArrowFloat {

    0%,
    100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(8px);
    }

}

/* Exhibitions 與 Info */

.content-section {
    padding: 80px 8vw 160px;
}

.exhibition-list {
    width: min(1000px, 100%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;
}

.text-link {
    padding: 25px 0;

    border: 0;
    border-bottom: 1px solid #dddddd;
    background: transparent;

    cursor: pointer;
    text-align: left;
    font-size: clamp(20px, 3vw, 38px);
    font-weight: 300;
}

.info-section {
    padding-bottom: 120px;
}

.info-text,
.info-group {
    width: min(850px, 100%);
    margin: 0 auto 100px;

    font-size: 18px;
    line-height: 1.7;
}

.info-group h3 {
    margin-bottom: 30px;

    font-size: 28px;
    font-weight: 400;
}

.info-group p {
    margin-bottom: 26px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact a {
    margin-bottom: 12px;
    text-decoration: none;
}


/* 淡入淡出動畫 */

.reveal {
    opacity: 0;
    transform: translateY(50px);

    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* 作品彈出頁，之後會使用 */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;

    overflow-y: auto;
    background: #ffffff;
}

.project-modal.is-open {
    display: block;
}

.close-modal {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 201;

    border: 0;
    background: transparent;

    cursor: pointer;
    font-size: 38px;
    font-weight: 200;
}

.modal-content {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 120px 36px;
}


/* 手機版 */

@media (max-width: 700px) {
    .site-header {
        padding: 20px;
    }

    .site-name {
        font-size: 11px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .home-content h1 {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .home-content p {
        font-size: 14px;
    }

    .home-background {
        width: 35vw;
    }

    .project-preview {
        padding: 90px 20px;
    }

    .content-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.home-background {
    will-change: opacity;
}

.home-content {
    will-change: opacity, transform;
}

.scroll-arrow {
    will-change: opacity;
}