/*
Theme Name: R1 Studio Theme
Theme URI: https://rom1.fr
Author: Rom1
Author URI: https://rom1.fr
Description: Thème WordPress créatif et moderne pour portfolio de designer. Design brutaliste avec animations fluides, curseur personnalisé et couleurs dynamiques. Entièrement personnalisable via le Customizer WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: r1-studio
Tags: portfolio, one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-width-template, theme-options, translation-ready

R1 Studio Theme - Un thème portfolio créatif et brutaliste
*/

/* ============================================
   GOOGLE FONTS - Inter (similaire à la capture)
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   VARIABLES CSS GLOBALES
   Modifiables via le Customizer WordPress
============================================ */
:root {
    /* Couleurs principales - Ces valeurs sont écrasées par le Customizer */
    --r1-color-bg: #0a0a0a;
    --r1-color-bg-alt: #111111;
    --r1-color-text: #ffffff;
    --r1-color-text-muted: #888888;
    --r1-color-border: rgba(255, 255, 255, 0.1);
    
    /* 
     * COULEUR D'ACCENT DYNAMIQUE
     * Cette variable est mise à jour en temps réel par JavaScript
     * Elle fait un fade fluide entre les 5 couleurs d'accent définies
     * Utilisez cette variable partout où vous voulez la couleur d'accent actuelle
     */
    --r1-color-accent: #ef4444;
    --r1-color-accent-current: #ef4444;
    
    /* Couleurs d'accent individuelles (pour référence) */
    --r1-accent-1: #ef4444;
    --r1-accent-2: #facc15;
    --r1-accent-3: #22c55e;
    --r1-accent-4: #06b6d4;
    --r1-accent-5: #a855f7;
    
    /* Typography - Inter comme police principale */
    --r1-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --r1-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    
    /* Menu position */
    --r1-menu-position: flex-end; /* flex-start = gauche, center = centre, flex-end = droite */
    
    /* Spacing */
    --r1-space-xs: 0.5rem;
    --r1-space-sm: 1rem;
    --r1-space-md: 2rem;
    --r1-space-lg: 4rem;
    --r1-space-xl: 6rem;
    --r1-space-2xl: 10rem;
    
    /* Border Radius */
    --r1-radius-sm: 0.5rem;
    --r1-radius-md: 1rem;
    --r1-radius-lg: 1.5rem;
    --r1-radius-xl: 3rem;
    --r1-radius-full: 9999px;
    
    /* Transitions */
    --r1-transition-fast: 150ms ease;
    --r1-transition-base: 300ms ease;
    --r1-transition-slow: 500ms ease;
    --r1-transition-slower: 1000ms ease;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--r1-font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--r1-color-text);
    background-color: var(--r1-color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.cursor-none {
    cursor: none;
}

body.cursor-none a,
body.cursor-none button,
body.cursor-none .interactive {
    cursor: none;
}

body.menu-open {
    overflow: hidden;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.2);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--r1-transition-base);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* Inputs */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--r1-font-main);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 12vw, 12rem);
}

h2 {
    font-size: clamp(2.5rem, 8vw, 8rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Texte de description style (comme la capture) */
.text-description,
.project-description .text,
.hero-tagline .text,
.contact-intro,
.skill-description p {
    font-family: var(--r1-font-main);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #2d3748;
}

/* Label style (APPROCHE & VISION) */
.label,
.section-label {
    font-family: var(--r1-font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #a0aec0;
}

.font-mono {
    font-family: var(--r1-font-mono);
}

.italic {
    font-style: italic;
}

.not-italic {
    font-style: normal;
}

.tracking-tight {
    letter-spacing: -0.03em;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.tracking-widest {
    letter-spacing: 0.35em;
}

/* ============================================
   LAYOUT
============================================ */
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 5rem;
    }
}

.section {
    padding: var(--r1-space-2xl) 0;
}

.grid {
    display: grid;
    gap: var(--r1-space-md);
}

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

@media (max-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: 1fr; }
}

/* ============================================
   NOISE OVERLAY
============================================ */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   CUSTOM CURSOR - Optimisé GPU avec centrage correct
============================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background-color: var(--r1-color-accent);
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
    transition: background-color 0.5s ease;
}

.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    border: 1px solid var(--r1-color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, border-radius 0.3s ease, border-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.05);
}

.cursor-circle.expanded {
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
}

.cursor-circle.pointer {
    border-radius: 15%;
}

.cursor-icon {
    opacity: 0;
    transition: opacity 0.3s ease, color 0.5s ease;
    color: var(--r1-color-accent);
}

.cursor-circle.expanded .cursor-icon {
    opacity: 1;
}

/* ============================================
   HEADER / NAVIGATION
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 3rem;
    transition: background-color var(--r1-transition-slow), color var(--r1-transition-slow);
}

@media (min-width: 768px) {
    .site-header {
        padding: 3rem;
    }
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
}

.site-header.light-mode {
    color: #000;
}

.site-header.light-mode.scrolled {
    background: rgba(252, 252, 252, 0.95);
}

/* Header container pour gérer la position du menu */
.header-container {
    display: flex;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    align-items: center;
}

/* Menu aligné à droite (défaut) */
.header-container.menu-right {
    justify-content: space-between;
}

.header-container.menu-right .main-navigation {
    margin-left: auto;
}

/* Menu aligné à gauche */
.header-container.menu-left {
    justify-content: space-between;
    flex-direction: row-reverse;
}

.header-container.menu-left .main-navigation {
    margin-right: auto;
    margin-left: 0;
}

/* Menu centré */
.header-container.menu-center {
    justify-content: center;
    position: relative;
}

.header-container.menu-center .site-logo {
    position: absolute;
    left: 0;
}

.header-container.menu-center .main-navigation {
    margin: 0 auto;
}

.header-container.menu-center .menu-toggle {
    position: absolute;
    right: 0;
}

.site-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--r1-color-accent);
    transition: color var(--r1-transition-base);
}

@media (min-width: 768px) {
    .site-logo {
        font-size: 2.5rem;
    }
}

.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        gap: 2.5rem;
    }
}

.main-navigation a {
    font-family: var(--r1-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    opacity: 0.5;
    transition: opacity var(--r1-transition-base);
}

.main-navigation a:hover,
.main-navigation a.active {
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 101;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all var(--r1-transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-navigation {
    position: fixed;
    inset: 0;
    background: var(--r1-color-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--r1-transition-base);
}

.mobile-navigation.active {
    opacity: 1;
    visibility: visible;
}

.mobile-navigation a {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 5rem;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background video,
.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--r1-color-bg), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 14vw, 11vw);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.75;
    margin-bottom: 5rem;
}

.hero-title .accent {
    color: var(--r1-color-accent);
}

.hero-footer {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--r1-color-border);
}

@media (min-width: 768px) {
    .hero-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.hero-tagline {
    max-width: 42rem;
}

.hero-tagline .label {
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.hero-tagline .text {
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--r1-color-text-muted);
}

.hero-tagline .text strong {
    color: var(--r1-color-text);
    font-weight: 400;
}

.hero-tagline .text em {
    color: var(--r1-color-text);
    font-style: italic;
    font-weight: 500;
}

.hero-badge {
    padding: 1rem 2rem;
    border: 1px solid var(--r1-color-border);
    border-radius: var(--r1-radius-full);
    font-family: var(--r1-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

/* ============================================
   EXPERTISES / SERVICES SECTION
============================================ */
.expertises-section {
    background: #fff;
    color: #000;
    padding: var(--r1-space-2xl) 0;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-header .label {
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: inherit;
}

.section-header h2 .muted {
    color: #eee;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    transition: font-style var(--r1-transition-base);
}

.view-all-link:hover {
    font-style: italic;
}

.expertises-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #f0f0f0;
    border: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .expertises-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .expertises-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.expertise-card {
    background: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: all var(--r1-transition-base);
}

.expertise-card:hover {
    background: #fafafa;
}

.expertise-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    color: #ccc;
}

.expertise-card-number {
    font-family: var(--r1-font-mono);
    font-size: 14px;
}

.expertise-card h3 {
    font-size: 1.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    font-style: italic;
    transition: font-style var(--r1-transition-base);
    color: #000;
}

.expertise-card:hover h3 {
    font-style: normal;
}

.expertise-card p {
    font-size: 0.875rem;
    color: #888;
    transition: color var(--r1-transition-base);
}

.expertise-card:hover p {
    color: #000;
}

.expertise-card-line {
    height: 4px;
    width: 0;
    background: #000;
    margin-top: 2rem;
    transition: width 0.7s ease;
}

.expertise-card:hover .expertise-card-line {
    width: 100%;
}

/* ============================================
   PROJECTS / ARCHIVE SECTION
============================================ */
.projects-section {
    padding: var(--r1-space-2xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem 5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8rem 5rem;
    }
}

/* Project Card */
.project-card {
    position: relative;
    width: 100%;
}

.project-card-image {
    position: relative;
    overflow: hidden;
    background: var(--r1-color-bg-alt);
    border: 1px solid var(--r1-color-border);
    aspect-ratio: 16/10;
    border-radius: var(--r1-radius-xl);
}

@media (min-width: 768px) {
    .project-card-image {
        aspect-ratio: 16/9;
    }
}

.project-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all var(--r1-transition-slower);
}

.project-card:hover .project-card-image img {
    opacity: 1;
    transform: scale(1.05);
}

.project-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2.5rem;
    z-index: 20;
}

.project-card-badge-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-card-badge-line {
    width: 3rem;
    height: 1px;
    background: var(--r1-color-accent);
}

.project-card-badge-text {
    font-family: var(--r1-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--r1-color-accent);
    font-weight: 700;
    opacity: 0;
    transition: opacity var(--r1-transition-base);
}

.project-card:hover .project-card-badge-text {
    opacity: 1;
}

.project-card-content {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0.5rem;
}

.project-card-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    font-style: italic;
    transition: font-style var(--r1-transition-slow);
}

.project-card:hover .project-card-title {
    font-style: normal;
}

.project-card-meta {
    font-family: var(--r1-font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--r1-color-text-muted);
}

.project-card-meta .number {
    color: var(--r1-color-accent);
}

.project-card-meta .separator {
    opacity: 0.2;
}

.project-card-meta .category {
    color: rgba(255, 255, 255, 0.8);
}

.project-card-arrow {
    color: var(--r1-color-accent);
    padding-top: 0.5rem;
    transition: transform var(--r1-transition-base);
}

.project-card:hover .project-card-arrow {
    transform: translateX(10px);
}

/* ============================================
   SKILLS PAGE
============================================ */
.skills-page {
    background: #fcfcfc;
    color: #000;
    min-height: 100vh;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.skill-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .skill-item {
        grid-template-columns: auto 5fr 6fr;
        gap: 2.5rem;
    }
}

.skill-number {
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.1;
    font-family: var(--r1-font-mono);
    font-style: italic;
    color: #000;
}

.skill-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
    transition: font-style var(--r1-transition-base);
    color: #000;
}

.skill-item:hover .skill-title {
    font-style: italic;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1.25rem;
    border-radius: var(--r1-radius-full);
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.skill-description {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    color: #888;
    line-height: 1.4;
    display: flex;
    align-items: center;
    transition: color var(--r1-transition-base);
}

.skill-item:hover .skill-description {
    color: #000;
}

/* ============================================
   CONTACT PAGE
============================================ */
.contact-section {
    min-height: 100vh;
    padding: var(--r1-space-2xl) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content {
    max-width: 36rem;
}

.contact-title {
    font-size: clamp(3rem, 10vw, 10vw);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.8;
    margin-bottom: 4rem;
    font-style: italic;
}

.contact-title .accent {
    color: var(--r1-color-accent);
    font-style: normal;
}

.contact-intro {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--r1-color-text-muted);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.contact-intro strong {
    color: var(--r1-color-text);
    font-weight: 400;
    font-style: italic;
}

.contact-email {
    font-size: clamp(1.25rem, 4vw, 3rem);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    display: block;
}

/* ============================================
   PROJECT DETAIL PAGE
============================================ */
.project-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .project-hero {
        padding: 5rem;
    }
}

.project-hero-bg {
    position: absolute;
    inset: 0;
}

.project-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.project-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--r1-color-bg), transparent, transparent);
}

.project-hero-content {
    position: relative;
    z-index: 10;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 3rem;
    transition: opacity var(--r1-transition-base);
}

.back-link:hover {
    opacity: 1;
}

.project-number {
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    opacity: 0.4;
    margin-bottom: 1rem;
    display: block;
    font-style: italic;
}

.project-detail-title {
    font-size: clamp(3rem, 12vw, 12vw);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.8;
}

.project-detail-title .accent {
    color: var(--r1-color-accent);
}

/* Project Description Section */
.project-description {
    padding: var(--r1-space-2xl) 0;
    background: #fff;
    color: #000;
}

.project-description-inner {
    max-width: 56rem;
}

.project-description .label {
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    opacity: 0.3;
    font-style: italic;
    margin-bottom: 3rem;
    display: block;
}

.project-description .text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    color: #333;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Project Gallery */
.project-gallery {
    padding: 5rem 1.5rem;
    background: var(--r1-color-bg);
}

@media (min-width: 768px) {
    .project-gallery {
        padding: 5rem 2.5rem;
    }
}

.project-gallery-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .project-gallery-inner {
        gap: 5rem;
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 3vw;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.full {
    aspect-ratio: 16/9;
}

.gallery-item.half {
    display: inline-block;
    width: calc(50% - 1.25rem);
    aspect-ratio: 4/5;
}

@media (max-width: 768px) {
    .gallery-item.half {
        width: 100%;
    }
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    padding: 8rem 1.5rem;
    background: var(--r1-color-accent);
    color: #fff;
    border-radius: 5vw 5vw 0 0;
    position: relative;
    z-index: 20;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 8rem 5rem;
    }
}

.footer-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-title {
    font-size: clamp(2.5rem, 9vw, 9vw);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.85;
    margin-bottom: 4rem;
}

.footer-email {
    font-size: clamp(1.25rem, 4vw, 3rem);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

.footer-info {
    text-align: left;
    opacity: 0.6;
    font-family: var(--r1-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .footer-info {
        text-align: right;
    }
}

.footer-location {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 900;
    opacity: 1;
    margin-bottom: 2.5rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-end;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ============================================
   WORDPRESS SPECIFIC
============================================ */
/* Admin bar adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* ============================================
   UTILITIES
============================================ */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.pointer-events-none { pointer-events: none; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.transition-all { transition: all var(--r1-transition-base); }
.transition-opacity { transition: opacity var(--r1-transition-base); }
.transition-transform { transition: transform var(--r1-transition-base); }
