:root {
    --bg-color: #232a2d;
    --text-primary: #aaaaaa;
    --text-secondary: #777777;
    --accent-color: #d4af37;
    --glass-bg: rgba(22, 27, 34, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 0 5rem;
    position: relative;
}

/* Film Grain */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.03;
    z-index: 10000;
    pointer-events: none;
}

/* Ambient glow */
body::after {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, rgba(35, 42, 45, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

/* Top Nav */
.top-nav {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.logo-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
}

.lang-toggle {
    display: flex;
    background: rgba(10, 13, 13, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
}

.virtual-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.virtual-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero.jpg') center/cover no-repeat;
    filter: brightness(0.5);
    z-index: -1;
    animation: hero-zoom 30s infinite alternate;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    max-width: 800px;
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.6rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: 'Noto Serif JP', serif;
}

/* Sections */
section {
    padding: 1.5rem 0 0.5rem 0;
    position: relative;
}

/* Editorial Watermark */
.section-watermark {
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

/* Timeline */
.timeline-guide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(212,175,55,0) 0%, rgba(212,175,55,0.2) 10%, rgba(212,175,55,0.2) 90%, rgba(212,175,55,0) 100%);
    z-index: 0;
    pointer-events: none;
}

.timeline-node {
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 11px;
    height: 11px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translateX(-5.5px);
    margin-top: 0;
    z-index: 10;
    transition: all 0.8s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0);
}

.is-visible .timeline-node {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 1);
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.main-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.text-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.highlight-box {
    border-left: 2px solid var(--accent-color);
    padding-left: 2.5rem;
    margin: 4rem 0;
}

.highlight-box p {
    font-size: 1.2rem;
    font-family: 'Noto Serif JP', serif;
    font-style: italic;
    color: var(--accent-color);
}

/* Why Now / Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Characters */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.char-card {
    background: rgba(40, 44, 52, 0.4);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.char-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 50px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.8);
}

.char-motif {
    width: 100%;
    height: 180px;
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.5);
    transition: filter 0.5s;
}

.char-card:hover .char-motif {
    filter: grayscale(0);
}

.char-role {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.char-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.char-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Common reveals */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    filter: blur(15px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem; /* remove timeline padding */
    }
    .timeline-guide, .timeline-node, .section-watermark {
        display: none; /* hide heavy decor on mobile */
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}
