/* ============================================
   LUKE GOODALL — Netflix-Style Portfolio
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-card: #222;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --accent: #e6b31e;
    --accent-hover: #f0c440;
    --nav-bg: rgba(20, 20, 20, 0.95);
    --card-radius: 6px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --row-padding: 4%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 18px var(--row-padding);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: background var(--transition);
}

.navbar .nav-logo {
    justify-self: start;
}

.navbar .nav-links {
    justify-self: center;
}

.navbar .nav-social {
    justify-self: end;
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    transition: opacity var(--transition);
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.nav-logo:hover {
    opacity: 0.75;
}

.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}


.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.navbar.scrolled .social-link {
    color: var(--text-secondary);
}

.navbar.scrolled .social-link:hover {
    color: var(--text-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    width: 100%;
    height: 84vh;
    min-height: 540px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.2) 0%,
        rgba(20, 20, 20, 0.1) 30%,
        rgba(20, 20, 20, 0.4) 65%,
        rgba(20, 20, 20, 0.85) 90%,
        var(--bg-primary) 100%
    );
}

/* When no video loads, show a cinematic fallback */
.hero-video-wrapper:has(video:not([src])),
.hero-video-wrapper:has(video[src=""]) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--row-padding) 40px;
    max-width: 650px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Hero mute button */
.hero-mute-btn {
    position: absolute;
    bottom: 90px;
    right: var(--row-padding);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.hero-mute-btn:hover {
    background: rgba(0,0,0,0.5);
    border-color: white;
}

.hero-mute-btn .icon-unmuted {
    display: none;
}

.hero-mute-btn .icon-muted {
    display: block;
}

.hero.audio-on .hero-mute-btn .icon-unmuted {
    display: block;
}

.hero.audio-on .hero-mute-btn .icon-muted {
    display: none;
}

/* ============================================
   CONTENT ROWS
   ============================================ */

.content-row {
    padding: 6px 0 12px;
    position: relative;
    z-index: 1;
}

.content-row:hover {
    z-index: 10;
}

.row-title {
    font-size: 1.16rem;
    font-weight: 700;
    padding: 0 var(--row-padding) 2px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.row-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 var(--row-padding);
    margin-top: -10px;
    margin-bottom: 14px;
}

.row-wrapper {
    position: relative;
    overflow: visible;
}

.row-carousel {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: clip;
    scroll-behavior: smooth;
    padding: 10px var(--row-padding) 150px;
    margin-bottom: -140px;
    margin-top: -6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    pointer-events: none;
}

.row-carousel > .card,
.row-carousel > .viral-card {
    pointer-events: auto;
}

.row-carousel::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 20px;
    z-index: 10;
    width: 40px;
    height: calc(100% - 190px);
    border: none;
    background: rgba(0,0,0,0.15);
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.row-wrapper:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: rgba(0,0,0,0.5);
}

.scroll-left {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.scroll-right {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* ============================================
   STANDARD CARDS (16:9)
   ============================================ */

.card {
    flex: 0 0 calc(25.5% - 4px);
    min-width: 300px;
    overflow: visible;
    position: relative;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.25s ease, z-index 0s;
}

.card-inner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

/* Expanded state — scale the card itself */
.card.card-expanded {
    z-index: 50;
    transform: scale(1.35);
    transform-origin: center center;
}

.card.card-expanded .card-inner {
    box-shadow: 0 14px 50px rgba(0,0,0,0.7);
    border-radius: 10px 10px 0 0;
}

.card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.card.card-expanded .card-img-wrap {
    border-radius: 10px 10px 0 0;
}

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

/* Additive panel below scaled image */
.card .card-popup {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #252525;
    padding: 8px 10px 10px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 51;
    pointer-events: auto;
    animation: popupFadeIn 0.15s ease forwards;
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-title {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-description {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.card-tags span {
    white-space: nowrap;
    color: var(--text-muted);
}

.card-tags .dot {
    color: var(--accent);
}

/* ============================================
   VIRAL CARDS (9:16 vertical)
   ============================================ */

.viral-carousel {
    gap: 8px !important;
}

.viral-card {
    flex: 0 0 200px;
    aspect-ratio: 9 / 16;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--bg-card);
}

.viral-card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 5;
}

.viral-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.viral-card.playing .viral-video,
.viral-card.paused .viral-video {
    opacity: 1;
}

.viral-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.viral-title {
    display: none;
}

.viral-views {
    font-size: 0.7rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* Play button for viral on hover */
.viral-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(8px);
}

.viral-card:hover::after {
    opacity: 1;
}

.viral-card.playing::after,
.viral-card.playing:hover::after {
    opacity: 0;
}

/* Show play icon when paused by click */
.viral-card.paused::after {
    opacity: 1;
}

/* Mute toggle button — IG style */
.viral-mute-btn {
    position: absolute;
    bottom: 50px;
    right: 10px;
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
}

.viral-card.playing .viral-mute-btn {
    opacity: 1;
}

.viral-mute-btn:hover {
    background: rgba(0,0,0,0.6);
    border-color: white;
}

/* Show/hide muted vs unmuted icons */
.viral-mute-btn .icon-unmuted {
    display: none;
}

.viral-mute-btn .icon-muted {
    display: block;
}

.viral-card.audio-on .viral-mute-btn .icon-unmuted {
    display: block;
}

.viral-card.audio-on .viral-mute-btn .icon-muted {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    margin-top: 10px;
    padding: 28px var(--row-padding) 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    transition: color var(--transition);
}

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

/* ============================================
   VIDEO PAGE (Hybrid: Netflix player + Editorial credits)
   ============================================ */

.video-page {
    padding-top: 70px;
    padding-bottom: 60px;
}

/* Hero player — full-bleed Netflix style */
.video-hero {
    width: 100%;
    background: #141414;
    margin-bottom: 0;
}

.video-hero .video-player-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #141414;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-inner {
    width: 100%;
    height: 100%;
}

.video-inner.ratio-square {
    aspect-ratio: 1 / 1;
    height: 100%;
    width: auto;
}

.video-inner.ratio-vertical {
    aspect-ratio: 9 / 16;
    height: 100%;
    width: auto;
}

.video-player-wrapper video,
.video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-player-wrapper video {
    object-fit: cover;
    background: #141414;
}

.clean-video {
    position: relative;
    cursor: pointer;
}

.clean-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-inner.ratio-vertical.clean-video,
.video-inner.ratio-square.clean-video {
    height: 100%;
    width: auto;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 3;
}

.video-play-overlay svg {
    width: 40px;
    height: 40px;
    margin-left: 4px;
}

.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.clean-video.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Custom controls bar */
.clean-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.clean-video:hover .clean-controls,
.clean-video.playing:hover .clean-controls {
    opacity: 1;
}

.clean-controls button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clean-controls button svg {
    width: 22px;
    height: 22px;
}

.clean-play .icon-pause { display: none; }
.clean-video.playing .clean-play .icon-play { display: none; }
.clean-video.playing .clean-play .icon-pause { display: block; }

.clean-mute .icon-muted { display: none; }
.clean-video.muted .clean-mute .icon-unmuted { display: none; }
.clean-video.muted .clean-mute .icon-muted { display: block; }

.clean-time {
    font-size: 0.75rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
}

.clean-scrub {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clean-scrub-fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Custom poster overlay (click to load YouTube iframe) */
.custom-poster {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.25s ease;
}

.custom-poster:hover {
    filter: brightness(1.1);
}

.custom-poster.no-play {
    cursor: default;
}

.custom-poster.no-play:hover {
    filter: none;
}

.poster-play {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.custom-poster:hover .poster-play {
    background: rgba(0, 0, 0, 0.75);
    border-color: #fff;
    color: #fff;
    transform: scale(1.08);
}

.poster-play svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
}

/* Editorial section */
.video-editorial {
    margin-bottom: 40px;
    padding-top: 24px;
}

.editorial-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--row-padding);
}

.video-header {
    margin-bottom: 14px;
    max-width: 800px;
}

.video-logline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
    margin-top: 14px;
    font-style: italic;
}

/* Synopsis paragraph */
.video-synopsis {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 12px;
    max-width: 820px;
}

.video-synopsis p {
    margin: 0;
}

.video-synopsis:empty {
    display: none;
}

/* Laurels + logos row */
.laurels-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.laurels-row:has(.video-laurels:empty):has(.partner-logos:empty) {
    display: none;
    margin: 0;
}

/* Award laurels */
.video-laurels {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    align-items: center;
}

.video-laurels:empty {
    display: none;
}

.laurel-image {
    max-width: 460px;
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 0;
}

.partner-logos:empty {
    display: none;
}

.partner-logos img {
    height: 80px;
    width: auto;
    opacity: 0.9;
}

.partner-logos img.invert {
    filter: invert(1);
}

.partner-logos img[alt="Kayo"] {
    height: 120px;
}

.laurel-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    color: var(--accent);
    position: relative;
}

.laurel-item svg {
    height: 100%;
    width: auto;
}

.laurel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--accent);
    width: 60%;
}

.laurel-text strong {
    font-size: 0.65rem;
    display: block;
    margin-bottom: 2px;
}

/* Gallery section */
.gallery-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.65);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
}

/* Award/festival badges */
.video-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.video-badges:empty {
    display: none;
    margin: 0;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(230, 179, 30, 0.1);
    border: 1px solid rgba(230, 179, 30, 0.3);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.video-badge svg {
    width: 14px;
    height: 14px;
}

.video-badge.solid {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
}

/* Two-column synopsis + credits grid */
.video-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.video-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.video-description p {
    margin-bottom: 16px;
}

/* Credits */
.video-credits {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
}

.video-credits .credit-row {
    display: contents;
}

.credit-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.credit-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.credit-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

/* Crew — one line per role: "Produced by LUKE GOODALL" */
.video-crew {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crew-partner-logos {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Desktop: show logos under crew column (left). Mobile: hide this copy. */
/* Mobile: show logos under credits column (stacks last). Desktop: hide this copy. */
.crew-partner-logos--mobile {
    display: none;
}

.crew-partner-logos img {
    height: 38px;
    width: auto;
    opacity: 0.7;
}

.crew-partner-logos img[alt="Kayo"] {
    height: 64px;
}

.crew-partner-logos img[alt="Klook"] {
    height: 28px;
}

.crew-partner-logos img[alt="Carlton & United Breweries"] {
    height: 64px;
}

.crew-partner-logos img[alt="Disney"] {
    height: 42px;
}

.crew-partner-logos img.invert {
    filter: invert(1);
}

.crew-partner-logos img.force-white {
    filter: brightness(0) invert(1);
}

/* Previous / Next navigation */
.video-nav-section {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 40px;
    margin-top: 20px;
}

.video-nav-section .editorial-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.video-nav-section .editorial-inner:has(.video-nav-link.next:only-child),
.video-nav-section .editorial-inner:has(#prevProject[style*="display: none"]) {
    justify-content: flex-end;
}

.video-nav-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    flex: 0 0 auto;
    width: 240px;
    height: 135px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45);
    isolation: isolate;
}

.nav-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.55);
}

.video-nav-link:hover .nav-thumb {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.nav-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.video-nav-link.next .nav-overlay {
    align-items: flex-end;
    text-align: right;
}

.nav-direction {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    transition: color 0.2s ease;
}

.video-nav-link:hover .nav-title {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .video-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .video-nav-section .editorial-inner {
        gap: 16px;
    }
    /* Swap which crew-partner-logos copy shows on mobile */
    .crew-partner-logos--desktop {
        display: none;
    }
    .crew-partner-logos--mobile {
        display: flex;
    }
}

/* Episodes section */
.episodes-section {
    margin-bottom: 50px;
}

.episodes-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.episodes-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scroll-padding: 0;
    padding-bottom: 8px;
}

.episodes-grid::-webkit-scrollbar {
    height: 6px;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.episodes-grid .episode-card {
    scroll-snap-align: start;
    min-width: 0;
}

.episodes-scroll-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(6px);
}

.episodes-scroll-arrow:hover {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

@media (max-width: 900px) {
    .episodes-grid {
        grid-auto-columns: 80%;
    }
}

/* Project shorts (vertical 9:16) */
.project-shorts-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.project-shorts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .project-shorts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .project-shorts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-short-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-short-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 50px rgba(0,0,0,0.7);
}

.project-short-card video,
.project-short-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-short-card .short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    pointer-events: none;
}

.project-short-card .short-views {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
    background: rgba(0,0,0,0.65);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    display: inline-block;
}

/* Mute button on project shorts */
.project-short-card .short-mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    z-index: 5;
}

.project-short-card.playing .short-mute-btn {
    opacity: 1;
}

.project-short-card .short-mute-btn .icon-unmuted {
    display: none;
}

.project-short-card.audio-on .short-mute-btn .icon-unmuted {
    display: block;
}

.project-short-card.audio-on .short-mute-btn .icon-muted {
    display: none;
}

.episode-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.episode-card .episode-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.episode-card .episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-card .episode-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.episode-card:hover .play-icon {
    opacity: 1;
}

.episode-card .episode-info {
    padding: 10px 12px;
}

.episode-card .episode-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.episode-card.active {
    outline: 2px solid var(--accent);
}

.video-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -1px;
    line-height: 1.05;
}

.video-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.video-meta .meta-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.video-meta span {
    white-space: nowrap;
}

/* ============================================
   BIO PAGE
   ============================================ */

.bio-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: var(--row-padding);
    padding-right: var(--row-padding);
}

.bio-split {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
}

.bio-photo-col {
    position: relative;
}

.bio-photo {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.bio-copy-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-intro h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}

.bio-intro .subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    white-space: nowrap;
}

.bio-intro p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.bio-body {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bio-body p {
    margin-bottom: 14px;
}

.bio-clients {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.bio-clients .client-logos {
    justify-content: center;
}

.bio-partner-logos {
    justify-content: center;
    gap: 28px 32px;
    margin-top: 24px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.bio-partner-logos img {
    height: 26px;
    opacity: 0.65;
    transition: opacity var(--transition);
}

.bio-partner-logos img:hover {
    opacity: 1;
}

.bio-partner-logos img[alt="Fox Sports"] { height: 36px; }
.bio-partner-logos img[alt="Kayo"] { height: 52px; }
.bio-partner-logos img[alt="Carlton & United Breweries"] { height: 42px; }
.bio-partner-logos img[alt="Disney"] { height: 38px; }
.bio-partner-logos img[alt="Klook"] { height: 18px; }
.bio-partner-logos img[alt="Screen Australia"] { height: 34px; }
.bio-partner-logos img[alt="Foxtel"] { height: 20px; }
.bio-partner-logos img[alt="Fremantle"] { height: 24px; }
.bio-partner-logos img[alt="Sportsbet"] { height: 18px; }
.bio-partner-logos img[alt="Coates Hire"] { height: 18px; }
.bio-partner-logos img[alt="Visit Victoria"] { height: 44px; }
.bio-partner-logos img[alt="NEDS"] { height: 20px; }
.bio-partner-logos img[alt="KNOBBY"] { height: 22px; }

.bio-clients h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    opacity: 0.5;
}

.client-logos img {
    height: 30px;
    filter: grayscale(1) brightness(2);
    transition: all var(--transition);
}

.client-logos img:hover {
    filter: none;
    opacity: 1;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 700px;
    margin: 0 auto;
    padding-left: var(--row-padding);
    padding-right: var(--row-padding);
}

.contact-page h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.contact-page .contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}
.contact-page .contact-subtitle a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity var(--transition);
}
.contact-page .contact-subtitle a:hover { opacity: 0.75; }
.contact-form .hidden { position: absolute; left: -9999px; }

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 50px;
    transition: color var(--transition);
}

.contact-email:hover {
    color: var(--accent-hover);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn-primary {
    align-self: flex-start;
    padding: 14px 40px;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .card {
        flex: 0 0 calc(25% - 4px);
        min-width: 180px;
    }
}

/* Touch devices OR narrow viewports: swipeable carousels.
   Covers phones (portrait + landscape), tablets, and small windows. */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
    .row-carousel {
        padding-bottom: 14px;
        margin-bottom: 0;
        pointer-events: auto;
        /* pan-x pan-y lets the browser pick axis based on swipe angle:
           horizontal = scroll carousel, vertical = scroll page. */
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .row-carousel > .card,
    .row-carousel > .viral-card {
        scroll-snap-align: start;
    }

    /* Hide desktop hover-arrows — finger scroll instead */
    .scroll-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 5%;
    }

    .nav-logo img {
        height: 24px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-social {
        display: none;
    }

    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-mute-btn {
        bottom: 70px;
        width: 36px;
        height: 36px;
    }

    .card {
        flex: 0 0 calc(45% - 4px);
        min-width: 160px;
    }

    .viral-card {
        flex: 0 0 150px;
    }

    .row-title {
        font-size: 1.2rem;
    }

    .card.card-expanded {
        transform: none;
    }

    .card .card-popup {
        display: none;
    }

    .bio-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bio-photo {
        min-height: 0;
        height: auto;
        max-height: 480px;
    }
}

@media (max-width: 480px) {
    :root {
        --row-padding: 5%;
    }

    /* Hero — Netflix-style overlay like desktop, content absolutely positioned over video bottom */
    .hero {
        height: 135vw;
        min-height: 500px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 var(--row-padding) 22px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    /* Show IG icon in nav on mobile too */
    .nav-social {
        display: flex;
    }

    .card {
        flex: 0 0 70%;
        min-width: 160px;
    }

    .viral-card {
        flex: 0 0 190px;
    }

    /* Footer: stack LUKE GOODALL above the tagline above logos on phones */
    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-links {
        margin-top: 4px;
    }

    .video-title {
        font-size: 1.6rem;
    }

    /* Bio page — narrower centered photo, full-width copy, no overflow */
    .bio-page {
        padding-top: 100px;
    }
    .bio-photo {
        max-width: 260px;
        min-height: 0;
        height: auto;
        margin: 0 auto;
    }
    .bio-intro h1 {
        font-size: 3.4rem;
    }
    .bio-intro .subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        white-space: normal;
    }
    .bio-clients {
        margin-top: 28px;
        padding-top: 18px;
    }
    .bio-partner-logos {
        margin-top: 16px;
    }

    /* Video page — shrink prev/next so they fit two-up on mobile */
    .video-nav-link {
        width: 150px;
        height: 84px;
    }
    .video-nav-section .editorial-inner {
        gap: 12px;
    }
    .nav-title {
        font-size: 0.78rem;
    }
    /* Tighten vertical rhythm on mobile video pages */
    .video-content-grid {
        gap: 18px;
        padding-top: 12px;
    }
    .video-nav-section {
        padding-top: 18px;
        margin-top: 12px;
    }
    /* Gallery → horizontal scroll carousel on mobile */
    .gallery-section {
        margin-top: 2px;
        margin-bottom: 16px;
    }
    .gallery-section .editorial-inner {
        padding-left: 0;
        padding-right: 0;
    }
    .gallery-grid {
        display: flex;
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 var(--row-padding) 4px;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-grid > .gallery-item {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }
    /* Crew labels/values smaller on mobile so each role stays one line */
    .credit-label, .credit-value {
        font-size: 0.82rem;
    }
    .video-crew {
        gap: 4px;
    }
    /* Mobile credits — single column, label above values, left-aligned */
    .video-credits {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }
    .episodes-section {
        margin-top: 6px;
    }
}
