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

:root {
    --bg: #F8F6F2;
    --text: #1A1A17;
    --muted: #6B6B61;
    --accent: #8B7355;
    --line: #E2DED8;
    --white: #FFFFFF;
}

html { scroll-behavior: smooth; }
section, .subsection { scroll-margin-top: 70px; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 300;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4rem;
    background: rgba(248, 246, 242, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
nav .name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text);
}
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav ul a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s;
}
nav ul a:hover,
nav ul a.active { color: var(--text); }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    padding-top: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hero-text {
    padding: 4rem 5rem 4rem 4rem;
}
.section-label {
    font-size: 0.73rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    display: block;
}
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem, 5.5vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
}
.hero-text h1 em {
    font-style: italic;
    color: var(--accent);
}
.hero-text .subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    line-height: 2;
}
.hero-image {
    height: 100vh;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ── SHARED SECTION ── */
.section-wrap {
    padding: 7rem 4rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3rem;
}
.divider { height: 1px; background: var(--line); }

/* ── ABOUT ── */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}
.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}
.about-text p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.4rem;
    line-height: 1.85;
}
.about-text p:first-of-type {
    font-size: 1.18rem;
    line-height: 1.85;
}
.about-text em { font-style: italic; }

/* ── EXPERIENCE ── */
.timeline { max-width: 860px; }
.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-date {
    font-size: 0.83rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    padding-top: 0.25rem;
}
.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}
.timeline-content .org {
    font-size: 0.87rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}
.timeline-content p {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.75;
}
.timeline-content em { font-style: italic; }

/* ── PROJECTS ── */
.projects-subnav {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
}
.projects-subnav a {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}
.projects-subnav a:hover { color: var(--text); }

.subsection { margin-bottom: 6rem; }
.subsection-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.project-card .card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: var(--line);
}
.project-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.project-card:hover .card-image img { transform: scale(1.04); }
.card-date {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 0.6rem;
}
.project-card p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.75;
}
.project-card em { font-style: italic; }

.text-link {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
}
.text-link:hover { text-decoration: underline; }

/* Talk list */
.talk-list { max-width: 900px; }
.talk-list-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.talk-list-item:last-child { border-bottom: 1px solid var(--line); }
.talk-list-item img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    display: block;
}
.talk-list-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    font-style: italic;
}
.talk-list-item .venue {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.talk-list-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* Writing */
.blog-feature {
    background: var(--text);
    color: var(--white);
    padding: 3.5rem 4rem;
    margin-bottom: 5rem;
}
.blog-feature .section-label { color: var(--accent); }
.blog-feature p {
    font-size: 1rem;
    color: #ccc;
    max-width: 620px;
    line-height: 1.85;
    margin-bottom: 2rem;
}
.blog-feature .blog-url {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.25rem;
    transition: color 0.2s;
}
.blog-feature .blog-url:hover { color: var(--accent); }

.writing-list { max-width: 900px; }
.writing-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.writing-item:last-child { border-bottom: 1px solid var(--line); }
.writing-thumb {
    width: 160px;
    height: 110px;
    object-fit: cover;
    display: block;
}
.writing-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.writing-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}
.writing-item .pub {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}
.writing-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.6rem;
}
.writing-item em { font-style: italic; }

/* Other projects */
.rq-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.rq-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.rq-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.rq-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
}
.rq-text p {
    font-size: 0.97rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}
.rq-text em { font-style: italic; }

.op-group { margin-bottom: 4rem; }
.op-group-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}
.op-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.op-item {
    border-top: 1px solid var(--line);
}
.op-item-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 1.25rem;
}
.op-item h4 { margin-top: 1rem; }
.op-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
}
.op-item .op-meta {
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.op-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 0.6rem;
}
.op-item em { font-style: italic; }

/* Contact */
#contact { background: var(--text); color: var(--white); }
#contact .section-label { color: var(--accent); }
#contact .section-title { color: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}
.contact-item { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-item .label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #999;
}
.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.contact-item a:hover { color: var(--accent); }
.contact-item span { color: #ccc; font-size: 1rem; }
.contact-intro {
    color: #ccc;
    font-size: 0.97rem;
    line-height: 1.75;
    margin-top: 2rem;
}
.contact-form {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-field label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #999;
}
.form-field input,
.form-field textarea {
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(255,255,255,0.05);
    border: none;
    border-bottom: 1px solid #555;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    padding: 0.6rem 0;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    box-sizing: border-box;
    border-radius: 0;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: #fff; }
.contact-form button {
    -webkit-appearance: none;
    appearance: none;
    align-self: flex-start;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 0.5rem;
    border-radius: 0;
}
.contact-form button:hover { background: #fff; color: var(--text); }

.contact-portrait img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
}

/* Footer */
footer {
    padding: 1.8rem 4rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    nav ul { gap: 1.5rem; }
    .section-wrap { padding: 5rem 2rem; }
    #hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-text { padding: 8rem 2rem 3rem; }
    .hero-image { height: 65vw; }
    #about { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { order: -1; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .rq-section { grid-template-columns: 1fr; gap: 3rem; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
    .talk-list-item { grid-template-columns: 1fr; gap: 1rem; }
    .talk-list-item img { width: 100%; height: 180px; }
    .writing-item { grid-template-columns: 1fr; gap: 1rem; }
    .writing-thumb { width: 100%; height: 180px; }
    .op-items { grid-template-columns: 1fr; }
    .blog-feature { padding: 2.5rem 2rem; }
}
@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    nav ul { gap: 1rem; }
}
