/* =========================================
   HIGH-END EDITORIAL PROJECT STYLES
   ========================================= */

@font-face {
  font-family: 'Higuen';
  src: url('../fonts/Higuen.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
    --editorial-bg: #2D2D2D;
    --editorial-text: #e0e0e0;
    --editorial-accent: #6E3B49;
    --editorial-grid: rgba(255, 255, 255, 0.08);
    --font-display: 'Playfair Display', serif;
    --font-editorial: 'Higuen', serif;
    --font-body: 'Work Sans', sans-serif;
}

body {
    background-color: var(--editorial-bg);
    color: var(--editorial-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* GRAIN OVERLAY */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* PARALLAX HERO */
.parallax-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax */
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--editorial-bg);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    mix-blend-mode: difference;
}

.hero-title {
    font-family: var(--font-editorial);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: 0.85;
    letter-spacing: 0.04em;
    color: #fff;
    text-transform: uppercase;
    opacity: 0; /* GSAP handles fade in */
    transform: translateY(50px);
}

.hero-meta {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    gap: 2rem;
    justify-content: center;
    opacity: 0;
}

/* EDITORIAL GRID LAYOUT */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    border-top: 1px solid var(--editorial-grid);
    border-bottom: 1px solid var(--editorial-grid);
    margin: 4rem 0;
}

.grid-line {
    background: var(--editorial-grid);
    height: 100%;
}

.project-intro {
    padding: 4rem;
}

.project-intro h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--editorial-accent);
}

.project-details {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--editorial-grid);
    padding: 1rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.detail-label {
    opacity: 0.5;
}

/* SWIPER OVERHAUL */
.project-carousel {
    padding: 8rem 0;
    background: var(--editorial-bg);
    position: relative;
}

.swiper {
    width: 100%;
    height: 70vh;
    overflow: visible;
}

.swiper-slide {
    width: 60%; /* Shows part of next/prev slides */
    height: 100%;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.3;
    transform: scale(0.9);
    filter: grayscale(100%);
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
    z-index: 10;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SWIPER NAVIGATION */
.swiper-button-next,
.swiper-button-prev {
    color: var(--editorial-text);
    transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--editorial-accent);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 2rem;
    font-weight: 300;
}

/* SPLIT FOOTER NAV */
.project-nav-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 50vh;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--editorial-grid);
    overflow: hidden;
    transition: all 0.5s ease;
}

.nav-link:hover {
    background: var(--editorial-accent);
    color: var(--editorial-text);
}

.nav-link span {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
    .grid-line { display: none; }
    .swiper-slide { width: 85%; }
    .project-nav-footer { grid-template-columns: 1fr; height: auto; }
    .nav-link { height: 200px; }
}
