/* ========================================
   PORTFOLIO PAGE - Kinetic Immersive (Refined)
   ======================================== */

/* --- PORTFOLIO FONT OVERRIDE (ensure consistency with localhost) --- */
.portfolio-page,
.portfolio-page p,
.portfolio-page span,
.desc,
.hero-meta {
    font-family: var(--font-body) !important;
    font-weight: 400 !important;
}

.portfolio-page h1,
.portfolio-page h2,
.portfolio-page h3,
.hero-statement,
.kinetic-title {
    font-family: var(--font-head) !important;
}

.label,
.meta-top,
.stats {
    font-family: var(--font-mono) !important;
}

.portfolio-page {
    position: relative;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- FIXED BACKGROUNDS --- */
.fixed-backgrounds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: #050505;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.bg-layer.active {
    opacity: 0.5;
    /* Opacity for readability over BG */
}

/* Default state */
.bg-layer.default {
    background: #0a0a0a;
    opacity: 1;
}

/* --- SCROLL CONTENT --- */
.kinetic-scroll-container {
    position: relative;
    z-index: 5;
    mix-blend-mode: normal;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.kinetic-hero {
    height: 100vh;
    /* Force exact screen height */
    min-height: auto;
    /* Full screen intro */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    mix-blend-mode: difference;
    padding: 0 5vw;
    /* Remove vertical padding to let flex center it */
}

.hero-manifesto {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    display: block;
    opacity: 0.6;
}

.hero-statement {
    display: block !important;
    font-family: var(--font-head);
    font-size: clamp(3rem, 9vw, 8rem) !important;
    line-height: 1.15 !important;
    height: auto !important;
    max-height: none !important;
    letter-spacing: -0.04em;
    margin: 0 0 30px;
}

.hero-statement .italic {
    font-style: italic;
    color: #fff;
}

.hero-statement .outline {
    display: block !important;
    font-weight: 700 !important;
    font-family: var(--font-head) !important;
    -webkit-text-stroke: 1px #fff !important;
    text-stroke: 1px #fff !important;
    color: transparent !important;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-trigger {
    display: block;
    margin-top: 40px;
    opacity: 0.5;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }
}

/* --- KINETIC ITEM LAYOUT --- */
.kinetic-list {
    padding-bottom: 30vh;
    display: flex;
    flex-direction: column;
    /* Gap removed, controlled by separators now */
    gap: 0;
}

.kinetic-item {
    position: relative;
    padding: 0 5vw;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    /* Add internal padding for hit area */
    padding-top: 5vh;
    padding-bottom: 5vh;
}

/* Separator Style */
.subtle-separator {
    height: 1px;
    width: 60%;
    /* Not full width for subtleness */
    margin: 0 auto;
    /* Centered */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Asymmetry Grid Positions */
.item-inner {
    max-width: 900px;
    /* Constrain content width */
}

.align-left .item-inner {
    margin-right: auto;
}

.align-right .item-inner {
    margin-left: auto;
    text-align: right;
}

.align-center .item-inner {
    margin: 0 auto;
    text-align: center;
    max-width: 1100px;
}

/* Offsets */
.offset-down {
    margin-top: 10vh;
}

.offset-up {
    margin-top: -5vh;
}

/* --- TYPOGRAPHY --- */
.meta-top {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    opacity: 0.7;
    mix-blend-mode: difference;
    display: flex;
    gap: 20px;
    /* Align meta based on parent alignment */
}

.align-right .meta-top {
    justify-content: flex-end;
}

.align-center .meta-top {
    justify-content: center;
}

.meta-top .no {
    opacity: 0.5;
}

.kinetic-title {
    font-family: var(--font-head);
    font-size: clamp(5rem, 12vw, 14rem) !important;
    line-height: 1.0;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    mix-blend-mode: exclusion;
    transform-origin: center center;
    white-space: nowrap;
}

.kinetic-title .outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8) !important;
    text-stroke: 1px rgba(255, 255, 255, 0.8) !important;
    color: transparent !important;
}

.kinetic-title .italic {
    font-style: italic;
}

/* --- RICH CONTENT (Description & Stats) --- */
.project-content {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    mix-blend-mode: difference;
}

.align-right .project-content {
    flex-direction: row-reverse;
}

.align-center .project-content {
    justify-content: center;
    text-align: left;
}

.desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 350px;
    margin: 0;
}

.stats {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    text-align: left;
}

.align-right .stats {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 0;
    padding-right: 20px;
    text-align: right;
}

/* --- HOVER EFFECTS --- */
.kinetic-item:hover .kinetic-title {
    color: var(--accent);
    /* Only solid parts */
}

.kinetic-item:hover .kinetic-title .outline {
    -webkit-text-stroke-color: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

    /* Reset Offsets for Tablet */
    .offset-down,
    .offset-up {
        margin-top: 0;
    }

    .kinetic-list {
        gap: 10vh;
    }
}

@media (max-width: 768px) {
    .kinetic-hero {
        min-height: 70vh;
    }

    .hero-statement {
        font-size: 4rem;
    }

    .project-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 20px;
    }

    .align-right .project-content {
        flex-direction: column;
    }

    .align-right .item-inner {
        text-align: left;
        margin-right: auto;
        margin-left: 0;
    }

    .align-right .meta-top {
        justify-content: flex-start;
    }

    .align-right .stats {
        text-align: left;
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        padding-right: 0;
        padding-left: 20px;
    }

    .kinetic-title {
        font-size: 4rem;
        white-space: normal;
        /* Allow wrap */
    }
}