/* Works/Evidence card - EXPERIENCE PAGE VERSION */
/* Used throughout experience pages */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: var(--space-4);
}

/* ── Base card ───────────────────────────────────────────── */
.evidence-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.evidence-card:hover {
    box-shadow: var(--shadow-md);
}

/* ── Domain left-border threading from E4 ────────────────── */
.evidence-card[data-domain="engineering"] {
    border-left-color: var(--color-domain-engineering);
}

.evidence-card[data-domain="data"] {
    border-left-color: var(--color-domain-data);
}

.evidence-card[data-domain="product"] {
    border-left-color: var(--color-domain-product);
}

.evidence-card[data-domain="growth"] {
    border-left-color: var(--color-domain-growth);
}

/* ── Domain tag pill (above title in body) ───────────────── */
.evidence-card__domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.evidence-card__domain-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.evidence-card[data-domain="engineering"] .evidence-card__domain-tag {
    color: var(--color-domain-engineering);
}

.evidence-card[data-domain="engineering"] .evidence-card__domain-tag-dot {
    background: var(--color-domain-engineering);
}

.evidence-card[data-domain="data"] .evidence-card__domain-tag {
    color: var(--color-domain-data);
}

.evidence-card[data-domain="data"] .evidence-card__domain-tag-dot {
    background: var(--color-domain-data);
}

.evidence-card[data-domain="product"] .evidence-card__domain-tag {
    color: var(--color-domain-product);
}

.evidence-card[data-domain="product"] .evidence-card__domain-tag-dot {
    background: var(--color-domain-product);
}

.evidence-card[data-domain="growth"] .evidence-card__domain-tag {
    color: var(--color-domain-growth);
}

.evidence-card[data-domain="growth"] .evidence-card__domain-tag-dot {
    background: var(--color-domain-growth);
}

/* ── VARIANT A: Single image ─────────────────────────────── */
.evidence-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.evidence-card__thumb--placeholder {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.evidence-card:hover .evidence-card__thumb img { transform: scale(1.03); }

/* ── VARIANT B: Slideshow ────────────────────────────────── */
.evidence-card__slides {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-2);
    position: relative;
    flex-shrink: 0;
}

.evidence-card__slides-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.evidence-card__slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.evidence-card__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

/* Dot indicators */
.evidence-card__slide-dots {
    position: absolute;
    bottom: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.evidence-card__slide-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
    border: none;
    padding: 0;
}

.evidence-card__slide-dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Domain-colored active dot */
.evidence-card[data-domain="engineering"] .evidence-card__slide-dot.is-active {
    background: var(--color-domain-engineering);
}

.evidence-card[data-domain="data"] .evidence-card__slide-dot.is-active {
    background: var(--color-domain-data);
}

.evidence-card[data-domain="product"] .evidence-card__slide-dot.is-active {
    background: var(--color-domain-product);
}

.evidence-card[data-domain="growth"] .evidence-card__slide-dot.is-active {
    background: var(--color-domain-growth);
}

/* ── VARIANT C: Video (YouTube iframe or <video> file) ───── */
.evidence-card__video {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0e0e0e;
    position: relative;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.evidence-card__video[data-orientation="portrait"] {
    aspect-ratio: 9/16;
    max-height: 480px;
}

.evidence-card__video iframe,
.evidence-card__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

/* Sound toggle button */
.evidence-card__sound-btn {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background var(--transition);
}

.evidence-card__sound-btn:hover { background: rgba(0,0,0,0.8); }
.evidence-card__sound-btn svg { width: 14px; height: 14px; stroke: #fff; }

/* ── Card body ────────────────────────────────────── */
.evidence-card__body {
    padding: var(--space-4) var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.evidence-card__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.evidence-card__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-top: auto;
}

.evidence-card__bullets li {
    font-size: var(--text-xs);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.5;
    padding-left: var(--space-4);
    position: relative;
}

.evidence-card__bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-text-faint);
}

/* NC Site Builder Injection */
/* note: this injection is designed to fix issues caused by Namecheap Sitebuilder */
.evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

@media (max-width: 900px) {
    .evidence-grid {
        grid-template-columns: 1fr !important;
    }
}
