/* Modern "Our Work" page (resources/views/website/our-work.blade.php).
   Scoped under .ow-page so it never affects the classic design or other pages. */

.ow-page {
    --ow-pink: #f6006c;
    --ow-grad: linear-gradient(90deg, #E61C27 0%, #D625AB 100%);
    --ow-card: #141414;
    --ow-card-hover: #1b1b1b;
    --ow-line: rgba(255, 255, 255, .09);
    --ow-muted: rgba(255, 255, 255, .62);
    --ow-radius: 16px;
    --ow-nav-h: 76px; /* updated from the real navbar height in our-work.js */
    color: #fff;
}

.ow-page .container { position: relative; }
/* The site sets `* { color: 70% white }`; button contents should follow their button. */
.ow-page button *,
.ow-page .ow-btn * { color: inherit; }

/* The site's default headings are 70% white; keep this page's headings crisp. */
.ow-page .ow-h2,
.ow-page .ow-card-title,
.ow-page .ow-cta-title { color: #fff; }

/* ---------- Hero ---------- */
.ow-hero {
    position: relative;
    padding: calc(var(--ow-nav-h) + 56px) 0 56px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .85) 70%, rgba(0, 0, 0, 0) 100%),
        url(../images/new/bread/work-b.png) right center / cover no-repeat;
}
.ow-hero .breadcrumb-cls { margin-bottom: 18px; }
.ow-title {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 18px;
    max-width: 900px;
}
.ow-lead {
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ow-muted);
    margin-bottom: 32px;
}
.ow-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ow-facts li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--ow-line);
    border-radius: 60px;
    background: rgba(255, 255, 255, .03);
}
.ow-facts strong {
    font-size: 1.25rem;
    background: var(--ow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ow-facts span { color: var(--ow-muted); font-size: .9rem; }

/* ---------- Section headings ---------- */
.ow-section-head { margin-bottom: 24px; }
.ow-section-head p { color: var(--ow-muted); margin: 6px 0 0; }
.ow-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.ow-h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    margin: 0;
}

/* ---------- Cards (shared) ---------- */
/* Grid children may shrink below their content, and long unbroken text wraps. */
.ow-spotlight-grid > *,
.ow-grid > *,
.ow-reels > * { min-width: 0; }
.ow-body { overflow-wrap: anywhere; }

.ow-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #fff;
    text-decoration: none;
    background: var(--ow-card);
    border: 1px solid var(--ow-line);
    border-radius: var(--ow-radius);
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.ow-card-link:hover,
.ow-card-link:focus-visible {
    color: #fff;
    transform: translateY(-4px);
    background: var(--ow-card-hover);
    border-color: rgba(246, 0, 108, .45);
    box-shadow: 0 18px 40px -18px rgba(246, 0, 108, .45);
}
.ow-card-link:focus-visible { outline: none; outline-offset: 3px; }

.ow-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b0b0b;
}
.ow-media .ow-thumb,
.ow-media .ow-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .6s ease, opacity .35s ease;
}
.ow-card-link:hover .ow-thumb { transform: scale(1.05); }
.ow-media .ow-preview { opacity: 0; }
.ow-media.is-previewing .ow-preview { opacity: 1; }
.ow-media.is-previewing .ow-play { opacity: 0; }

.ow-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ow-grad);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s ease, transform .3s ease;
    z-index: 2;
}
.ow-play i { margin-left: 3px; }
.ow-card-link:hover .ow-play,
.ow-card-link:focus-visible .ow-play { opacity: 1; transform: scale(1); }
@media (hover: none) {
    .ow-play { opacity: .92; transform: scale(.8); }
}

.ow-source {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 60px;
    background: rgba(0, 0, 0, .6);
    font-size: 13px;
    line-height: 1.4;
}
.ow-source i { color: #ff0033; }

.ow-body { padding: 16px 18px 20px; }
.ow-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ow-cat {
    background: var(--ow-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ow-sub { color: var(--ow-muted); }
.ow-sub::before { content: "•"; margin-right: 10px; color: var(--ow-muted); }
.ow-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}
.ow-excerpt {
    margin: 8px 0 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--ow-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Spotlight ---------- */
.ow-spotlight { padding: 40px 0 24px; }
.ow-spotlight-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 992px) {
    .ow-spotlight-grid--2 { grid-template-columns: 1.6fr 1fr; }
    .ow-spotlight-grid--3 {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .ow-spotlight-grid--3 .ow-card--hero { grid-row: span 2; }
}

/* Hero & side cards: cinematic, text over the image */
.ow-card--hero .ow-card-link,
.ow-card--side .ow-card-link { position: relative; }
.ow-card--hero .ow-media,
.ow-card--side .ow-media { flex: 1; min-height: 100%; }
.ow-card--hero .ow-media { aspect-ratio: 16 / 10; }
.ow-card--side .ow-media { aspect-ratio: 16 / 9; }
.ow-card--hero .ow-body,
.ow-card--side .ow-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 60px 24px 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
.ow-card--hero .ow-card-title { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; }
.ow-card--hero .ow-excerpt { -webkit-line-clamp: 3; max-width: 640px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.ow-card--side .ow-card-title { font-size: 1.1rem; }
.ow-card--side .ow-excerpt { display: none; }
.ow-card--hero .work-stats,
.ow-card--side .work-stats { top: 14px; left: 14px; bottom: auto; }
.ow-card--hero .ow-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; font-size: 24px; opacity: .95; transform: scale(1); }
.ow-card--side .ow-play { top: 38%; width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 15px; }

/* ---------- Library ---------- */
.ow-library { padding: 32px 0 40px; }

.ow-filterbar {
    position: sticky;
    top: var(--ow-nav-h);
    z-index: 20;
    padding: 14px 0;
    margin-bottom: 20px;
    background: rgba(10, 10, 10, .82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}
.ow-filterbar.is-stuck { border-bottom-color: var(--ow-line); }
.ow-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
}
.ow-filters::-webkit-scrollbar { display: none; }
.ow-filterrow { display: flex; align-items: center; gap: 12px; }
.ow-filterrow .ow-filters { flex: 1 1 auto; min-width: 0; }

/* Brand dropdown, styled to sit with the format chips */
.ow-brand {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
}
.ow-brand .fa-tag {
    position: absolute;
    left: 15px;
    font-size: .8rem;
    color: var(--ow-muted);
    pointer-events: none;
}
.ow-brand::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid var(--ow-muted);
    border-bottom: 2px solid var(--ow-muted);
    transform: rotate(45deg);
    pointer-events: none;
}
.ow-brand select {
    appearance: none;
    -webkit-appearance: none;
    width: 230px;
    max-width: 100%;
    padding: 9px 38px 9px 36px;
    border-radius: 60px;
    border: 1px solid var(--ow-line);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color .25s ease;
}
.ow-brand select:hover { border-color: rgba(246, 0, 108, .5); }
.ow-brand select:focus-visible { outline: 2px solid var(--ow-pink); outline-offset: 2px; }
.ow-brand select.is-active { border-color: var(--ow-pink); }
.ow-brand select option { background: #141414; color: #fff; }

@media (max-width: 767.98px) {
    .ow-filterrow { flex-direction: column; align-items: stretch; gap: 10px; }
    .ow-brand select { width: 100%; }
}
.ow-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 60px;
    border: 1px solid var(--ow-line);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    transition: background .25s ease, border-color .25s ease;
}
.ow-chip:hover { border-color: rgba(246, 0, 108, .5); }
.ow-chip:focus-visible { outline: 2px solid var(--ow-pink); outline-offset: 2px; }
.ow-chip.is-active {
    background: var(--ow-grad);
    border-color: transparent;
}
.ow-chip-count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 60px;
    background: rgba(255, 255, 255, .12);
    font-size: .75rem;
    text-align: center;
}
.ow-chip.is-active .ow-chip-count { background: rgba(0, 0, 0, .22); }

.ow-result { color: var(--ow-muted); font-size: .9rem; margin: 0 0 16px; min-height: 1.4em; }

.ow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 576px) { .ow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ow-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.ow-grid[hidden] { display: none; }

.ow-card[hidden] { display: none !important; }
.ow-card.ow-in { animation: owFadeUp .45s ease both; }
@keyframes owFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.ow-empty { text-align: center; color: var(--ow-muted); padding: 40px 0; }
.ow-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ow-pink);
    text-decoration: underline;
}

.ow-more-wrap { text-align: center; margin-top: 36px; }
.ow-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 60px;
    border: 1px solid rgba(246, 0, 108, .6);
    background: transparent;
    color: #fff;
    font-weight: 600;
    transition: background .25s ease;
}
.ow-more:hover { background: rgba(246, 0, 108, .12); }
.ow-more span { color: var(--ow-muted); font-weight: 500; }
.ow-more[hidden] { display: none; }

/* ---------- Reels ---------- */
.ow-reels-block { margin-top: 64px; }
.ow-reels-block[hidden] { display: none; }
.ow-reels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 230px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.ow-reels .ow-card { scroll-snap-align: start; }
.ow-card--reel .ow-media { aspect-ratio: 9 / 16; }
.ow-card--reel .ow-body { padding: 12px 14px 16px; }
.ow-card--reel .ow-card-title { font-size: .95rem; }
.ow-card--reel .ow-sub { display: none; }

/* Reels as the active filter: wrap into a grid instead of a strip */
.ow-reels-block.is-grid { margin-top: 0; }
.ow-reels-block.is-grid .ow-section-head { display: none; }
.ow-reels-block.is-grid .ow-reels {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow: visible;
}

.ow-reels-nav { display: flex; gap: 8px; }
.ow-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--ow-line);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    transition: background .25s ease, border-color .25s ease;
}
.ow-arrow:hover { border-color: var(--ow-pink); background: rgba(246, 0, 108, .12); }
.ow-arrow:disabled { opacity: .35; pointer-events: none; }
@media (max-width: 575.98px) { .ow-reels-nav { display: none; } }

/* ---------- CTA ---------- */
.ow-cta-wrap { padding: 40px 0 96px; }
.ow-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 48px;
    border-radius: 24px;
    border: 1px solid rgba(246, 0, 108, .35);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(246, 0, 108, .22) 0%, rgba(20, 20, 20, 0) 60%),
        #111;
}
.ow-cta-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 8px; }
.ow-cta p { color: var(--ow-muted); margin: 0; max-width: 560px; }
.ow-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ow-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ow-btn--ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.ow-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
    .ow-hero { padding: calc(var(--ow-nav-h) + 32px) 0 36px; }
    .ow-lead { font-size: .98rem; }
    .ow-card--hero .ow-media { aspect-ratio: 4 / 5; }
    .ow-card--side .ow-media { aspect-ratio: 16 / 10; }
    .ow-card--hero .ow-body { padding: 48px 18px 18px; }
    .ow-cta { padding: 30px 22px; }
    .ow-cta-actions, .ow-cta-actions .ow-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ow-page *, .ow-page *::before, .ow-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
