/* Campaigns built in SolidMeta */

.case-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
}

.case-feature {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.case-feature--flagship {
    position: relative;
}

.case-feature--flagship::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 15% 0%, rgba(0, 192, 180, 0.09), transparent 55%),
        radial-gradient(ellipse 50% 35% at 95% 100%, rgba(61, 122, 232, 0.07), transparent 50%);
    pointer-events: none;
}

.case-feature-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

.case-feature-head {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .case-feature-head {
        grid-template-columns: auto 1fr auto;
        align-items: start;
        column-gap: 1.5rem;
    }
    .case-feature-logo {
        grid-row: 1 / span 2;
    }
    .case-feature-cta {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }
}

.case-feature-logo {
    height: 2.25rem;
    width: auto;
}

.case-feature-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00C0B4;
    display: block;
    margin-bottom: 0.35rem;
}

.case-feature-head h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.875rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

.case-feature-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(156, 163, 175, 0.95);
    margin: 0;
    max-width: 36rem;
}

.case-feature-desc--secondary {
    margin-top: 0.65rem;
    font-size: 0.875rem;
    color: rgba(156, 163, 175, 0.82);
}

.case-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: rgba(229, 231, 235, 0.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 192, 180, 0.35);
    padding-bottom: 0.1rem;
    transition: color 0.2s, border-color 0.2s;
}

.case-learn-more:hover {
    color: #00C0B4;
    border-color: rgba(0, 192, 180, 0.65);
}

.case-detail-gtc {
    margin: 0 0 1rem;
}

.case-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 1.25rem;
    background: #000;
}

.case-youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.case-feature--youtube .case-feature-head {
    margin-bottom: 1.25rem;
}

.case-feature--gallery .case-feature-head {
    margin-bottom: 1.25rem;
}

.case-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .case-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .case-preview-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.case-preview-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.case-feature--gallery .case-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: rgba(156, 163, 175, 0.95);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.case-feature--gallery .case-learn-more:hover {
    color: #00C0B4;
}

.case-detail-challenge {
    margin-bottom: 0;
}

.case-showcase-videos {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .case-showcase-videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.case-showcase-video .case-detail-spotlight-media {
    margin-top: 0.5rem;
}

.case-detail-official-block {
    margin-top: 1.25rem;
}

.case-detail-official-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.case-detail-official-links .case-detail-external {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.case-detail-official-block .case-detail-official-note + .case-detail-official-note {
    margin-top: 1rem;
}

.case-detail-official-note {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(156, 163, 175, 0.88);
    margin: 0 0 0.75rem;
}

.case-credit--note {
    cursor: default;
    text-decoration: none;
}

.case-drill-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #00C0B4;
    background: rgba(0, 192, 180, 0.08);
    border: 1px solid rgba(0, 192, 180, 0.35);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.case-drill-cta:hover {
    color: #fff;
    background: rgba(0, 192, 180, 0.18);
    border-color: rgba(0, 192, 180, 0.55);
}

.case-feature-credits,
.case-detail-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1.25rem;
    padding-top: 0.15rem;
}

.case-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.65rem 0.4rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.case-credit:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.case-credit-logo {
    height: 1.125rem;
    width: auto;
    max-width: 4.5rem;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.92;
}

.case-credit-logo--svg {
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

.case-credit-logo--adam-eve {
    filter: brightness(0) invert(1);
    opacity: 0.88;
}

.case-credit-logo--credera {
    height: 1rem;
    max-width: 1rem;
    border-radius: 0.15rem;
}

.case-credit-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, 0.82);
}

.case-credit-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(229, 231, 235, 0.9);
}

.case-detail-credits {
    margin-bottom: 1rem;
}

.case-detail-story-block {
    margin: 0 0 0.75rem;
}

.case-detail-story-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.72);
    margin-bottom: 0.35rem;
}

.case-detail-story {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(156, 163, 175, 0.95);
    margin: 0;
    white-space: pre-line;
}

/* Two-row animated filmstrip — true aspect ratios, scaled to row height */
.case-filmstrip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    padding: 0.5rem 0;
    overflow: hidden;
    --film-row-h: clamp(128px, 15vw, 180px);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    perspective: 900px;
}

.case-filmstrip-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0.75rem;
    animation: case-film-scroll 52s linear infinite;
    will-change: transform;
}

.case-filmstrip-track--reverse {
    animation-direction: reverse;
    animation-duration: 58s;
}

.case-filmstrip-track:hover {
    animation-play-state: paused;
}

@keyframes case-film-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.case-filmstrip-item {
    flex: 0 0 auto;
    height: var(--film-row-h);
    width: calc(var(--film-row-h) * var(--film-aspect, 1));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    background: #0a1014;
    padding: 0;
    transform: rotateY(-3deg) rotateX(1.5deg);
    animation: case-film-float 4s ease-in-out infinite;
    animation-delay: var(--film-delay, 0s);
    transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.case-filmstrip-track--reverse .case-filmstrip-item {
    transform: rotateY(3deg) rotateX(1.5deg);
}

.case-filmstrip-item:hover {
    transform: rotateY(0) rotateX(0) scale(1.08);
    border-color: rgba(0, 192, 180, 0.5);
    box-shadow: 0 16px 44px rgba(0, 192, 180, 0.14);
    z-index: 3;
    animation-play-state: paused;
}

@keyframes case-film-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
}

.case-filmstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--film-focus, center center);
    display: block;
}

.case-filmstrip-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.case-filmstrip-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: case-shine-sweep 5s ease-in-out infinite;
    animation-delay: var(--film-delay, 0s);
    pointer-events: none;
    z-index: 2;
}

@keyframes case-shine-sweep {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.case-feature--compact .case-feature-inner {
    display: grid;
    gap: 0;
}

@media (min-width: 768px) {
    .case-feature--compact .case-feature-inner {
        grid-template-columns: 1.2fr 1fr;
    }
}

.case-feature--compact .case-feature-media {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

@media (min-width: 768px) {
    .case-feature--compact .case-feature-media {
        min-height: 100%;
    }
}

.case-feature--compact video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.case-feature--compact .case-feature-copy {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.case-feature-desc--compact {
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.case-feature--compact .case-feature-desc--secondary {
    margin-top: 0.5rem;
}

.case-learn-more--compact {
    margin-top: 0.65rem;
}

.case-feature-credits--compact {
    margin: 0.85rem 0 0;
    padding-top: 0;
    gap: 0.5rem 0.75rem;
}

.case-feature-credits--compact .case-credit {
    padding: 0.3rem 0.55rem 0.3rem 0.45rem;
}

.case-feature-credits--compact .case-credit-logo {
    height: 1rem;
}

.case-feature-credits--compact .case-credit-name {
    font-size: 0.6875rem;
}

.case-feature-credits--compact .case-credit-label {
    font-size: 8px;
}

.case-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .case-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.case-feature--row {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.case-row-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.case-row-media img,
.case-row-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-row-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.35rem;
}

.case-row-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.case-row-desc {
    font-size: 0.84375rem;
    line-height: 1.55;
    color: rgba(156, 163, 175, 0.92);
    margin: 0 0 1rem;
    flex: 1;
}

.case-row-foot {
    margin-top: auto;
}

/* Case drill-down panel */
body.case-detail-open {
    overflow: hidden;
}

.case-detail-backdrop .feature-detail-panel {
    width: min(100%, 640px);
}

@media (min-width: 768px) {
    .case-detail-backdrop .feature-detail-panel {
        width: min(72vw, 820px);
    }
}

.case-detail-spotlight {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-detail-spotlight-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a1014;
}

.case-detail-spotlight-media img,
.case-detail-spotlight-media video {
    width: 100%;
    height: auto;
    display: block;
    max-height: min(62vh, 520px);
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
}

.case-detail-spotlight--video .case-detail-spotlight-media {
    background: #000;
}

.case-detail-video {
    background: #000;
}

.case-detail-video-badge,
.case-detail-reel-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    pointer-events: none;
}

.case-detail-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.case-detail-filter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(229, 231, 235, 0.85);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.case-detail-filter.is-active {
    border-color: rgba(0, 192, 180, 0.55);
    background: rgba(0, 192, 180, 0.12);
    color: #fff;
}

.case-detail-filter-count {
    opacity: 0.65;
}

@media (min-width: 540px) {
    .case-detail-spotlight:not(.case-detail-spotlight--video):not(.case-detail-spotlight--product) {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.case-detail-platform {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00C0B4;
    display: block;
    margin-bottom: 0.5rem;
}

.case-detail-caption {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #e5e7eb;
    margin: 0 0 0.75rem;
}

.case-detail-external {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #00C0B4;
    text-decoration: none;
}

.case-detail-external:hover {
    color: #fff;
}

.case-detail-grid-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.85);
    margin: 0 0 0.75rem;
}

.case-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

@media (min-width: 540px) {
    .case-detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .case-detail-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.case-detail-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #0a1014;
    aspect-ratio: var(--thumb-aspect, 1);
    transition: border-color 0.2s, transform 0.2s;
}

.case-detail-thumb.is-active {
    border-color: #00C0B4;
}

.case-detail-thumb:hover {
    transform: scale(1.03);
}

.case-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.case-detail-thumb-platform {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.2rem 0.35rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.case-detail-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 10px;
    pointer-events: none;
}

/* Product imagery case (Tiguan Edition 20) */
.case-detail-spotlight--product {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.case-detail-spotlight--product .case-detail-spotlight-media {
    width: 100%;
}

.case-detail-spotlight--product .case-detail-spotlight-media img {
    width: 100%;
    max-height: min(72vh, 680px);
    object-fit: contain;
    pointer-events: none;
}

.case-detail-spotlight-media .case-detail-expand {
    z-index: 3;
    pointer-events: auto;
}

.case-detail-spotlight--product .case-detail-spotlight-link {
    margin-top: 0.15rem;
}

.case-detail-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.case-detail-expand:hover,
.case-detail-expand:focus-visible {
    background: rgba(0, 192, 180, 0.22);
    border-color: rgba(0, 192, 180, 0.55);
    color: #fff;
    transform: scale(1.04);
}

.case-detail-expand--thumb {
    top: 6px;
    right: 6px;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.case-detail-thumb-cell {
    position: relative;
}

.case-detail-thumb-cell:hover .case-detail-expand--thumb,
.case-detail-thumb-cell:focus-within .case-detail-expand--thumb {
    opacity: 1;
}

.case-detail-grid--product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 540px) {
    .case-detail-grid--product {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .case-detail-grid--product {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.case-detail-thumb--product {
    width: 100%;
}

.case-detail-thumb--product.is-active {
    box-shadow: 0 0 0 2px #00C0B4;
}

/* Fullscreen image viewer */
body.case-image-fullscreen-open {
    overflow: hidden;
}

.case-image-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    background: rgba(2, 6, 12, 0.94);
    backdrop-filter: blur(8px);
}

.case-image-fullscreen.is-open {
    display: flex;
}

.case-image-fullscreen-img {
    max-width: min(100%, 1600px);
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.case-image-fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.case-image-fullscreen-close:hover,
.case-image-fullscreen-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
