/* --- 1. SETTINGS --- */
:root {
    --bg-paper: #f2f2ee; 
    --ink: #111111;     
    --line: rgba(17, 17, 17, 0.15);
}

* { box-sizing: border-box; }

html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 
.lenis.lenis-stopped { overflow: hidden; } 
.lenis.lenis-scrolling iframe { pointer-events: none; } 

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

/* --- 2. LAYOUT --- */
section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.container.visible { opacity: 1; transform: translateY(0); }

/* Typography */
.content-block { display: flex; flex-direction: column; justify-content: center; }

.label {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: block;
    opacity: 0.6;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0 0 2rem 0;
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.25rem;
    line-height: 1.5;
    max-width: 600px;
    font-weight: 300;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2rem;
    border: 1px solid currentColor;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
    width: fit-content;
}
.btn:hover { background: var(--ink); color: var(--bg-paper); }

/* --- 3. BACKGROUND ASCII (HERO) --- */
.ascii-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    mix-blend-mode: multiply;
}

.ascii-bg pre {
    font-family: 'Space Mono', monospace;
    font-size: 3.5px;
    line-height: 3px;
    white-space: pre;
    text-align: center;
    color: #000;
}

/* --- 4. SMALL SHAPE ART --- */
.shape-art {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem; 
    line-height: 0.8;
    white-space: pre;
    color: currentColor;
    opacity: 0.8;
    font-weight: 700;
    justify-self: center;
    text-align: center;
    letter-spacing: -1px;
}

/* --- 5. THE SHOE ASCII (UPDATED POSITIONING) --- */
.shoe-ascii {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    line-height: 8px;
    white-space: pre;
    color: #111;
    opacity: 0.85;
    overflow: hidden;
    /* UPDATED: Align to start (Left) */
    justify-self: start; 
    text-align: left;
    /* UPDATED: Pull it further left */
    transform: translateX(-30%); 
}

/* --- 6. SECTION STYLES --- */

/* HERO */
#hero { background-color: #050505; color: white; align-items: center; text-align: center; }
#hero .container { grid-template-columns: 1fr; }
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 120%; z-index: 0; opacity: 0.5; }
.hero-bg { width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=2670&auto=format&fit=crop'); background-size: cover; background-position: center; }
.scroll-hint { 
    position: absolute; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-family: 'Space Mono', monospace; 
    font-size: 0.75rem; 
    color: rgba(255,255,255,0.95); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 24px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* JOURNALISM */
/* JOURNALISM / WRITING */
#journalism { 
    background-color: var(--bg-paper); 
    color: var(--ink);
    position: relative;
    overflow: hidden;
}

#journalism .container {
    z-index: 2;
    grid-template-columns: 1fr 1fr;
    max-width: 1210px;
    gap: 2rem;
}

#journalism .content-block {
    max-width: 500px;
}

#journalism .content-block p {
    max-width: 100% !important;
}

/* Dark shadow backdrop for ASCII typewriter */
#journalism .ascii-backdrop {
    position: absolute;
    top: 55%;
    right: -4%;
    transform: translateY(-50%);
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.95) 30%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.3) 70%,
        transparent 90%
    );
    filter: blur(25px);
    pointer-events: none;
    z-index: 1;
}

#journalism .typewriter-art {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    line-height: 0.8;
    white-space: pre;
    opacity: 0.9;
    font-weight: 700;
    justify-self: end;
    text-align: center;
    letter-spacing: -1px;
    position: relative;
    z-index: 3;
    margin-right: -24%;
}

/* PR / EDUCATION / STUK */
#pr { background-color: #111; color: #f2f2ee; }
#pr .btn { 
    color: #f2f2ee;
    border-color: #f2f2ee;
}
#pr .btn:hover { 
    background: #f2f2ee; 
    color: #111; 
}
#pr .shape-art { color: #333; }
#pr:hover .shape-art { color: #fff; transition: color 0.5s; }

/* INFRASTRUCTURE */
#infra { background-color: #e5e5e5; color: var(--ink); }
#infra .container { text-align: left; }
#infra .content-block { align-items: flex-start; }
#infra .shape-art { order: 1; }

/* ATHLETICS */
#athletics { background-color: #fff; background-image: radial-gradient(#ccc 1px, transparent 1px); background-size: 20px 20px; }

/* FOOTER */
#footer { 
    min-height: auto;
    background: #0a0a0a; 
    color: #888;
    padding: 4rem 2rem;
    border-top: 1px solid #222;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-location {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.4;
    margin-top: 1rem;
}
/* Mobile */
@media (max-width: 900px) {
    h2 { font-size: 3rem; }
    section { padding: 4rem 1.5rem; height: auto; min-height: 100vh; }
    .container { grid-template-columns: 1fr !important; gap: 3rem; text-align: left !important; }
    .content-block { align-items: flex-start !important; }
    .shape-art { display: none; } 
    
    /* Mobile adjustment for shoe */
    .shoe-ascii { 
        font-size: 2px; 
        line-height: 2px; 
        transform: translateX(0); /* Reset shift on mobile */
        justify-self: center;
        order: -1; 
        margin-bottom: 2rem;
    }
    .ascii-bg pre { font-size: 2px; }
}