@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+JP:wght@300;400;700;900&display=swap');

:root {
    /* Color Palette - Cinema Black x Matte Gold x Deep Purple */
    --bg-base: #0b0b0f;
    --bg-deep-gradient: linear-gradient(180deg, #0b0b0f 0%, #15151a 100%);

    /* Matte Gold */
    --gold-matte: #c8b06a;
    --gold-matte-dim: #8a7a4a;
    --gold-border: rgba(200, 176, 106, 0.3);

    /* Purple Atmosphere */
    --purple-hint: rgba(112, 69, 175, 0.08);
    --purple-glow: rgba(112, 69, 175, 0.15);

    /* Surfaces */
    --surface-glass: rgba(15, 15, 20, 0.85);
    --surface-card: rgba(25, 25, 30, 0.6);
    --glass-blur: blur(20px);
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-heading: #f0f0f2;
    --text-body: #a0a0aa;
    --text-muted: #666677;

    /* Layout */
    --container-width: 1000px;
    --header-height: 80px;

    /* Animation */
    --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-deep-gradient);
    color: var(--text-body);
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

/* Cinematic Grain */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter 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)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Atmosphere */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, var(--purple-hint) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(200, 176, 106, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--gold-matte);
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold-matte);
}

p {
    font-weight: 300;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s var(--ease-cinema);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 8, 0.5);
    /* Start transparent */
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.5s var(--ease-cinema);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
    height: 60px;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--text-heading);
}

/* Desktop Nav */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

nav a:hover,
nav a.active {
    color: var(--gold-matte);
}

/* Mobile Nav Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    transition: 0.3s;
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.02);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 5, 8, 0.2) 0%, rgba(5, 5, 8, 0.95) 90%);
    box-shadow: inset 0 0 100px var(--purple-hint);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s var(--ease-cinema) forwards 0.5s;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-heading);
    opacity: 0.9;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn-gold {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--gold-matte);
    color: var(--gold-matte);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-cinema);
    background: rgba(0, 0, 0, 0.3);
}

.btn-gold:hover {
    background: rgba(200, 176, 106, 0.1);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(200, 176, 106, 0.2);
}

/* Main */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 2;
}

section {
    margin-bottom: 8rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card-cinema {
    background: var(--surface-card);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s var(--ease-cinema);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.card-cinema::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-cinema:hover {
    transform: translateY(-5px);
    border-color: var(--gold-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-cinema:hover::after {
    opacity: 1;
}

/* Images & Video */
.framed-image {
    width: 100%;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.framed-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.5s var(--ease-cinema);
}

.framed-image:hover img {
    transform: scale(1.03);
}

.aspect-16-9 {
    aspect-ratio: 16/9;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
    background: #000;
    border: 1px solid var(--border-glass);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    background: #020202;
    padding: 5rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.footer-nav a:hover {
    color: var(--text-heading);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--gold-matte);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-cinema);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0b0b0f;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s var(--ease-cinema);
        z-index: 1001;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}