/* --- Variables & Reset --- */
:root {
    --bg-color: #0b0b0b;
    --surface-color: #141414;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #D4AF37; /* Metallic Gold */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Manrope', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    cursor: none; 
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }

/* --- Custom Cursor --- */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    margin-left: -3px; margin-top: -3px;
}
@media (max-width: 768px) { #cursor-dot, #cursor-outline { display: none; } }

#cursor-dot { width: 6px; height: 6px; background-color: var(--accent); }
#cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    margin-left: -20px; margin-top: -20px;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}
body.hovering #cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: transparent;
    margin-left: -30px; margin-top: -30px;
    backdrop-filter: blur(2px);
}

/* --- Layout --- */
.container { width: 88%; max-width: 1200px; margin: 0 auto; position: relative; }
.section-padding { padding: 140px 0; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    color: var(--text-main);
}
.section-title::after {
    content: ''; position: absolute; bottom: -15px; left: 0;
    width: 40px; height: 2px; background: var(--accent);
}
.section-title.centered { left: 50%; transform: translateX(-50%); }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* --- Reveal Animation Classes --- */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    display: block;
}
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.is-visible { opacity: 1; transform: translateY(0); }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 2rem 6%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}
.logo a { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0.15em; font-weight: 600; color: #fff; display: inline-block; }

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.2em;
    position: relative; color: #fff; opacity: 0.8; display: inline-block;
}
.nav-links a:hover { opacity: 1; }

.magnetic-wrap { display: inline-block; position: relative; }
.magnetic-area { display: inline-block; transition: color 0.3s; }

/* Mobile Menu */
.menu-toggle {
    display: none; width: 40px; height: 40px; 
    cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px; background-color: #fff; 
    margin: 6px 0; transition: 0.3s;
}
.mobile-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    z-index: 99;
    transform: translateY(-100%); transition: transform 0.5s var(--ease-out);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-link { font-family: var(--font-serif); font-size: 2rem; color: #fff; }

/* --- Hero Section --- */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; 
    overflow: hidden; 
    width: 100%;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden;
}
.hero-bg::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle, transparent 0%, var(--bg-color) 90%);
}
.hero-bg img { 
    height: 100%;
    width: 100%; 
    object-fit: cover; 
    object-position: center;
    filter: brightness(0.7);
}

.hero-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 1rem); letter-spacing: 0.4em;
    color: var(--accent); text-transform: uppercase; margin-bottom: 1.5rem;
}

.scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-indicator::after { content: ''; width: 1px; height: 40px; background: var(--text-muted); }

/* --- News Section --- */
.news-grid-container {
    display: grid;
    gap: 3rem;
    grid-auto-flow: column; 
    grid-auto-columns: minmax(300px, 32%); 
    overflow-x: auto;
    overscroll-behavior-x: contain; 
    padding-bottom: 2rem; 
    scroll-snap-type: x mandatory;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s var(--ease-out);
    scroll-snap-align: start; 
}
.news-card:hover { transform: translateY(-5px); border-bottom-color: var(--accent); }

.news-thumb {
    width: 200px; 
    height: 200px;
    flex-shrink: 0; 
    overflow: hidden;
    border-radius: 2px;
    background: #222; 
}
.news-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.news-card:hover .news-thumb img { transform: scale(1.05); }

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}
.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.3;
}
.news-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 769px) {
    .news-card { flex-direction: row; align-items: flex-start; }
    .news-content { flex: 1; }
}

/* --- Biography --- */
.bio-grid {
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start;
}
.bio-image-wrapper { 
    width: 100%; aspect-ratio: 3/4; 
    position: relative; overflow: hidden; 
    border-radius: 4px;
}
.bio-img { 
    width: 100%; height: 120%; /* Parallax */
    object-fit: cover; 
    filter: grayscale(100%) contrast(1.1); 
    transition: filter 0.5s ease;
}
.bio-image-wrapper:hover .bio-img { filter: grayscale(0%); }

.bio-desc p { margin-bottom: 1.5rem; color: #ccc; font-weight: 300; }
.awards-list { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.awards-list h3 { font-size: 1rem; color: var(--accent); margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.awards-list ul li {
    font-size: 0.95rem; padding: 0.5rem 0;
    display: flex; align-items: center;
}
.awards-list ul li::before {
    content: ''; width: 6px; height: 6px; background: var(--accent);
    margin-right: 15px; border-radius: 50%;
}

/* --- Works (Index/Songs Style) --- */
.works-list { display: flex; flex-direction: column; }
.work-item { border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.work-inner {
    display: grid; grid-template-columns: 80px 1fr; align-items: baseline;
    padding: 2.5rem 0; width: 100%;
}
.work-item:hover .work-title { color: var(--accent); padding-left: 10px; }
.work-title { transition: all 0.3s; }

.work-year { font-family: var(--font-serif); color: var(--text-muted); font-size: 0.9rem; }
.work-info h3 { font-size: clamp(1.2rem, 3vw, 2rem); margin-bottom: 0.5rem; color: var(--text-main); }
.work-cat { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* --- Sub Page Headers --- */
.page-header-section {
    height: 50vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; overflow: hidden;
}
.page-header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.page-header-bg::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(11, 11, 11, 0.5);
}
.page-header-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: brightness(0.8); }
.page-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4.5rem); color: #fff; z-index: 1; letter-spacing: 0.05em; }

/* --- Contact & Footer --- */
.contact-wrapper { text-align: center; max-width: 700px; }
.contact-desc { color: var(--text-muted); margin-bottom: 3rem; }
.contact-email {
    display: inline-block; font-family: var(--font-serif); font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--text-main); margin-bottom: 4rem; transition: color 0.3s;
}
.contact-email:hover { color: var(--accent); }
.social-links { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.social-link {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--text-muted); padding: 10px;
}
.social-link:hover { color: var(--text-main); }
.site-footer { padding: 3rem 0; text-align: center; font-size: 0.7rem; color: #444; border-top: 1px solid rgba(255,255,255,0.05); }
.back-link {
    display: block; margin-top: 4rem; text-align: center; font-size: 0.9rem;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}
.back-link:hover { color: var(--accent); }

/* --- Responsive General --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
    .section-padding { padding: 80px 0; }
    
    /* Hero Image Adjustment for Mobile (Preserved) */
    .hero { height: 60vh; }
    .hero-bg { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero-bg img {
        width: 120% !important; max-width: none;
        object-position: 85% 20% !important;
    }

    /* News Section Mobile */
    .news-grid-container {
        grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        overflow-x: visible; scroll-snap-type: none;
    }
    .news-card { flex-direction: column; }
    .news-thumb { width: 100%; max-width: 250px; height: auto; aspect-ratio: 1/1; }
}