/* ==========================================================================
   SQUARE PANELS HOME STYLESHEET
   File: css/pages/home.css
   ========================================================================== */

/* --- HERO SECTION --- */
.hero-curtain-section {
    position: sticky; top: 0;
    height: 100vh; width: 100%;
    z-index: 0;
    margin-top: calc(var(--header-height) * -1); /* Pull under header */
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-bg-video video, .hero-bg-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0.4; z-index: 2; }

.hero-content { position: relative; z-index: 5; text-align: center; }

.hero-scroll-prompt {
    margin-top: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
}

/* --- GLOBAL SECTION LAYERING --- */
.z-overlap {
    position: relative; z-index: 10;
    background-color: var(--bg-color);
    box-shadow: 0 -30px 60px rgba(0,0,0,0.8);
}

.section-border-top {
    width: 100%; height: 1px;
    background: rgba(255,255,255,0.1);
    position: absolute; top: 0; left: 0;
}
.section-border-top::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 0%; height: 1px; background: var(--accent);
    transition: width 1.5s ease;
}
.z-overlap.is-visible .section-border-top::after { width: 100%; }


/* --- NEW MANIFESTO TECH SECTION (Redesigned) --- */
.manifesto-tech-section {
    padding: 160px 0;
    background: #080808;
}

/* Header Area */
.manifesto-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-label {
    width: 20%;
    display: flex; flex-direction: column; gap: 10px;
}
.mono-label {
    font-family: monospace;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.header-content {
    width: 80%;
}
.manifesto-lead {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #888;
    max-width: 800px;
    line-height: 1.6;
}
.manifesto-lead strong { color: #fff; font-weight: 500; }


.read-line {
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    line-height: 1; /* Reduced from 1.1 to 1 for tighter stacking */
    font-weight: 600;
    color: #222; 
    transition: color 0.6s ease;
    
    /* FIX: Remove default browser margins to close the gap */
    margin-top: 0;
    margin-bottom: 0;
    
    /* OPTIONAL: Slight negative spacing for a 'typeset' look */
    letter-spacing: -0.02em; 
}

/* Optional: Add a tiny specific gap between the two lines if 0 is too tight */
.read-line + .read-line {
    margin-top: 10px; 
}


/* Specs Grid */
.manifesto-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px; /* Gap creates the border lines via background color if needed, but we use borders on elements */
    background: rgba(255,255,255,0.1); /* The border color */
    border: 1px solid rgba(255,255,255,0.1);
}

.spec-card {
    background: #080808;
    padding: 50px 40px;
    transition: background 0.4s ease;
}
.spec-card:hover {
    background: #111;
}

.spec-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 25px;
    opacity: 0.8;
}

.spec-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 0.05em;
}

.spec-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Manifesto */
@media (max-width: 1024px) {
    .manifesto-header { flex-direction: column; gap: 40px; margin-bottom: 60px; }
    .header-label { width: 100%; flex-direction: row; justify-content: space-between; }
    .header-content { width: 100%; }
    .manifesto-specs { grid-template-columns: 1fr; }
}


/* --- PRODUCT PIN DECK (STICKY) --- */
.services-pin-section { background-color: #000; }
.pin-container { display: flex; width: 100%; }

.pin-visuals {
    width: 50%; height: 100vh;
    position: sticky; top: 0;
    overflow: hidden;
}
.visual-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.visual-item.is-active { opacity: 1; transform: scale(1); z-index: 2; }
.visual-item img { width: 100%; height: 100%; object-fit: cover; }

.pin-content { width: 50%; background: #050505; padding: 0 5vw 20vh 5vw; }
.pin-text-block {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    opacity: 0.2; transition: opacity 0.5s;
}
.pin-text-block.is-active { opacity: 1; }
.pin-text-block h2 { font-size: 4rem; line-height: 1; margin-bottom: 20px; }
.btn-text { color: var(--accent); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.1em; font-weight: 600; }

/* --- CURTAIN SEQUENCE --- */
.curtain-section { position: relative; background: #000; }
.curtain-header-sticky {
    position: sticky; top: calc(var(--header-height) + 20px); left: 0;
    z-index: 500; width: 100%; pointer-events: none; mix-blend-mode: difference;
}
.mono-label { font-family: monospace; text-transform: uppercase; color: #fff; font-size: 0.85rem; }

.curtain-panel {
    position: sticky; top: 0;
    width: 100%; height: 100vh;
    overflow: hidden;
    display: flex; align-items: center;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.5);
}
.curtain-visual { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.curtain-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

.curtain-content { position: relative; z-index: 10; margin-top: auto; padding-bottom: 100px; }
.curtain-num { font-size: 5rem; color: rgba(255,255,255,0.1); font-weight: 800; display: block; line-height: 1; }
.curtain-title { font-size: 4rem; margin: 10px 0; }

/* --- HORIZONTAL SCROLL --- */
.horizon-scroll-section { height: 300vh; position: relative; background: #111; }
.horizon-sticky-wrapper {
    position: sticky; top: 0; height: 100vh;
    overflow: hidden; display: flex; align-items: center;
}
.axis-line { position: absolute; top: 50%; width: 100%; height: 1px; background: #333; }
.horizon-track { display: flex; padding-left: 15vw; align-items: center; will-change: transform; }
.horizon-item {
    width: 40vw; flex-shrink: 0; padding: 0 40px;
    border-left: 1px solid #333; height: 50vh; display: flex; flex-direction: column; justify-content: center;
}
.big-num { font-size: 8rem; color: #222; font-weight: 900; position: absolute; opacity: 0.3; }
.item-top .big-num { top: -2rem; }
.item-bottom .big-num { bottom: -2rem; }