/* PROJECT PAGE - APEX VERSION */

:root {
    --vibrant-red: #C5002C;
    --vibrant-red-hud: #FF0015;
    --color-accent: var(--vibrant-red-hud);
    --color-white: #FFFFFF;
    --font-primary: "freight-sans-pro", sans-serif;
    --font-display: var(--display);
    --font-mono: var(--mono);
    --font-serif: 'Newsreader', serif;
}

.project-body {
    background-color: #050505;
    color: var(--color-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Nav — independent fixed elements, exact match to landing/choice-cuts/long-pour */
.apex-nav { pointer-events: none; }

.nav-name {
    position: fixed;
    top: 4rem;
    left: 4rem;
    color: white;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 900;
    font-style: normal;
    z-index: 10000;
    pointer-events: auto;
}

.nav-name:hover { color: white; }

.menu-trigger {
    position: fixed;
    top: 4rem;
    right: 4rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    z-index: 10000;
    pointer-events: auto;
}

.menu-trigger:hover { opacity: 1; color: var(--vibrant-red-hud); }

/* Full Screen Menu Overlay */
#apex-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 20000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}

.menu-close {
    position: absolute;
    top: 4rem; right: 4rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--vibrant-red-hud);
    cursor: pointer;
    opacity: 0.6;
}

.menu-close:hover { opacity: 1; }

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.menu-link {
    position: relative;
    font-family: var(--display);
    font-size: clamp(60px, 18vw, 350px);
    line-height: 0.65;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: -0.07em;
    transition: all 0.3s ease;
    opacity: 0.1;
    display: block;
    width: fit-content;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.menu-link::before {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    right: 0;
    pointer-events: auto;
    z-index: 1;
}

.menu-link:hover {
    opacity: 1;
    color: var(--vibrant-red-hud);
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

/* Nav breakpoints — exact match to landing/choice-cuts/long-pour */
@media (orientation: landscape) and (max-width: 1366px) {
    .nav-name { top: 3.5rem; left: 3.5rem; font-size: 1.2rem; }
    .menu-trigger { top: 3.5rem; right: 3.5rem; font-size: 0.7rem; }
}

@media (orientation: landscape) and (max-height: 600px) {
    .nav-name { top: 1.5rem; left: 2.5rem; font-size: 1rem; }
    .menu-trigger { top: 1.5rem; right: 2rem; }
    .project-intro-section { padding-top: 6rem; padding-bottom: 6rem; }
    .project-title-main { font-size: clamp(32px, 9vh, 90px); }
    .project-wrapper { padding: 0 2rem 4rem 2rem; }
}

@media (orientation: portrait) and (max-width: 1024px) {
    .nav-name { top: 3rem; left: 3rem; font-size: 0.9rem; max-width: 60%; line-height: 1.2; }
    .menu-trigger { top: 3rem; right: 3rem; font-size: 0.7rem; opacity: 1; }
}
@media (orientation: landscape) and (max-width: 1366px) {
    .project-credits,
    .hero-credits-corner { bottom: 12rem !important; right: 4rem !important; font-size: 0.7rem !important; }
}

@media (max-width: 768px) {
    .project-credits,
    .hero-credits-corner { bottom: 4rem !important; right: 1rem !important; }
    .menu-close { top: 2rem; right: 2rem; }
    .menu-link { font-size: 15vw; line-height: 0.65; letter-spacing: -0.07em; }
}

@media (max-width: 480px) {
    .nav-name { font-size: 0.8rem; }
}

/* Hide HUD frame and tags on mobile — content too crowded */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
    .corner-frame,
    .hud-tag { display: none !important; }
}

.project-wrapper {
    padding: 0 4rem 8rem 4rem; /* Removed top padding to allow 100vh centering */
    max-width: 1600px;
    margin: 0 auto;
}

/* HERO */
.project-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    text-align: center;
}

.project-meta-top {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.project-title-main {
    font-family: var(--display);
    font-size: clamp(60px, 12vw, 220px);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin: 0 0 2rem 0;
}

.project-credits {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0.6;
    line-height: 1.4;
}

/* INTRO */
.project-intro-section {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 28rem;
    padding-bottom: 28rem;
    margin-bottom: 0;
    max-width: none;
    width: 100%;
}

.project-intro-content {
    max-width: fit-content;
    margin: 0 auto;
    text-align: left;
}

.project-intro-text {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: pre-line;
}

/* ASSETS */
.assets-container {
    display: block; /* Switched to block for natural flow */
    width: 100%;
    margin-bottom: 15rem;
}

.visual-asset-item {
    width: 100%;
    margin: 0 0 30rem 0; /* Massive breathing room from Disney */
    display: block;
    text-align: left;
}

.visual-asset-item.half-width .visual-asset-image {
    width: 60%;
    margin: 0 auto;
}

.visual-asset-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9);
    transition: all 0.5s ease;
    border: 1px solid transparent;
    margin: 0 auto;
}

@keyframes sensor-glitch {
    0% { transform: translate(0); filter: brightness(1); }
    1% { transform: translate(-2px, 1px); filter: brightness(1.2) hue-rotate(90deg); }
    2% { transform: translate(2px, -1px); filter: brightness(1); }
    100% { transform: translate(0); }
}

.visual-asset-image:hover {
    animation: sensor-glitch 0.2s cubic-bezier(.25,.46,.45,.94) both;
}


/* HUD ELEMENTS */
.corner-frame {
    position: fixed;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    border: 1px solid rgba(255, 0, 60, 0.2);
    pointer-events: none;
    z-index: 1000;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--vibrant-red-hud);
    opacity: 1;
}

.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hud-tag {
    position: fixed;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--vibrant-red-hud);
    opacity: 0.6;
    pointer-events: none;
    text-transform: uppercase;
    z-index: 1000;
}


.hud-tl { top: 0.8rem; left: 2rem; }
.hud-tr { top: 0.8rem; right: 2rem; }
.hud-bl { bottom: 0.8rem; left: 2rem; }
.hud-br { bottom: 0.8rem; right: 2rem; }


.visual-asset-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    opacity: 0.3;
    text-transform: uppercase;
    margin-top: 1.5rem;
    text-align: left;
    width: 100%;
    display: block;
}

.visual-asset-item.half-width .visual-asset-label {
    width: 60%;
    margin: 1.5rem auto 0 auto;
}

.section-headline {
    font-family: var(--font-display);
    font-size: clamp(54px, 7.5vw, 160px); /* Massive focal point */
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: #FFFFFF;
}

/* CAMPAIGN STORY */
.campaign-section {
    border-top: none !important;
    padding-top: 6rem;
    margin-bottom: 10rem;
}

.campaign-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 0, 0, 0.15) !important;
    border-bottom: 1px solid rgba(255, 0, 0, 0.15) !important;
}

.campaign-col {
    border-right: 1px solid rgba(255, 0, 0, 0.1) !important;
    padding: 4rem 2rem !important;
}

.campaign-col:last-child {
    border-right: none !important;
}

.campaign-col-heading {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1) !important;
}

.campaign-col-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 4rem;
    width: 64px;
    height: 64px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* FOOTER */
.footer-metadata {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: white;
    opacity: 0.8;
}

.footer-metadata a { color: inherit; text-decoration: none; }
.footer-metadata a:hover { color: var(--color-accent); }

/* NEXT PROJECT NAV */
.next-project-nav {
    margin-top: 15rem;
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 0, 0, 0.15);
    text-align: center;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    transition: background 0.4s ease;
    margin-bottom: 12rem;
}

.next-project-link {
    text-decoration: none;
    display: block;
    color: white;
}

.next-project-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.next-project-title {
    font-family: var(--display);
    font-size: clamp(40px, 10vw, 180px);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    transition: transform 0.4s ease, color 0.4s ease;
}

.next-project-brand {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(18px, 2.5vw, 32px);
    margin-top: 1.5rem;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.next-project-link:hover .next-project-title {
    transform: scale(1.02);
    color: var(--color-accent);
}

.next-project-link:hover .next-project-brand {
    opacity: 1;
}

@media (max-width: 768px) {
    .next-project-nav { margin-top: 8rem; padding: 4rem 0; }
    .next-project-title { font-size: 15vw; }
}

/* Responsive */
@media (max-width: 1024px) {
    .campaign-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apex-nav, .project-wrapper {
        left: 2rem;
        right: 2rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .campaign-table {
        grid-template-columns: 1fr;
    }
    .visual-asset-item.half-width {
        width: 100%;
    }
}
