/*
Theme Name: Bruce Ashley Portfolio
Theme URI: https://bruceashley.com
Author: Bruce Ashley
Description: A minimalist, cinematic portfolio theme for an editor and director.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: bruce-ashley-portfolio
*/

/* ========================================
   GLOBAL / TYPOGRAPHY
======================================== */
:root {
    --background: #101216;
    --surface: #1b1e24;
    --text: #f5f5f5;
    --muted: #a6abb4;
    --accent: #ffffff;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* Base layout */
* {
    box-sizing: border-box;
}

.commercial-scroll-hint {
    margin: 8px 0 20px;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
}


/* Compact navigation spacing on individual project pages */

/* Reduce the gap after Duration / Role */
.project-information > .portfolio-return,
.project-information > .project-related-link {
    margin-top: 14px;
}

/* Social project information and return links */
.project-multiformat-information .portfolio-return,
.project-multiformat-information .project-related-link {
    margin-top: 14px;
}

/* Keep paired navigation links close together */
.project-information .project-related-link + .portfolio-return {
    margin-top: 10px;
}

/* Remove unnecessary spacing below related links */
.project-information .project-related-link {
    margin-bottom: 0;
}

/* Tighten spacing between related Social and Portfolio links */
.project-related-link + .portfolio-return {
    margin-top: 1px;
}


html {
    scroll-behavior: smooth;
}

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

a:hover {
    opacity: 0.75;
}

img,
iframe {
    max-width: 100%;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
.site-header {
    border-bottom: 1px solid #292d34;
    padding: 28px 5%;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-role {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-top: 5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   GENERIC PAGE LAYOUT
======================================== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
    min-height: 65vh;
}

.site-content h1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 30px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    border-top: 1px solid #292d34;
    padding: 28px 5%;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Shared responsive layout */
@media (max-width: 700px) {
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-content {
        padding-top: 48px;
    }
}


/* ========================================
   INDIVIDUAL PORTFOLIO PROJECT
======================================== */

.project-page {
    width: min(100% - 48px, 1200px);
    margin: 0 auto;
    padding: 56px 0 100px;
    min-height: 65vh;
}

/* Large cinematic Vimeo player */
.project-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}

.project-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Project information */
.project-meta strong {
    color: var(--text);
    font-weight: 500;
    margin-right: 4px;
}


.project-information {
    max-width: 920px;
    margin: 28px auto 0;
}

.project-information h1 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.project-description {
    font-size: 16px;
    line-height: 1.8;
    color: #d4d7dc;
    margin-bottom: 22px;
}

.project-description p {
    margin: 0 0 10px;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.project-detail {
    display: flex;
    gap: 8px;
}

.project-detail strong {
    color: var(--text);
    font-weight: 500;
}

.project-detail span {
    color: var(--muted);
}

.project-role {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}

.project-role strong {
    color: var(--text);
    font-weight: 500;
}

.back-to-portfolio {
    display: inline-block;
    margin-top: 36px;
    padding-bottom: 6px;
    border-bottom: 1px solid #555b65;
    font-size: 13px;
    color: var(--muted);
}

/* Mobile project layout */
@media (max-width: 700px) {
    .project-page {
        width: calc(100% - 32px);
        padding-top: 28px;
        padding-bottom: 60px;
    }

    .project-description {
        font-size: 15px;
    }
}


/* ========================================
   PORTFOLIO GALLERY
======================================== */

.portfolio-page {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
    padding: 20px 0 110px;
    min-height: 70vh;
}

.portfolio-heading {
    margin-bottom: 40px;
}

.portfolio-heading h1 {
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.portfolio-heading p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* Category filters */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    padding-bottom: 24px;
    margin-bottom: 34px;
    border-bottom: 1px solid #292d34;
}

.portfolio-filters a {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.025em;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.portfolio-filters a:hover,
.portfolio-filters a.active {
    color: #fff;
    border-bottom-color: #fff;
    opacity: 1;
}

/* Responsive project grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 44px;
}

.portfolio-card {
    min-width: 0;
}

.portfolio-card-link {
    display: block;
}

.portfolio-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.portfolio-card-link:hover img {
    transform: scale(1.035);
}

.portfolio-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

.portfolio-card h2 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin: 14px 0 0;
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
}

.portfolio-empty {
    color: var(--muted);
    padding: 50px 0;
}

/* Social category: portrait thumbnails and compact cards */
.portfolio-card.is-social {
    width: 50%;
}

.portfolio-card.is-social .portfolio-thumbnail {
    aspect-ratio: 9 / 16;
}

.portfolio-card.is-social h2 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 10px;
}

.portfolio-social-formats {
    color: #A6ABB4;
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-top: 5px;
}

/* Tablet */
@media (max-width: 1000px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 650px) {
    .portfolio-page {
        width: calc(100% - 32px);
        padding: 40px 0 70px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }

    .portfolio-filters {
        gap: 12px 18px;
    }
}


/* ========================================
   HOMEPAGE
======================================== */

.homepage {
    width: min(100% - 48px, 1440px);
    margin: 0 auto;
}

.home-intro {
    padding: 40px 0 55px;
    max-width: none;
}

.home-eyebrow {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

 


/* Homepage headline — single line on desktop */

.home-intro h1 {
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: none;
    margin: 0 0 26px;
}

/* Keep headline on one line on desktop */
@media (min-width: 1100px) {
    .home-intro h1 {
        white-space: nowrap;
    }
}

/* Allow wrapping on smaller screens */
@media (max-width: 1099px) {
    .home-intro h1 {
        white-space: normal;
    }
}

.home-intro-copy {
    max-width: 720px;
    color: #C8CBD0;
    font-size: 17px;
    line-height: 1.75;
}

.home-intro-copy p {
    margin: 0 0 18px;
}

.home-action {
    display: inline-block;
    margin-top: 26px;
    padding-bottom: 9px;
    border-bottom: 1px solid #777d86;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Homepage introduction action */
.home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 18px;
}

.home-actions .home-action {
    margin-top: 0;
    color: #B7BDC6;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #777D86;
    padding-bottom: 8px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.home-actions .home-action:hover {
    color: #F5F5F5;
    border-bottom-color: #F5F5F5;
    opacity: 1;
}

.home-work {
    border-top: 1px solid #292d34;
    padding: 35px 0 75px;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.home-section-heading h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
}

.home-section-heading a,
.home-about-link a {
    color: var(--muted);
    font-size: 13px;
}

.home-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 26px;
}

.home-project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface);
    border-radius: 5px;
    overflow: hidden;
}

.home-project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-project a:hover img {
    transform: scale(1.035);
}

.home-project h3 {
    margin: 13px 0 0;
    font-size: 17px;
    font-weight: 500;
}

.home-about-link {
    padding: 48px 0 85px;
    border-top: 1px solid #292d34;
}

.home-about-link p {
    font-size: 22px;
    margin: 0 0 14px;
}

/* Selected Work: two columns on tablets */
@media (max-width: 1000px) {
    .home-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Homepage on mobile */
@media (max-width: 700px) {
    .homepage {
        width: calc(100% - 32px);
    }

    .home-intro {
        padding: 40px 0 42px;
    }

    .home-intro-copy {
        font-size: 15px;
    }

    .home-project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-section-heading h2 {
        font-size: 22px;
    }

    .home-work {
        padding: 30px 0 55px;
    }

}


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

.portfolio-return {
    margin-top: 55px;
}

.portfolio-return .back-to-portfolio {
    margin-top: 0;
}


/* ========================================
   ABOUT PAGE (DEFAULT WORDPRESS TEMPLATE)
======================================== */
/* Softer, larger biography typography */
body.page article > p {
    color: #C8CBD0;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 1.4em;
}


/* ========================================
   MULTI-FORMAT PROJECTS
   16:9 / 9:16 / 1:1
======================================== */

/* Heading above multi-format video gallery */

.project-multiformat-heading {
    margin-bottom: 30px;
}

.project-multiformat-heading h1 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Video layout */

.project-formats {
    display: grid;
    align-items: start;
    gap: 24px;
}

/* Original plus one social version */

.project-formats-two {
    grid-template-columns:
        minmax(0, 2.3fr) minmax(0, 0.85fr);
}

/* Original plus vertical and square versions */

.project-formats-three {
    grid-template-columns:
        minmax(0, 2.2fr)
        minmax(0, 0.85fr)
        minmax(0, 1.1fr);
}

.project-format {
    min-width: 0;
}

/* Responsive video containers */

.project-format-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}

.format-16x9 {
    aspect-ratio: 16 / 9;
}

.format-9x16 {
    aspect-ratio: 9 / 16;
}

.format-1x1 {
    aspect-ratio: 1 / 1;
}

.project-format-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Labels beneath each video */

.project-format-label {
    margin-top: 12px;
    color: #A6ABB4;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Individual duration labels for video formats */

.project-format-duration {
    display: block;
    margin-top: 5px;
    color: #A6ABB4;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Description beneath widescreen version */

.project-format-original .project-description {
    margin-top: 24px;
    margin-bottom: 0;
    color: #C8CBD0;
    font-size: 16px;
    line-height: 1.75;
}

.project-format-original .project-description p {
    margin: 0 0 14px;
}

/* Shared project information */

.project-multiformat-information {
    margin-top: 28px;
    max-width: none;
}

/* Tablet and mobile */

@media (max-width: 850px) {

    .project-formats-two,
    .project-formats-three {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-format-social {
        max-width: 340px;
    }

    .project-format-square {
        max-width: 380px;
    }

    .project-multiformat-heading {
        margin-bottom: 22px;
    }

}

/* =============================*/

/* ==========================================================
   SOCIAL PROJECTS — STATIC PREVIEWS + ENLARGED VIDEO CAROUSEL
   Append this to the end of the theme's existing style.css.
   ========================================================== */

.project-preview-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.project-preview-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #1b1e24;
    border-radius: 6px;
}

/* Explicit preview dimensions, independent of the existing iframe layouts. */
.project-preview-image.format-16x9 { aspect-ratio: 16 / 9; }
.project-preview-image.format-9x16 { aspect-ratio: 9 / 16; }
.project-preview-image.format-1x1  { aspect-ratio: 1 / 1; }

.project-preview-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-preview-button:hover .project-preview-image img {
    transform: scale(1.025);
}

.project-preview-button:focus-visible {
    outline: 2px solid #f5f5f5;
    outline-offset: 5px;
    border-radius: 6px;
}

.project-preview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 18px;
    padding-left: 3px;
    pointer-events: none;
}

.project-preview-fallback {
    position: absolute;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: #a6abb4;
}

.project-social-description {
    margin-top: 22px;
    max-width: 850px;
}

/* Modal overlay */
.project-viewer[hidden] { display: none !important; }
.project-viewer {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 5, 8, 0.96);
}

.project-viewer-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 1280px);
    height: 100%;
    min-height: 0;
}

.project-viewer-top,
.project-viewer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: none;
    color: #c8cbd0;
    font-size: 13px;
}

.project-viewer-top { min-height: 44px; }
.project-viewer-bottom { min-height: 66px; }
.project-viewer-caption { text-align: center; }
.project-viewer button {
    border: 1px solid #555b65;
    border-radius: 3px;
    background: #17191e;
    color: #e0e2e6;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
}
.project-viewer button:hover { background: #30343b; }
.project-viewer button:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.project-viewer-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.project-viewer-frame {
    position: relative;
    flex: none;
    background: #000;
    overflow: hidden;
    border-radius: 5px;
}

/* Both width and height constraints matter: portrait never takes over screen height. */
.project-viewer-frame.format-16x9 { aspect-ratio: 16 / 9; width: min(100%, 125vh); max-height: 100%; }
.project-viewer-frame.format-9x16 { aspect-ratio: 9 / 16; height: min(100%, 160vw); max-width: 100%; }
.project-viewer-frame.format-1x1  { aspect-ratio: 1 / 1; height: min(100%, 95vw); max-width: 100%; }

.project-viewer-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .project-viewer { padding: 8px; }
    .project-viewer-top { min-height: 42px; }
    .project-viewer-bottom { min-height: 62px; gap: 5px; }
    .project-viewer button { padding: 9px; font-size: 12px; }
    .project-viewer-caption { font-size: 12px; }
    .project-preview-play { width: 46px; height: 46px; }
}


/* Social gallery — four portrait thumbnails per row */
.portfolio-grid:has(.portfolio-card.is-social) {
    grid-template-columns: repeat(4, 200px);
    column-gap: 28px;
    row-gap: 36px;
}

/* Social thumbnails fill their columns */
.portfolio-card.is-social {
    width: 100%;
}

/* Tablets — three thumbnails per row */
@media (max-width: 1000px) {
    .portfolio-grid:has(.portfolio-card.is-social) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile — two thumbnails per row */
@media (max-width: 650px) {
    .portfolio-grid:has(.portfolio-card.is-social) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 28px;
    }
}


/* Related Social project link */
.project-related-link {
    margin-top: 28px;
    margin-bottom: 8px;
}

.project-related-link a {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    padding-bottom: 6px;
    border-bottom: 1px solid #555b65;
}

.project-related-link a:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    opacity: 1;
}





/* ========================================
   OPTIONAL PROJECT AWARDS / NOMINATIONS
   Label appears only when project_accolade is populated.
   Keeps existing portfolio grid, card sizing and typography intact.
======================================== */
.portfolio-accolade {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
    color: #c7ad7d;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.45;
    text-transform: uppercase;
}
.portfolio-accolade-icon {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1;
}
.project-accolade {
    margin-top: -7px;
    margin-bottom: 20px;
    font-size: 12px;
}
@media (max-width: 650px) {
    .portfolio-accolade { font-size: 10.5px; }
}


/* ========================================
   PORTFOLIO PROJECT SUMMARIES
======================================== */

.portfolio-summary {
    margin: 7px 0 0;
    color: #a9abb2;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;

    /* Limit descriptions to two lines */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 650px) {
    .portfolio-summary {
        font-size: 12px;
    }
}

/* Commercial portfolio section headings */
.commercial-section-heading {
    margin: 42px 0 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.commercial-section-heading:first-of-type {
    margin-top: 20px;
}

/* Tighten Brands & Concepts heading and scroll hint */
.commercial-section-heading:has(+ .commercial-scroll-hint) {
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: none;
}

.commercial-scroll-hint {
    margin: 0 0 20px;
    padding: 0;
    border: none;
    font-size: 15px;
    color: #999;
}
/* Remove duplicate divider above Brands & Concepts only */
#brands-concepts {
    border-top: none;
    padding-top: 0;
    margin-top: -15px;
}