/* =============================================================================
   Edge Block — "Why Work With Me"
   3-column scannable row. Matches existing block design system exactly
   (same tokens as capabilities-block.css: #050505, rgba(), Syne, Inter, etc.)
   ============================================================================= */

.edge-block {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #050505;
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 48rem) {
    .edge-block {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Full-width hairline dividers */
.edge-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Container — mirrors capabilities-container */
.edge-container {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Section Label — centered eyebrow with lines either side
   -------------------------------------------------------------------------- */
.edge-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.edge-label__line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    max-width: 10rem;
}

.edge-label__text {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6875rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3-column Grid
   -------------------------------------------------------------------------- */
.edge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 48rem) {
    .edge-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 64rem) {
    .edge-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* --------------------------------------------------------------------------
   Card — mirrors capabilities-card pattern
   -------------------------------------------------------------------------- */
.edge-card {
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: background-color 0.5s ease, transform 0.3s ease;

    /* Entry animation — starts hidden, JS adds .is-visible */
    opacity: 0;
    transform: translateY(20px);
}

/* Added by IntersectionObserver in footer.js when card enters viewport */
.edge-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease var(--card-delay, 0s),
        transform 0.5s ease var(--card-delay, 0s),
        background-color 0.5s ease;
}

.edge-card:hover {
    background-color: rgba(255, 78, 0, 0.08);
    transform: translateY(-4px);
}

/* Ghost number badge — top-right */
.edge-card__num {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.10);
    letter-spacing: 0.1em;
}

/* Icon wrapper box */
.edge-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 78, 0, 0.08);
    border: 1px solid rgba(255, 78, 0, 0.20);
    border-radius: 0.75rem;
    color: #FF4E00;
    margin-bottom: 1.5rem;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.edge-card:hover .edge-card__icon {
    background: rgba(255, 78, 0, 0.15);
    border-color: rgba(255, 78, 0, 0.40);
}

.edge-card__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* Title — mirrors capabilities-card__title */
.edge-card__title {
    font-family: "Syne", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    line-height: 1.2;
}

/* Description — mirrors capabilities-card__desc */
.edge-card__desc {
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.75;
    margin: 0;
    transition: color 0.5s ease;
}

.edge-card:hover .edge-card__desc {
    color: rgba(255, 255, 255, 0.80);
}

/* Bottom accent line that draws in on hover */
.edge-card__line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF4E00;
    transition: width 0.4s ease;
}

.edge-card:hover .edge-card__line {
    width: 100%;
}