/* ── home.css ──
   Styles only used by the studio home page. */

/* ── Intro: logo animation scrubbed by scroll ── */
.intro {
    position: relative;
    height: 260vh;
    background: #000;
    color: var(--text-on-dark);
}

.intro-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 1rem) 5% 4rem;
    text-align: center;
}

.intro-video {
    height: 44vh;
    width: auto;
    max-width: 100%;
    aspect-ratio: 760 / 720;
    object-fit: contain;
    background: #000;
    /* --p (0..1) is set by home.js as the intro scrolls */
    transform: scale(calc(1 - var(--p, 0) * 0.08));
    transition: transform 0.1s linear;
}

.intro-copy {
    max-width: 820px;
    margin-top: 1.5rem;
}

.intro-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--text-on-dark-muted);
    margin-bottom: 1rem;
}

.intro h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.2vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.intro h1 em {
    color: var(--accent);
    font-style: italic;
}

.intro-lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-on-dark-muted);
    max-width: 640px;
    margin: 0 auto;
}

.scroll-cue {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-muted);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: calc(1 - var(--p, 0) * 3);
}

.scroll-cue::after {
    content: '';
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--accent), transparent);
    animation: cue 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cue {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (min-width: 1000px) {
    .intro-sticky {
        flex-direction: row;
        gap: clamp(2rem, 5vw, 5rem);
        text-align: left;
    }

    .intro-video { height: min(62vh, 560px); }

    .intro-copy {
        max-width: 560px;
        margin-top: 0;
    }

    .intro-lead { margin: 0; }
}

/* ── Philosophy ── */
.philosophy {
    padding-top: 9rem;
    padding-bottom: 6rem;
}

.philosophy-inner {
    max-width: 900px;
}

.philosophy .section-title {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
}

/* ── Games ── */
.feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-width: 1200px;
    width: 100%;
    margin-top: 3.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.4s var(--ease-out), border-color 0.4s ease;
}

.feature:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(211, 47, 47, 0.3);
}

.feature-media {
    position: relative;
    display: block;
    min-height: 360px;
    background: var(--ink);
    overflow: hidden;
}

.feature-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.8s var(--ease-out), opacity 0.6s ease;
}

.feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(11,11,12,0.1) 0%, rgba(11,11,12,0.7) 100%);
}

.feature-logo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 72%;
    height: auto;
    transform: translate(-50%, -50%) rotate(-3deg);
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.5));
    transition: transform 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.feature:hover .feature-shot { transform: scale(1.05); opacity: 0.7; }
.feature:hover .feature-logo { transform: translate(-50%, -50%) rotate(0deg) scale(1.04); }

.feature-body {
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.feature-body h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.feature-tagline {
    font-weight: 600;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
}

.feature-body > p:not(.feature-tagline) { color: var(--text-muted); }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.feature-list strong {
    color: var(--text-main);
    font-weight: 600;
}

.feature-body .meta-list {
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.feature-body .btn { margin-top: 0.5rem; }

.upcoming {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    background:
        repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0,0,0,0.018) 22px 44px),
        var(--card-bg);
}

.upcoming h3 { margin-top: 1rem; }

.upcoming-meta {
    justify-content: flex-end;
}

.classified {
    position: absolute;
    top: 1.25rem;
    right: -2.75rem;
    transform: rotate(35deg);
    background: var(--plan);
    color: #FFFFFF;
    padding: 0.3rem 3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ── Team ── */
.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 850px;
    width: 100%;
    margin-top: 3.5rem;
}

.team-card {
    flex: 1 1 300px;
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monogram {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    transform: rotate(-6deg);
}

.team-card h3 { margin-bottom: 0.35rem; }
.team-card p { margin-bottom: 1.5rem; }

.team-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.team-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.team-links a:hover { color: var(--accent-dark); }

/* ── Contact ── */
.contact {
    background:
        radial-gradient(ellipse at 50% 120%, rgba(211,47,47,0.28) 0%, rgba(11,11,12,0) 60%),
        var(--ink);
    color: var(--text-on-dark);
}

.contact .section-desc { color: var(--text-on-dark-muted); }

.contact-mail {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
}

@media (prefers-reduced-motion: reduce) {
    .intro { height: auto; }
    .intro-sticky { position: relative; }
    .intro-video { transform: none; transition: none; }
    .scroll-cue { display: none; }
}

@media (max-width: 860px) {
    .intro { height: 200vh; }
    .intro-video { height: 34vh; }
    .feature { grid-template-columns: 1fr; }
    .feature-media { min-height: 240px; }
    .feature-body { padding: 2rem 1.5rem; }
    .feature-body h3 { font-size: 1.9rem; }
    .upcoming { grid-template-columns: 1fr; }
    .upcoming-meta { justify-content: flex-start; }
}
