/* ═══════════════════════════════════════════════════════════════════════════
   PORTFOLIO PAGE — UNFRM LAB  
   Bento Grid • Dark Theme • Gold Accents
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.portfolio-page {
    min-height: 100vh;
    width: 100%;
}

/* ─── LOCKED STATE ─────────────────────────────────────────────────────────── */
.pf-locked {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.pf-locked-content {
    text-align: center;
    max-width: 600px;
}

.pf-locked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(212, 184, 140, 0.06);
    border: 1px solid rgba(212, 184, 140, 0.15);
    color: #D4B88C;
    margin-bottom: 2rem;
    animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 184, 140, 0); }
    50% { box-shadow: 0 0 40px 8px rgba(212, 184, 140, 0.08); }
}

.pf-hero {
    position: relative;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.pf-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 184, 140, 0.06) 0%, transparent 60%);
    z-index: 0;
}

.pf-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.pf-hero-tag {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: #D4B88C;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.pf-hero-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pf-hero-subtitle {
    color: #888;
    font-size: 1.15rem;
    margin: 0 0 3rem;
    line-height: 1.5;
}

.pf-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pf-stat-number {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: #D4B88C;
}

.pf-stat-label {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

.pf-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* ─── FILTER TABS ──────────────────────────────────────────────────────────── */
.pf-filters-sticky {
    position: sticky;
    top: 70px;
    z-index: 50;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
}

.pf-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pf-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.pf-filter-icon {
    font-size: 0.9rem;
}

.pf-filter-btn:hover {
    background: rgba(212, 184, 140, 0.08);
    border-color: rgba(212, 184, 140, 0.25);
    color: #D4B88C;
}

.pf-filter-btn.active {
    background: rgba(212, 184, 140, 0.15);
    border-color: #D4B88C;
    color: #D4B88C;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(212, 184, 140, 0.1);
}

/* ─── BENTO GRID ───────────────────────────────────────────────────────────── */
.pf-grid-section {
    padding: 3rem 0 6rem;
}

.pf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pf-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
}

/* SIZING */
.bento-size-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-size-medium {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-size-small {
    grid-column: span 4;
    grid-row: span 1;
}

/* ─── BENTO CARD BASE ──────────────────────────────────────────────────────── */
.bento-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover {
    border-color: rgba(212, 184, 140, 0.4);
    box-shadow:
        0 20px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 30px -5px rgba(212, 184, 140, 0.08);
    transform: translateY(-4px);
}

/* Background image */
.bento-bg {
    position: absolute;
    inset: 0;
}

.bento-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .bento-bg img {
    transform: scale(1.06);
}

.bento-bg--plans img {
    object-fit: contain;
    padding: 2rem;
    background: #fff;
}

/* Overlay gradient */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 70%
    );
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.bento-card:hover .bento-overlay {
    opacity: 1;
}

/* Badge */
.bento-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Featured ribbon */
.bento-featured-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, #D4B88C, #A8906A);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
}

/* Info on hover */
.bento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    z-index: 5;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bento-card:hover .bento-info {
    transform: translateY(0);
    opacity: 1;
}

.bento-info h3 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.3rem;
    font-weight: 500;
}

.bento-info p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin: 0;
}

.bento-photo-count {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.7rem;
    color: #D4B88C;
    letter-spacing: 0.1em;
    border: 1px solid rgba(212, 184, 140, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

.bento-cta {
    display: inline-block;
    margin-top: 0.6rem;
    color: #D4B88C;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Info bar for staging */
.bento-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bento-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.bento-location {
    color: #888;
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 0.1em;
}

/* Play button overlay */
.bento-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 80px;
    height: 80px;
    background: rgba(212, 184, 140, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 184, 140, 0.5);
    transition: all 0.3s;
}

.bento-play-btn svg {
    margin-left: 4px;
}

.bento-card:hover .bento-play-btn {
    background: rgba(212, 184, 140, 0.4);
    border-color: #D4B88C;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(212, 184, 140, 0.3);
}

/* ─── STAGING SLIDER ───────────────────────────────────────────────────────── */
.staging-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
}

.staging-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.staging-after {
    position: absolute;
    inset: 0;
}

.staging-before-clip {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.staging-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 3px;
    transform: translateX(-50%);
}

.staging-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #D4B88C;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(212, 184, 140, 0.5);
}

.staging-handle-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid #D4B88C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4B88C;
    box-shadow: 0 0 20px rgba(212, 184, 140, 0.3);
    cursor: col-resize;
}

.staging-label {
    position: absolute;
    bottom: 3.5rem;
    z-index: 5;
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
}

.staging-label--before { left: 1rem; }
.staging-label--after { right: 1rem; }

/* ─── LIGHTBOX ─────────────────────────────────────────────────────────────── */
.pf-lightbox-overlay,
.pf-video-overlay,
.pf-plan-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pf-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #D4B88C;
    color: #D4B88C;
}

.pf-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pf-lightbox-prev { left: 1.5rem; }
.pf-lightbox-next { right: 1.5rem; }

.pf-lightbox-nav:hover {
    background: rgba(212, 184, 140, 0.15);
    border-color: #D4B88C;
    color: #D4B88C;
}

.pf-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.pf-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.1em;
}

/* ─── VIDEO MODAL ──────────────────────────────────────────────────────────── */
.pf-video-container {
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pf-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── PLAN ZOOM ─────────────────────────────────────────────────────────────── */
.pf-plan-overlay {
    background: rgba(255, 255, 255, 0.97);
}

.pf-plan-overlay .pf-lightbox-close {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.pf-plan-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ─── LOADING ──────────────────────────────────────────────────────────────── */
.pf-loading {
    text-align: center;
    padding: 6rem 2rem;
}

.pf-loading-pulse {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 184, 140, 0.3);
    border-top-color: #D4B88C;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: pfSpin 0.8s linear infinite;
}

@keyframes pfSpin {
    to { transform: rotate(360deg); }
}

.pf-loading p {
    color: #666;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ─── EMPTY STATE ──────────────────────────────────────────────────────────── */
.pf-empty {
    text-align: center;
    padding: 6rem 2rem;
}

.pf-empty-icon {
    font-size: 3rem;
    color: #D4B88C;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.pf-empty h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.pf-empty p {
    color: #666;
    font-size: 0.95rem;
}

/* ─── CTA SECTION ──────────────────────────────────────────────────────────── */
.pf-cta-section {
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pf-cta-content h2 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 0.8rem;
}

.pf-cta-content p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.pf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #D4B88C, #A8906A);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 30px rgba(212, 184, 140, 0.25);
}

.pf-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 184, 140, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .pf-bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 240px;
    }

    .bento-size-large {
        grid-column: span 6;
        grid-row: span 2;
    }

    .bento-size-medium {
        grid-column: span 3;
        grid-row: span 2;
    }

    .bento-size-small {
        grid-column: span 3;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .pf-hero { padding: 4rem 1.5rem 2.5rem; }
    .pf-hero-stats { gap: 1.5rem; }
    .pf-stat-number { font-size: 1.8rem; }

    .pf-filters { gap: 0.3rem; }
    .pf-filter-btn { padding: 0.5rem 0.8rem; font-size: 0.78rem; }

    .pf-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
        gap: 0.75rem;
    }

    .bento-size-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-size-medium {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-size-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-info h3 { font-size: 1.1rem; }
    .bento-badge { font-size: 0.55rem; padding: 0.3rem 0.5rem; }

    .pf-lightbox-nav { display: none; }
    .pf-lightbox-img { max-width: 95vw; }
}

@media (max-width: 480px) {
    .pf-hero-title { font-size: 2.5rem; }
    .pf-hero-stats { flex-direction: column; gap: 1rem; }
    .pf-stat-divider { width: 40px; height: 1px; }

    .pf-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .bento-size-large,
    .bento-size-medium,
    .bento-size-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-size-large {
        grid-row: span 2;
    }
}