/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f6f6f6;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: 3.75rem;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-family: gt-super, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    color: #2B689C;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 1000;
    padding: 2rem 0;
    transition: transform 0.3s ease;
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo svg {
    display: block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.08em;
}

.nav a:hover {
    color: #2B689C;
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
}

.hero h1 {
    font-family: gt-super, Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #2c2c2c;
    line-height: 1.0;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(51, 51, 51, 1);
    max-width: 650px;
    line-height: 1.65;
}

.ted-red {
    color: #E62B1E;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 4rem 0 10rem;
}

/* Asymmetric 12-column bento grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
    align-items: start;
}

.project-featured { grid-column: span 12; }
.project-wide     { grid-column: span 12; }
.project-narrow   { grid-column: span 12; }

/* Card base */
.project {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 16px;
    height: 450px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}

/* All cards: padded, horizontal layout */
.project-featured,
.project-wide,
.project-narrow {
    padding: 2.75rem 2.5rem 2.75rem 3rem;
}

.project-featured .project-content,
.project-wide .project-content,
.project-narrow .project-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    height: 100%;
}

/* All cards: same text/image split — image 52%, text fills rest */
.project-featured .project-text,
.project-wide .project-text,
.project-narrow .project-text {
    flex: 1;
}

.project-featured .project-image,
.project-wide .project-image,
.project-narrow .project-image {
    flex: 0 0 52%;
}

/* Wide card: row-reverse so text appears left, image right */
.project-wide .project-content {
    flex-direction: row-reverse;
}

/* Narrow card: row-reverse so text appears left, image right */
.project-narrow .project-content {
    flex-direction: row-reverse;
}

/* All card images get rounded corners */
.project-featured .project-image img,
.project-wide .project-image img,
.project-narrow .project-image img {
    border-radius: 10px;
}

/* Shared */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    margin-top: -0.5rem;
}

.project-tags .tag {
    display: inline-block;
    font-size: 0.9rem;
    color: #5a7f9c;
    font-weight: 400;
    background-color: #e8f1f7;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
}

.project-image a {
    display: block;
    transition: opacity 0.3s ease;
}

.project-image a:hover {
    opacity: 0.9;
}

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

.project h2 {
    font-size: 2rem;
    margin-bottom: 1.75rem;
}

.project h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project h2 a:hover {
    color: #1e4a6d;
}

.project p {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}


/* Footer */
.footer {
    padding: 5rem 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9375rem;
    color: #aaa;
    font-weight: 400;
}

.claude-icon {
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover svg circle {
    stroke: #2B689C;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    .project-featured .project-content {
        gap: 2rem;
    }

    .projects-grid {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .header {
        padding: 1.5rem 0;
    }

    .nav ul {
        gap: 1.75rem;
    }

    .nav a {
        font-size: 0.75rem;
    }

    .hero {
        padding: 6rem 0 5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    /* Stack all cards to single column on tablet */
    .project-featured .project-content,
    .project-wide .project-content,
    .project-narrow .project-content {
        flex-direction: column !important;
        gap: 2rem;
        height: auto;
    }

    .project-featured,
    .project-wide,
    .project-narrow {
        padding: 2rem;
        height: auto;
    }

    .project-featured .project-text,
    .project-wide .project-text,
    .project-narrow .project-text,
    .project-narrow .project-image {
        flex: none;
    }

    .project h2 {
        font-size: 1.75rem;
    }

    .project p {
        font-size: 1.0625rem;
    }

    .footer {
        padding: 4rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 1.25rem 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .nav ul {
        gap: 1.25rem;
    }

    .nav a {
        font-size: 0.6875rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

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

    .project p,
    .project-narrow p {
        font-size: 1rem;
    }

    .footer {
        padding: 3rem 0;
    }
}
