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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 6rem;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color 0.2s ease;
}

.back:hover {
    color: #1a1a1a;
}

.back svg {
    width: 14px;
    height: 14px;
}

.project-header {
    margin-bottom: 2.5rem;
}

.project-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.75rem;
}

.project-headline {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.slider {
    position: relative;
    margin-bottom: 3rem;
}

.slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    aspect-ratio: 4 / 3;
    background: #f1f1f1;
}

.slides::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f1f1;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.slider:hover .nav-btn,
.nav-btn:focus-visible {
    opacity: 1;
}

.nav-btn:hover {
    background: #fff;
}

.nav-btn.prev {
    left: 0.75rem;
}

.nav-btn.next {
    right: 0.75rem;
}

.nav-btn svg {
    width: 16px;
    height: 16px;
}

.dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dot.active {
    background: #1a1a1a;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ececec;
}

.project-meta-grid dt {
    color: #888;
    font-weight: 400;
}

.project-meta-grid dd {
    color: #1a1a1a;
}

.project-description p {
    font-size: 1rem;
    color: #2a2a2a;
    margin-bottom: 1.1rem;
}

.project-description p:last-child {
    margin-bottom: 0;
}

.project-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ececec;
}

.project-links h2 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1.25rem;
}

.project-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    transition: all 0.2s ease;
    width: fit-content;
    max-width: 100%;
}

.project-links a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.project-links svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.link-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .page {
        padding: 1.5rem 1.25rem 4rem;
    }

    .project-headline {
        font-size: 1.5rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem 0;
    }

    .project-meta-grid dt {
        margin-top: 0.5rem;
    }

    .project-meta-grid dt:first-child {
        margin-top: 0;
    }

    .nav-btn {
        opacity: 1;
        background: rgba(255, 255, 255, 0.85);
    }
}
