/* ── HERO LAYOUT ── */
.hero-inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.hero-logo-col {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s ease 0.2s forwards;
    /* Transform origin at top-left for the scroll-to-nav animation */
    transform-origin: top left;
}

/* Big hero logo — stable, no float animation */
.hero-logo-img {
    width: 340px;
    height: auto;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Nav logo image — hidden at top, appear on scroll */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
    pointer-events: none;
}

/* When scrolled past hero, show nav logo, hide text logo */
.navbar.logo-visible .nav-logo-img {
    opacity: 1;
    transform: scale(1);
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.4s ease;
}

.nav-logo-text span {
    color: var(--grey-mid);
    font-weight: 300;
}

.hero-text-col {
    flex: 1;
}


.hero-stats-row {
    position: absolute;
    bottom: 48px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    animation: fadeUp 0.9s ease 1.2s forwards;
}

.hero-stats-row .hero-stats-items {
    display: flex;
    gap: 48px;
}

/* ── ANIMATED HERO BACKGROUND ── */
.hero-bg {
    position: absolute;
    inset: 0;
    background: #080808;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background:
        radial-gradient(ellipse 55% 50% at 35% 40%, rgba(70, 70, 70, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 75% 25%, rgba(50, 50, 50, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 60% 75%, rgba(45, 45, 45, 0.2) 0%, transparent 65%);
    animation: heroOrbA 9s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background:
        radial-gradient(ellipse 35% 40% at 65% 55%, rgba(55, 55, 55, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 20% 70%, rgba(40, 40, 40, 0.18) 0%, transparent 65%);
    animation: heroOrbB 13s ease-in-out infinite alternate;
}

/* Hero horizontal scan line */
.hero-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 3px,
            rgba(255, 255, 255, 0.012) 3px,
            rgba(255, 255, 255, 0.012) 4px);
}

@keyframes heroOrbA {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(6%, 5%) scale(1.08);
    }
}

@keyframes heroOrbB {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-8%, -7%) scale(1.12);
    }
}

/* ── TICKER (between hero and stories) ── */
.ticker-section {
    overflow: hidden;
    background: var(--bg-surface);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ticker-row {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: tickerLeft 32s linear infinite;
}

.ticker-row--reverse .ticker-track {
    animation: tickerRight 28s linear infinite;
}

@keyframes tickerLeft {
    to {
        transform: translateX(-50%);
    }
}

@keyframes tickerRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-mid);
    white-space: nowrap;
    gap: 28px;
}

.ticker-item::after {
    content: '✦';
    font-size: 8px;
    opacity: 0.4;
}

.ticker-item--alt {
    color: var(--grey-dark);
}

/* ══════════════════════════════════════════
   FILMSTRIP SHOWCASE (Stories That Sell)
   ══════════════════════════════════════════ */
.filmstrip-showcase {
    display: flex;
    gap: 6px;
    height: 300px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.filmstrip-panel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.4s ease;
}

.filmstrip-panel--side {
    flex: 1;
    filter: brightness(0.55) grayscale(1);
}

.filmstrip-panel--center {
    flex: 1.7;
    filter: brightness(0.78) grayscale(0.6);
    z-index: 1;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.filmstrip-panel:hover {
    filter: brightness(0.9) grayscale(0.2) !important;
}

.filmstrip-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.6s ease;
}

.filmstrip-panel:hover img {
    transform: scale(1.0);
}

.filmstrip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
}

.filmstrip-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ══════════════════════════════════════════
   CATEGORY CARDS — BENTO / COLLAGE GRID
   ══════════════════════════════════════════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.categories-collage {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 240px 200px 220px;
    gap: 16px;
}

/* Critical: allow cards to fill their grid cell properly */
.categories-collage .category-card {
    aspect-ratio: auto !important;
    min-height: 0;
    height: 100%;
}

/* Explicit placement of 4 cards in varied bento sizes */
.categories-collage .category-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    /* Tall: spans both rows */
}

.categories-collage .category-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    /* Top right */
}

.categories-collage .category-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    /* Bottom right */
}

.categories-collage .category-card:nth-child(4) {
    grid-column: 1 / 3;
    /* Wide: spans both columns in row 3 */
    grid-row: 3;
}

.category-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

/* Background image setup */
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.3);
    transition: filter 0.6s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover::after {
    filter: grayscale(0%) brightness(0.55);
    transform: scale(1.06);
}

/* Sheen overlay sits above image, below content */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    pointer-events: none;
}

/* All direct children sit above both pseudo-elements */
.category-card>* {
    position: relative;
    z-index: 2;
}

/* Mapping backgrounds via IDs — only use assets that exist */
#cat-brand::after {
    background-image: url('../assets/film-center.png');
}

#cat-digital::after {
    background-image: url('../assets/services-img.png');
}

#cat-docs::after {
    background-image: url('../assets/film-center.png');
    background-position: 30% center;
}

#cat-reels::after {
    background-image: url('../assets/services-img.png');
    background-position: 70% center;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, transparent 60%);
    pointer-events: none;
}

.category-card:hover {
    border-color: var(--grey-mid);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    margin-bottom: 6px;
    transition: color var(--transition);
}

.category-card:hover .cat-number {
    color: rgba(255, 255, 255, 0.07);
}

.cat-body {
    flex: 1;
}

.cat-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.cat-desc {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--grey-mid);
}

.cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cat-count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-mid);
}

.cat-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--grey-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-mid);
    transition: var(--transition);
}

.category-card:hover .cat-arrow {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.cat-bg-line {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--border);
    pointer-events: none;
    transition: var(--transition);
}

.category-card:hover .cat-bg-line {
    border-color: var(--border-light);
    transform: scale(1.3);
}

/* ══════════════════════════════════════════
   SERVICES — 2-COL INTRO HEADER
   ══════════════════════════════════════════ */
.services-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 40px;
    max-width: 1360px;
    margin: 0 auto 0;
}

.services-intro-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.services-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-light);
    width: fit-content;
    letter-spacing: 0.04em;
}

.services-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.services-intro-desc {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--grey-light);
    max-width: 440px;
}

.services-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services-kw {
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 13px;
    color: var(--grey-light);
    letter-spacing: 0.01em;
    transition: border-color 0.2s;
}

.services-kw:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--off-white);
}

.services-intro-ctas {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-white {
    padding: 13px 28px;
    background: var(--white);
    color: #080808;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    opacity: 0.85;
}

.btn-outline-white {
    padding: 13px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s;
    background: transparent;
}

.btn-outline-white:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.services-intro-right {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.services-intro-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.85);
}

/* divider between intro and cards */
.services-cards-wrapper {
    padding: 0 40px 40px;
    max-width: 1360px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   SERVICES GRID v2 (2-col cards)
   ══════════════════════════════════════════ */
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.service-card-v2 {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-height: 170px;
}

.service-card-v2:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
    transform: translateY(-3px);
}

.service-card-header-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon-v2 {
    color: var(--grey-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.service-name-v2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-desc-v2 {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--grey-mid);
}

/* ══════════════════════════════════════════
   SERVICE CHIP TICKER (inside services)
   ══════════════════════════════════════════ */
.service-ticker-wrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 4px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.service-ticker-row {
    overflow: hidden;
    white-space: nowrap;
}

.service-ticker-track {
    display: inline-flex;
    gap: 10px;
    animation: tickerLeft 30s linear infinite;
}

.service-ticker-row--rev .service-ticker-track {
    animation: tickerRight 26s linear infinite;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 500;
    color: var(--grey-light);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    transition: border-color 0.2s;
}

.service-chip:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--off-white);
}

.service-chip svg {
    color: var(--grey-mid);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   VIDEO LAZY PLAYER (project pages)
   ══════════════════════════════════════════ */
.video-lazy {
    cursor: pointer;
    position: relative;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.video-lazy .play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.video-lazy:hover .play-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.video-lazy .play-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .categories-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .categories-collage .category-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
        height: auto;
        aspect-ratio: 1 / 1.1 !important;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-v2 {
        grid-template-columns: 1fr;
    }

    .services-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
    }

    .services-intro-right {
        aspect-ratio: 16 / 9;
    }

    .services-cards-wrapper {
        padding: 0 24px 40px;
    }

    .hero-logo-col {
        flex: 0 0 180px;
    }

    .hero-logo-img {
        width: 180px;
    }

    .hero-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column-reverse;
        gap: 20px;
        padding-top: 40px;
    }

    .hero-logo-col {
        flex: none;
    }

    .hero-logo-img {
        width: 120px;
    }

    .categories-grid,
    .categories-collage {
        grid-template-columns: 1fr 1fr;
    }

    .categories-collage .category-card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-stats-row {
        position: static;
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filmstrip-showcase {
        height: 200px;
    }

    .filmstrip-panel--center {
        flex: 1.4;
    }
}

@media (max-width: 480px) {

    .categories-grid,
    .categories-collage {
        grid-template-columns: 1fr;
    }

    .services-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════
   3D CAROUSEL SECTION
   ══════════════════════════════════════════ */
.carousel-section {
    position: relative;
    background: #000;
    padding: 100px 0 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.pb-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 14px;
}

.pb-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
}

.pb-title span {
    color: #444;
    font-weight: 200;
}

.carousel-hint {
    font-size: 13px;
    color: #333;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 3D Stage — where the perspective projection happens */
.carousel-stage {
    width: 100%;
    height: 520px;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.carousel-stage:active {
    cursor: grabbing;
}

/* The ring that rotates — preserve-3d is the magic */
.carousel-ring {
    width: 200px;
    height: 340px;
    position: relative;
    transform-style: preserve-3d;
    /* JS sets this via style.transform = rotateY(Xdeg) */
    transition: transform 0ms linear;
}

/* Each card is a 3D slice of the ring */
.carousel-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    height: 340px;
    margin-left: -110px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    /* JS sets: transform: rotateY(Xdeg) translateZ(Ypx) */
    backface-visibility: hidden;
    transition: filter 0.15s ease;
    /* very quick — feels instant */
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Grayscale default */
    filter: grayscale(100%) brightness(0.6) contrast(1.15);
    transition: filter 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Hover: full color instantly */
.carousel-card:hover img {
    filter: grayscale(0%) brightness(1) contrast(1) saturate(1.15);
    transform: scale(1.04);
}

/* Cards far back are slightly dimmer — handled via JS opacity */
.carousel-card.is-back {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .carousel-stage {
        height: 380px;
        perspective: 900px;
    }

    .carousel-card {
        width: 160px;
        height: 250px;
        margin-left: -80px;
    }

    .carousel-section {
        min-height: 80vh;
    }
}

.photo-bomb-inner {
    text-align: center;
    padding: 0 20px 50px;
}

.pb-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 14px;
}

.pb-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.pb-title span {
    color: #444;
    font-weight: 200;
}

/* ── FULL-BLEED GRID: 10 equal columns, no gaps ── */
.photo-bomb-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: clamp(80px, 10vw, 140px);
    gap: 2px;
}

/* ── REGULAR CARD: grayscale, starts black (opacity 0) ── */
.pb-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.pb-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* all grayed out */
    filter: grayscale(100%) brightness(0.55) contrast(1.1);
    transition: filter 0.5s ease, transform 0.4s ease;
}

/* When section has logo revealed, emphasize the gray */
.photo-bomb-grid.logo-revealed .pb-card:not(.pb-hero-card) img {
    filter: grayscale(100%) brightness(0.35) contrast(1.1);
}

/* Card revealed state — just opacity, no rotation */
.pb-card.revealed {
    opacity: 1;
}

/* Hover on normal cards */
.pb-card:not(.pb-hero-card):hover img {
    filter: grayscale(100%) brightness(0.75);
    transform: scale(1.05);
}

/* ── HERO CARD: One Media logo, FULL COLOR, spans 3×3, appears last ── */
.pb-hero-card {
    grid-column: span 3;
    grid-row: span 3;
    z-index: 10;
    /* starts invisible AND scaled down for dramatic pop-in */
    transform: scale(0.7);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.34, 1.5, 0.64, 1),
        box-shadow 0.7s ease;
    box-shadow: none;
}

.pb-hero-card img {
    /* Full color — no grayscale */
    filter: brightness(1.05) saturate(1.1) !important;
    object-position: center;
}

/* Hero reveal: scale up with a spring, add strong glow */
.pb-hero-card.revealed {
    transform: scale(1.04);
    box-shadow:
        0 0 80px rgba(255, 255, 255, 0.3),
        0 0 160px rgba(255, 200, 100, 0.15);
}

.pb-hero-card:hover {
    transform: scale(1.08) !important;
    z-index: 20;
}

@media (max-width: 900px) {
    .photo-bomb-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: clamp(80px, 14vw, 120px);
    }

    .pb-hero-card {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 540px) {
    .photo-bomb-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 90px;
    }

    .pb-hero-card {
        grid-column: span 2;
        grid-row: span 2;
    }

    .photo-bomb-section {
        padding-top: 50px;
    }
}

.photo-bomb-inner {
    text-align: center;
    padding: 0 20px 60px;
}

.pb-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 16px;
}

.pb-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.pb-title span {
    color: #444;
    font-weight: 200;
}

/* Dense mosaic grid */
.photo-bomb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    padding: 0 6px 6px;
}

/* Each card starts invisible, lifts in on reveal */
.pb-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    /* invisible start state */
    opacity: 0;
    transform: translateY(40px) rotate(var(--card-rot, 0deg)) scale(0.92);
    transition:
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.pb-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.75) saturate(0.8);
}

/* Revealed = fully visible with slight rotation */
.pb-card.revealed {
    opacity: 1;
    transform: rotate(var(--card-rot, 0deg)) scale(1);
}

/* Hover: zoom in, brighten, straighten */
.pb-card:hover {
    z-index: 5;
    transform: scale(1.08) rotate(0deg) !important;
    transition: transform 0.3s ease;
}

.pb-card:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.2);
}

@media (max-width: 768px) {
    .photo-bomb-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 4px;
    }

    .photo-bomb-section {
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .photo-bomb-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
}