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

:root {
    --bg: #fffefc;
    --text: #4f4032;
    --text-light: #a89486;
    --border: #efeeee;
    --card: #fff;
    --accent: #4f4032;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: center;
    z-index: 100;
    background: rgba(255, 254, 252, 0.8);
    backdrop-filter: blur(20px);
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-contact {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.2s;
}

.nav-contact:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text);
    opacity: 0.75;
    max-width: 38ch;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.6;
    max-width: 500px;
    line-height: 1.7;
}

/* Proof Bar */
.proof-bar {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.proof-item {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-feature-settings: "tnum";
}

.proof-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

/* Logo Bar */
.logo-bar {
    padding: 3rem 2rem 5rem;
    text-align: center;
}

.logo-bar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

img.client-logo {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s;
    filter: grayscale(100%);
}

img.client-logo:hover {
    opacity: 0.85;
}

img.client-logo-lg {
    height: 36px;
}

img.client-logo-sm {
    height: 18px;
}

span.client-logo {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.5;
    transition: opacity 0.2s;
}

span.client-logo:hover {
    opacity: 0.8;
}

/* Work Section */
.work {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.work-item.reverse {
    direction: rtl;
}

.work-item.reverse > * {
    direction: ltr;
}

.work-image-wrapper {
    position: relative;
    padding: 2rem;
}

.work-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/gradient-bg.png') center/cover no-repeat;
    border-radius: 32px;
    opacity: 0.7;
    filter: blur(30px);
    transform: scale(1.1);
}

.work-image {
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 60px rgba(79, 64, 50, 0.12);
    position: relative;
    z-index: 1;
}

.work-image img,
.work-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    border: none;
}

.work-info {
    padding: 2rem 0;
}

.work-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.work-info h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.work-info p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.8;
}

/* Writing Section */
.writing {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.writing-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s;
}

.writing-item:hover {
    border-color: var(--text-light);
}

.writing-item:hover .writing-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.writing-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.writing-description {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* About */
.about {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-lead {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.about-content > p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.about-subhead {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.about-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.about-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.about-content a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.about-content a:hover {
    opacity: 0.6;
}

.about-personal {
    font-size: 1rem;
    margin-top: 0;
}

/* Contact */
.contact {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-block;
    font-size: 1.125rem;
    color: var(--text);
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    transition: opacity 0.2s;
}

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

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem 3rem;
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--card);
}

/* Responsive */
@media (max-width: 900px) {
    .work-item {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .work-item .work-info {
        order: 1;
    }

    .work-item .work-image-wrapper {
        order: 2;
    }

    .work-item.reverse {
        direction: ltr;
    }

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

@media (max-width: 600px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .proof-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .logo-grid {
        gap: 1.25rem 1.5rem;
    }

    img.client-logo {
        height: 18px;
    }

    img.client-logo-lg {
        height: 28px;
    }

    img.client-logo-sm {
        height: 14px;
    }

    span.client-logo {
        font-size: 0.75rem;
    }

    .work {
        padding: 2rem 1.5rem;
    }

    .work-item {
        margin-bottom: 4rem;
    }

    .writing {
        padding: 4rem 1.5rem;
    }

    .about {
        padding: 4rem 1.5rem;
    }

    .contact {
        padding: 4rem 1.5rem;
    }

    .footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
