/**
 * Hyper False — Frontend Stylesheet
 *
 * Design system:
 * - Font: Inter (Google Fonts)
 * - Base: 14px, weight 400, line-height 1.5
 * - Colors: dark text on white bg, minimal palette
 * - Fixed sidebar (250px) on desktop, hamburger on mobile
 * - Three templates: A (splash), B (carousel), C (about)
 */

/* === CSS Variables === */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --color-text: #1a1a1a;
    --color-light: #888;
    --color-bg: #fff;
    --color-border: #1a1a1a;
    --nav-width: 250px;
    --nav-padding: 40px 30px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Sidebar (all pages except homepage) === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width);
    height: 100vh;
    padding: var(--nav-padding);
    display: flex;
    flex-direction: column;
    z-index: 100;
    background: var(--color-bg);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text);
    display: block;
    margin-bottom: 57px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.sidebar-nav a {
    font-size: 13px;
    color: var(--color-text);
    padding: 2px 0;
    transition: font-weight 0.15s;
}

.sidebar-nav a:hover {
    opacity: 0.6;
}

.sidebar-nav a.active {
    font-weight: 700;
}

.sidebar-about {
    font-size: 13px;
    font-style: italic;
    color: var(--color-text);
    margin-top: 10px;
    margin-bottom: 18px;
    display: block;
}

.sidebar-about:hover {
    opacity: 0.6;
}

.sidebar-about.active {
    font-weight: 700;
}

/* Claims in sidebar (about page only) */
.sidebar-claims {
    margin-top: 30px;
}

.sidebar-claim {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Project info area in sidebar (Template B) — bottom aligned with photo area */
.project-info {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 80px;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    max-height: 50vh;
}

.project-info.fading {
    opacity: 0;
}

.project-info .project-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.project-info .project-year {
    font-size: 12px;
    color: var(--color-light);
    margin-bottom: 12px;
}

.project-info .project-meta {
    font-size: 12px;
    color: var(--color-light);
    margin-bottom: 2px;
}

.project-info .project-collabs-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.project-info .project-collab {
    font-size: 12px;
    color: var(--color-light);
    margin-bottom: 2px;
}

/* === Mobile brand (visible only on mobile, above hamburger) === */
.mobile-brand {
    display: none;
}

/* === Hamburger (mobile) === */
.hamburger {
    display: none;
    position: fixed;
    top: 40px;
    left: 20px;
    z-index: 200;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin-bottom: 5px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main content area (offset by sidebar width) */
.site-content {
    margin-left: var(--nav-width);
    min-height: calc(100vh - 120px);;
}

/* Horizontal divider — first child inside .site-content.
   Ignores the parent's padding so it spans the full width of the div. */
.site-divider {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 30px 0 70px 0;
    width: 98%;
    flex-shrink: 0;
}

/* ============================================
   TEMPLATE A — Homepage Splash
   ============================================ */
.page-home .sidebar,
.page-home .hamburger,
.page-home .mobile-brand {
    display: none !important;
}

.home-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.home-splash {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.home-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* ============================================
   TEMPLATE B — Carousel Sections
   ============================================ */
.carousel-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    padding: 20px 0 30px 0;
}

.carousel-container {
    width: 100%;
    height: 95%;
    position: relative;
}

.section-swiper {
    width: 100%;
    height: 100%;
}

.section-swiper .swiper-slide {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* Swiper navigation arrows — hidden on desktop (replaced by cursor navigation) */
.section-swiper .swiper-button-prev,
.section-swiper .swiper-button-next {
    display: none;
}

/* Cursor navigation zones (desktop only) */
.carousel-container {
    cursor: none;
}

.cursor-nav {
    position: fixed;
    pointer-events: none;
    z-index: 50;
    font-size: 24px;
    color: var(--color-text);
    transform: translate(-50%, -50%);
    transition: opacity 0.15s;
    opacity: 0;
    user-select: none;
}

.cursor-nav.visible {
    opacity: 1;
}

.cursor-nav.prev::after {
    content: '\2039';
    font-size: 32px;
    font-weight: 100;
}

.cursor-nav.next::after {
    content: '\203A';
    font-size: 32px;
    font-weight: 100;
}

/* YouTube slide — takes full slide width, video centered inside */
.youtube-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.youtube-placeholder {
    position: relative;
    cursor: pointer;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.youtube-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.youtube-placeholder:hover .play-icon {
    opacity: 1;
}

.youtube-iframe {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border: 0;
    margin: 0 auto;
    display: block;
}

/* Instagram slide — centered, no deformation */
.instagram-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.instagram-iframe {
    width: 100%;
    max-width: 540px;
    height: 680px;
    border: 0;
    margin: 0 auto;
}

/* ============================================
   VERTICAL SCROLL LAYOUT (Works/Editorials/Products/Casting)
   ============================================
   Each project is a full-height section. Vertical scroll-snap
   moves between projects. Horizontal Swiper within each section.
*/
.vertical-scroll-page {
    padding: 20px 0 0 0;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.vertical-scroll-container {
    height: calc(100vh - 120px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.project-section {
    height: calc(100vh - 120px);
    scroll-snap-align: start;
    display: flex;
    align-items: stretch;
    padding: 0px 2% 80px 0px;
    position: relative;
}

.project-section .carousel-container {
    width: 100%;
    height: 98%;
}

.project-section .project-swiper {
    width: 100%;
    height: 100%;
}

.project-section .swiper-slide {
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info-mobile-vertical {
    display: none;
}

.carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: var(--color-light);
}

/* Mobile project info (above carousel on small screens) */
.project-info-mobile {
    display: none;
}

/* ============================================
   TEMPLATE C — About Page
   ============================================
   Based on mockup v2 page 7:
   1. Large bold justified manifesto text (full width)
   2. Three-column section: claims | description+info | collaborators+clients
   3. Contact form
*/
.about-page {
    padding: 20px 0 50px 0;
}

.about-section {
    margin-bottom: 60px;
}

/* --- Manifesto: large bold justified text block --- */
.about-manifesto {
    margin-bottom: 60px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.about-manifesto p {
    font-size: var(--about-font-size, clamp(24px, 3.5vw, 38px));
    font-weight: 700;
    line-height: 1.25;
    text-align: justify;
    text-justify: inter-word;
}

/* --- Two-column body section --- */
.about-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Left column: description + company info */
.about-body-center {
    font-size: var(--about-desc-font-size, 13px);
    line-height: 1.7;
}

.about-description {
    margin-bottom: 30px;
}

.about-description p {
    font-size: var(--about-desc-font-size, 13px);
    line-height: 1.7;
}

.about-company-info p {
    font-size: var(--about-desc-font-size, 13px);
    color: var(--color-text);
    margin-bottom: 2px;
}

/* Right column: collaborators + clients */
.about-body-right {
    font-size: var(--about-sidebar-font-size, 13px);
}

.about-list-title {
    font-size: var(--about-sidebar-font-size, 13px);
    font-weight: 400;
    margin-bottom: 6px;
    margin-top: 20px;
}

.about-list-title:first-child {
    margin-top: 0;
}

.about-list-inline {
    font-size: var(--about-sidebar-font-size, 13px);
    color: var(--color-text);
    line-height: 1.7;
}

/* Contact form */
.contact-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    color: var(--color-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

.contact-submit {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    background: var(--color-text);
    color: #fff;
    border: 1px solid var(--color-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.contact-submit:hover {
    background: #fff;
    color: var(--color-text);
}

.contact-feedback {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    border-radius: 0;
}

.contact-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.contact-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ============================================
   404 Page
   ============================================ */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 40px;
}

.page-404 h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-404 p {
    color: var(--color-light);
    margin-bottom: 20px;
}

.page-404 a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
}

/* ============================================
   RESPONSIVE (< 768px)
   ============================================ */
@media (max-width: 767px) {
    .mobile-brand {
        display: block;
        position: fixed;
        top: 12px;
        left: 20px;
        z-index: 201;
    }

    .mobile-brand-link {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--color-text);
    }

    .hamburger {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        width: 100%;
        height: auto;
        max-height: 60vh;
        background: var(--color-bg);
        transition: left 0.3s ease;
        z-index: 150;
        padding: 80px 30px 30px;
    }

    .sidebar .sidebar-brand {
        display: none;
    }

    .sidebar.open {
        left: 0;
    }

    .site-content {
        margin-left: 0;
    }

    .site-divider {
        display: none;
    }

    /* Homepage mobile: fullscreen image with centered title, no black bar */
    .home-splash {
        height: 100vh;
    }

    .home-title {
        font-size: 40px;
    }

    .page-home .home-link {
        display: block;
    }

    .page-home .home-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
    }

    /* Carousel mobile */
    .carousel-page {
        flex-direction: column;
        height: 100vh;
        padding: 70px 0 20px 0;
        justify-content: center;
    }

    /* Hide custom cursor on mobile */
    .cursor-nav {
        display: none !important;
    }

    .carousel-container {
        cursor: auto;
    }

    .project-info-mobile {
        display: block;
        padding: 15px 20px;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .project-info-mobile.fading {
        opacity: 0;
    }

    .section-swiper .swiper-slide,
    .project-swiper .swiper-slide {
        width: 100% !important;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-image {
        max-width: calc(100vw - 20px);
        max-height: 70vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .youtube-placeholder,
    .youtube-iframe {
        width: 100%;
        max-width: calc(100vw - 20px);
    }

    .instagram-iframe {
        width: 100%;
        max-width: calc(100vw - 20px);
        height: 500px;
    }

    .section-swiper .swiper-button-prev,
    .section-swiper .swiper-button-next {
        display: none;
    }

    /* Hide sidebar project info on mobile (use mobile version instead) */
    .project-info {
        display: none !important;
    }

    /* Vertical scroll mobile */
    .vertical-scroll-page {
        height: 100vh;
        overflow: hidden;
    }

    .project-section {
        padding: 70px 0 20px 0;
        flex-direction: column;
    }

    .project-section .slide-image {
        max-width: calc(100vw - 20px);
        max-height: 60vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .project-info-mobile-vertical {
        display: block;
        padding: 10px 20px;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .project-info-mobile-vertical.fading {
        opacity: 0;
    }

    /* Imaginary mobile: compact info + fixed photo area */
    .page-imaginary .project-info-mobile {
        text-align: center;
        padding: 20px 20px 5px;
    }

    /* Imaginary slides: force full-width slide + flex centering so the
       image is horizontally centered regardless of its natural width */
    .page-imaginary .section-swiper .swiper-slide {
        width: 100% !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-imaginary .slide-image {
        max-height: 65vh;
        width: auto;
        height: auto;
        max-width: calc(100vw - 20px);
        object-fit: contain;
        margin: 0 auto;
    }

    /* About mobile: single column */
    .about-page {
        padding: 70px 10px 40px 10px;
    }

    .about-manifesto p {
        font-size: 22px;
    }

    .about-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
