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

:root {
    --ink: #0a0a0f;
    --inklogo: #4d4d89;
    --paper: #f5f3ee;
    --cream: #ece9e0;
    --gold: #c8a96e;
    --gold-light: #e8d5a8;
    --rust: #c4572a;
    --sage: #4a6741;
    --slate: #3a3f52;
    --muted: #7a7870;
    --line: rgba(10,10,15,0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', Georgia, 'Times New Roman', serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
}

/* ─── Custom Cursor ─── */
.cursor { display: none; }

/* ─── Noise overlay ─── */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 256px;
    opacity: 0.5;
}

/* ─── NAV ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 48px;
    transition: all 0.4s ease;
}
nav.scrolled {
    background: rgba(245,243,238,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 16px 48px;
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800; font-size: 1.1rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--inklogo); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
    font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    transition: color 0.3s;
    position: relative;
    font-weight: 500;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── HERO ─── */
#hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 48px 80px;
    position: relative; overflow: hidden;
}
.hero-bg-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(120px, 18vw, 260px);
    font-weight: 300; color: rgba(10,10,15,0.03);
    white-space: nowrap; pointer-events: none;
    letter-spacing: -0.04em;
    animation: bgDrift 20s ease-in-out infinite alternate;
}
@keyframes bgDrift { from { transform: translate(-52%,-50%); } to { transform: translate(-48%,-50%); } }

.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
    opacity: 0; animation: fadeUp 0.8s 0.3s ease forwards;
    font-weight: 600;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 40px; height: 1px; background: var(--gold);
}
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 300; line-height: 1.05;
    letter-spacing: -0.02em;
    opacity: 0; animation: fadeUp 0.9s 0.5s ease forwards;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
    margin-top: 32px; max-width: 480px;
    font-size: 1rem; line-height: 1.75;
    color: var(--muted); font-weight: 400;
    opacity: 0; animation: fadeUp 0.9s 0.7s ease forwards;
}
.hero-cta {
    margin-top: 48px; display: flex; gap: 20px; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.9s 0.9s ease forwards;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--ink); color: var(--paper);
    padding: 14px 32px; text-decoration: none;
    font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--gold); transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--ink); color: var(--ink);
    padding: 14px 32px; text-decoration: none;
    font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.hero-visual {
    position: relative; z-index: 2;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; animation: fadeIn 1.2s 0.6s ease forwards;
}
.hero-orb {
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(ellipse at 35% 35%, var(--gold-light), var(--cream) 50%, var(--paper));
    display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 40px 120px rgba(200,169,110,0.25), inset 0 1px 0 rgba(255,255,255,0.6);
    animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-18px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}
.orb-inner {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 300; color: var(--ink);
    text-align: center; line-height: 1.6;
}
.orb-inner span { display: block; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.orbit-ring {
    position: absolute; border: 1px solid rgba(200,169,110,0.25); border-radius: 50%;
    animation: orbit 12s linear infinite;
}
.orbit-ring:nth-child(1) { width: 460px; height: 460px; animation-duration: 14s; }
.orbit-ring:nth-child(2) { width: 540px; height: 540px; animation-duration: 20s; animation-direction: reverse; }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.orbit-dot {
    position: absolute; top: -4px; left: 50%;
    width: 6px; height: 6px; background: var(--gold);
    border-radius: 50%; transform: translateX(-50%);
}

/* ─── SECTION base ─── */
section { position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 120px 48px; }
.section-label {
    font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
    font-weight: 600;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }

/* ─── SERVICES ─── */
#services { background: var(--ink); color: var(--paper); }
#services .section-label { color: var(--gold-light); }
#services .section-label::before { background: var(--gold-light); }
.services-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 68px); font-weight: 300;
    line-height: 1.1; letter-spacing: -0.02em;
    max-width: 700px;
}
.services-header h2 em { font-style: italic; color: var(--gold); }
.services-header p { color: rgba(245,243,238,0.5); font-size: 0.8rem; line-height: 1.8; max-width: 420px; margin-top: 24px; }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; margin-top: 80px;
    border: 1px solid rgba(255,255,255,0.06);
}
.service-card {
    padding: 48px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; bottom: 0; left: 0;
    height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
    width: 0; transition: width 0.5s ease;
}
.service-card:hover { background: rgba(255,255,255,0.03); }
.service-card:hover::before { width: 100%; }
.service-icon {
    width: 48px; height: 48px; margin-bottom: 32px;
    position: relative;
}
.service-icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.2; }
.service-card h3 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 16px;
}
.service-card p { font-size: 0.9rem; line-height: 1.75; color: rgba(245,243,238,0.5); }
.service-tag {
    display: inline-block; margin-top: 24px;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); padding: 4px 10px;
    border: 1px solid rgba(200,169,110,0.3);
    font-weight: 600;
}

/* ─── ABOUT / CONTEXT ─── */
#context { background: var(--cream); }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.context-left h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 60px); font-weight: 300;
    line-height: 1.1; letter-spacing: -0.02em;
}
.context-left h2 em { font-style: italic; color: var(--gold); }
.context-left p { font-size: 0.95rem; line-height: 1.8; color: var(--muted); margin-top: 28px; }
.context-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--line); margin-top: 48px; border: 1px solid var(--line);
}
.stat-box {
    background: var(--cream); padding: 28px 24px;
    text-align: center;
}
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem; font-weight: 300; color: var(--ink);
    line-height: 1; display: block;
}
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 6px; display: block; font-weight: 500; }

.context-right { position: relative; }
.context-image-frame {
    aspect-ratio: 3/4; background: var(--ink);
    position: relative; overflow: hidden;
}
.context-image-frame::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(200,169,110,0.15));
}
.frame-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(8, 1fr);
    position: absolute; inset: 0; gap: 1px;
}
.frame-cell {
    background: rgba(255,255,255,0.015);
    animation: cellPulse var(--d, 4s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes cellPulse { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.frame-text {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--paper); text-align: center;
    padding: 40px;
}
.frame-text .big {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem; font-weight: 300; color: var(--gold); line-height: 1;
    animation: countUp 2s ease forwards;
}
.frame-text small { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,243,238,0.4); margin-top: 8px; display: block; }

/* ─── PROJECTS ─── */
#projets {}
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.projects-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4.5vw, 58px); font-weight: 300;
    letter-spacing: -0.02em; line-height: 1.1;
}
.projects-header h2 em { font-style: italic; color: var(--gold); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.project-card {
    border: 1px solid var(--line);
    padding: 0; overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none; color: inherit; display: block;
    position: relative;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(10,10,15,0.1); }
.project-card-top {
    height: 180px; background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.project-card-top .card-bg {
    position: absolute; inset: 0; opacity: 0.12;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 60%);
}
.project-emoji { font-size: 3rem; position: relative; z-index: 1; }
.project-body { padding: 32px; }
.project-tag {
    font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 12px; display: block; font-weight: 600;
}
.project-card h3 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 1.1rem; margin-bottom: 12px;
}
.project-card p { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
.project-link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; font-size: 0.78rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--ink); font-weight: 600;
}
.project-link::after { content: '→'; transition: transform 0.3s; }
.project-card:hover .project-link::after { transform: translateX(4px); }

/* ─── APPROACH ─── */
#approche { background: var(--ink); color: var(--paper); }
#approche .section-label { color: var(--gold-light); }
#approche .section-label::before { background: var(--gold-light); }
.approach-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.approach-left h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 54px); font-weight: 300;
    line-height: 1.1; letter-spacing: -0.02em;
}
.approach-left h2 em { font-style: italic; color: var(--gold); }
.approach-left p { color: rgba(245,243,238,0.45); font-size: 0.95rem; line-height: 1.75; margin-top: 24px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
    display: grid; grid-template-columns: 60px 1fr; gap: 24px;
    padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: start; transition: all 0.3s;
}
.step:hover { padding-left: 12px; }
.step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem; font-weight: 300; color: rgba(200,169,110,0.3);
    line-height: 1;
}
.step h4 {
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 10px; padding-top: 8px;
}
.step p { font-size: 0.9rem; line-height: 1.75; color: rgba(245,243,238,0.45); }

/* ─── CONTACT ─── */
#contact { background: var(--paper); }
.contact-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-inner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 6vw, 80px); font-weight: 300;
    letter-spacing: -0.03em; line-height: 1.0;
}
.contact-inner h2 em { font-style: italic; color: var(--gold); }
.contact-inner p { font-size: 1rem; line-height: 1.75; color: var(--muted); margin: 32px auto; max-width: 480px; }
.contact-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.contact-link {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ink);
    font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 600;
    padding-bottom: 6px; border-bottom: 1px solid var(--line);
    transition: all 0.3s;
}
.contact-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.contact-link svg { width: 18px; height: 18px; }

/* ─── FOOTER ─── */
footer {
    background: var(--ink); color: rgba(245,243,238,0.3);
    padding: 32px 48px; display: flex; justify-content: space-between; align-items: center;
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
}
footer a { color: rgba(245,243,238,0.3); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold); }

/* ─── Reveal animations ─── */
.reveal {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-ready .reveal {
    opacity: 0; transform: translateY(32px);
}
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    nav { padding: 20px 24px; }
    nav.scrolled { padding: 14px 24px; }
    .nav-links { display: none; }
    #hero { grid-template-columns: 1fr; padding: 120px 24px 60px; }
    .hero-visual { display: none; }
    .section-inner { padding: 80px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .context-grid { grid-template-columns: 1fr; gap: 48px; }
    .context-right { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .approach-grid { grid-template-columns: 1fr; gap: 48px; }
    footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
}

/* ─── Progress bar ─── */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--rust));
    z-index: 200; transition: width 0.1s linear;
    width: 0%;
}

/* ─── Marquee ─── */
.marquee-wrapper {
    background: var(--gold); overflow: hidden;
    padding: 14px 0; position: relative;
}
.marquee-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: marquee 20s linear infinite;
}
.marquee-item {
    font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--ink); flex-shrink: 0; font-weight: 600;
}
.marquee-sep { color: rgba(10,10,15,0.3); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
