:root {
    --olive: #415436;
    --olive-dark: #26321f;
    --ink: #10160c;
    --mist: #d9d9d9;
    --paper: #f9fafb;
    --white: #ffffff;
    --radius: 1.5rem;
    --shadow: 0 24px 70px rgb(16 22 12 / 16%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Poppins", sans-serif;
    line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    z-index: 30;
    min-height: 100px;
    padding: 0.8rem clamp(1rem, 5vw, 5rem);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand img { width: 74px; height: 74px; object-fit: contain; }
.primary-navigation {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3.4rem);
    color: var(--olive);
    font-family: "Belleza", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
}
.primary-navigation > a,
.nav-dropdown > summary { padding: 1rem 0; cursor: pointer; list-style: none; }
.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.nav-dropdown > summary:hover,
.nav-dropdown > summary:focus-visible { color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: "⌄"; margin-left: 0.4rem; font-size: 0.8em; }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 50%;
    min-width: 155px;
    padding: 0.65rem;
    border-radius: 0.9rem;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}
.nav-dropdown-menu a { display: block; padding: 0.55rem 0.75rem; font-size: 1rem; border-radius: 0.5rem; }
.nav-dropdown-menu a:hover { background: #eef1ec; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 11px; border: 0; border-radius: 50%; background: var(--olive); }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.section-wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
    margin: 0 0 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--mist);
}
.eyebrow.dark { color: var(--olive); }
.button {
    display: inline-flex;
    min-height: 46px;
    padding: 0.65rem 1.8rem;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--olive); background: var(--white); }
.button-outline { color: var(--white); border-color: var(--white); }

.home-hero {
    min-height: min(850px, calc(100vh - 100px));
    padding: clamp(3rem, 9vw, 8rem) clamp(1rem, 8vw, 9rem);
    display: grid;
    place-items: center end;
    color: var(--mist);
    background-image: linear-gradient(90deg, rgb(16 22 12 / 12%), rgb(16 22 12 / 65%)), url("/images/hero.jpg");
    background-position: center 42%;
    background-size: cover;
}
.hero-copy { width: min(520px, 100%); padding: clamp(1.5rem, 4vw, 3rem); background: rgb(16 22 12 / 68%); backdrop-filter: blur(3px); }
.home-hero h1 {
    margin: 0;
    font-family: "Belleza", sans-serif;
    font-size: clamp(3.3rem, 7vw, 5.8rem);
    line-height: 0.92;
}
.home-hero h1 span { display: block; }
.home-hero h1 span:first-child { color: var(--white); }
.home-hero h1 span:last-child { color: #95a789; }
.hero-tagline { margin: 2rem 0 0.5rem; font-family: "Montserrat", sans-serif; letter-spacing: 0.12em; }
.progress-note { margin: 0 0 2rem; font-size: 0.75rem; letter-spacing: 0.14em; color: #aeb6aa; }

.projects-section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-title { margin: 0 0 2.5rem; font-family: "Belleza", sans-serif; font-size: clamp(2.4rem, 5vw, 4.5rem); color: var(--olive); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: var(--shadow); }
.project-card { min-width: 0; padding: 1.25rem 1.25rem 2rem; }
.project-card a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #fff; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.project-card a:hover img { transform: scale(1.025); }
.project-card h3 { margin: 1.4rem 0 0.7rem; font-size: 1.25rem; font-weight: 500; }
.project-card p { margin: 0; font-size: 0.9rem; }
.project-light { background: var(--mist); color: var(--ink); }
.project-olive { background: var(--olive); color: var(--paper); }
.project-dark { background: var(--ink); color: var(--mist); }

.cv-page { overflow: hidden; }
.cv-intro { padding-block: clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.portrait-frame { min-height: 520px; background: var(--olive); border-radius: 48% 48% 0 0; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.cv-intro h1 { margin: 0 0 1.5rem; font-family: "Belleza", sans-serif; font-size: clamp(3.2rem, 8vw, 7rem); line-height: 1; color: var(--olive); }
.cv-intro-copy p { max-width: 650px; }
.toolkit { padding-block: clamp(3rem, 6vw, 6rem); }
.toolkit h2, .skills-section h2, .work-section > h2, .education-section > h2, .drawings-page h1 {
    margin: 0 0 2rem;
    font-family: "Belleza", sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    color: var(--olive);
}
.pill-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.pill-grid span { padding: 0.75rem 1.2rem; border: 1px solid var(--olive); border-radius: 999px; color: var(--olive); }
.interest-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #a8b0a3; }
.interest-grid article { min-height: 150px; padding: 1.5rem; display: flex; align-items: end; background: var(--olive); color: var(--white); }
.skills-section { padding-block: clamp(4rem, 7vw, 7rem); }
.language-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.language-grid div { padding: 1.5rem; border-bottom: 2px solid var(--olive); display: flex; justify-content: space-between; align-items: baseline; }
.language-grid strong { font-family: "Belleza", sans-serif; font-size: 2.4rem; color: var(--olive); }
.work-section { padding-block: clamp(4rem, 7vw, 7rem); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.work-grid article { min-height: 270px; padding: 2rem; color: var(--mist); background: var(--ink); }
.work-grid article:nth-child(2), .work-grid article:nth-child(3) { background: var(--olive); color: var(--white); }
.work-grid h3 { margin-top: 0; font-family: "Belleza", sans-serif; font-size: 2rem; }
.work-grid small { color: #aeb8aa; }
.education-section { padding-block: clamp(4rem, 8vw, 8rem); }
.timeline { position: relative; margin-left: 0.8rem; padding-left: 2.4rem; border-left: 2px solid var(--olive); }
.timeline a { position: relative; display: grid; gap: 0.35rem; margin-bottom: 1rem; padding: 1.5rem; background: #eef1ec; transition: background 160ms ease; }
.timeline a::before { content: ""; position: absolute; top: 2rem; left: calc(-2.4rem - 7px); width: 12px; height: 12px; border: 2px solid var(--paper); border-radius: 50%; background: var(--olive); }
.timeline a:hover { background: #e1e7dd; }
.timeline span { font-size: 0.82rem; color: var(--olive); letter-spacing: 0.08em; }

.coming-soon { min-height: 740px; padding: clamp(4rem, 9vw, 8rem); color: var(--mist); background: var(--olive-dark); }
.coming-soon h1 { margin: 0 0 3rem; font-family: "Belleza", sans-serif; font-size: clamp(3rem, 7vw, 6rem); }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.coming-grid span { min-height: 190px; padding: 1rem; display: grid; place-items: center; border: 1px solid rgb(217 217 217 / 30%); font-family: "Montserrat", sans-serif; letter-spacing: 0.16em; }
.coming-grid span:nth-child(even) { background: rgb(255 255 255 / 5%); }

.drawings-page { padding-block: clamp(4rem, 8vw, 8rem); }
.drawing-grid { columns: 3 280px; column-gap: 1.2rem; }
.drawing-grid figure { margin: 0 0 1.2rem; break-inside: avoid; overflow: hidden; background: var(--olive); }
.drawing-grid img { width: 100%; transition: transform 300ms ease; }
.drawing-grid figure:hover img { transform: scale(1.02); }

.contact-hero { min-height: min(780px, calc(100vh - 100px)); padding: clamp(2rem, 8vw, 8rem); display: grid; place-items: center; background: linear-gradient(rgb(16 22 12 / 42%), rgb(16 22 12 / 62%)), url("/images/contact.jpg") center / cover; }
.contact-panel { width: min(760px, 100%); padding: clamp(2rem, 7vw, 5rem); text-align: center; color: var(--white); background: rgb(65 84 54 / 88%); }
.contact-panel h1 { margin: 0 0 2.5rem; font-family: "Belleza", sans-serif; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

.policy-page { max-width: 860px; padding-block: clamp(4rem, 8vw, 7rem); }
.policy-page h1 { margin: 0 0 0.5rem; font-family: "Belleza", sans-serif; font-size: clamp(3rem, 7vw, 5.5rem); color: var(--olive); }
.policy-page h2 { margin-top: 2.7rem; font-family: "Belleza", sans-serif; font-size: 2rem; color: var(--olive); }
.policy-page a { text-decoration: underline; }
.policy-date { color: #65705f; }

.site-footer {
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 8vw, 8rem) 2rem;
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr;
    gap: 3rem;
    color: var(--mist);
    background: var(--ink);
}
.site-footer h2 { margin: 0 0 1.25rem; font-family: "Belleza", sans-serif; font-size: 1.55rem; }
.footer-brand img { filter: invert(1); opacity: 0.86; }
.site-footer nav, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; }
.site-footer a:hover { color: var(--white); }
.footer-note { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgb(217 217 217 / 18%); font-size: 0.75rem; }

.cookie-banner {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: 1rem;
    width: min(920px, calc(100% - 2rem));
    padding: 1rem 1rem 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--white);
    background: var(--olive-dark);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transform: translateX(-50%);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.86rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner button { flex: 0 0 auto; padding: 0.6rem 1.2rem; border: 0; border-radius: 999px; color: var(--olive); background: var(--white); cursor: pointer; }

:focus-visible { outline: 3px solid #e4a853; outline-offset: 4px; }

@media (max-width: 850px) {
    .site-header { min-height: 84px; }
    .brand img { width: 62px; height: 62px; }
    .menu-toggle { display: block; }
    .primary-navigation {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        box-shadow: var(--shadow);
    }
    .primary-navigation.is-open { display: flex; }
    .primary-navigation > a, .nav-dropdown > summary { padding: 0.8rem; }
    .nav-dropdown-menu { position: static; transform: none; box-shadow: none; background: #eef1ec; }
    .home-hero { min-height: 690px; place-items: end center; background-position: 38% center; }
    .hero-copy { width: 100%; }
    .project-grid { grid-template-columns: 1fr; }
    .cv-intro { grid-template-columns: 1fr; }
    .portrait-frame { width: min(480px, 100%); margin-inline: auto; }
    .interest-grid { grid-template-columns: repeat(2, 1fr); }
    .language-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
    .section-wrap { width: min(100% - 1.25rem, 1180px); }
    .home-hero { padding: 1rem; min-height: 680px; }
    .hero-copy { padding: 1.5rem; }
    .home-hero h1 { font-size: clamp(3.1rem, 17vw, 4.7rem); }
    .interest-grid, .language-grid, .work-grid, .coming-grid { grid-template-columns: 1fr; }
    .portrait-frame, .portrait-frame img { min-height: 390px; }
    .timeline { padding-left: 1.6rem; }
    .timeline a::before { left: calc(-1.6rem - 7px); }
    .contact-hero { padding: 1rem; }
    .contact-panel { padding: 2.5rem 1rem; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-note { grid-column: auto; }
    .cookie-banner { align-items: stretch; flex-direction: column; }
    .cookie-banner button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
