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

:root {
    --bg: #f7f5f2;
    --surface: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --accent: #c8a96e;
    --border: rgba(0, 0, 0, 0.08);
    --card-hover: #fdfcfb;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 245, 242, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ── HERO ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 7rem 5vw 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-text h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-text p {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--text-primary);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: #333;
}

.hero-photo {
    position: relative;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: -12px -12px 12px 12px;
    border: 1px solid var(--accent);
    z-index: -1;
    opacity: 0.5;
}

/* ── SECTION HEADER ── */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.section-header span {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ── WORK GRID ── */
.work-section {
    padding: 5rem 5vw;
    max-width: 1100px;
    margin: 0 auto;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
}

.card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #ede8e1;
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.5;
}

.card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-tag {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-top: 0.25rem;
    flex: 1;
}

.card-link {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-link svg {
    transition: transform 0.2s;
}

.card:hover .card-link svg {
    transform: translate(2px, -2px);
}

/* ── ABOUT ── */
.about-section {
    border-top: 1px solid var(--border);
    padding: 5rem 5vw;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-top: 0.3rem;
}

.about-content p {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-content p strong {
    color: var(--text-primary);
    font-weight: 400;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

footer a {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.04em;
}

footer a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 5vw;
        gap: 2.5rem;
    }

    .hero-photo {
        order: -1;
        max-width: 320px;
    }

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

    .about-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}