[data-initial-route="studio"] body,
[data-initial-route="studio"] {
    background: #000000;
}

[data-initial-route="join"] body,
[data-initial-route="join"] {
    background: #111111;
}

[data-initial-route="studio"]:not([data-app-ready]) main,
[data-initial-route="studio"]:not([data-app-ready]) [data-site-footer],
[data-initial-route="join"]:not([data-app-ready]) main,
[data-initial-route="join"]:not([data-app-ready]) [data-site-footer] {
    visibility: hidden;
}

.subpage {
    --sub-surface: #fbf9f8;
    --sub-surface-lowest: #ffffff;
    --sub-ink: #1b1c1c;
    --sub-muted: #444748;
    --sub-line: #c4c7c7;
    --sub-secondary: #0aa30a;
    --sub-max: 1440px;
    --sub-mx: 64px;
    --sub-mx-mobile: 20px;
    overflow: hidden;
    padding-top: 80px;
    background: var(--sub-surface-lowest);
    color: var(--sub-ink);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.subpage * {
    box-sizing: border-box;
}

.subpage a {
    color: inherit;
}

.subpage .content-frame {
    width: min(var(--sub-max), 100%);
    margin: 0 auto;
}

.subpage .section {
    padding: 96px var(--sub-mx);
}

.subpage .hero {
    background: #000000;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.subpage .hero-frame {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000000;
}

.subpage .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.subpage-studio .hero-media {
    background-image: url("../thumbnails/toyota.jpg");
}

.subpage-join .hero-media {
    background-image: url("../thumbnails/rebirth.jpg");
}

.subpage .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 42%, rgba(0, 0, 0, 0.22) 100%);
}

.subpage .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 72px var(--sub-mx);
}

.subpage .label {
    display: block;
    margin-bottom: 24px;
    color: var(--sub-secondary);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.subpage h1,
.subpage h2,
.subpage h3 {
    margin: 0;
    font-family: "Hanken Grotesk", Inter, sans-serif;
    letter-spacing: -0.04em;
}

.subpage h1 {
    max-width: 980px;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.subpage h2 {
    max-width: 860px;
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.subpage h3 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.05;
}

.subpage p {
    margin: 0;
    color: var(--sub-muted);
    font-size: 18px;
    line-height: 1.65;
}

.subpage .hero p {
    color: rgba(255, 255, 255, 0.72);
}

.subpage p + p {
    margin-top: 22px;
}

.subpage .intro {
    max-width: 650px;
    font-size: 20px;
    line-height: 1.55;
}

.subpage .split {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 96px;
    align-items: start;
}

.subpage .dark,
.subpage .dark-section {
    background: #000000;
    color: #ffffff;
}

.subpage-join {
    --sub-surface: #111111;
    --sub-ink: #f7f3ed;
    --sub-muted: #aaa39b;
    --sub-line: rgba(255, 255, 255, 0.16);
    background: var(--sub-surface);
}

.subpage-join .dark-section {
    background: var(--sub-surface);
    color: var(--sub-ink);
}

.subpage .light-section {
    background: #ffffff;
    color: #1b1c1c;
}

.subpage .light-section p {
    color: #444748;
}

.subpage .dark p,
.subpage .dark-section p {
    color: rgba(255, 255, 255, 0.72);
}

.subpage .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 48px;
    border: 1px solid var(--sub-line);
}

.subpage .card {
    min-height: 280px;
    padding: 40px;
    border-right: 1px solid var(--sub-line);
}

.subpage-join .card {
    min-height: 300px;
    background: rgba(255, 255, 255, 0.035);
}

.subpage .card:last-child {
    border-right: 0;
}

.subpage .cta {
    display: inline-flex;
    margin-top: 36px;
    padding: 18px 30px;
    background: #000000;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.subpage-join .cta {
    background: #ffffff;
    color: #111111;
}

.subpage .team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.subpage .team-card {
    min-width: 0;
}

.subpage .team-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e9e8e7;
}

.subpage .team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 500ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.subpage .team-card:hover .team-image img {
    filter: grayscale(0);
    transform: scale(1.025);
}

.subpage .team-copy {
    padding-top: 24px;
}

.subpage .team-role {
    margin: 8px 0 20px;
    color: var(--sub-secondary);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subpage .team-email {
    display: inline-block;
    margin-top: 28px;
    color: var(--sub-secondary);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

[data-view][hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .subpage .section {
        padding: 72px var(--sub-mx-mobile);
    }

    .subpage .split,
    .subpage .grid {
        grid-template-columns: 1fr;
    }

    .subpage .hero-frame {
        min-height: 520px;
    }

    .subpage .hero-copy {
        padding: 64px var(--sub-mx-mobile);
    }

    .subpage .card {
        border-right: 0;
        border-bottom: 1px solid var(--sub-line);
    }

    .subpage .card:last-child {
        border-bottom: 0;
    }

    .subpage .team-grid {
        grid-template-columns: 1fr;
    }
}
