/*
 * PENGE. Signal CSS
 *
 * This stylesheet organizes the core visual language and layout
 * for the Studiopenge.com website, following minimalist, editorial,
 * high-contrast principles.
 *
 * Table of Contents:
 * 1.  CSS Variables (Design Tokens)
 * 2.  Base & Reset Styles
 * 3.  Typography
 * 4.  Main Navigation
 * 5.  Hero Section
 * 6.  Manifesto Section (Now P.E.N.G.E. Principles)
 * 7.  Art of the Forge Section (Our Craft)
 * 8.  Community Section (This is Who We Are)
 * 9.  Visual Archive Strip (Marquee)
 * 10. Archive Section (Editorial Grid)
 * 11. Gravity Bridge (Footer - Updated)
 * 12. Utility & Animation (Reveal Up & Bottom Home Button)
 * 13. Responsive Overrides
 * 14. Mobile Rescue Patch
 * 15. Footer Contact Form Fix (NEW)
 * 16. Store (NEW)
 * 17. Product (NEW)
 */

/* =========================================================================
 * 1. CSS Variables (Design Tokens)
 * ========================================================================= */
:root {
    --forge-black: #0D0D0D;
    --forge-black-rgb: 13, 13, 13;
    --sailcloth-white: #F5F2E8;
    --sage-green: #8A9F8D;
    --text-color-dark: #1a1a1a;
    --text-color-light: #fff;
    --font-primary: 'Montserrat', sans-serif; /* Renamed for clarity */
    --font-secondary: 'Playfair Display', serif; /* Renamed for clarity */
    --gap-default: 20px;
    --max-content-width: 1200px;
}

/* =========================================================================
 * 2. Base & Reset Styles
 * ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--forge-black);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--sailcloth-white);
    color: var(--text-color-dark);
    font-family: var(--font-secondary); /* Default body font to serif */
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* =========================================================================
 * 3. Typography
 * ========================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary); /* Headings use Montserrat */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color-dark);
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sage-green);
}

/* Specific SEO H2s for new sections */
.h2-seo-principle, .h2-seo-forge, .h2-seo-community {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5em; /* Default large size for desktop */
    margin-bottom: 20px;
    letter-spacing: 0.1em; /* Adjust letter spacing for H2s */
}
/* =========================================================================
 * 4. Main Navigation
 * ========================================================================= */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    background-color: transparent;
    transition: transform 0.3s ease-in-out,
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.main-nav.scrolled {
    background-color: rgba(var(--forge-black-rgb), 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* =========================================================================
 * Logo
 * ========================================================================= */

.nav-logo {
    display: block;
    max-width: 120px;
    z-index: 101;
}

.nav-logo img {
    width: 100%;
    height: auto;
    filter: invert(100%);
}
/* =========================================================================
 * Hamburger (Updated + Fixed)
 * ========================================================================= */

.hamburger-menu {
    /* Desktop: hidden */
    display: none;

    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
    position: relative;

    width: 32px;      /* fixed hit area */
    height: 24px;

    /* DO NOT set display:flex here */
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

.hamburger-menu .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-color-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open state */
.main-nav.nav-open .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.main-nav.nav-open .line:nth-child(2) {
    opacity: 0;
}

.main-nav.nav-open .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================================================
 * Nav Links
 * ========================================================================= */

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color-light);
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 5px;
}

/* Underline hover */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: var(--text-color-light);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================================================
 * Etsy Icon + Nav Icons
 * ========================================================================= */

.nav-icon {
    width: 32px;
    height: auto;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

.etsy-icon {
    width: 36px;
    height: auto;
}

.nav-links a:hover .nav-icon {
    opacity: 0.85;
}

/* =========================================================================
 * Mobile Navigation (Unified + Correct)
 * ========================================================================= */

@media (max-width: 767px) {

    /* Show hamburger on mobile */
    .hamburger-menu {
        display: flex !important;
    }

    /* Hide desktop nav links */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }

    /* Show links when nav is open */
    .main-nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        padding-bottom: 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a .nav-icon,
    .etsy-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
        display: block;
    }
}
/* =============================================
   4.1 — NAVIGATION CART ICON
   ============================================= */
/* --- Cart Icon (Refined) --- */
.nav-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--sage-green); /* ALWAYS Sage Green */
    color: var(--forge-black);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Refined hover effect for contrast */
.nav-cart-link:hover {
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
}

.cart-count {
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
    transition: all 0.3s ease; /* Added for smooth hover */
}

/* Make the number's colors invert on hover as well */
.nav-cart-link:hover .cart-count {
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
}
/* =========================================================================
 * 5. Hero Section
 * ========================================================================= */
.hero-signal {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--forge-black-rgb), 0.5);
    z-index: 2;
}

/* This is the main column that stacks all content vertically */
.hero-content-stack {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 0 40px;
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* This empty div takes up space to position the content */
.hero-spacer {
    flex-grow: 1;
}

/* UPDATED: Increased margin for more breathing room */
.hero-carry-wrapper {
    margin-bottom: 5rem; /* Increased from 2.5rem */
    padding-top: 10vh;
}

.carry-line {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-color-light);
    opacity: 0.8;
}

/* Wrapper for the main H1/H2/CTA block */
.hero-main-content {
    padding-bottom: 12vh;
}

/* UPDATED: Font size drastically reduced */
.hero-main-content h1 {
    font-family: var(--font-primary);
    font-weight: 600; /* Keeps its importance */
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Reduced from 5rem max */
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

/* UPDATED: Font size drastically reduced */
.hero-main-content h2 {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Reduced from 5rem max */
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: inherit; /* Should be 'none' for sentence case */
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

/* Thesis text remains small and subtle */
h6.hero-thesis {
    font-family: var(--font-primary);
    font-weight: 300 !important;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    color: var(--text-color-light);
}

/* NEW/REVISED: Button with the correct sailcloth color */
.btn-sailcloth {
    display: inline-block;
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
    padding: 15px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--sailcloth-white);
}

.btn-sailcloth:hover {
    background-color: transparent;
    color: var(--sailcloth-white);
}

/* =========================================================================
 * 6. Manifesto Section (Now P.E.N.G.E. Principles)
 * ========================================================================= */
.manifesto-split-section {
    display: flex;
    min-height: 80vh; /* Adjust as needed */
    background-color: var(--forge-black); /* High contrast background */
    color: var(--sailcloth-white);
}

.manifesto-text-side {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.manifesto-header .h2-seo-principle { /* Use class for this specific H2 */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5em; /* Adjust for impact */
    margin-bottom: 20px;
    color: var(--sage-green); /* Use your highlight color */
}

.manifesto-header blockquote {
    font-family: var(--font-secondary); /* Playfair Display */
    font-size: 1.5em;
    line-height: 1.6;
    margin: 0 0 40px 0;
    border-left: 3px solid var(--sage-green);
    padding-left: 20px;
    color: var(--sailcloth-white); /* Ensure quote is white on black */
}
.sage-highlight { color: var(--sage-green); font-style: normal; } /* Ensure highlight works here */

.manifesto-signal-line {
    font-family: var(--font-primary);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 40px;
    color: var(--sailcloth-white); /* Ensure signal line is white */
    border-left: 3px solid var(--sailcloth-white); /* Adjust border color */
    padding-left: 1.5rem;
}

.text-slider-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden; /* To hide non-active slides */
    height: 200px; /* Fixed height to prevent jumping */
}

.text-slide {
    display: flex; /* Changed from none to flex to enable positioning */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease-out;
    pointer-events: none; /* Allows click-through */
    flex-direction: row; /* For p-number and p-content alignment */
    align-items: flex-start;
}

.text-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    /* Animation removed here, handled by JS class toggle */
}

.text-slide .p-number {
    font-family: var(--font-primary);
    font-size: 4em;
    font-weight: 700;
    margin-right: 30px;
    color: var(--sage-green);
    line-height: 1;
}

.text-slide .p-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--sailcloth-white);
}

.text-slide .p-content p {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--sailcloth-white);
    opacity: 0.9;
}

.text-slide .p-content .learn-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--sage-green);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
    font-family: var(--font-primary); /* Use primary font for links */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.text-slide .p-content .learn-more-link:hover {
    border-bottom: 1px solid var(--sage-green);
}

.progress-track {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    position: absolute;
    bottom: 0; /* Position at the bottom of the slider wrapper */
    left: 0;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--sage-green);
    /* Transition set by JS to allow reset */
}
/* =========================================================================
 * Manifesto Image Side — Full-Bleed, Non-Destructive
 * ========================================================================= */

.manifesto-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--color-cool-grey);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Full-bleed hero image that does NOT affect text animations */
.manifesto-image-side .img-slide {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;          /* fills the frame */
    object-position: center;    /* adjust if you want chest/face focus */

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;       /* prevents interference with text slider */
    z-index: 1;                 /* keeps image behind text side */
}

.manifesto-image-side .img-slide.active {
    opacity: 1;
    animation: scaleIn 0.8s forwards;
    filter: grayscale(20%);
}

/* Keep your original animation */
@keyframes scaleIn {
    from { transform: scale(1.05); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* =========================================================================
 * Mobile Layout — Image Below Text
 * ========================================================================= */

@media (max-width: 767px) {

    .manifesto-split-section {
        flex-direction: column;
    }

    .manifesto-image-side {
        width: 100%;
        height: 60vh;   /* gives the image breathing room */
        order: 2;       /* moves image BELOW text */
    }

    .manifesto-image-side .img-slide {
        object-fit: cover;
        object-position: center;
    }
}
/* =========================================================================
 * 7. Art of the Forge Section (Our Craft)
 * ========================================================================= */

.art-of-forge-section {
    padding: 0;
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
}

.art-forge-content {
    display: flex;
    flex-direction: row-reverse;
    max-width: var(--max-content-width);
    margin: 0 auto;
    min-height: 80vh;
    align-items: stretch;
}

/* =========================================================================
 * TEXT SIDE (Bright)
 * ========================================================================= */

.art-forge-text {
    flex: 1;
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.art-forge-text .h2-seo-forge {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.art-forge-text .description-text {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* =========================================================================
 * BUTTON
 * ========================================================================= */

.btn-solid-black {
    display: inline-block;
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--forge-black);
}

.btn-solid-black:hover {
    background-color: transparent;
    color: var(--forge-black);
    transform: translateY(-2px);
}

/* =========================================================================
 * IMAGE SIDE (Full-Bleed Hero Zoom + Caption BELOW Image)
 * ========================================================================= */

.art-forge-carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--forge-black);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.art-forge-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.art-forge-carousel .carousel-item.active {
    opacity: 1;
}

.art-forge-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
}

/* Caption BELOW the image */
.art-forge-carousel .carousel-caption {
    position: relative;
    z-index: 2;
    background: var(--forge-black);
    padding: 20px 24px;
    text-align: center;
    width: 100%;

    /* ⭐ Forces caption to bottom */
    margin-top: auto;

    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sailcloth-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================================================
 * MOBILE LAYOUT
 * ========================================================================= */

@media (max-width: 767px) {

    .art-forge-content {
        flex-direction: column;
    }

    .art-forge-carousel {
        width: 100%;
        height: 60vh;
        min-height: 350px;
    }

    .art-forge-text {
        padding: 40px 25px;
    }
}



/* =========================================================================
 * 8. Community Section (This is Who We Are)
 * ========================================================================= */
.community-section {
    padding: 80px 60px;
    background-color: var(--sailcloth-white); /* Clean white background */
    color: var(--forge-black);
    text-align: center;
}

.community-section .h2-seo-community { /* Use class for this specific H2 */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.community-section .community-description {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: var(--forge-black);
}

.community-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: var(--max-content-width);
    margin: 0 auto 60px auto;
}

.grid-img-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0; /* Placeholder color */
    border-radius: 5px;
}

.grid-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    filter: grayscale(50%); /* Subtle grayscale */
}

.grid-img-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--forge-black-rgb), 0.7); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px; /* Add padding for text */
}

.grid-overlay.active {
    opacity: 1;
}

.grid-overlay p {
    color: var(--sailcloth-white);
    font-family: var(--font-primary);
    font-size: 1.1em;
    text-align: center;
    padding: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.community-cta {
    margin-top: 40px;
    color: var(--forge-black); /* Dark text on light background */
    border-color: var(--forge-black);
}

.community-cta:hover {
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
}

/* =========================================================================
 * 9. Visual Archive Strip (Marquee)
 * ========================================================================= */
.design-marquee-section {
    background-color: var(--sailcloth-white); /* Matches Community section */
    padding-top: 4rem;
    padding-bottom: 8rem;
    overflow: hidden; /* Hides scrollbars */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap; /* Forces images into a horizontal line */
    position: relative;
    padding-bottom: 4rem; /* Space between images and CTA */
}

.marquee-track {
    display: flex;
    gap: 2rem; /* Space between images */
    width: max-content; /* Allows track to be wider than screen */
    animation: scroll-left 25s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 auto; /* Prevents squishing */
    width: 350px;   /* Fixed width for uniformity */
    height: 450px;  /* Portrait ratio */
    overflow: hidden;
    position: relative;
    background-color: #e0e0e0;
    border-radius: 5px;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%); /* Optional: Starts B&W */
}

.marquee-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Moves exactly 50% left for seamless loop */
    }
}

.marquee-cta-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-heading {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--forge-black);
}

.cta-sub {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
}


/* =========================================================================
 * 10. Archive Section (Editorial Grid)
 * ========================================================================= */
.archive-section {
    background-color: var(--sailcloth-white); /* Consistent light background */
    padding-bottom: 80px; /* Add padding to separate from footer */
}

.archive-content-wrapper {
    display: grid;
    padding: 0 var(--gap-default);
    max-width: var(--max-content-width); /* Constrain width */
    margin: 0 auto; /* Center content */
}

.archive-header {
    grid-area: header;
    margin-bottom: 30px;
    text-align: center;
}

.archive-header .featured-heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 2.2em;
    color: var(--forge-black);
}

.volume-marker-wrapper {
    grid-area: volume;
    text-align: center;
    margin-bottom: 40px;
}

.archive-marker {
    font-family: var(--font-primary);
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

.editorial-grid {
    display: grid;
    gap: var(--gap-default);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0;
}

.grid-item {
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background-color: #e0e0e0; /* Placeholder */
}

.grid-item .item-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.8);
}

.grid-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.grid-item .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--forge-black-rgb), 0.8) 0%, rgba(var(--forge-black-rgb), 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    color: var(--sailcloth-white);
    opacity: 1; /* Always visible mask */
    transition: background 0.4s ease;
}

.grid-item:hover .mask {
    background: linear-gradient(to top, rgba(var(--forge-black-rgb), 0.9) 0%, rgba(var(--forge-black-rgb), 0) 50%);
}


.grid-item .entry-num {
    font-family: var(--font-primary);
    font-size: 0.8em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
}

.grid-item h3 {
    font-family: var(--font-primary);
    font-size: 1.3em;
    letter-spacing: 0.05em;
    text-transform: capitalize; /* More editorial look */
    margin-bottom: 5px;
    color: var(--sailcloth-white);
}

.grid-item p {
    font-family: var(--font-secondary);
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
    color: var(--sailcloth-white);
}

/* Specific grid item sizing */
.large-portrait {
    height: 600px;
}

.square {
    height: 350px;
}

.small-landscape {
    height: 350px;
}

/* =========================================================================
 * 11. Gravity Bridge (Footer - Updated)
 * ========================================================================= */
.gravity-bridge {
    background: var(--forge-black);
    color: var(--sailcloth-white);
    padding: 60px; /* Adjusted padding */
    font-family: var(--font-primary);
}

.gravity-bridge .bridge-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    max-width: var(--max-content-width);
    margin: 0 auto;
    gap: 40px; /* Gap between columns */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.newsletter-signup,
.bridge-navigation,
.bridge-signature {
    flex: 1; /* Distribute space */
    min-width: 280px; /* Minimum width before wrapping */
}

.newsletter-signup h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--sailcloth-white); /* Ensure heading is white */
    letter-spacing: 0.1em;
}

.newsletter-signup p {
    font-family: var(--font-secondary);
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.8;
    color: var(--sailcloth-white);
}

.newsletter-signup form {
    display: flex;
    gap: 10px;
    max-width: 350px; /* Constrain form width */
    margin-bottom: 20px; /* Space before nav/signature */
}

.newsletter-signup input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--sailcloth-white);
    font-family: var(--font-primary);
    font-size: 1em;
    border-radius: 3px;
}

.newsletter-signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-signup button {
    background-color: var(--sage-green); /* Use a highlight color */
    color: var(--forge-black);
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1em;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.newsletter-signup button:hover {
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
}

.bridge-navigation h4 {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--sailcloth-white);
    letter-spacing: 0.1em;
}

.bridge-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.bridge-navigation ul li {
    margin-bottom: 10px;
}

.bridge-navigation ul li a {
    color: var(--sailcloth-white);
    text-decoration: none;
    font-family: var(--font-primary); /* Navigation links use Montserrat */
    font-size: 1em;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bridge-navigation ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: invert(100%); /* Ensure icons are white */
}

.social-icons img:hover {
    opacity: 1;
}

.footer-shop-cta {
    display: inline-block;
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
    padding: 12px 25px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9em;
}

.footer-shop-cta:hover {
    background-color: var(--sage-green);
    color: var(--forge-black);
}

.bridge-signature {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.bridge-signature .maker-mark {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
    filter: invert(100%); /* Ensure maker mark is white */
}

.copyright {
    font-family: var(--font-primary);
    font-size: 0.85em;
    opacity: 0.7;
    margin-bottom: 10px;
    color: var(--sailcloth-white);
    letter-spacing: 0.05em;
}

.sub-footer-links a {
    color: var(--sailcloth-white);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.85em;
    opacity: 0.6;
    margin-left: 15px;
}

.sub-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}
/* =========================================================================
 * 11a. NEW HOMEPAGE SECTIONS
 * ========================================================================= */

/* General container for new sections */
.homepage-section {
    padding: 80px 40px;
    text-align: center;
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--forge-black);
}

.section-subheading {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: var(--text-color-dark);
    opacity: 0.9;
}

/* Dark Section Variant */
.dark-section {
    background-color: var(--forge-black);
    max-width: none; /* Allow dark sections to be full-width */
}

.dark-section .section-heading,
.dark-section blockquote {
    color: var(--sailcloth-white);
}

/* --- 3. The PENGE System --- */
.system-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
    text-align: left;
}

.system-card {
    border-top: 3px solid var(--sage-green);
    padding-top: 20px;
}

.system-icon-placeholder {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin-bottom: 20px;
}

.system-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.system-card p {
    font-family: var(--font-secondary);
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* --- 4. Product Showcase --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.product-item {
    text-align: center;
}

.product-image-placeholder {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    margin-bottom: 15px;
}

.product-item p {
    font-family: var(--font-primary);
    font-weight: 500;
}

/* --- 5. Identity Block --- */
#identity-block {
    padding-top: 100px;
    padding-bottom: 100px;
}
#identity-block blockquote {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

/* --- 7. Final CTA Block --- */
.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-outline-white {
    display: inline-block;
    background-color: transparent;
    color: var(--sailcloth-white);
    padding: 15px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9em;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 1px solid var(--sailcloth-white);
}

.btn-outline-white:hover {
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
}

/* =========================================================================
 * 12. Utility & Animation (Reveal Up & Bottom Home Button)
 * ========================================================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);

    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.bottom-home-button {
    position: fixed;
    bottom: 25px;
    left: 25px; /* CHANGED from 50% */
    transform: translateY(100%); /* CHANGED: Removed translateX */
    z-index: 90;
    max-width: 80px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    display: block;
	filter: invert(100%); /* Keep button white */
}

/* Also update the .visible class that appears right after it */
.bottom-home-button.visible {
    transform: translateY(0); /* CHANGED: Removed translateX */
    opacity: 1;
    pointer-events: auto;
}

.bottom-home-button img {
    width: 100%;
    height: auto;
    filter: invert(100%); /* Ensure logo within button is white */
}

/* =========================================================================
 * 13. Responsive Overrides
 * ========================================================================= */

/* --- Mobile / Tablet (up to 767px) --- */
@media (max-width: 767px) {
    /* Navigation */
    .main-nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(var(--forge-black-rgb), 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 1.8em;
        font-weight: 700;
    }

    .hamburger-menu {
        display: block;
    }

    .hamburger-menu.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger-menu.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-content {
        padding: 0 20px;
        margin-top: 10vh;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }
    
    h6.hero-thesis {
        font-size: 0.9em;
        margin-bottom: 2.5rem;
    }
    
    .ghost-link {
        padding: 12px 30px;
        font-size: 0.8em;
    }

    /* P.E.N.G.E. Principles */
    .manifesto-split-section {
        flex-direction: column;
        height: auto;
    }
    .manifesto-text-side, .manifesto-image-side {
        padding: 40px 20px;
        min-height: auto;
        width: 100%;
    }
    .manifesto-header .h2-seo-principle {
        font-size: 1.8em;
    }
    .manifesto-header blockquote {
        font-size: 1.1em;
    }
    .text-slide .p-number {
        font-size: 2.5em;
    }
    .text-slide .p-content h3 {
        font-size: 1.4em;
    }
    .text-slide .p-content p {
        font-size: 0.9em;
    }
    .manifesto-image-side .img-slide {
        max-width: 60%; /* Smaller icons on mobile */
    }
    .text-slider-wrapper {
        height: 250px; /* Adjust height for mobile text */
    }


    /* Art of the Forge */
    .art-forge-content {
        flex-direction: column;
        gap: 40px;
    }
    .art-forge-text {
        text-align: center;
    }
    .art-forge-text .h2-seo-forge {
        font-size: 1.8em;
    }
    .art-forge-text .description-text {
        font-size: 0.95em;
    }
    .art-forge-carousel {
        min-height: 300px;
        padding: 15px;
    }

    /* Community Section */
    .community-section .h2-seo-community {
        font-size: 1.8em;
    }
    .community-section .community-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .community-image-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .grid-overlay p {
        font-size: 1em;
    }

    /* Marquee */
    .marquee-item {
        width: 250px; /* Smaller images on mobile */
        height: 320px;
    }
    
    .marquee-track {
        gap: 1rem;
        animation-duration: 15s; /* Faster scroll on mobile */
    }

    /* Archive Grid */
    .archive-content-wrapper {
        padding: 40px var(--gap-default);
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "volume"
            "grid";
        gap: 30px;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .large-portrait,
    .square,
    .small-landscape {
        grid-column: auto;
        grid-row: auto;
        min-height: auto;
        height: 350px;
    }

    /* Footer */
    .gravity-bridge .bridge-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 40px;
    }
    .newsletter-signup,
    .bridge-navigation,
    .bridge-signature {
        align-items: center; /* Center content in columns */
        min-width: unset;
        width: 100%;
    }
    .newsletter-signup form {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .newsletter-signup button {
        width: 100%;
    }
    .bridge-navigation ul {
        margin-bottom: 20px;
    }
    .social-icons {
        margin-left: auto;
        margin-right: auto;
    }
    .bridge-signature {
        text-align: center;
        align-items: center;
    }
     .sub-footer-links a {
        margin: 0 8px;
    }
    .bottom-home-button {
        bottom: 15px;
        max-width: 60px;
    }
}

/* --- Tablet (768px and up) --- */
@media (min-width: 768px) {
    .archive-content-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "header header"
            "grid grid"
            "volume volume";
        gap: 30px;
        padding: 60px var(--gap-default);
    }

    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .large-portrait {
        grid-column: span 2;
        grid-row: span 2;
        height: 600px;
    }
    
    .square,
    .small-landscape {
        grid-column: span 1;
        grid-row: span 1;
        height: 350px;
    }

    .gravity-bridge .bridge-container {
        flex-direction: row;
        text-align: left; /* Reset text align for tablet+ */
        align-items: flex-start;
    }
    .newsletter-signup,
    .bridge-navigation,
    .bridge-signature {
        align-items: flex-start; /* Reset alignment */
        width: auto;
    }
    .newsletter-signup form {
        flex-direction: row;
        max-width: unset;
        margin: 0;
    }
    .newsletter-signup button {
        width: auto;
    }
    .bridge-signature {
        text-align: right;
        align-items: flex-end;
    }
}

/* --- Desktop (1024px and up) --- */
@media (min-width: 1024px) {
    .main-nav {
        padding: 30px 50px;
    }
    
    .nav-logo {
        max-width: 150px;
    }
    
    .hero-content {
        padding-top: 0;
    }

    .archive-content-wrapper {
        grid-template-columns: 1.5fr 1fr 1fr;
        grid-template-areas:
            "header header header"
            "large-item item2 item3"
            "volume   item4 item5";
        gap: 30px;
        padding: 80px var(--gap-default);
    }
    
    .editorial-grid {
        display: contents;
    }

    .grid-item:nth-child(1) {
        grid-area: large-item;
    }
    
    .grid-item:nth-child(2) {
        grid-area: item2;
    }
    
    .grid-item:nth-child(3) {
        grid-area: item3;
    }
    
    .grid-item:nth-child(4) {
        grid-area: item4;
    }
    
    .grid-item:nth-child(5) {
        grid-area: item5;
    }

    .large-portrait {
        height: 700px;
    }
    
    .square {
        height: 400px;
    }
    
    .small-landscape {
        height: 400px;
    }
}

/* --- Larger Desktop (1440px and up) --- */
@media (min-width: 1440px) {
    .archive-content-wrapper {
        gap: 40px;
        padding: 100px var(--gap-default);
    }
    
    .large-portrait {
        height: 800px;
    }
    
    .square,
    .small-landscape {
        height: 450px;
    }
}
/* =========================================
   MOBILE RESCUE PATCH (Paste at bottom of CSS)
   ========================================= */

/* 1. HERO FIXES */
/* Force the button to be Solid White */
.hero-content a, button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 700 !important;
}

/* Force the Sub-text to be Sans-Serif and Thin */
h6.hero-thesis {
    font-family: 'Montserrat', Helvetica, sans-serif !important; /* Changed to Montserrat */
    font-style: normal !important; /* Removes Italics */
    font-weight: 300 !important;
    letter-spacing: 0.15em !important;
}

/* 2. MANIFESTO LAYOUT FIXES (Mobile Only) */
@media (max-width: 900px) {
    
    /* Force the Split Section to Stack */
    .manifesto-split-section {
        flex-direction: column !important;
        height: auto !important;
        display: flex !important;
    }

    /* Fix the Text Area */
    .manifesto-text-side {
        width: 100% !important;
        padding: 3rem 1.5rem !important;
        height: auto !important;
        min-height: 400px; /* Give room for text slider */
    }

    /* FIX TYPOGRAPHY: The Signal Line */
    .manifesto-signal-line {
        font-family: 'Montserrat', Helvetica, sans-serif !important; /* Changed to Montserrat */
        font-style: normal !important; /* Removes Italics */
        font-weight: 700 !important;
        font-size: 0.7rem !important;
        border-left: 2px solid var(--forge-black) !important; /* Use variable */
        margin-top: 1rem !important;
        color: var(--sailcloth-white) !important; /* Ensure white on black background */
    }

    /* 3. CRITICAL IMAGE FIX: Stop the Stacking! */
    .manifesto-image-side {
        width: 100% !important;
        height: 50vh !important; /* Fixed height is mandatory */
        position: relative !important; /* Anchors the absolute images */
        display: block !important;
        overflow: hidden !important; /* Hides images waiting off-stage */
    }

    /* Force Images to overlap */
    .img-slide {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* =========================================================================
 * 15. Footer Contact Form Fix (NEW)
 * ========================================================================= */

/* Target the specific contact form using its class */
.newsletter-signup .contact-form {
    display: flex;          /* Use flexbox for easy layout */
    flex-direction: column; /* Stack elements vertically */
    gap: 15px;              /* Space between form elements */
    max-width: 100%;        /* Override the old 350px max-width */
}

/* General style for all text inputs and the textarea in the contact form */
.newsletter-signup .contact-form input[type="text"],
.newsletter-signup .contact-form input[type="email"],
.newsletter-signup .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--sailcloth-white);
    font-family: var(--font-primary);
    font-size: 1em;
    border-radius: 3px;
}

/* Style for the submit button in the contact form */
.newsletter-signup .contact-form button[type="submit"] {
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
    padding: 12px 20px;
    border: 1px solid var(--sailcloth-white);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1em;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start; /* Align button to the left, don't stretch */
    width: auto; /* Override mobile full-width styles */
}

.newsletter-signup .contact-form button[type="submit"]:hover {
    background-color: transparent;
    color: var(--sailcloth-white);
}

/* Style for the status message paragraph */
#contact-message-status {
    font-family: var(--font-primary);
    font-size: 0.9em;
    margin-top: 10px;
    min-height: 1.2em; /* Prevents layout shifting when text appears */
    color: var(--sage-green);
}
/* ... (all previous css code) ... */

/* =========================================================================
 * 15. Footer Contact Form Fix (NEW)
 * ========================================================================= */

/* NEW: A wrapper to hold form fields side-by-side */
.contact-form .form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.contact-form .form-row input {
    flex: 1; /* Each input takes up half the space */
}

/* Target the specific contact form using its class */
.newsletter-signup .contact-form {
    display: flex;          /* Use flexbox for easy layout */
    flex-direction: column; /* Stack elements vertically */
    gap: 15px;              /* Space between form elements */
    max-width: 100%;        /* Override the old 350px max-width */
}

/* General style for all text inputs and the textarea in the contact form */
.newsletter-signup .contact-form input[type="text"],
.newsletter-signup .contact-form input[type="email"],
.newsletter-signup .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--sailcloth-white);
    font-family: var(--font-primary);
    font-size: 1em;
    border-radius: 3px;
}

/* Style for the submit button in the contact form */
.newsletter-signup .contact-form button[type="submit"] {
    background-color: var(--sailcloth-white);
    color: var(--forge-black);
    padding: 12px 20px;
    border: 1px solid var(--sailcloth-white);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1em;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start; /* Align button to the left, don't stretch */
    width: auto; /* Override mobile full-width styles */
}

.newsletter-signup .contact-form button[type="submit"]:hover {
    background-color: transparent;
    color: var(--sailcloth-white);
}

/* Style for the status message paragraph */
#contact-message-status {
    font-family: var(--font-primary);
    font-size: 0.9em;
    margin-top: 10px;
    min-height: 1.2em; /* Prevents layout shifting when text appears */
    color: var(--sage-green);
}

/* =========================================================================
   16. PENGE — STORE & PRODUCT LAYER ONLY
   Depends on: signal.css (tokens, base, nav)
   ========================================================================= */


/* =============================
STORE HERO
============================= */
.store-hero {
    background-color: var(--forge-black);
    color: var(--sailcloth-white);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.store-hero-inner {
    max-width: 700px;
}

.store-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.store-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--sailcloth-white);
}

.store-sub {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.primary-link {
    display: inline-block;
    border: 1px solid var(--sailcloth-white);
    padding: 14px 32px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.primary-link:hover {
    background: var(--sailcloth-white);
    color: var(--forge-black);
}


/* =============================
SYSTEM BLOCK
============================= */
.store-system {
    padding: 100px 40px;
    background: var(--sailcloth-white);
    text-align: center;
}

.store-system h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 60px;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.system-item {
    border-top: 2px solid var(--sage-green);
    padding-top: 20px;
    text-align: left;
}

.system-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.system-item p {
    font-size: 1rem;
    opacity: 0.8;
}

/* =============================
PRODUCT GRID (REFINED WITH OVERLAY)
============================= */
.product-grid-refined {
    padding: 60px 40px;
    background: var(--sailcloth-white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.product-card a {
    text-decoration: none;
    color: var(--text-color-dark);
}

.product-image-container {
    position: relative; /* CRUCIAL for the overlay */
    overflow: hidden;
    background: #f0f0f0;
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* --- NEW OVERLAY STYLES --- */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--forge-black-rgb), 0.7);
    color: var(--sailcloth-white);
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;

    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.overlay-caption {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    transform: translateY(10px); /* Slight upward animation */
    transition: transform 0.4s ease;
}

/* --- HOVER EFFECTS --- */
.product-card:hover img {
    transform: scale(1.03);
}

.product-card:hover .image-overlay {
    opacity: 1; /* Show overlay on hover */
}

.product-card:hover .overlay-caption {
    transform: translateY(0);
}


/* --- Product Info Below Image --- */
.product-info {
    text-align: left;
    padding: 16px 4px;
}

.product-info h3 {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-price {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 12px;
}

.color-swatches {
    display: flex;
    gap: 8px;
}

.swatch {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* =========================================================================
   17.0 — PRODUCT PAGE (PENGE SYSTEM LAYER)
   Everlane-inspired structure with editorial + system integration
   ========================================================================= */
/* =============================================
   17 — PRODUCT DETAIL PAGE
   ============================================= */

.product-detail-page {
    padding-top: 80px; /* Space for nav */
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 40px;
}

/* --- Gallery (Left Column) --- */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.product-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background-color: #f0f0f0;
}

/* --- Details (Right Column) --- */
.product-details {
    position: sticky;
    top: 120px;
    height: fit-content; /* Important for sticky to work well */
}
.breadcrumbs {
    font-size: 0.7rem;
    font-family: var(--font-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #666;
}
.product-title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: none; /* Override global uppercase */
    margin-bottom: 8px;
    font-weight: 500;
}
.product-price {
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 30px;
}
/* =========================================
PRODUCT OPTIONS — ELEVATED EDITORIAL UI
========================================= */

.product-options {
    margin-bottom: 40px;
}

.option-group {
    margin-bottom: 34px;
}

/* -----------------------------------------
LABELS
----------------------------------------- */

.option-group label {
    display: block;

    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;

    letter-spacing: 0.03em;
    line-height: 1.4;

    margin-bottom: 14px;

    color: var(--forge-black);
}

/* Dynamic Color Name */
#color-label {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-wrap: wrap;
}

#color-label span {
    font-style: normal;
    font-family: var(--font-primary);
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    opacity: 0.7;
}

/* -----------------------------------------
SIZE HEADER
----------------------------------------- */

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 14px;
}

.size-guide-link {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    letter-spacing: 0.04em;

    color: #666;

    text-decoration: none;
    border-bottom: 1px solid #999;

    transition: opacity 0.2s ease;
}

.size-guide-link:hover {
    opacity: 0.65;
}

/* -----------------------------------------
COLOR SWATCHES
----------------------------------------- */

.color-swatches {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Swatch Base */
.swatch {
    position: relative;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    cursor: pointer;

    border: 1px solid rgba(0,0,0,0.15);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */
.swatch:hover {
    transform: scale(1.08);
}

/* Active Swatch */
.swatch.active {
    border: 2px solid var(--forge-black);
    box-shadow:
        0 0 0 4px rgba(0,0,0,0.08);
}

/* Inner Ring */
.swatch.active::after {
    content: '';

    position: absolute;
    inset: 4px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
}

/* -----------------------------------------
SIZE & MATERIAL CONTAINERS
----------------------------------------- */

.size-options,
.material-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* -----------------------------------------
BUTTON BASE
----------------------------------------- */

.size-option,
.material-option {
    appearance: none;
    -webkit-appearance: none;

    border: 1px solid rgba(0,0,0,0.12);

    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(6px);

    color: var(--forge-black);

    padding: 14px 22px;

    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.18s ease,
        box-shadow 0.2s ease;

    min-width: 62px;

    text-align: center;

    outline: none;
}

/* Material Buttons */
.material-option {
    min-width: 180px;
}

/* Hover */
.size-option:hover,
.material-option:hover {
    border-color: var(--forge-black);

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.06);
}

/* Active */
.size-option.active,
.material-option.active {
    background: var(--forge-black) !important;
    color: var(--sailcloth-white) !important;

    border-color: var(--forge-black);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.16);
}

/* Focus */
.size-option:focus,
.material-option:focus {
    border-color: var(--forge-black);
}

/* -----------------------------------------
CTA BUTTON
----------------------------------------- */

.product-cta {
    width: 100%;

    margin-top: 10px;

    padding: 22px 28px;

    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.product-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.12);
}

/* -----------------------------------------
INFO SNIPPETS
----------------------------------------- */

.info-snippets {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    margin: 28px 0 10px;

    font-family: var(--font-primary);
    font-size: 0.82rem;

    color: #666;

    line-height: 1.7;
}

.info-snippets p {
    margin: 0;
}

/* -----------------------------------------
MOBILE RESPONSIVE
----------------------------------------- */

@media (max-width: 768px) {

    .option-group {
        margin-bottom: 28px;
    }

    .swatch {
        width: 30px;
        height: 30px;
    }

    .size-options,
    .material-options {
        gap: 10px;
    }

    .size-option,
    .material-option {
        padding: 13px 18px;
        font-size: 0.78rem;
    }

    .material-option {
        min-width: auto;
        flex: 1;
    }

    .product-cta {
        padding: 18px 20px;
        font-size: 0.92rem;
    }

    .info-snippets {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Product Detail Page: Accordion Content Refinements --- */
.details-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}
.spec-color-list {
    list-style: none;
    padding-left: 0;
}
.spec-color-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}
.spec-swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* CTA */
.product-cta { width: 100%; }

.info-snippets {
    margin: 20px 0;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: #555;
    line-height: 1.6;
}

/* Accordion */
.product-accordion details { border-top: 1px solid #ddd; }
.product-accordion details:last-of-type { border-bottom: 1px solid #ddd; }
.product-accordion summary { padding: 15px 0; font-family: var(--font-primary); font-size: 0.85rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.product-accordion summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #000; border-bottom: 2px solid #000; transform: rotate(45deg); transition: transform 0.2s ease; }
.product-accordion details[open] summary::after { transform: rotate(-135deg); }
.details-content { padding-bottom: 20px; font-size: 0.9rem; line-height: 1.7; color: #333; }
.details-content ul { padding-left: 20px; margin-top: 10px; }


/* --- Editorial Story Section --- */
.editorial-story {
    margin-top: 100px;
    padding: 0;
}
.editorial-card {
    position: relative;
    text-align: center;
    max-width: 1440px;
    margin: 0 auto 60px;
}
.editorial-image { display: block; width: 100%; height: auto; }
.editorial-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--sailcloth-white);
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}
.editorial-text-overlay.text-bottom-left { align-items: flex-start; justify-content: flex-end; }
.editorial-text-overlay h2, .editorial-card h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.02em;
    margin-bottom: 15px;
    color: inherit;
}
.editorial-text-overlay p, .editorial-card p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
    color: inherit;
    opacity: 0.9;
}
.editorial-card.card-text-only { padding: 80px 40px; }
.editorial-card.card-dark { padding: 80px 40px; background: var(--forge-black); color: var(--sailcloth-white); max-width: none; }


/* --- Product Page Responsive --- */
@media (max-width: 900px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 20px;
        padding: 0 20px;
    }
    .product-details {
        position: static; /* Unstick the details column */
    }
    .product-gallery {
        gap: 10px;
    }
    .editorial-story { margin-top: 60px; }
    .editorial-card { margin-bottom: 30px; }
}
/* --- D. Product Detail Page (Additions) --- */

/* NEW: Product Hero Style */
.product-hero {
    width: 100%;
    height: 75vh; /* Adjust height as needed */
    background-color: #f0f0f0; /* Fallback color */
    margin-top: 80px; /* Offset for fixed nav */
}
.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area beautifully */
}

/* Existing styles for .product-detail-page, etc. */
.product-detail-page {
    /* No longer needs top padding */
}
/* ... rest of your product page styles ... */
/* =============================================
   12.6 — PRODUCT PAGE HERO (WITH OVERLAY)
   ============================================= */

.product-hero {
    position: relative; /* This is the anchor for the overlay */
    display: flex; /* Using flexbox to easily position content */
    align-items: center; /* Vertically centers the overlay content */
    justify-content: flex-end; /* Pushes the overlay to the right */
    width: 100%;
    height: 75vh;
    margin-top: 80px;
    background-color: var(--forge-black); /* Fallback color */
    overflow: hidden; /* Ensures nothing spills out */
}

.product-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Sits behind the overlay */
    filter: brightness(0.8); /* Slightly darkens image for text readability */
}

.product-hero-overlay {
    position: relative; /* Sits on top of the image */
    z-index: 2;
    color: var(--sailcloth-white);
    text-align: right;
    padding: 0 5%; /* Padding from the right edge */
    width: 40%; /* Takes up the right 40% of the hero */
}

.hero-overlay-text {
    font-family: var(--font-primary);
    font-weight: 300; /* Thin style */
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    letter-spacing: 0.3em; /* Wide, airy spacing */
    text-transform: uppercase;
    color: var(--sailcloth-white);
    margin-bottom: 2rem;
}

/* Style for the button specifically within this hero */
.product-hero .btn-outline-white {
    padding: 12px 28px;
    font-size: 0.8rem;
}
/* =============================================
   12.7 — CHECKOUT PAGE
   ============================================= */
.checkout-page { padding-top: 100px; background-color: var(--sailcloth-white); }
.checkout-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}
.customer-info h2, .order-summary h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: none;
}
.customer-info form { display: flex; flex-direction: column; gap: 15px; }
.customer-info input {
    width: 100%;
    padding: 14px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 2px;
}
.order-summary { background-color: #f7f7f7; padding: 30px; }
.summary-item { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.summary-item img { width: 80px; height: 100px; object-fit: cover; }
.item-details p { font-family: var(--font-primary); font-size: 0.9rem; margin: 0; line-height: 1.5; }
.item-price { font-family: var(--font-primary); margin-left: auto; }
.summary-totals { margin-top: 20px; }
.total-line { display: flex; justify-content: space-between; font-family: var(--font-primary); margin-bottom: 10px; }
.total-line.final { font-weight: 700; font-size: 1.2rem; margin-top: 20px; padding-top: 20px; border-top: 1px solid #ddd; }

@media (max-width: 900px) {
    .checkout-container { grid-template-columns: 1fr; }
    .order-summary { grid-row: 1; } /* Move summary to top on mobile */
}