/* Shared: hero sub-navigation + work (single-chunk) pages — Moonfly Interactive */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* In-page anchors: browser scrolls here when using e.g. ai-portfolio.html#ugc */
section[id],
.video-item[id],
.longform-wrap[id] {
    scroll-margin-top: 1.25rem;
}

.hero-subnav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    animation: heroSubnavIn 1s 0.15s both;
}
.hero-subnav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: 36rem;
}
.hero-subnav-kicker {
    color: #5a5a5a;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}
.hero-subnav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.15rem 0.35rem;
    line-height: 1.45;
}
.hero-subnav-links a {
    color: #9a9a9a;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
    transition: color 0.15s, background 0.15s;
}
.hero-subnav-links a:hover {
    color: #fff;
    background: #1a1a1a;
}
.hero-subnav-links a[aria-current="page"] {
    color: #f97316;
    font-weight: 600;
    pointer-events: none;
}
.hero-subnav .sep {
    color: #3a3a3a;
    user-select: none;
}

@keyframes heroSubnavIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.work-page {
    min-height: 60vh;
}
.work-back {
    margin-bottom: 1.25rem;
}
.work-back a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.95rem;
}
.work-back a:hover {
    text-decoration: underline;
}
.work-page .page-title {
    font-size: 1.75rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.5px;
}
.work-page .page-lead {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}
.work-page .videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.work-page .videos.multi {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.work-page .video-embed {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #222;
    background: #181818;
}
.work-page .video-item {
    margin-bottom: 0;
}
.work-page .video-caption {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.work-page .disclaimer {
    background: rgba(251, 146, 60, 0.12);
    border: 1px solid rgba(251, 146, 60, 0.4);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #fbb87a;
    font-size: 0.95rem;
    text-align: center;
}
.work-page .disclaimer strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fff;
}
.work-page .disclaimer p {
    margin: 0 0 0.65rem;
    line-height: 1.55;
}
.work-page .disclaimer p:last-child {
    margin-bottom: 0;
}
.work-page .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.work-page .gallery img {
    width: 100%;
    border-radius: 0.75rem;
    background: #181818;
    border: 1px solid #222;
    object-fit: cover;
}
.work-page .features {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}
.work-page .features li {
    margin-bottom: 0.35rem;
}
.work-page .shorts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.work-page .shorts-row .video-embed {
    aspect-ratio: 9/16;
}
.work-page .longform-wrap .video-embed {
    aspect-ratio: 16/9;
}
@media (max-width: 700px) {
    .work-page .shorts-row {
        grid-template-columns: 1fr;
    }
    .work-page .videos.multi {
        grid-template-columns: 1fr;
    }
}

/* Secret / pitch pages — readable sections, not crowded */
.pitch-page {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}
.pitch-kicker {
    color: #888;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
}
.pitch-block {
    margin-bottom: 2.25rem;
}
.pitch-block h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f97316;
    margin: 0 0 0.65rem;
    letter-spacing: 0.02em;
}
.pitch-block p {
    color: #b8b8b8;
    line-height: 1.65;
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
}
.pitch-block p:last-child {
    margin-bottom: 0;
}
.pitch-block ul {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
    color: #b8b8b8;
    line-height: 1.6;
    font-size: 0.95rem;
}
.pitch-block li {
    margin-bottom: 0.4rem;
}
.pitch-muted {
    color: #888;
    font-size: 0.92rem;
    line-height: 1.55;
}
.pitch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid #222;
}
.pitch-actions a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.95rem;
}
.pitch-actions a:hover {
    text-decoration: underline;
}

/* Pitch pages — gameplay reference embeds (supporting, not hero) */
.work-page .pitch-ref-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #222;
    /* Full width of .container; embed grid stays supporting via 2-col layout, not a narrow column */
}
.work-page .pitch-ref-section .page-title {
    font-weight: 600;
}
.work-page .pitch-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.work-page .pitch-ref-grid .video-embed {
    max-width: 100%;
}
.work-page .pitch-disclaimer-text {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.55;
}
/* Inline emphasis inside pitch disclaimer (base .disclaimer strong is block) */
.work-page .pitch-disclaimer-text strong {
    display: inline;
    margin-bottom: 0;
    color: #fff;
}
.work-page .pitch-disclaimer-kicker {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}
@media (max-width: 700px) {
    .work-page .pitch-ref-grid {
        grid-template-columns: 1fr;
    }
}
