/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red:        #E30613;
    --black:      #080808;
    --white:      #FFFFFF;
    --neon:       #CCFF00;
    --grey-mid:   #555;
    --grey-light: #888;
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: "cofo-sans-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ─── LOADER ─────────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#loader img {
    width: min(480px, 72vw);
    height: auto;
}

.loader-bar {
    width: 120px;
    height: 6px;
    margin-top: 2.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50px; height: 100%;
    background: #CCFF00;
    border-radius: 100px;
    animation: loaderSlide 1.6s ease-in-out infinite;
}

@keyframes loaderSlide {
    0%, 100% { transform: translateX(-50px); }
    50%       { transform: translateX(120px); }
}

/* ─── NAV ────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    background: var(--red);
}

.nav.nav-dark { background: var(--white); }
.nav.nav-black { background: var(--black); }
.nav.nav-about .nav-link { color: var(--black); }

.nav-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.nav-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-logo:hover { opacity: 0.4; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-link {
    font-family: "cofo-sans-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 400;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-link:hover { opacity: 0.4; }


/* ─── HERO ───────────────────────────────────── */
.hero {
    position: relative;
    background-color: var(--red);
    min-height: 100vh;
    padding: 5.5rem 2.5rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    width: 100%;
}

.hero-logo {
    width: min(680px, 80vw);
    height: auto;
    display: block;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.6));
}

.hero-ring {
    position: relative;
    width: 100%;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    margin-top: 3rem;
    cursor: grab;
}

.hero-ring:active { cursor: grabbing; }

/* ─── SHARED LABEL ───────────────────────────── */
.label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-light);
}

/* ─── CAROUSEL ───────────────────────────────── */
.cards-container {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card {
    position: absolute;
    width: 155px;
    height: 215px;
    overflow: visible;
    cursor: pointer;
    user-select: none;
}

/* PNG extends beyond the card so the bag appears larger than the content —
   screen blend: white crinkles pop on dark areas, invisible on white */
.project-card::after {
    content: '';
    position: absolute;
    inset: -10px -8px;
    background: url('images/07.webp') center / cover no-repeat;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}


/* alternate bag textures across cards */
.project-card:nth-child(2)::after  { background-image: url('images/01.webp'); }
.project-card:nth-child(3)::after  { background-image: url('images/02.webp'); }
.project-card:nth-child(4)::after  { background-image: url('images/05.webp'); }
.project-card:nth-child(5)::after  { background-image: url('images/06.webp'); }
.project-card:nth-child(6)::after  { background-image: url('images/15.webp'); }
.project-card:nth-child(7)::after  { background-image: url('images/17.webp'); }
.project-card:nth-child(8)::after  { background-image: url('images/01.webp'); }
.project-card:nth-child(9)::after  { background-image: url('images/02.webp'); }
.project-card:nth-child(10)::after { background-image: url('images/05.webp'); }

/* inner product — no overflow:hidden so card-img can emerge above the bag */
.card-content {
    position: relative;
    width: 100%;
    height: 100%;
}


.card-img {
    position: absolute;
    bottom: 0;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 16px);
    background: transparent center / contain no-repeat;
}

.project-card:nth-child(10) .card-img { background-size: 100% 100%; }


.card-overlay { display: none; }

/* ─── RING INFO ──────────────────────────────── */
.ring-info {
    margin-top: 2.8rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.ring-info-num {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 0.25rem;
}

.ring-info-name {
    font-family: "mundial", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--black);
}

/* ─── ABOUT PAGE ─────────────────────────────── */
.about-section {
    background-color: var(--red);
    min-height: 100vh;
    padding: 6rem 2.5rem 6rem;
    display: flex;
    align-items: center;
}

.about-inner { width: 100%; }

.about-label-top {
    display: block;
    color: rgba(0,0,0,0.45);
    margin-bottom: 3.5rem;
}

.about-headline {
    font-family: "mundial", sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6.5vw, 8rem);
    line-height: 0.9;
    color: var(--black);
    letter-spacing: -0.025em;
    text-transform: uppercase;
    max-width: 72%;
    margin-bottom: 4rem;
}

.about-body-row {
    display: flex;
    justify-content: flex-end;
}

.about-body-text { max-width: 400px; }

.about-body-text p {
    font-size: 0.82rem;
    font-weight: 500;
    font-variation-settings: "slnt" 0, "wght" 500;
    line-height: 1.85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 1.5rem;
}

/* ─── CONTACT PAGE ───────────────────────────── */
.contact-section {
    background: var(--black);
    min-height: 100vh;
    padding: 6rem 2.5rem 16rem;
    display: flex;
    align-items: center;
}

.contact-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.contact-intro {
    font-size: 0.65rem;
    line-height: 1.8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-mid);
    text-align: left;
}

.contact-email {
    display: block;
    font-family: "mundial", sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5.5vw, 8rem);
    line-height: 1;
    color: var(--red);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.contact-email:hover { color: var(--neon); }

.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 2rem;
}


.contact-socials {
    display: flex;
    gap: 2rem;
}

.contact-socials a {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-socials a:hover { color: var(--white); }

/* ─── NAV DARK (for light pages) ────────────── */
.nav-dark .nav-link,
.nav-dark .nav-back { color: var(--black); }

/* ─── LIGHT PAGE BASE ────────────────────────── */
.page-light { background: var(--white); color: var(--black); }

/* ─── PROJECT PAGE ───────────────────────────── */
.pp { padding-bottom: 8rem; }

.pp-header {
    padding: 11rem 2.5rem 16rem;
}

.pp-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 2rem;
}

.pp-title {
    font-family: "mundial", sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 9vw, 13rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--black);
}

.pp-title .br-mob { display: none; }
.pp-title .br-desk { display: inline; }

.pp-hero-img-mob { display: none; }

/* desktop: image left, content right */
.pp-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 2.5rem 0;
    align-items: start;
}

.pp-img-hero {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: transparent top center / contain no-repeat;
}

.pp-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 0;
}

.pp-meta {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pp-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pp-meta-label {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa;
}

.pp-meta-value {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--black);
}

.pp-body p {
    font-size: 0.75rem;
    line-height: 1.9;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* gallery grid */
.pp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 2.5rem;
    margin-top: 0;
    margin-bottom: 8rem;
}

.pp-gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.pp-gallery-grid img:last-child:nth-child(4n+1) {
    grid-column: -3 / -1;
    margin-top: 2rem;
}

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
    background: var(--black);
    padding: 4rem 2.5rem 2.5rem;
    border-top: 1px solid #1c1c1c;
}

.footer-seamless { border-top: none; }

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--white); }

.footer-projects {
    margin-bottom: 2.5rem;
}

.footer-projects-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-mid);
    margin-bottom: 1.5rem;
}

.footer-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #1c1c1c;
}

.footer-projects-grid a {
    padding: 0.85rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-mid);
    text-decoration: none;
    border-bottom: 1px solid #1c1c1c;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-projects-grid a:nth-child(odd)  { padding-right: 2rem; }
.footer-projects-grid a:nth-child(even) { padding-left: 2rem; border-left: 1px solid #1c1c1c; }

.footer-projects-grid a:hover { color: var(--white); padding-left: 0.5rem; }
.footer-projects-grid a:nth-child(even):hover { padding-left: 2.5rem; }

.footer-projects-grid a.active {
    color: var(--white);
    pointer-events: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.footer-bottom span {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a2a2a;
}

/* ─── MOBILE ─────────────────────────────────── */
@media (max-width: 767px) {

    .nav { padding: 1.2rem; }

    .hero { padding: 4.8rem 1rem 2rem; }

    .hero-logo { width: min(300px, 84vw); }

    .hero-ring {
        height: 260px;
        margin-top: 1.4rem;
        perspective: 1000px;
        touch-action: pan-y;
    }

    .project-card {
        width: 92px !important;
        height: 148px !important;
    }

    .project-card::after {
        inset: -6px -4px !important;
        opacity: 0.75 !important;
    }

    .ring-info { margin-top: 1.4rem; }

    .project-card:nth-child(10) .card-img { background-size: 100% 94%; }

    .about-section { padding: 4rem 1.2rem 20rem; }

    .about-headline {
        font-size: clamp(2rem, 10vw, 4rem);
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .about-body-row { justify-content: flex-start; }
    .about-body-text { max-width: 100%; }

    .contact-section { padding: 4rem 1.2rem 20rem; }

    .contact-top { flex-direction: column; gap: 1.5rem; }

    .contact-intro { text-align: left; }

    .contact-email { margin-bottom: 3rem; white-space: nowrap; font-size: 4.8vw; }

    .contact-bottom { flex-direction: column; align-items: flex-start; gap: 2.5rem; }


    .contact-socials { gap: 1.5rem; }

    .pp-header { padding: 8rem 1.2rem 3rem; }

    .pp-title { font-size: clamp(2rem, 12vw, 4rem); }
    .pp-title .br-mob { display: inline; }
    .pp-title .br-desk { display: none; }

    .pp-hero-row {
        display: block;
        padding: 0;
    }

    .pp-img-hero { display: none; }

    .pp-hero-img-mob {
        display: block;
        width: 100%;
        height: auto;
    }

    .pp-content {
        padding: 2.5rem 1.2rem 2rem;
        gap: 2.5rem;
    }

    .pp-img-second {
        width: calc(100% - 2.4rem);
        margin: 0 1.2rem 5rem;
    }

    .pp-img-pair {
        grid-template-columns: 1fr;
        padding: 0 1.2rem;
        margin-bottom: 5rem;
    }

    .pp-gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.2rem;
        margin-bottom: 5rem;
    }

    .site-footer { padding: 3rem 1.2rem 2rem; }

    .footer-projects-grid { grid-template-columns: 1fr; }
    .footer-projects-grid a:nth-child(even) { padding-left: 0; border-left: none; }
    .footer-projects-grid a:nth-child(even):hover { padding-left: 0.5rem; }
}

@media (max-width: 420px) {
    .hero { padding: 3.8rem 1rem 1.8rem; }

    .hero-ring {
        height: 250px;
        margin-top: 0.8rem;
    }

    .project-card {
        width: 84px !important;
        height: 138px !important;
    }

    .project-card::after {
        inset: -5px -3px !important;
        opacity: 0.7 !important;
    }
}
