/* Lazy Media — shared styles (Nocturne Production System) */

body {
    background-color: #131313;
    color: #FFFFFF;
}

/* ---------- Work rows (avatar + project card, alternating sides) ---------- */
.work-rows {
    display: flex;
    flex-direction: column;
    gap: 64px;
    counter-reset: work-row;
}
.work-row {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    counter-increment: work-row;
}
.work-row.is-reversed {
    flex-direction: row-reverse;
}
.work-row::before {
    content: counter(work-row, decimal-leading-zero);
    position: absolute;
    top: -10px;
    left: 0;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4ce346;
    opacity: 0.8;
}
.work-row.is-reversed::before {
    left: auto;
    right: 0;
}
@media (min-width: 768px) {
    .work-row {
        gap: 48px;
    }
    .work-row::before {
        top: -28px;
        font-size: 14px;
    }
}
.work-row.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .work-row {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
.work-row-ghost-wrap {
    display: none;
}
@media (min-width: 1024px) {
    .work-row-ghost-wrap {
        display: flex;
        align-items: center;
        position: absolute;
        inset: -45% -5%;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    }
}
.work-row-ghost-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ghostScroll 22s linear infinite;
    will-change: transform;
}
.work-row.is-reversed .work-row-ghost-track {
    animation-direction: reverse;
}
.work-row-ghost-copy {
    display: inline-block;
    height: clamp(110px, 15vw, 280px);
    width: auto;
    padding-right: 100px;
    opacity: 0.55;
}
@keyframes ghostScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .work-row-ghost-track {
        animation: none;
    }
}
.work-row-avatar {
    position: relative;
    z-index: 1;
    width: 58%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.work-row .work-card {
    width: 42%;
}
@media (min-width: 768px) {
    .work-row-avatar {
        width: 68%;
    }
    .work-row .work-card {
        width: 32%;
    }
    .work-row:not(.is-reversed) .work-card {
        transform: translateX(-56px);
    }
    .work-row.is-reversed .work-card {
        transform: translateX(56px);
    }
}
.work-row-avatar img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .work-row-avatar img {
        max-width: 420px;
    }
}
.work-card {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    cursor: pointer;
}
.work-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-out;
}
.work-card:hover .work-card-img,
.work-card:focus-visible .work-card-img {
    transform: scale(1.08);
}
.work-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 75%);
}
@media (min-width: 768px) {
    .work-card-overlay {
        padding: 24px;
    }
}
.work-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}
@media (min-width: 768px) {
    .work-card-title {
        font-size: 22px;
    }
}
.work-card-play {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    color: #ffffff;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
@media (min-width: 768px) {
    .work-card-play {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
}
.work-card:hover .work-card-play,
.work-card:focus-visible .work-card-play {
    opacity: 1;
    transform: scale(1);
}
/* Touch devices have no hover — keep the play icon visible without it */
@media (hover: none) {
    .work-card-play {
        opacity: 1;
        transform: none;
    }
    .work-card-img {
        transform: none !important;
    }
}

/* ---------- Contact form underline inputs ---------- */
.input-underline {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 8px 0;
    color: white;
    box-shadow: none !important;
    transition: border-color 0.3s ease-out;
    width: 100%;
}
.input-underline:focus {
    border-bottom-color: white;
    outline: none;
}
.input-underline::placeholder {
    color: #c4c7c8;
}

/* ---------- Work page background reel ---------- */
.bg-reels {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #131313;
}
.bg-reels video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.1);
}
.bg-reels-overlay {
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 19, 0.55);
}

/* ---------- Homepage background (animated black liquid gradient) ---------- */
.bg-liquid {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #050505;
}
.bg-liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.28;
    mix-blend-mode: screen;
    will-change: transform;
}
.bg-liquid-blob-1 {
    width: 55vw;
    height: 55vw;
    top: -15%;
    left: -15%;
    background: radial-gradient(circle, #4ce346, transparent 70%);
    animation: liquidMove1 22s ease-in-out infinite alternate;
}
.bg-liquid-blob-2 {
    width: 50vw;
    height: 50vw;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, #3a3939, transparent 70%);
    animation: liquidMove2 26s ease-in-out infinite alternate;
}
.bg-liquid-blob-3 {
    width: 40vw;
    height: 40vw;
    top: 30%;
    left: 35%;
    background: radial-gradient(circle, #04b71a, transparent 70%);
    animation: liquidMove3 30s ease-in-out infinite alternate;
}
@keyframes liquidMove1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(10vw, 12vh) scale(1.15); }
}
@keyframes liquidMove2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-12vw, -8vh) scale(1.1); }
}
@keyframes liquidMove3 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-8vw, 10vh) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
    .bg-liquid-blob { animation: none; }
}

/* ---------- Shared animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Nav wordmark flicker ---------- */
.flicker-logo {
    animation: flicker 2.4s ease-in-out infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- Project detail page ---------- */
.project-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 420px;
    max-height: 760px;
    overflow: hidden;
}
.project-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroKenBurns 16s ease-out forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .project-hero-bg { animation: none; }
}
.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #131313 0%, rgba(19, 19, 19, 0.55) 45%, rgba(19, 19, 19, 0.25) 100%);
}
.project-hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 120px 24px 56px;
    max-width: 1400px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .project-hero-inner { padding: 140px 80px 72px; }
}
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    transition: color 0.3s ease-out;
}
.project-back:hover { color: #ffffff; }
.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.project-tag::before {
    content: "";
    width: 16px;
    height: 2px;
    background: #4ce346;
    border-radius: 9999px;
}
.project-title {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin-top: 12px;
}
@media (min-width: 768px) {
    .project-title { font-size: 64px; }
}
.project-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: #4ce346;
    border-radius: 9999px;
    margin-top: 20px;
}
.project-hero-avatar {
    position: absolute;
    z-index: 1;
    top: 96px;
    right: 16px;
    width: 96px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}
@media (min-width: 768px) {
    .project-hero-avatar {
        top: 120px;
        right: 80px;
        width: 160px;
    }
}

.project-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}
@media (min-width: 768px) {
    .project-body { padding: 88px 80px 128px; }
}
.project-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    padding-top: 32px;
}
.project-section-title::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #4ce346;
    border-radius: 1px;
    flex-shrink: 0;
}
.project-section-title:first-of-type {
    padding-top: 0;
    border-top: none;
}
.project-section-title:not(:first-of-type) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.project-videos {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
}
.project-videos.is-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.project-video {
    width: 100%;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out;
}
.project-video:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}
@media (hover: none) {
    .project-video:hover {
        transform: none;
        box-shadow: none;
    }
}
.project-video.is-wide {
    grid-column: 1 / -1;
}
.project-video video {
    width: 100%;
    height: auto;
    display: block;
}
.project-videos-empty {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.project-instagram-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 8px;
    background-color: #1c1b1b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease-out, background-color 0.3s ease-out;
}
.project-instagram-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: #201f1f;
}
.project-instagram-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.project-instagram-handle {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}
.project-instagram-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}
.project-instagram-stats strong {
    color: #ffffff;
    font-weight: 600;
}

.project-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 80px;
}
.project-partner-logo {
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.project-partner-logo.is-large {
    padding: 0;
}
.project-partner-logo.is-small {
    padding: 40px;
}
.project-partner-logo.is-compact {
    padding: 20px;
}
.project-partner-logo.is-compact img {
    max-height: 56px;
    width: auto;
}
.project-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------- Mobile nav dropdown ---------- */
#mobile-menu {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
#mobile-menu.is-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
