:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #6c5ce7;
    /* Purple accent */
    --accent-hover: #5649c0;
    --secondary-color: #2d3436;
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    --container-width: 1200px;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #aaa;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    /* Slightly rounded */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--bg-color);
    transform: translateY(-2px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.portfolio-thumb {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #222;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb {
    transform: scale(1.05);
}

.portfolio-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.placeholder-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1e1e1e, #2a2a2a);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: #ccc;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transform: scale(0);
    transition: transform 0.3s ease 0.2s;
}

.portfolio-item:hover .play-btn {
    transform: scale(1);
}

/* --- Expertise Section General --- */
.expertise {
    padding: 120px 0;
    min-height: 80vh;
    /* Make each section substantial */
    display: flex;
    align-items: center;
}

.expertise-number {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Archive Section --- */
.expertise-archive {
    background-color: #0f0f0f;
    /* Slightly lighter than main bg */
}

.archive-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

.format-list {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #999;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.archive-photos {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-photos img {
    flex: 1 1 0;
    min-width: 0;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.archive-photos img:hover {
    filter: brightness(1.3) contrast(1.05);
    transform: scale(1.03);
}

/* --- Live Operation Section --- */
.expertise-live {
    background-color: #0a0a0a;
}

.live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.live-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.live-text p {
    color: #aaa;
    margin-bottom: 30px;
}

.gear-list-heading {
    font-size: 1rem;
    color: #999;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: none;
}

.gear-list {
    list-style: none;
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
}

.gear-list li {
    margin-bottom: 15px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gear-list i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}


/* --- Photo Gallery (replaces diagram) --- */
.live-photo-gallery {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.photo-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.photo-grid img:hover {
    filter: brightness(1.3) contrast(1.05);
    transform: scale(1.03);
    z-index: 1;
}

/* --- Featured Works Cards --- */
.featured-works {
    margin-top: 80px;
    padding: 60px 0;
    background: #050505;
    border-radius: 24px;
}

.featured-works-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.featured-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-works-single {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.featured-card-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
}

.featured-card-single .featured-card-image {
    aspect-ratio: auto;
    min-height: 300px;
}

.featured-card-single .featured-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

.featured-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.25);
    transition: all 0.5s ease;
}

.featured-card:hover .featured-card-image img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.05);
}

.featured-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #050505 0%, rgba(5, 5, 5, 0.2) 50%, transparent 100%);
    pointer-events: none;
}

.featured-card-body {
    padding: 24px;
}

.featured-card-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.featured-card-body p {
    color: #999;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.featured-card-tag {
    display: block;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.5px;
}


/* --- Creation Section --- */
.expertise-creation {
    background-color: #0f0f0f;
}

.creation-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
}

/* --- Personal Work Subsection --- */
.personal-work-section {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
}

.subsection-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #eee;
}

.subsection-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 40px;
    font-size: 1rem;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.personal-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    aspect-ratio: 9/16;
}

.personal-thumb {
    width: 100%;
    height: 100%;
    background-color: #222;
    transition: transform 0.5s ease;
    background-image: linear-gradient(135deg, #2d3436 0%, #000 100%);
}

.personal-item:hover .personal-thumb {
    transform: scale(1.05);
}

.personal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.personal-item:hover .personal-overlay {
    opacity: 1;
}

.personal-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.personal-item:hover .personal-overlay i {
    transform: scale(1);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .live-photo-gallery {
        margin-top: 30px;
    }

    .photo-grid img {
        height: 120px;
    }

    .featured-works-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .featured-card-single {
        grid-template-columns: 1fr;
    }

}

/* Footer (reused) */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0;
    margin-top: 0;
    /* expertise sections have padding */
}

/* --- Responsive Navigation & Layout --- */
@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }

    .hamburger {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: background 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: white;
        transition: transform 0.3s;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}