:root {
    --white: #ffffff;
    --surface: #f9f9f9;
    --black: #000000;
    --ink: #111111;
    --grey: #767676;
    --line: #e5e5e5;

    --font-main: 'Inter', Arial, Helvetica, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 56px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.exit-link,
.header-link {
    white-space: nowrap;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.exit-link:hover,
.header-link:hover { color: var(--grey); }

.header-nav {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
}

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */

.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 112px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 120px);
}

.eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--grey);
}

.page-title {
    margin-top: 24px;
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--black);
}

/* --------------------------------------------------------------------------
   Project list
   -------------------------------------------------------------------------- */

.project-list {
    margin-top: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 64px minmax(160px, 1fr) 2fr 40px;
    align-items: baseline;
    gap: 24px;
    padding: clamp(24px, 3vw, 36px) 8px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.project-row:hover { background: var(--surface); padding-left: 20px; }

.project-index {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--grey);
}

.project-name {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--black);
}

.project-desc {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 300;
    color: var(--grey);
}

.project-arrow {
    justify-self: end;
    font-size: 18px;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-row:hover .project-arrow { opacity: 1; transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Media
   -------------------------------------------------------------------------- */

.media-section { margin-top: clamp(64px, 9vw, 128px); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 32px);
    margin-top: 24px;
}

.media-panel {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
}

.contain-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.3s ease;
}

.play-btn::before {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent var(--black);
    transition: border-color 0.2s ease;
}

.play-btn:hover { background: var(--black); }
.play-btn:hover::before { border-left-color: var(--white); }

.playing .play-btn { opacity: 0; pointer-events: none; }

.media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px 14px;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .project-row {
        grid-template-columns: 44px 1fr;
        align-items: start;
        gap: 8px 16px;
    }

    .project-desc { grid-column: 2; }

    .project-arrow { display: none; }

    .project-row:hover { padding-left: 8px; }

    .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .site-header { flex-wrap: wrap; row-gap: 10px; }

    .header-nav { gap: 18px; }
}

@media (max-width: 480px) {
    .play-btn { width: 52px; height: 52px; }
}
