:root {
    --bg-primary: #f9f7f2;
    --bg-secondary: #ffffff;
    --accent-ocre: #d4a373;
    --accent-sienne: #bc6c25;
    --accent-indigo: #264653;
    --text-main: #2b2b2b;
    --text-muted: #5e5e5e;
    --border-color: rgba(0, 0, 0, 0.08);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.05rem;
}

/* Texture overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: 9999;
}

/* =====================
   Navigation
   ===================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.6rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-indigo);
    letter-spacing: 0.2rem;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-sienne);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-indigo);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(38, 70, 83, 0.35);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.open {
    opacity: 1;
}

/* =====================
   Hero Section
   ===================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 10% 6rem;
    background: linear-gradient(135deg, #fdfcf9 0%, #f4f1ea 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-name {
    font-size: clamp(3.5rem, 10vw, 9rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--accent-indigo);
    font-weight: 400;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 600px;
    color: var(--accent-sienne);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    border-left: 3px solid var(--accent-ocre);
    padding-left: 2rem;
}

.hero-image {
    position: relative;
    flex-shrink: 0;
    width: 380px;
}

.hero-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
}

.hero-image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-ocre);
    z-index: 1;
}

/* =====================
   Section Base
   ===================== */
section {
    padding: 8rem 10%;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 40px;
    height: 40px;
    background: var(--accent-ocre);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

/* =====================
   About / Démarche
   ===================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-sienne);
    font-weight: 500;
    border-bottom: 1px solid rgba(188, 108, 37, 0.2);
}

/* =====================
   Gallery
   ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.artwork-card {
    position: relative;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09);
}

.artwork-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: sepia(0.1);
    transition: var(--transition);
    display: block;
}

.artwork-card:hover img {
    filter: sepia(0);
}

.artwork-info {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.artwork-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-main);
}

.artwork-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--accent-ocre);
    font-weight: 700;
}

/* =====================
   Contact
   ===================== */
.contact-container {
    background: var(--accent-indigo);
    color: #fff;
    padding: 5rem 6rem;
    border-radius: 2px;
}

.contact-container .section-title {
    color: #fff;
}

.contact-container .about-text {
    font-size: 1rem;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-ocre);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.social-card svg {
    width: 30px;
    height: 30px;
    color: var(--accent-ocre);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-card:hover svg {
    color: #fff;
    transform: scale(1.15);
}

.social-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
}

.social-handle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    word-break: break-all;
}

/* =====================
   Animations
   ===================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1),
                transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* =====================
   Responsive — Tablet (≤ 1024px)
   ===================== */
@media (max-width: 1024px) {
    nav {
        padding: 1.4rem 6%;
    }

    .hero {
        padding: 8rem 6% 5rem;
    }

    .hero-content {
        gap: 3rem;
    }

    .hero-image {
        width: 300px;
    }

    .hero-image img {
        height: 380px;
    }

    section {
        padding: 6rem 6%;
    }

    .about-grid {
        gap: 3.5rem;
    }

    .contact-container {
        padding: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* =====================
   Responsive — Mobile (≤ 768px)
   ===================== */
@media (max-width: 768px) {
    /* Nav */
    nav {
        padding: 1.2rem 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 80vw);
        height: 100vh;
        background: rgba(249, 247, 242, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border-left: 1px solid var(--border-color);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.2rem;
    }

    /* Hero */
    .hero {
        padding: 7rem 5% 4rem;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-name {
        font-size: clamp(3rem, 15vw, 5rem);
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        border-left: none;
        border-top: 3px solid var(--accent-ocre);
        padding-left: 0;
        padding-top: 1.2rem;
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 300px;
    }

    .hero-image img {
        height: 340px;
    }

    .hero-image-frame {
        top: 12px;
        left: 12px;
    }

    /* Sections */
    section {
        padding: 4rem 5%;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .artwork-card {
        padding: 0.75rem;
    }

    .artwork-title {
        font-size: 0.9rem;
    }

    .artwork-tag {
        font-size: 0.65rem;
    }

    /* Contact */
    .contact-container {
        padding: 2.5rem 1.5rem;
    }

    .contact-container .section-title {
        margin-bottom: 1.5rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        margin-top: 1.5rem;
    }

    .social-card {
        padding: 1.25rem 0.75rem;
        gap: 0.5rem;
        border-radius: 10px;
    }

    .social-card svg {
        width: 26px;
        height: 26px;
    }

    .social-label {
        font-size: 0.9rem;
    }

    .social-handle {
        font-size: 0.68rem;
    }
}

/* =====================
   Responsive — Small Mobile (≤ 480px)
   ===================== */
@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2.8rem, 17vw, 4.5rem);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .artwork-card img {
        aspect-ratio: 3/2;
    }

    .social-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .contact-container {
        padding: 2rem 1.2rem;
    }
}