/**
 * BBS TECH  composants agence premium
 */

/* Trust bar */
.tech-trust-bar {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 20px 48px;
    margin: 0 0 56px;
    overflow: hidden;
    background: rgba(8, 9, 11, 0.55);
}
.tech-trust-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.tech-trust-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink3);
    white-space: nowrap;
    flex-shrink: 0;
}
.tech-trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    flex: 1;
}
.tech-trust-item {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink2);
    opacity: 0.75;
    transition: opacity 0.3s, color 0.3s;
}
.tech-trust-item:hover {
    opacity: 1;
    color: var(--gold2);
}

/* Featured case study */
.tech-case-spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    border: 1px solid var(--rule);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.06) 0%, rgba(8, 9, 11, 0.95) 55%);
    overflow: hidden;
    position: relative;
}
.tech-case-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}
.tech-case-spotlight-visual {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.tech-case-spotlight-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 50%, rgba(8, 9, 11, 0.92) 100%);
}
.tech-case-spotlight-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tech-case-spotlight-body .stag {
    margin-bottom: 16px;
}
.tech-case-spotlight-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 18px;
}
.tech-case-spotlight-body h2 em {
    font-style: italic;
    color: var(--gold2);
}
.tech-case-spotlight-body p {
    font-size: 0.92rem;
    color: var(--ink2);
    line-height: 1.75;
    margin-bottom: 28px;
}
.tech-case-spotlight-metrics {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.tech-case-metric-val {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--gold2);
    letter-spacing: 0.04em;
    display: block;
}
.tech-case-metric-lbl {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-top: 4px;
}

/* Work grid  agency hover */
.tech-work-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.tech-work-card {
    grid-column: span 4;
    position: relative;
    border: 1px solid var(--rule);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--deep);
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tech-work-card:first-child {
    grid-column: span 8;
    grid-row: span 1;
}
.tech-work-card:hover {
    border-color: rgba(201, 169, 110, 0.45);
    transform: translateY(-4px);
}
.tech-work-visual {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tech-work-card:first-child .tech-work-visual {
    aspect-ratio: 16/9;
}
.tech-work-card:hover .tech-work-visual {
    transform: scale(1.03);
}
.tech-work-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(8, 9, 11, 0.92) 100%);
}
.tech-work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    z-index: 2;
}
.tech-work-type {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.tech-work-overlay h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 8px;
}
.tech-work-card:first-child .tech-work-overlay h3 {
    font-size: 1.5rem;
}
.tech-work-overlay p {
    font-size: 0.8rem;
    color: var(--ink3);
    line-height: 1.55;
    margin-bottom: 14px;
    max-width: 90%;
}
.tech-work-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tech-work-status {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid var(--rule);
    color: var(--gold2);
}
.tech-work-status.is-building {
    color: var(--ink3);
}
.tech-work-arrow {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-left: auto;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s, transform 0.35s;
}
.tech-work-card:hover .tech-work-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Testimonial */
.tech-quote-block {
    position: relative;
    padding: 56px 64px;
    border: 1px solid var(--rule);
    background: linear-gradient(160deg, rgba(24, 27, 34, 0.9) 0%, rgba(8, 9, 11, 0.85) 100%);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.tech-quote-block::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 36px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.2;
}
.tech-quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 24px;
}
.tech-quote-author {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink3);
}

/* CTA band */
.tech-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 48px 52px;
    border: 1px solid var(--rule);
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.1) 0%, rgba(8, 9, 11, 0.9) 40%);
    position: relative;
    overflow: hidden;
}
.tech-cta-band::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    opacity: 0.3;
}
.tech-cta-band h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--ink);
    margin-bottom: 8px;
}
.tech-cta-band p {
    font-size: 0.88rem;
    color: var(--ink3);
    max-width: 480px;
}
.tech-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Services preview (home) */
.tech-svc-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tech-svc-preview-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    border: 1px solid var(--rule);
    background: var(--glass2);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.35s, transform 0.35s;
}
.tech-svc-preview-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    transform: translateY(-2px);
}
.tech-svc-preview-thumb {
    background-size: cover;
    background-position: center;
    min-height: 160px;
}
.tech-svc-preview-body {
    padding: 24px 26px;
}
.tech-svc-preview-num {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}
.tech-svc-preview-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--gold2);
    margin-bottom: 8px;
    font-weight: 400;
}
.tech-svc-preview-body p {
    font-size: 0.8rem;
    color: var(--ink3);
    line-height: 1.55;
}

/* Case study page */
.tech-cs-hero {
    padding-top: 32px;
    padding-bottom: 48px;
}
.tech-cs-hero-visual {
    aspect-ratio: 21/9;
    max-height: 520px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--rule);
    margin-bottom: 48px;
    position: relative;
}
.tech-cs-hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8, 9, 11, 0.7) 100%);
}
.tech-cs-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 48px;
}
.tech-cs-meta-item label {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 6px;
}
.tech-cs-meta-item span {
    font-size: 0.88rem;
    color: var(--ink2);
}
.tech-cs-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.tech-cs-block {
    padding: 32px 28px;
    border: 1px solid var(--rule);
    background: var(--glass);
}
.tech-cs-block h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.tech-cs-block p {
    font-size: 0.88rem;
    color: var(--ink2);
    line-height: 1.7;
}
.tech-cs-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

/* Portfolio filters */
.tech-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.tech-filter-btn {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--ink3);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}
.tech-filter-btn:hover,
.tech-filter-btn.active {
    border-color: var(--gold);
    color: var(--gold2);
    background: rgba(201, 169, 110, 0.08);
}

/* Stagger reveal children */
.tech-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tech-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.tech-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.tech-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.tech-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.tech-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.tech-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; opacity: 1; transform: none; }

/* Counter animation */
.tech-stat-value.is-counted {
    transition: color 0.3s;
}

/* Section spacing pro */
.tech-section-gap {
    margin-bottom: 96px;
}
.tech-section-gap:last-child {
    margin-bottom: 64px;
}

/* Fix bullets */
.tech-deliver-list li::before,
.tech-audience-needs li::before {
    content: '?';
    font-size: 0.45rem;
}

@media (max-width: 1024px) {
    .tech-case-spotlight,
    .tech-work-grid,
    .tech-cs-blocks,
    .tech-svc-preview {
        grid-template-columns: 1fr;
    }
    .tech-work-card,
    .tech-work-card:first-child {
        grid-column: span 1;
    }
    .tech-case-spotlight-visual {
        min-height: 280px;
    }
    .tech-case-spotlight-visual::after {
        background: linear-gradient(180deg, transparent 20%, rgba(8, 9, 11, 0.92) 100%);
    }
    .tech-svc-preview-card {
        grid-template-columns: 1fr;
    }
    .tech-svc-preview-thumb {
        min-height: 140px;
    }
}

@media (max-width: 768px) {
    .tech-trust-bar { padding: 16px 24px; }
    .tech-quote-block { padding: 40px 28px; }
    .tech-cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
    .tech-case-spotlight-body { padding: 32px 24px; }
}
