:root {
    --bg: #000000;
    --card-bg: #1c1c1e;
    --text-main: #f5f5f7;
    --text-dim: #86868b;
    --accent: #6366f1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Navigation */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(20px); background: rgba(0,0,0,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 18px 40px; }
.logo { font-weight: 700; font-size: 1.2rem; letter-spacing: -1px; text-decoration: none; color: white; }
.nav-links a { color: var(--text-main); text-decoration: none; margin-left: 30px; font-size: 0.9rem; }
.cta-btn { background: var(--text-main); color: #000 !important; padding: 8px 18px; border-radius: 20px; font-weight: 500; }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; }
h1 { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px; text-wrap: balance; }
.tagline { font-size: 1.5rem; color: var(--accent); font-weight: 500; margin-bottom: 30px; }
.chips span { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; margin-right: 8px; font-size: 0.8rem; color: var(--text-dim); }

/* Index Grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0 120px; }
.card { 
    background: var(--card-bg); padding: 40px; border-radius: 24px; text-decoration: none; color: inherit;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1); border: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; justify-content: space-between; min-height: 250px;
}
.card:hover { transform: translateY(-8px); background: #2c2c2e; border-color: var(--accent); }
.card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; }
.arrow { margin-top: 20px; font-size: 1.2rem; transition: transform 0.3s ease; }
.card:hover .arrow { transform: translateX(5px); color: var(--accent); }

/* Sub-page Elements */
.sub-page { padding-top: 100px; }
.sub-header { padding: 80px 40px; }
.narrative-block { margin-bottom: 80px; max-width: 800px; }
.year-label { color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.highlight-block { background: #111; padding: 40px; border-radius: 24px; border-left: 4px solid var(--accent); }

/* Project Detail */
.project-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; margin-bottom: 120px; align-items: start; }
.psi-step { margin-bottom: 25px; }
.psi-step h4 { color: var(--text-main); margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; opacity: 0.5; letter-spacing: 1px; }

/* Placeholders */
.image-placeholder, .img-placeholder { background: #1c1c1e; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: #444; border: 1px dashed #333; }
.image-placeholder { aspect-ratio: 4/5; }
.img-placeholder { aspect-ratio: 16/9; width: 100%; }

/* General Grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 100px 0; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid, .project-detail { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    h1 { font-size: 3.2rem; }
}