/* ============================================
   L'ATELIER MONOCHROME — Design System
   ============================================ */

:root {
    --black: #0a0a0a;
    --white: #f5f5f0;
    --gray-100: #e8e8e3;
    --gray-200: #d0d0cb;
    --gray-300: #a0a09b;
    --gray-400: #6b6b66;
    --gray-500: #3a3a36;
    --accent: #c8c8c0;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.25, 0, 0.15, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Container ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 40px;
    transition: all 0.5s var(--ease);
}

.nav.scrolled {
    padding: 18px 40px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    line-height: 1.4;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-link {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: all 0.3s var(--ease);
}

.nav-burger.open span:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.nav-burger.open span:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }
    .nav.scrolled {
        padding: 16px 24px;
    }
    .nav-links {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.mobile-link:hover {
    opacity: 0.6;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(40, 40, 36, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 50%, rgba(30, 30, 26, 0.3) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: cover, cover, 200px 200px;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
}

.hero-overtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 32px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-300);
    margin-bottom: 48px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gray-400), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   Placeholders
   ============================================ */
.placeholder {
    background: linear-gradient(145deg, #1a1a18 0%, #252523 50%, #1a1a18 100%) !important;
    border: 1px solid rgba(245, 245, 240, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(245, 245, 240, 0.03) 49%, rgba(245, 245, 240, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(245, 245, 240, 0.03) 49%, rgba(245, 245, 240, 0.03) 51%, transparent 52%);
    background-size: 30px 30px;
}

.placeholder-label {
    position: absolute;
    z-index: 2;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    border: 1px solid rgba(245, 245, 240, 0.1);
    padding: 10px 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 16px 40px;
    border: 1px solid var(--gray-400);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
}

.btn:hover {
    color: var(--black);
    border-color: var(--white);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn span,
.btn {
    position: relative;
    z-index: 1;
}

.btn-text {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-400);
    padding-bottom: 4px;
    transition: border-color 0.3s;
}

.btn-text:hover {
    border-color: var(--white);
}

/* ============================================
   Section Commons
   ============================================ */
.section {
    padding: 140px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 48px;
}

.section-title em {
    font-style: italic;
}

/* ============================================
   Philosophy
   ============================================ */
.philosophy {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--gray-200);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   Services
   ============================================ */
.services {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(245, 245, 240, 0.08);
    margin-top: 64px;
}

.service-card {
    background: var(--black);
    padding: 48px;
    transition: background 0.4s var(--ease);
}

.service-card:hover {
    background: rgba(245, 245, 240, 0.03);
}

.service-number {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--gray-400);
    display: block;
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 16px;
}

.service-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 32px;
    }
}

/* ============================================
   Featured Work
   ============================================ */
.featured {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.featured-item--large {
    grid-row: 1 / 3;
    grid-column: 2;
}

.featured-img {
    width: 100%;
    padding-bottom: 120%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease);
}

.featured-item--large .featured-img {
    padding-bottom: calc(240% + 24px);
}

.featured-item:hover .featured-img {
    filter: grayscale(60%);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.featured-overlay span {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--white);
    padding: 12px 28px;
}

.featured-item:hover .featured-overlay {
    opacity: 1;
}

.featured-info {
    padding-top: 16px;
}

.featured-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 4px;
}

.featured-info span {
    font-size: 12px;
    color: var(--gray-400);
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-item--large {
        grid-row: auto;
        grid-column: auto;
    }
    .featured-item--large .featured-img {
        padding-bottom: 120%;
    }
}

/* ============================================
   Quote
   ============================================ */
.quote-section {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
    text-align: center;
}

.quote p {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 32px;
}

.quote cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 13px;
    font-weight: 300;
    color: var(--gray-400);
    letter-spacing: 0.1em;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
}

.cta-container {
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-title em {
    font-style: italic;
}

.cta-text {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-300);
    margin-bottom: 48px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid rgba(245, 245, 240, 0.08);
    padding: 60px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    line-height: 1.4;
}

.footer-tagline {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 8px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-center a {
    font-size: 13px;
    font-weight: 300;
    color: var(--gray-300);
    transition: color 0.3s;
}

.footer-center a:hover {
    color: var(--white);
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   Page Transition
   ============================================ */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 200;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease);
}

.page-transition.active {
    transform: translateY(0);
}

/* ============================================
   Cursor (desktop only)
   ============================================ */
@media (hover: hover) {
    body {
        cursor: none;
    }

    .cursor {
        position: fixed;
        width: 16px;
        height: 16px;
        border: 1px solid var(--white);
        border-radius: 50%;
        pointer-events: none;
        z-index: 300;
        transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
        transform: translate(-50%, -50%);
    }

    .cursor.hover {
        width: 48px;
        height: 48px;
        border-color: var(--gray-300);
    }

    a, button {
        cursor: none;
    }
}

/* ============================================
   Portfolio Page
   ============================================ */
.page-hero {
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
}

.page-hero .section-title {
    margin-bottom: 16px;
}

.page-hero-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--gray-300);
    max-width: 500px;
    margin: 0 auto;
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--white);
}

.filter-btn.active::after {
    width: 100%;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    padding-bottom: 130%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.portfolio-item:hover .portfolio-img {
    filter: grayscale(50%);
    transform: scale(1.03);
}

.portfolio-info {
    padding: 20px 0;
}

.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 4px;
}

.portfolio-info span {
    font-size: 12px;
    color: var(--gray-400);
    letter-spacing: 0.08em;
}

.portfolio-info p {
    font-size: 14px;
    font-weight: 300;
    color: var(--gray-300);
    margin-top: 12px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 24px;
}

.contact-detail {
    margin-bottom: 32px;
}

.contact-detail-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.contact-detail p,
.contact-detail a {
    font-size: 16px;
    font-weight: 300;
    color: var(--gray-200);
    line-height: 1.8;
    transition: color 0.3s;
}

.contact-detail a:hover {
    color: var(--white);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(245, 245, 240, 0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a0a09b' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.form-group select option {
    background: var(--black);
    color: var(--white);
}

.form-submit {
    align-self: flex-start;
}

.form-submit .btn {
    border: 1px solid var(--gray-400);
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ============================================
   Maquette Badge (remove in production)
   ============================================ */
.maquette-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--white);
    color: var(--black);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.maquette-badge:hover {
    opacity: 1;
}
