/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --line-color: rgba(255, 255, 255, 0.4); 
    --nav-height: 100px;
    /* Clean, robust font stack */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden; 
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    z-index: 2000;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 100%);
    pointer-events: none; 
}

.cask-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 54px; height: 54px;
    background-color: var(--line-color); 
    gap: 2px; 
    padding: 0; 
    pointer-events: auto; 
}

.nav-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    background-color: #050505; 
    color: #fff;
    transition: background-color 0.6s ease, color 0.6s ease;
}

.nav-cell.active { background-color: #ffffff; color: #000000; }

@media (hover: hover) { 
    .nav-cell:hover { background-color: #222; } 
}

.contact-btn { 
    text-decoration: none; 
    color: white; 
    font-size: 0.9rem; 
    font-weight: 600;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: 10px; 
    mix-blend-mode: overlay;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; 
    pointer-events: auto; 
    position: relative;
    z-index: 2001; 
}

.contact-btn:hover { opacity: 0.7; }

.contact-btn.email-revealed {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    mix-blend-mode: normal; 
}

/* =========================================
   3. INTRO HERO (Welcome Screen)
   ========================================= */
.intro-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; 
    /* Removed Background Color to prevent "Blind" effect */
    z-index: 10; 
    will-change: opacity, transform; 
    pointer-events: none; 
}

.intro-sub {
    font-family: var(--font-main);
    color: #444; 
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    animation-delay: 0.1s; 
}

.intro-title {
    font-family: var(--font-main);
    color: #fff;
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 768px) {
    .intro-title { flex-direction: row; gap: 0.4em; }
}

.intro-title span {
    display: block;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.intro-title .word-1 { animation-delay: 0.3s; }
.intro-title .word-2 { animation-delay: 0.5s; }

.intro-line {
    position: absolute;
    bottom: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

/* =========================================
   4. MAIN SECTIONS (C, A, S, K)
   ========================================= */
.section-container { 
    height: 250vh; 
    position: relative; 
    scroll-margin-top: 0; 
}

/* THE FIX: Small overlap only */
#sec-c {
    margin-top: -10vh;  /* Small overlap to stitch it to the intro */
    padding-top: 10vh;  /* Push content down to match */
    z-index: 1; 
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center; 
}

.content-layer, .cover-letter {
    grid-area: 1 / 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    text-align: center;
}

.cover-letter { 
    z-index: 2; 
    background: var(--bg-color); 
    pointer-events: none; 
}

.big-char { 
    font-size: clamp(250px, 30vw, 800px); 
    font-weight: 900; 
    line-height: 1; 
    letter-spacing: -0.05em; 
    color: #fff; 
}

.content-layer { z-index: 1; padding: 20px; }

.content-box { 
    max-width: 600px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

h2 { font-size: 3rem; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.1; }
p { font-size: 1.2rem; color: #888; line-height: 1.6; margin-bottom: 30px; } 

.small-tag {
    display: inline-block; margin-bottom: 30px;
    padding: 12px 24px; border: 1px solid #333; border-radius: 100px;
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px);
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; font-weight: 700; color: #fff;
}
.small-tag span { color: #555; margin-right: 10px; }

/* =========================================
   5. VISUAL ASSETS
   ========================================= */
.vertical-line {
    width: 1px; 
    height: 80px; 
    background: linear-gradient(to bottom, #fff, transparent); 
    margin-top: 10px;
    opacity: 0.6;
    animation: scrollPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    20% { opacity: 1; }
    49% { transform: scaleY(1); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. MANIFESTO / ABOUT
   ========================================= */
.about-section {
    position: relative;
    padding: 200px 20px; 
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.about-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(50,50,50,0.2) 0%, rgba(5,5,5,0) 60%);
    z-index: 0; pointer-events: none;
}

.manifesto-content { 
    position: relative; 
    z-index: 1; 
    max-width: 800px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.manifesto-heading {
    font-size: 3rem; margin-bottom: 40px; line-height: 1.1; color: #fff;
    letter-spacing: -2px; font-weight: 900;
}

.manifesto-text {
    font-size: 1.2rem; line-height: 1.8; color: #999; margin-bottom: 50px; font-weight: 300;
}
.manifesto-text strong { color: #fff; font-weight: 500; border-bottom: 1px solid #333; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    height: 60vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    border-top: 1px solid #222; position: relative; overflow: hidden;
    background-color: #0a0a0a; 
}

footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
    pointer-events: none; 
}

footer h3, footer p, footer a, footer div { z-index: 2; position: relative; }

.footer-cta {
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: -1px; 
    color: #fff;
    text-decoration: none; 
    cursor: pointer; 
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap; 
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}
.footer-cta:hover { color: #aaa; }

.footer-cta.email-revealed {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    font-size: 1.8rem; 
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 3rem; 
}

footer p { margin: 0; font-size: 0.9rem; color: #666; }

.legal-links {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.legal-links:hover { opacity: 1; }

.legal-links a {
    text-decoration: none;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: color 0.2s;
}
.legal-links a:hover { color: #fff; }

.separator { color: #333; }

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    nav { padding: 20px 25px; }
    .cask-nav-grid { pointer-events: none; }
    h2 { font-size: 2rem; }
    p { font-size: 1rem; max-width: 90%; }
    .manifesto-heading { font-size: 2rem; }
    .about-glow { width: 300px; height: 300px; opacity: 0.5; }
    .footer-cta.email-revealed { font-size: 1.2rem; word-break: break-all; }
}