:root {
    --frame-color: #000000; 
    --bg-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--frame-color); 
    font-family: 'Arial Black', sans-serif;
    color: #fcf7f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.return-btn, 
.close-overlay,
#custom-quote-btn {
    background: none;
    border: 1px solid rgba(252, 247, 240, 0.3);
    color: #fcf7f0;
    padding: 12px 24px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
}

.return-btn:hover, 
.close-overlay:hover,
#custom-quote-btn:hover {
    background: #FFFC30;
    color: #000;
    border-color: #FFFC30;
}

.parallax-wrapper {
    height: 100vh;
    width: 100%; 
    background-color: #FFFC30;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    position: relative;
    z-index: 5;
}

.hero {
    height: 100vh;
    width: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    background-color: var(--bg-color);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    will-change: width, opacity; 
    overflow: hidden;
}

#svg-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-end;
    padding: 20px;
}

#hero-svg {
    width: 100%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.45));
    animation: focusIn 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards, 
               float 5s ease-in-out 2.5s infinite;
    will-change: filter, transform;
    perspective: 1000px; 
    transform-style: preserve-3d;
    overflow: visible; 
}

.logo-letter {
    transform-box: fill-box;
    transform-origin: center center;
    transform-style: preserve-3d; 
    transition: transform 0.1s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

#hero-svg path {
    pointer-events: auto;
    cursor: pointer;
}

.logo-container {
    display: flex;
    flex-direction: column; 
    width: fit-content;                
    position: relative;
}

#hero-subtitle {
    margin: 10px 0 0 0;
    text-align: right;
    font-size: 1.0rem;
    line-height: 1;
    color: #fcf7f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.9);
    animation: focusIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s; 
    will-change: transform, opacity, filter; 
    transform-origin: right center;
}

#hero-subtitle span {
    display: inline-block;
    will-change: transform, opacity;
}

.scroll-indicator {
    position: fixed; 
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999; 
    pointer-events: none;
    opacity: 0; 
    transition: opacity 0.4s ease-in-out;
}

.scroll-indicator span {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    color: #fcf7f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fcf7f0;
    border-bottom: 2px solid #fcf7f0;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

.global-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7.5vw; 
    z-index: 1000; 
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(10px); 
}

.global-header.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dim {
    color: rgba(252, 247, 240, 0.3);
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: 1px;
    pointer-events: none;
}

.header-logo, 
.header-nav a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 400;
    color: #fcf7f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    text-decoration: none !important;
    padding: 2px 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: auto !important;
}

.header-logo::after,
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #FFFC30;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.header-logo:hover,
.header-nav a:hover {
    background-color: #ffffff; 
    color: #000000; 
}

.header-logo:hover::after,
.header-nav a:hover::after {
    opacity: 1;
}

.access-layer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95); 
    z-index: 10000;
    display: none; 
    justify-content: center;
    align-items: center;
}

.access-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    height: 100vh;
    width: 100%;
    padding: 20px;
    overflow: hidden;
}

#login-state {
    display: flex;  
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.access-title {
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-align: center;
    margin: 0;
    color: yellow;
}

.access-subtitle {
    font-size: 0.85rem;
    letter-spacing: 7px;
    margin-bottom: 80px;
}

.access-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#access-pass {
    width: 280px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(252, 247, 240, 0.2);
    color: #fcf7f0;
    padding: 12px 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
    letter-spacing: 4px;
    outline: none;
    transition: border-color 0.4s ease;
}

#access-pass:focus {
    border-bottom-color: rgba(252, 247, 240, 1);
}

#access-submit {
    margin-top: 40px;
    background: #fcf7f0;
    color: #000;
    padding: 12px 40px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#access-submit:hover {
    letter-spacing: 4px;
    background: #5ae913;
}

#pdf-viewer-layer {
    display: none; 
    flex-direction: column;
    align-items: center;
    width: 90vw;
    height: 90vh; 
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#pdf-viewer-layer.is-visible {
    display: flex;
    opacity: 1;
}

.partner-content-section {
    display: none;
    width: 100%;
    height: 100%;
    padding: 40px 5vw; 
}

.partner-content-section.is-active {
    display: block;
}

.tab-viewport {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

#pdf-anchor {
    width: 100%;
    height: 100%; 
    display: flex;
    overflow: hidden;
    background: #000;
}

#pdf-anchor iframe,
#pdf-anchor embed {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.archive-hero-image {
    width: 100%;
    max-height: 80px;
    overflow: hidden;
    margin-bottom: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: #67c80c; 
}

.archive-hero-image img {
    width: 50%;
    object-fit: cover; 
    transform: translateY(-5%);
}

.archive-title {
    font-size: 1.5rem;
    letter-spacing: 8px;
    color: #FFFC30;
    margin: 0;
    text-align: center;
}

.header-action-row {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 20px;               
    margin: 15px;
}

#custom-quote-btn {
    display: none; 
}

#custom-quote-btn.is-visible {
    display: inline-flex;
}

#archive-tab {
    padding-bottom: 30px;
}

.archive-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.archive-item {
    flex: 0 0 400px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.archive-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #000;
    border: 1px solid rgba(252, 247, 240, 0.05);
}

.archive-image img,
.archive-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.6s ease;
    transform: translateZ(0); 
    will-change: filter, transform;
}

.archive-item:hover img,
.archive-item:hover video {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.archive-item h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.1rem;
    color: #fcf7f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
}

.archive-item p {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: rgba(252, 247, 240, 0.6);
    line-height: 1.4;
    margin-top: 5px;
    width: 100%;
    text-align: left;
    transition: color 0.3s ease;
}

.archive-item:hover h3 {
    color: #FFFC30;
}

.archive-item:hover p {
    color: rgba(255, 252, 48, 0.8);
}

.parallax-group {
    height: 200vh; 
    width: 85vw; 
    margin: 0 auto;
    scroll-snap-align: start;
    position: relative;
    z-index: 20;
    background-color: var(--bg-color); 
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%; 
    display: flex;
    align-items: flex-start; 
    background-color: var(--bg-color);
    overflow: hidden; 
}

.parallax-group.is-reversed .sticky-container {
    flex-direction: row-reverse;
}

.text-side {
    width: 44%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vw;
    flex-shrink: 0;
    position: relative; 
    overflow: hidden;
}

.text-side::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: 
        radial-gradient(circle at 0% calc(80% - (var(--section-scroll) * 0.2px)), 
                        rgba(252, 247, 240, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 0% calc(80% - (var(--section-scroll) * 0.2px)), 
                        rgba(252, 247, 240, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 70% calc(10% + (var(--section-scroll) * 0.1px)), 
                        rgba(252, 247, 240, 0.08) 0%, transparent 25%),
        #000;
    filter: blur(1.5px);
}

.parallax-group.is-reversed .text-side::before {
    background: 
        radial-gradient(circle at 100% calc(80% - (var(--section-scroll) * 0.2px)), 
                        rgba(252, 247, 240, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 100% calc(80% - (var(--section-scroll) * 0.2px)), 
                        rgba(252, 247, 240, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 30% calc(10% + (var(--section-scroll) * 0.1px)), 
                        rgba(252, 247, 240, 0.08) 0%, transparent 25%),
        #000;
}

.text-side > * {
    position: relative;
    z-index: 2;
}

.image-side {
    width: 56%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.1s ease-in-out; 
    will-change: opacity;
}

.image-stack img:first-child {
    opacity: 1;
}

.bold-text {
    font-size: clamp(3.2rem, 3.8vw, 11.5rem);
    line-height: 0.88; 
    text-transform: uppercase;
    display: inline-block;
    width: 100%;
    text-align: left;
    will-change: transform;
}

.image-content {
    position: absolute;
    top: 85vh; 
    left: 0;
    width: 100%; 
    padding: 3rem 5%; 
    z-index: 20;
    background: rgba(0, 0, 0, 0.55); 
    border-left: 11px solid #fcf7f0;
    backdrop-filter: blur(7px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
}

.parallax-group.is-reversed .image-content {
    border-left: none;
    border-right: 11px solid #fcf7f0;
    text-align: left;
    right: 0;
    left: auto;
}

.parallax-group.is-reversed .bold-text {
    text-align: right;
}

.image-content h3 {
    font-size: clamp(1.5rem, 1.7vw, 3rem);
    color: #fcf7f0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1.6px;
    text-align: right;
}

.parallax-group.is-reversed h3,
.parallax-group.is-reversed p {
    text-align: left;
}

.image-content p {
    font-family: 'Arial', sans-serif; 
    font-size: clamp(1.15rem, 1.5vw, 1.4rem);
    line-height: 1.3;
    color: #fcf7f0;
    letter-spacing: 0.02em;
    text-align: right;
}

/* FIX: UNIVERSAL PARTNER HEADER STYLES */
.partner-internal-nav {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(252, 247, 240, 0.1);
    flex-wrap: wrap; /* NEW: Allow wrapping */
    gap: 20px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* NEW: Allow logo/btn stack */
}

.partner-internal-nav .return-btn {
    padding: 8px 16px;
    font-size: 0.6rem;
    letter-spacing: 1px;
    height: fit-content;
    border-color: rgba(252, 247, 240, 0.2);
}

.partner-menu {
    display: flex;
    gap: 2.5rem; 
    align-items: center;
    flex-wrap: wrap; /* NEW: Tab wrapping */
}

.partner-menu a {
    background: none;
    border: none;
    color: rgba(252, 247, 240, 0.7); 
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 15px 0;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none; 
    transition: color 0.1s ease; 
    border-bottom: 2px solid transparent; 
}

.partner-menu a:hover {
    color: #FFFC30; 
    background: none;
    border-bottom-color: transparent;
}

.partner-menu a.active {
    color: #FFFC30; 
    border-bottom: 2px solid #FFFC30;
    background: none;
}

.access-logo {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.access-logo .dim {
    color: rgba(252, 247, 240, 0.3);
}

#partner-bio.partner-content-section.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 80vh; 
    width: 100%;
}

.bio-flex-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 5vw; 
    height: auto;
}

.bio-text-container {
    flex: 1;
}

.bio-body {
    font-family: 'Arial', sans-serif; 
    font-size: 1.1rem;
    line-height: 1.4;
    color: #fcf7f0;
    letter-spacing: 0.05em;
    max-width: 700px;
}

.bio-body p {
    margin-bottom: 1.5rem;
}

.bio-image-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bio-image-container {
    width: 100%; 
    height: 550px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(252, 247, 240, 0.1); 
    position: relative;
}

.bio-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 67%;
    filter: grayscale(100%) contrast(1.1); 
    transition: filter 0.5s ease;
    transform: scale(1.02);
}

.bio-image-container:hover img {
    filter: grayscale(0%) contrast(1);
}

.image-spec {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    color: rgba(252, 247, 240, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: left;
    margin-top: 10px;
}

.bio-image-container:hover + .image-spec {
    color: #FFFC30;
}

.contact-section {
    width: 100vw;
    height: 100vh; 
    position: relative;
    z-index: 100; 
    scroll-snap-align: start;
    background-color: transparent;
}

.contact-main-flex {
    width: 85vw;
    min-height: 100vh;
    background-color: #000000;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 8vh;
    align-items: center;
    will-change: width;
    transition: none;
}

.contact-top-half {
    display: flex;
    width: 100%;
    max-width: 85vw; 
    align-items: center;
    justify-content: center;
    gap: 5vw; 
}

.contact-image-container {
    height: 300px; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.contact-header-container .bold-text {
    text-align: center;
    font-size: clamp(3rem, 6.5vw, 8.5rem);
    line-height: 0.8; 
    white-space: nowrap;
    color: #fcf7f0; 
    animation: float 5s ease-in-out infinite;
}

.contact-bottom-half {
    width: 100%;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

#contact-form {
    width: 90%; 
    max-width: 900px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.contact-row-inputs {
    display: flex;
    gap: 40px; 
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #FFFFFF; 
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 2px;
}

.input-group input, 
.input-group textarea {
    background-color: #FFFC30; 
    border: none;
    border-bottom: 2px solid #000;
    padding: 15px; 
    color: #000;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group input:focus, 
.input-group textarea:focus {
    background-color: #FFFC30; 
    border-bottom: 2px solid #000;
}

.submit-btn {
    width: 100%;
    padding: 22px;
    background: #000;
    color: #fff;
    border: 1px solid #FFFC30; 
    font-weight: bold;
    letter-spacing: 6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #FFFC30;
    color: #000;
}

@media (max-width: 768px) {
    /* FIX: HEADER STACKING RULES */
    .partner-internal-nav {
        flex-direction: column; 
        justify-content: center;
        text-align: center;
        padding: 15px 10px;
    }
    .header-left-group {
        justify-content: center;
        width: 100%;
    }
    .partner-menu {
        width: 100%;
        gap: 1rem; 
        justify-content: center;
    }
    .partner-menu a {
        font-size: 0.7rem;
        padding: 10px 5px;
    }
    .access-logo {
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
        order: -1; 
    }

    /* EXISTING MOBILE RULES */
    .parallax-wrapper {
        scroll-snap-type: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #FFFC30;
    }

    .parallax-group {
        height: auto !important;
        min-height: 100vh;
        width: 85vw !important;
        margin: 0 auto !important;
        display: block;
        background-color: #000;
        position: relative;
        overflow: visible;
    }

    .sticky-container {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        flex-direction: column !important;
        overflow: visible !important;
        display: block;
        background: transparent !important;
    }

    .text-side {
        width: 100% !important;
        height: auto !important;
        padding: 60px 15px 30px 15px !important;
        display: block;
    }

    .bold-text {
        font-size: clamp(2.2rem, 11vw, 4.5rem) !important;
        line-height: 0.95;
        text-align: center !important;
        width: 100%;
        margin-bottom: 25px;
    }

    .image-side {
        width: 100% !important;
        height: 55vh !important;
        position: relative !important;
        overflow: hidden !important;
        display: block;
    }

    .image-stack {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .image-stack img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .image-content {
        position: absolute !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10 !important;
        transform: none !important;
        padding: 25px 15px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
        backdrop-filter: blur(3px);
        border-left: 6px solid #fcf7f0 !important;
        border-right: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .image-content h3, 
    .image-content p {
        text-align: left !important;
        font-size: 0.95rem !important;
        color: #fff !important;
        margin: 0;
    }

    #partner-bio.partner-content-section {
        height: auto !important;
        padding: 20px;
    }

    .bio-flex-wrapper {
        flex-direction: column !important;
    }

    .bio-body {
        font-size: 1rem;
        text-align: center;
    }

    .bio-image-container {
        height: 320px !important;
    }

    .global-header {
        transition: width 0.1s ease-out, left 0.1s ease-out;
        padding: 0 4vw !important;
    }

    .contact-main-flex {
        width: 85vw !important;
        margin: 0 auto !important;
    }
    
    .contact-row-inputs {
        flex-direction: column;
    }
}

@keyframes focusIn {
    0% { filter: blur(20px); opacity: 0; transform: translateZ(300px) scale(1.3); }
    15% { opacity: 1; }
    100% { filter: blur(0px); opacity: 1; transform: translateZ(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}