:root {
    --bg: #ffffff;
    --fg: #000000;
    --border: #000000;
    --dot-color: rgba(0, 0, 0, 0.08);
    --container-width: 1200px;
    --section-margin: 12rem;
}

@font-face {
    font-family: 'Merica Grotesk';
    src: url('font/MericaGroteskBlack_PERSONAL_USE_ONLY.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Merica Grotesk';
    src: url('font/MericaGroteskBold_PERSONAL_USE_ONLY.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Merica Grotesk';
    src: url('font/MericaGroteskThin_PERSONAL_USE_ONLY.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Merica Grotesk';
    src: url('font/MericaGroteskRegular_PERSONAL_USE_ONLY.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

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

@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

body {
    background-color: var(--bg);
    background-image: radial-gradient(var(--dot-color) 1.5px, transparent 0);
    background-size: 32px 32px;
    color: var(--fg);
    font-family: 'Wanted Sans Variable', 'Pretendard', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 2rem;
    background: var(--bg);
    border-bottom: 2px solid var(--fg);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 28px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    filter: brightness(0);
}

/* Sections */
section {
    margin-bottom: var(--section-margin);
}

/* Hero Section */
.hero-section {
    padding-top: 15rem;
    margin-bottom: 15rem;
}

.hero-title {
    font-family: 'Merica Grotesk', sans-serif;
    font-size: clamp(3.5rem, 11vw, 9.5rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* Labels */
.label {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: var(--fg);
}

/* Awards Section - 2x2 Grid */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--fg);
    border: 2px solid var(--fg);
}

.award-card {
    background: var(--bg);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.award-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.award-logo img {
    max-width: 240px;
    max-height: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-card:hover .award-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--bg);
    border: 4px solid var(--fg);
    padding: 4rem;
    z-index: 1;
    box-shadow: 20px 20px 0 var(--fg);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
    line-height: 1;
}

.modal-year {
    display: block;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.modal-project {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.modal-award {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--fg);
}

.modal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.instagram-link {
    display: inline-block;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

.instagram-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fg);
    transition: width 0.3s ease;
}

.instagram-link:hover::after {
    width: 100%;
}

.instagram-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: var(--fg);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.instagram-icon-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--bg);
    position: relative;
}

.photo-box {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #eee;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 2px solid var(--fg);
    position: relative;
}

.photo-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.member-card:hover img {
    transform: scale(1.05);
}

.name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.university {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

/* Footer */
footer {
    padding: 6rem 0 4rem;
    border-top: 2px solid var(--fg);
    display: flex;
    justify-content: space-between;
}

footer p {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .awards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-margin: 8rem;
    }
    .hero-section {
        padding-top: 10rem;
    }
    .hero-title {
        font-size: 4rem;
    }
}
