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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3px 40px 80px 40px;
}

.header {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 70px 0 10px 0;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* Left side - main intro */
.hero-left {
    flex: 1.2;
    max-width: 60%;
}

.hero-intro {
    color: #000;
}

.hero-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.75rem, 4vw + 1.25rem, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.2;
    margin-bottom: clamp(0.5rem, 1.5vw + 0.25rem, 0.75rem);
}

.hero-tagline {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: clamp(0.35rem, 1vw, 0.5rem);
}

.hero-tagline:last-child {
    margin-bottom: 0;
}

.hero-serif,
.hero-serif-italic {
    font-family: inherit;
    font-weight: inherit;
    font-style: inherit;
}

/* Right side - experience & contact */
.hero-right {
    flex: 0.8;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0;
    letter-spacing: 0;
}

.hero-experience-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
}

.company-link {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}

.company-link:hover {
    opacity: 0.6;
}

.hero-contact-item {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
}

.contact-link {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.6;
}

/* Responsive hero */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 48px;
        gap: 60px;
    }
    
    .hero-intro {
        font-size: 28px;
    }
    
    .hero-left {
        max-width: 55%;
    }
    
    .hero-right {
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 70vh;
        padding: 60px 0;
        margin-bottom: 0;
    }
    
    .hero-container {
        flex-direction: column;
        padding: 0 32px;
        gap: 48px;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-right {
        max-width: 100%;
        flex-direction: row;
        gap: 48px;
    }
    
    .hero-intro {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0;
        margin-bottom: 0;
    }
    
    .hero-container {
        padding: 0 24px;
        gap: 40px;
    }
    
    .hero-intro {
        font-size: 22px;
    }
    
    .hero-right {
        flex-direction: column;
        gap: 32px;
    }
}


main {
    position: relative;
    z-index: 10;
    background-color: #fff;
}

.section {
    margin-bottom: 140px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.work-section .section-title {
    margin-bottom: 15px; /* ~70% less than 50px */
}

.section-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

/* Work section - full width */
.work-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding: 0;
    margin-bottom: 140px;
}

.work-container {
    max-width: 100%;
    padding: 0 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.0);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.project-visual {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual img,
.project-visual-image {
    border-radius: inherit;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.project-item:hover .project-visual img,
.project-item:hover .project-visual-image {
    transform: scale(1.03);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 6px 32px 60px 32px;
    }

    .header {
        margin-bottom: 20px;
    }

    .name {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 18px;
    }


    .section {
        margin-bottom: 100px;
    }

    .work-section {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .work-container {
        padding: 0 32px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-container {
        padding: 60px 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 24px 50px 24px;
    }

    .header {
        padding: 40px 0;
        margin-bottom: 0;
    }
    .name {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 16px;
    }


    .section {
        margin-bottom: 80px;
    }

    .work-section {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }

    .work-container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-detail-container {
        padding: 50px 24px;
    }

    .project-detail-title {
        font-size: 28px;
    }
}

.footer {
    margin-top: 140px;
    padding-top: 60px;
    border-top: 1px solid #e8e8e8;
}

.footer-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Project detail page styles */
.project-detail-view {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
}

.project-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.project-detail-header {
    margin-bottom: 60px;
}

.project-detail-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-detail-year {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-bottom: 24px;
}

.project-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: 650px;
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 16px;
    margin-bottom: 60px;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.6;
}

.project-content {
    margin-top: 40px;
}

.project-paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
    max-width: 100%;
}

.project-image {
    width: 100%;
    margin-bottom: 60px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

