:root {
    --bg: #f8f7f4;
    --surface: #ffffff;
    --text: #171717;
    --muted: #6d6d6d;
    --border: #e5e3de;
    --accent: #d96c3d;
    --accent-dark: #b84f27;
    --dark: #171717;
    --shadow: 0 20px 60px rgba(0,0,0,.08);
    --radius: 18px;
    --transition: .3s ease;
}

body.dark {
    --bg: #111111;
    --surface: #1b1b1b;
    --text: #f5f5f5;
    --muted: #aaa;
    --border: #303030;
    --dark: #f5f5f5;
    --shadow: 0 20px 60px rgba(0,0,0,.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background .3s ease, color .3s ease;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    padding: 110px 0;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-heading h2 span,
.hero h1 span,
.about-content span,
.skills h2 span,
.contact h2 span {
    color: var(--accent);
}

.section-heading p {
    color: var(--muted);
}


/* HEADER */

.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(248,247,244,.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid transparent;
}

body.dark .header {
    background: rgba(17,17,17,.9);
}

.header.scrolled {
    border-color: var(--border);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    white-space: nowrap;
}

.logo span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-cv {
    padding: 10px 18px;
    border-radius: 30px;
    background: var(--dark);
    color: var(--bg);
    font-size: 13px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn,
.menu-btn {
    border: 0;
    background: transparent;
    color: var(--text);
}

.theme-btn {
    font-size: 22px;
}

.menu-btn {
    display: none;
    width: 35px;
}

.menu-btn span {
    height: 2px;
    background: var(--text);
    display: block;
    margin: 5px 0;
}


/* HERO */

.hero {
    padding-top: 170px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    margin-bottom: 28px;
}

.hero-text {
    color: var(--muted);
    max-width: 620px;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border-radius: 40px;
    border: 1px solid var(--text);
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--bg);
}

.hero-social {
    display: flex;
    gap: 20px;
}

.hero-social a {
    font-size: 13px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.hero-social a:hover {
    color: var(--accent);
}

.hero-image {
    position: relative;
}

.hero-image-main {
    height: 620px;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
}

.hero-image-main img {
    height: 100%;
}

.hero-badge {
    position: absolute;
    bottom: 35px;
    left: -35px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
}

.hero-badge strong {
    font-family: "Playfair Display", serif;
    font-size: 38px;
}

.hero-badge span {
    font-size: 12px;
}


/* STATS */

.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 35px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 45px;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}


/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    height: 550px;
    border-radius: 20px;
    overflow: hidden;
}

.about-image img {
    height: 100%;
}

.about-content .lead {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 20px;
}

.about-details {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.about-details div {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.about-details span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.about-details strong {
    font-size: 14px;
}


/* EXPERTISE */

.expertise {
    background: var(--surface);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.expertise-card {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--bg);
    font-size: 25px;
    margin-bottom: 25px;
}

.expertise-card h3 {
    margin-bottom: 12px;
}

.expertise-card p {
    color: var(--muted);
    font-size: 14px;
}

.expertise-card ul {
    margin-top: 20px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}

.expertise-card li {
    margin-bottom: 5px;
}


/* PORTFOLIO */

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--dark);
    color: var(--bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    transition: .4s ease;
}

.portfolio-image {
    position: relative;
    height: 360px;
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-image img {
    height: 100%;
    transition: .5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: .3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-project {
    border: 1px solid white;
    background: white;
    color: #111;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.portfolio-info {
    padding-top: 17px;
}

.portfolio-info span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
}

.portfolio-info h3 {
    margin: 4px 0;
}

.portfolio-info p {
    color: var(--muted);
    font-size: 13px;
}


/* STORIES */

.stories {
    background: var(--surface);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.story-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.story-image {
    height: 280px;
    position: relative;
}

.story-image img {
    height: 100%;
}

.story-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 13px;
    border-radius: 30px;
    background: white;
    color: #111;
    font-size: 11px;
    font-weight: 700;
}

.story-content {
    padding: 25px;
}

.story-location {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.2;
    margin: 10px 0;
}

.story-content p {
    color: var(--muted);
    font-size: 14px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    font-size: 13px;
}


/* CAMPAIGN */

.campaign {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
    background: var(--dark);
    color: var(--bg);
    border-radius: 25px;
    overflow: hidden;
}

.campaign-content {
    padding: 70px;
}

.campaign-number {
    color: var(--accent);
    font-weight: 700;
}

.campaign h3 {
    font-family: "Playfair Display", serif;
    font-size: 50px;
    line-height: 1.1;
    margin: 25px 0;
}

.campaign p {
    color: #aaa;
    max-width: 500px;
}

.campaign-image {
    min-height: 500px;
}

.campaign-image img {
    height: 100%;
}

.campaign-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 45px;
}

.campaign-process div {
    border-top: 1px solid #444;
    padding-top: 12px;
}

.campaign-process strong,
.campaign-process span {
    display: block;
}

.campaign-process strong {
    color: var(--accent);
}

.campaign-process span {
    font-size: 12px;
    color: #aaa;
}


/* EXPERIENCE */

.timeline {
    max-width: 900px;
    margin: auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 50px;
    padding: 45px 0;
    border-top: 1px solid var(--border);
}

.timeline-date {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.timeline-content h3 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.timeline-content h4 {
    color: var(--muted);
    margin: 5px 0 15px;
}

.timeline-content p {
    color: var(--muted);
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tags span {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 11px;
}


/* SKILLS */

.skills {
    background: var(--surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.skills h2 {
    font-family: "Playfair Display", serif;
    font-size: 50px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.skills p {
    color: var(--muted);
}

.skill {
    margin-bottom: 25px;
}

.skill > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress {
    height: 5px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress span {
    height: 100%;
    display: block;
    background: var(--accent);
}


/* CONTACT */

.contact {
    padding-bottom: 130px;
}

.contact-box {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 70px;
    border-radius: 25px;
}

.contact h2 {
    font-family: "Playfair Display", serif;
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.contact-intro > p:not(.eyebrow) {
    color: var(--muted);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.contact-info a:hover {
    color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-message {
    margin-top: 15px;
    color: var(--accent);
    font-size: 13px;
}


/* FOOTER */

.footer {
    background: var(--dark);
    color: var(--bg);
    padding: 50px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer p {
    color: #999;
    margin-top: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-links a {
    color: #aaa;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}


/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: min(800px, 100%);
    background: var(--surface);
    color: var(--text);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.modal-content > img {
    height: 400px;
}

.modal-content > iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
}

.modal-content > iframe[hidden],
.modal-content > img[hidden] {
    display: none;
}

.modal-body {
    padding: 35px;
}

.modal-body h2 {
    font-family: "Playfair Display", serif;
    font-size: 35px;
    margin-bottom: 10px;
}

.modal-body p:last-child {
    color: var(--muted);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: #111;
    font-size: 25px;
    z-index: 5;
}


/* BACK TO TOP */

.back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 500;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .nav {
        position: fixed;
        top: 78px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 78px);
        background: var(--surface);
        border-left: 1px solid var(--border);
        padding: 35px;
        flex-direction: column;
        align-items: flex-start;
        transition: .4s ease;
    }

    .nav.active {
        right: 0;
    }

    .menu-btn {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .skills-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-image {
        max-width: 600px;
        margin: auto;
    }

    .expertise-grid,
    .portfolio-grid,
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .campaign-image {
        min-height: 400px;
    }

}

@media (max-width: 650px) {

    .section {
        padding: 75px 0;
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-image-main {
        height: 450px;
    }

    .hero-badge {
        left: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-bottom: 1px solid var(--border);
    }

    .expertise-grid,
    .portfolio-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

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

    .campaign-content {
        padding: 40px 25px;
    }

    .campaign h3 {
        font-size: 40px;
    }

    .campaign-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .skills h2,
    .contact h2 {
        font-size: 42px;
    }

    .contact-box {
        padding: 35px 25px;
        gap: 40px;
    }

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

    .footer-grid,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}