* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: black;
}

/* ===========================
    HEADER & NAVIGATION
    =========================== */
.container { 
    width: 100%; 
    max-width: 1800px; 
    margin: 0 auto; 
    padding: 0 3vw; 
}

.header-brand {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.header-brand__text {
    font-family: 'Yuji Syuku', serif;
    font-size: 2.4rem;
    font-weight: 1000;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: block;
    transition: color 0.3s ease;
}

.header-brand__text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

.header-brand__text:hover::after {
    transform: scaleX(1);
}

.header-nav { 
    pointer-events: auto; 
}

.header-nav__links { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}


.header-nav__links a {
    display: block;
    padding: 0 2rem;
    color: #ffffff;
    font-family: 'Yuji Syuku', serif;
    letter-spacing: -1.5px;
    font-size: 2rem;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav__links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2rem;
    right: 2rem;
    height: 2.5px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}


.header-nav__links a:hover::after { 
    transform: scaleX(1); 
}

/* Regular header: make links sit at the far left/right while SCARVES is centered */


.s-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 0 0 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.s-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 3vw;
    position: relative;
    height: 5rem;
}

.s-header .header-nav--left {
    order: 1;
    position: absolute;
    left: 0;
    top: 45%;
    transform: translateY(-50%);
}
.s-header .header-nav--right {
    order: 3;
    position: absolute;
    right: 0;
    top: 45%;
    transform: translateY(-50%);
}
.s-header .header-brand { order: 2; }

.s-header .header-nav__links a {
    color: #ffffff;
}

.s-header .header-nav__links a::after {
    background-color: #ffffff;
}

/* Sticky Header */
.s-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    padding: 0.5rem 0; 
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(12px);    
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease-in-out;
}

.s-header-sticky.is-visible { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.s-header-sticky .s-header__content { 
    height: 4.5rem; 
}

.header-brand-sticky {
    pointer-events: auto;
}

.header-brand__text-sticky {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.header-logo-sticky {
    height: 2.7rem;
    width: auto;
    display: block;
}

.header-nav-sticky {
    pointer-events: auto;
}

.header-nav__links-sticky { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.header-nav__links-sticky a {
    display: block;
    padding: 0 2rem;   
    font-size: 1.2rem;
    font-family: 'Yuji Syuku', serif;
    font-weight: 900;
    color: #ffffff;
    line-height: 4.5rem; 
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.header-nav__links-sticky a:hover { 
    color: #ffffff; 
}

.header-nav__links-sticky a::after {
    content: '';
    position: absolute;
    bottom: 21px; 
    left: 2rem;        
    right: 2rem;
    height: 1.5px;
    background-color: #ffffff; 
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease-in-out;
}

.header-nav__links-sticky a:hover::after { 
    transform: scaleX(1); 
}

/* Mobile Responsive */
@media screen and (max-width: 900px) {
    .s-header {
        padding-top: 0.75rem;
    }

    .s-header__content { 
        flex-direction: row; 
        height: auto; 
        justify-content: space-between;
    }

    .s-header .header-nav--left,
    .s-header .header-nav--right {
        position: relative;
        top: -0.4rem;
        left: auto;
        right: auto;
        transform: none;
    }

    .header-brand { 
        position: relative; 
        left: 0; 
        top: -0.4rem; 
        margin-bottom: 0rem; 
        transform: none;
    }

    .header-nav__links, 
    .header-nav__links-sticky { 
        justify-content: flex-end; 
        width: auto; 
    }

    .header-nav__links a, 
    .header-nav__links-sticky a { 
        padding: 0 1rem !important; 
        font-size: 1.15rem; 
    }

    .header-nav__links a::after, 
    .header-nav__links-sticky a::after { 
        left: 1rem; 
        right: 1rem; 
    }

    .header-brand__text {
        font-size: 1.4rem;
    }

    .header-brand__text-sticky {
        font-size: 1rem;
    }
}



.parallax-container {
    position: relative;
    width: 100vw;
    height: 150vh; /* longer hero so parallax lasts more scroll distance */
    overflow: hidden;
}

#background {
    background-image: url('./images/Landing/background.png');
    z-index: 0;
    position: fixed; /* fixed so it does not move with scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(0); /* no additional zoom transform to avoid artifacts */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.parallax-title {
        position: absolute;
        z-index: 2; /* In front of foreground4 (z-index:1), behind foreground3 (z-index:2) */
        top: 20%;
        left: 50%;
        font-family: 'Texturina', serif;
        font-size: 7vw;
        font-weight: bold;
        transform: translateX(-50%) translateY(-50%);
        color: #fff;
        text-transform: uppercase;
        pointer-events: none;
        user-select: none;
        white-space: nowrap;
        line-height: 0.85;
}

.parallax {
    position: absolute;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    top: 0;
    left: 0;
    will-change: transform;
}

#foreground1 {
    background-image: url('./images/Landing/foreground1.png');
    z-index: 4;
}

#foreground1mobile {
    background-image: url('./images/Landing/foreground1mobile.png');
    z-index: 4;
    display: none;
}

#foreground2 {
    background-image: url('./images/Landing/foreground2.png');
    z-index: 3;
}

#foreground3 {
    background-image: url('./images/Landing/foreground3.png');
    z-index: 2;
}

#foreground4 {
    background-image: url('./images/Landing/foreground4.png');
    z-index: 1;
}

/* Transition strip between parallax and content */
.transition {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 11;
    width: 100%;
    height: 60px;
    background-image: url('./images/bg-transition-black.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    transform: rotate(180deg);
    pointer-events: none;
}

/* Transition strip at the bottom of content */
.transition-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 11;
    width: 100%;
    height: 60px;
    background-image: url('./images/bg-transition-black.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    transform: rotate(0deg);
    pointer-events: none;
}

.content {
    position: relative;
    margin-top: 0;
    padding: 60px 40px 80px 40px;
    background-image: url('./images/bg-SameKomon.png');
    background-repeat: repeat;
    background-size:5%;
    z-index: 10;
    color: white;
}

.content h1 {
    font-size: 3em;
    font-family: 'Yuji Syuku', serif;
    margin-bottom: 20px;
}

.content h2 {
    font-size: 1.6em;
    font-family: 'Yuji Syuku', serif;
    line-height: 1.6;
    color: #000000;    
    margin-top: 40px;    
    margin-bottom: -120px;
}

.content p {
    font-size: 1.2em;
    font-family: 'Yuji Syuku', serif;
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 100px;
}

.featured-item {
    display: flex;
    flex-direction: column;
}

.featured-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-label {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.1rem;
    font-size: 0.9em;
    color: #000000;
    margin-top: -30px;
    text-align: center;
}

.featured-grid img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #foreground1 {
        display: none;
    }

    #foreground1mobile {
        display: block;
    }

    .parallax-title {
        font-size: 9vw;
    }

    .content {
    background-size: 40%;
}

    /* Fix zoom-on-scroll caused by fixed backgrounds on mobile
       (viewport height changes when address bar hides/shows) */
    #background {
        position: absolute;
        background-attachment: scroll;
    }
}

/* ===========================
   FOOTER
   =========================== */
.s-footer {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.s-footer__bg {
    position: absolute;
    inset: 0;
    background-image: url('./images/footer.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.s-footer__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0) 20%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.s-footer__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 0 2rem;
    margin-top: -2rem;
}

.s-footer__tagline {
    font-family: 'Yuji Syuku', serif;
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: -0.1rem;
}

.s-footer__nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.s-footer__nav a {
    font-family: 'Yuji Syuku', serif;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.1rem;
    transition: opacity 0.2s ease;
}

.s-footer__nav a:hover {
    opacity: 0.7;
}

.s-footer__insta {
    height: 1.5rem;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.s-footer__insta:hover {
    opacity: 0.7;
}

.s-footer__copy {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

@media screen and (max-width: 900px) {
    .s-footer {
        height: 360px;
    }

    .s-footer__tagline {
        font-size: 1.1rem;
    }

    .s-footer__nav {
        gap: 1.5rem;
    }
}