/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden; /* Prevent floating images from breaking layout */
    margin-top: -100px; /* Offset the main padding to make hero truly full height */
    background-color: var(--black); /* Provide solid background context for mix-blend-mode: difference */
}

.hero-content {
    position: relative;
    z-index: 100001;
    text-align: center;
    pointer-events: none; /* Let clicks pass through to floating images if they overlap */
    mix-blend-mode: difference;
}

.hero-role {
    font-family: var(--font-navbar);
    font-size: clamp(0.78rem, 1.2vw, 1.02rem);
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.hero-name {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: clamp(1.3rem, 3.25vw, 2.73rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

:lang(ja) .hero-name {
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: -0.01em;
}

.hero-line {
    display: block;
}

/* Decorative Marquee */
.marquee-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    pointer-events: none; /* Let clicks pass through */
    z-index: 100000; /* Above grain canvas (99999) */
}

.marquee-content {
    display: flex;
    width: 200vw; /* Wide enough to space images across */
    flex-shrink: 0;
    position: relative;
    animation: scrollMarquee 50s linear infinite;
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.deco-img {
    position: absolute;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.deco-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 10 Different Scattered Sizes & Positions — all 16:9 */
.deco-1 { width: 22vw; top: 12%; left: 5%; }
.deco-2 { width: 20vw; bottom: 22%; left: 15%; }
.deco-3 { width: 18vw; top: 35%; left: 25%; }
.deco-4 { width: 24vw; bottom: 12%; left: 35%; }
.deco-5 { width: 20vw; top: 10%; left: 48%; }
.deco-6 { width: 18vw; bottom: 28%; left: 55%; }
.deco-7 { width: 22vw; top: 45%; left: 65%; }
.deco-8 { width: 19vw; top: 8%; left: 75%; }
.deco-9 { width: 21vw; bottom: 15%; left: 82%; }
.deco-10 { width: 18vw; top: 30%; left: 92%; }

/* Metrics Row (Moved out from original layout to be simpler row) */
.metrics-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 10%;
    background-color: transparent;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: var(--space-xxl);
    margin-top: var(--space-xl);
}

.metric {
    text-align: left;
    padding: 0;
}

.metric-value {
    font-size: 2.5rem;
    margin-bottom: 0.2rem;
    color: var(--white);
}

.metric-label {
    font-family: var(--font-secondary);
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Featured Projects */
.featured-projects {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#selected-projects {
    scroll-margin-top: 120px;
}

.section-title {
    text-align: left;
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Make Project Grid large cards like the second reference image */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

/* Re-style project-card specifically for home */
.project-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    group: project;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    background: #111;
    border: none;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-cta {
    display: none;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--gray-light);
    text-transform: uppercase;
}

.project-number {
    color: var(--white);
    font-weight: 700;
}

.project-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--gray-light);
}
