/* ===================================================
   Proven Outcomes
   =================================================== */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.outcome-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 400ms ease-out, transform 250ms ease-out;
}

.outcome-card:hover { transform: translateY(-3px); }

.section--alt .outcome-card { background-color: var(--surface-2); }

.outcome-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(60, 110, 113, 0.15);
}

.outcome-card__number {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.outcome-card__label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.4;
}

.tech-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-bar__label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.tech-bar__count {
    color: var(--muted);
    font-weight: 400;
}

.tech-bar__track {
    height: 8px;
    background-color: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.tech-bar__fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent);
    border-radius: 4px;
    transition: width 1.1s ease;
}

/* ===================================================
   Featured Case Studies
   =================================================== */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-study-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.2s ease;
}

.case-study-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(60, 110, 113, 0.18);
    text-decoration: none;
}

.case-study-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.case-study-card__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.case-study-card__read {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    transition: transform 0.2s ease;
}

.case-study-card:hover { transform: translateY(-3px); }

.case-study-card:hover .case-study-card__read { transform: translateX(4px); }

/* ===================================================
   Stack grid — terminal-panel cards, one per category.
   Echoes the hero pipeline's dark-console language
   (mono labels, orange accent ticks) instead of a table.
   =================================================== */
.stack-grid {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stack-card {
    position: relative;
    background-color: var(--graphite);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background-color: var(--orange);
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.stack-card:hover {
    border-color: rgba(252, 163, 17, 0.4);
    transform: translateY(-2px);
}

.stack-card:hover::before { opacity: 1; }

.stack-card__title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.stack-card__title::before { content: '// '; color: var(--orange); }

.stack-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stack-card__list li {
    position: relative;
    padding-left: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--alabaster-grey);
    line-height: 1.4;
}

.stack-card__list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-family: var(--font-mono);
}

@media (max-width: 900px) {
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stack-grid { grid-template-columns: 1fr; }
}

/* legacy pill (kept for any remaining callers) */
.pill {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-dim);
}

/* ===================================================
   Section link (e.g. "See all articles →")
   =================================================== */
.section__link {
    display: inline-block;
    margin-top: 24px;
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

/* ===================================================
   Article Filter Bar
   =================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.filter-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.filter-pill.is-active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.article-card.is-hidden { display: none; }

.filter-bar--tags { margin-top: -16px; }

.filter-pill__count {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 2px;
}

.filter-pill--tag {
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ===================================================
   Tag chips & status badges (article cards)
   =================================================== */
.article-card__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag-chip {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.tag-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tag-chip.is-active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-badge--progress {
    background-color: var(--accent-dim);
    color: var(--accent);
}

.status-badge--planned {
    background-color: var(--surface);
    border: 1px dashed var(--border);
    color: var(--muted);
}

.article-card--planned {
    cursor: default;
    opacity: 0.85;
}

.article-card--planned:hover {
    border-color: var(--border);
    box-shadow: none;
}

/* ===================================================
   Article Cards
   =================================================== */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.article-card.reveal {
    transition: border-color 0.15s, box-shadow 0.15s, opacity 400ms ease-out, transform 400ms ease-out;
}

.section .article-card { background-color: var(--surface-2); }

.article-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(60, 110, 113, 0.18);
    text-decoration: none;
}

.article-card__tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}

.article-card__date {
    font-size: 12px;
    color: var(--muted);
}

.article-card__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.article-card__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.article-card__read {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 4px;
    transition: transform 0.2s ease;
}

a.article-card:hover { transform: translateY(-3px); }

a.article-card:hover .article-card__read { transform: translateX(4px); }

/* ===================================================
   Services
   =================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.section--alt .service-card { background-color: var(--surface-2); }

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(60, 110, 113, 0.18);
}

.service-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.service-card__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.service-card__link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 4px;
}

/* ===================================================
   Contact
   =================================================== */
.contact__intro {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 16px;
}

.contact__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.contact__link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 2px 12px rgba(60, 110, 113, 0.22);
    text-decoration: none;
}

.contact__icon {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--accent-dim);
    padding: 3px 6px;
    border-radius: 4px;
}

.contact__note {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 680px) {
    .article-grid,
    .case-study-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

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