/* ==========================================
   TURTLES WEB - PAGE PROJECT & CASE STUDY STYLES
   ========================================== */

/* Body Pure Black Theme */
body.single-case-study {
    background-color: #000000 !important;
    color: #F6F6F6 !important;
}

/* Project Hero (Single Case Study) */
.project-hero {
    padding: 220px 40px 80px 40px;
    max-width: var(--max-width-site);
    margin: 0 auto;
    position: relative;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 65%);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.project-title {
    font-size: clamp(56px, 8vw, 110px);
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 64px;
}

/* Project Meta Grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 32px;
    margin-bottom: 80px;
}

.meta-item { display: flex; flex-direction: column; gap: 10px; }
.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: rgba(255, 255, 255, 0.45); }
.meta-value { font-size: 16px; font-weight: 500; color: #ffffff; line-height: 1.5; }

.project-main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-main-image:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-xl);
    image-rendering: -webkit-optimize-contrast;
}

/* Editorial Split Text */
.text-section {
    padding: 120px 40px;
    max-width: var(--max-width-site);
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.text-section + .text-section {
    padding-top: 40px;
}

.ts-left { flex: 1; position: sticky; top: 140px; }
.ts-left h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ts-right { flex: 1.5; display: flex; flex-direction: column; gap: 40px; }
.ts-right p { font-size: 20px; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }

.ts-right p.highlight {
    font-size: 26px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.5px;
    border-left: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 16px 16px 0;
    padding: 28px 36px;
    margin: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Asymmetrical Gallery */
.gallery-section { padding: 0 40px 120px 40px; max-width: var(--max-width-site); margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery-img-wrapper {
    border-radius: 24px;
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.gallery-img-wrapper:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}
.gallery-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); image-rendering: -webkit-optimize-contrast; }
.gallery-img-wrapper:hover img { transform: scale(1.04); }

.gi-wide { grid-column: 1 / 3; aspect-ratio: 16 / 7; }
.gi-tall { aspect-ratio: 4 / 5; }

/* Dark Mode Results */
.results-section {
    background-color: #000000;
    color: #ffffff;
    padding: 140px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 70%);
}
.results-container { max-width: var(--max-width-site); margin: 0 auto; }
.results-header {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 80px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.stat-number {
    font-size: 72px; font-weight: 700; letter-spacing: -3px; margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 15px; color: rgba(255, 255, 255, 0.65); line-height: 1.6; font-weight: 500; }

/* Next Project CTA */
.next-project { padding: 160px 40px; text-align: center; max-width: var(--max-width-site); margin: 0 auto; }
.np-label { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.45); margin-bottom: 24px; display: block; }
.np-title {
    font-size: clamp(48px, 6vw, 96px); font-weight: 700; letter-spacing: -2.5px; color: #ffffff;
    text-decoration: none; display: inline-flex; align-items: center; gap: 24px; transition: opacity 0.3s ease, color 0.3s ease; position: relative;
}

.np-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.2) 100%);
    transform: scaleX(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-title:hover::after { transform: scaleX(1); transform-origin: left; }
.np-title svg { width: 70px; height: 70px; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.np-title:hover svg { transform: translateX(16px); }

/* Project Archive Hero & Bento Styles */
.archive-hero { 
    padding: 220px 40px 100px 40px; 
    max-width: var(--max-width-site); 
    margin: 0 auto; 
    text-align: center; 
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05) 0%, rgba(5, 5, 5, 0) 65%);
}

.hero-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 11px; 
    font-weight: 700; 
    color: rgba(255, 255, 255, 0.85); 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(10px); 
    padding: 8px 20px; 
    border-radius: 50px; 
    margin-bottom: 28px; 
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title { 
    font-size: clamp(56px, 8vw, 110px); 
    font-weight: 700; 
    letter-spacing: -3px; 
    line-height: 1; 
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin-bottom: 24px; 
}

.hero-subtitle { 
    font-size: 19px; 
    color: rgba(255, 255, 255, 0.65); 
    max-width: 620px; 
    margin: 0 auto 48px auto; 
    line-height: 1.6; 
}

/* Hero Stats Strip */
.hero-stats-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 16px 36px;
    border-radius: 100px;
}

.h-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.h-stat-lbl {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.h-stat-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.showcase-wrapper { background-color: #050505; padding: 120px 40px; }
.showcase-container { max-width: var(--max-width-site); margin: 0 auto; display: flex; flex-direction: column; gap: 160px; }
.project-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.b-header { grid-column: span 12; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 24px; margin-bottom: 12px; }
.b-title { font-size: 48px; font-weight: 600; color: #ffffff; letter-spacing: -1.5px; line-height: 1; }

.b-title-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.b-title-link:hover {
    color: #ffffff;
}

.b-title-arrow {
    width: 28px;
    height: 28px;
    opacity: 0.65;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.b-title-link:hover .b-title-arrow,
.project-bento:hover .b-title-arrow {
    opacity: 1;
    transform: translate(4px, -4px);
}
.b-tags { display: flex; gap: 12px; }
.b-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: #aaaaaa; border: 1px solid rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 50px; }

.b-card { background: #0d0d0d; border-radius: 24px; border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.b-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.b-image { grid-column: span 8; height: 480px; position: relative; }
.b-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.b-card:hover.b-image img { transform: scale(1.03); }

.b-story { grid-column: span 4; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.story-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: #ffffff; margin-bottom: 16px; display: inline-block; }
.story-label.highlight { color: #888888; }
.b-story p { font-size: 16px; line-height: 1.6; color: #aaaaaa; margin-bottom: 24px; }
.b-story p:last-child { margin-bottom: 0; }
.b-story strong { color: #ffffff; font-weight: 500; }

.b-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.b-cta-btn:hover {
    color: #e0e0e0;
    gap: 12px;
}

.b-stat { grid-column: span 4; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.stat-num { font-size: 56px; font-weight: 600; letter-spacing: -2px; color: #ffffff; line-height: 1; margin-bottom: 12px; background: linear-gradient(135deg, #ffffff 0%, #777777 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-desc { font-size: 14px; color: #888888; line-height: 1.5; font-weight: 500; }

.project-bento.mirrored .b-image { grid-column: 5 / 13; grid-row: 2; }
.project-bento.mirrored .b-story { grid-column: 1 / 5; grid-row: 2; }

.direct-cta { background-color: #050505; padding: 80px 40px 160px 40px; text-align: center; }
.cta-content { max-width: 800px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 120px; }
.cta-title { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -2px; color: #ffffff; margin-bottom: 24px; }
.cta-desc { font-size: 18px; color: #888888; line-height: 1.6; margin-bottom: 48px; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-massive { display: inline-flex; align-items: center; gap: 12px; background: #ffffff; color: #000000; padding: 24px 48px; border-radius: 100px; font-size: 18px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.btn-massive:hover { background: #e0e0e0; transform: translateY(-4px); }
.btn-massive svg { transition: transform 0.3s ease; }
.btn-massive:hover svg { transform: translateX(4px); }

@media (max-width: 1024px) {
    .project-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .text-section { flex-direction: column; gap: 40px; }
    .ts-left { position: relative; top: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .b-image { grid-column: span 12; grid-row: auto !important; height: auto; aspect-ratio: 16 / 10; width: 100%; }
    .b-story { grid-column: span 12; grid-row: auto !important; }
    .b-stat { grid-column: span 4; }
    .project-bento.mirrored .b-image { grid-column: span 12; grid-row: auto !important; order: 1; }
    .project-bento.mirrored .b-story { grid-column: span 12; grid-row: auto !important; order: 2; }
}

@media (max-width: 768px) {
    .project-hero { padding: 160px 24px 60px 24px; }
    .project-meta-grid { grid-template-columns: 1fr; gap: 24px; }
    .project-main-image { height: 50vh; border-radius: 20px; }
    .text-section { padding: 80px 24px; }
    .ts-left h2 { font-size: 36px; }
    .ts-right p { font-size: 18px; }
    .ts-right p.highlight { font-size: 24px; padding-left: 20px; }
    .gallery-section { padding: 0 24px 80px 24px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gi-wide { grid-column: auto; aspect-ratio: 4/3; }
    .gi-tall { aspect-ratio: 4/3; }
    .results-section { padding: 100px 24px; }
    .results-header { font-size: 36px; margin-bottom: 60px; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .stat-number { font-size: 64px; }
    .next-project { padding: 100px 24px; }
    .np-title svg { width: 40px; height: 40px; }
    .archive-hero { padding: 180px 24px 60px 24px; }
    .hero-stats-strip { flex-direction: column; gap: 16px; padding: 20px 28px; border-radius: 24px; }
    .h-stat-divider { width: 100%; height: 1px; }
    .showcase-wrapper { padding: 60px 24px; }
    .showcase-container { gap: 80px; }
    .b-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .b-title { font-size: 36px; }
    .b-tags { flex-wrap: wrap; }
    .b-image { height: auto; aspect-ratio: 16 / 10; width: 100%; }
    .b-stat { grid-column: span 12; min-height: auto; }
    .stat-num { font-size: 48px; }
    .direct-cta { padding: 40px 24px 100px 24px; }
    .cta-content { padding-top: 80px; }
    .btn-massive { width: 100%; justify-content: center; }
}
