/* ADU Projects -- Stats + Listicle */

/* Hero */
.ap-hero {
    background: #000;
    padding: 2rem 0 3rem;
    text-align: center;
    color: #fff;
}

.ap-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.ap-hero__number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: #F5A623;
    line-height: 1;
    margin: 0 0 0.25rem;
}

.ap-hero__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
}

.ap-hero__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* Stats Row */
.ap-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.ap-stat {
    text-align: center;
}

.ap-stat__number {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.ap-stat__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* Lists Container -- side by side on desktop */
.ap-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* List Group */
.ap-list-group__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #F5A623;
}

/* List */
.ap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.ap-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.ap-list__item:hover {
    background: #fafafa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.ap-list__item:last-child {
    border-bottom: none;
}

.ap-list__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ap-list__info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.ap-list__name {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.ap-list__location {
    font-size: 0.875rem;
    color: #888;
}

.ap-list__specs {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

/* ---- LINKED PROJECT ROWS (2026-08-26) ------------------------------------
   A row whose case study exists renders as an <a> instead of a <div>; rows
   without one are unchanged. Inherit color rather than taking the global link
   blue -- the row already reads as a row, the affordance is the hover state and
   the "See the build" cue. */
.ap-list__info--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ap-list__info--link:hover .ap-list__name {
    color: var(--bx-gold-deep, #E09510);
}

.ap-list__cta {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bx-gold-deep, #E09510);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateX(-4px);
}

.ap-list__info--link:hover .ap-list__cta,
.ap-list__info--link:focus-visible .ap-list__cta {
    opacity: 1;
    transform: none;
}

.ap-list__info--link:focus-visible {
    outline: 2px solid var(--bx-gold, #F5A623);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Touch devices have no hover, so the cue must always be visible there or the
   row looks identical to a non-linked one. */
@media (hover: none) {
    .ap-list__cta {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .ap-hero__number {
        font-size: 3.5rem;
    }
    .ap-hero__label {
        font-size: 1.2rem;
    }
    .ap-stats {
        gap: 1.5rem;
    }
    .ap-stat__number {
        font-size: 1.75rem;
    }
    .ap-lists {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
