/* Website design overview
   Extends the specialist-page system with a platform decision map. */

.overview-page {
    --platform-accent: #8b5cf6;
    --platform-accent-rgb: 139, 92, 246;
    --platform-soft: #e7ddff;
    background:
        radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.09), transparent 28rem),
        #000;
}

.overview-page .site-footer {
    margin-top: 0;
}

.overview-hero .platform-title {
    max-width: 16ch;
}

/* Platform decision artifact */
.foundation-map {
    transform: rotate(0.65deg);
}

.foundation-map-body {
    min-height: 26rem;
    padding: 1.15rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

.foundation-question {
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.12), transparent 70%),
        #0c0b10;
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 0.8rem;
}

.foundation-question small,
.foundation-question strong {
    display: block;
}

.foundation-question small {
    margin-bottom: 0.4rem;
    color: var(--platform-accent);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.foundation-question strong {
    max-width: 29ch;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.foundation-paths {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.foundation-path {
    --path-accent: #8b5cf6;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.78rem 0.85rem;
    background: rgba(8, 8, 10, 0.94);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.7rem;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.foundation-path:hover {
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    border-color: var(--path-accent);
}

.foundation-path.is-wordpress {
    --path-accent: #5fc9f3;
}

.foundation-path.is-shopify {
    --path-accent: #95bf47;
}

.foundation-path.is-custom {
    --path-accent: #a78bfa;
}

.foundation-path-index {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.025);
    color: var(--path-accent);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-color: color-mix(in srgb, var(--path-accent) 35%, transparent);
    border-radius: 50%;
    font-size: 0.58rem;
    font-weight: 700;
}

.foundation-path > span:nth-child(2) {
    min-width: 0;
}

.foundation-path small,
.foundation-path strong,
.foundation-path em {
    display: block;
}

.foundation-path small {
    margin-bottom: 0.1rem;
    color: var(--path-accent);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foundation-path strong {
    color: #fff;
    font-size: 0.82rem;
}

.foundation-path em {
    margin-top: 0.15rem;
    overflow: hidden;
    color: #72747d;
    font-size: 0.64rem;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.foundation-path b {
    color: var(--path-accent);
    font-size: 0.8rem;
}

.foundation-rule {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    margin-top: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foundation-rule span {
    color: var(--platform-accent);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foundation-rule strong {
    color: #a5a6ad;
    font-size: 0.68rem;
    font-weight: 550;
    line-height: 1.45;
}

.overview-brief-chip {
    position: absolute;
    right: -2rem;
    bottom: -5.3rem;
    width: 15rem;
    padding: 1rem;
    background: #111015;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 0.9rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.48);
}

.overview-brief-chip small,
.overview-brief-chip strong {
    display: block;
}

.overview-brief-chip small {
    margin-bottom: 0.35rem;
    color: var(--platform-accent);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-brief-chip strong {
    color: #fff;
    font-size: 0.76rem;
    line-height: 1.4;
}

/* Platform pathways */
.overview-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.overview-platform-card {
    --card-accent: #8b5cf6;
    display: flex;
    min-height: 22rem;
    padding: clamp(1.45rem, 2.4vw, 1.9rem);
    flex-direction: column;
    background:
        linear-gradient(150deg, rgba(139, 92, 246, 0.1), transparent 58%),
        #080809;
    color: #fff;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 1rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.overview-platform-card.is-wordpress {
    --card-accent: #5fc9f3;
    background:
        linear-gradient(150deg, rgba(95, 201, 243, 0.1), transparent 58%),
        #080809;
    border-color: rgba(95, 201, 243, 0.28);
}

.overview-platform-card.is-shopify {
    --card-accent: #95bf47;
    background:
        linear-gradient(150deg, rgba(149, 191, 71, 0.1), transparent 58%),
        #080809;
    border-color: rgba(149, 191, 71, 0.28);
}

.overview-platform-card.is-custom {
    --card-accent: #a78bfa;
    background:
        linear-gradient(150deg, rgba(167, 139, 250, 0.1), transparent 58%),
        #080809;
    border-color: rgba(167, 139, 250, 0.28);
}

.overview-platform-card:hover {
    color: #fff;
    border-color: var(--card-accent);
    transform: translateY(-2px);
}

.overview-platform-index {
    display: block;
    margin-bottom: 2.1rem;
    color: var(--card-accent);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.overview-platform-card > div small {
    display: block;
    margin-bottom: 0.45rem;
    color: #92949d;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-platform-card h3 {
    max-width: 15ch;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: clamp(1.4rem, 1.9vw, 1.75rem);
    letter-spacing: -0.035em;
}

.overview-platform-card p {
    margin: 0;
    color: #858791;
    font-size: 0.9rem;
    line-height: 1.65;
}

.overview-platform-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1.15rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-platform-card li {
    position: relative;
    padding-left: 1rem;
    color: #a8a9b0;
    font-size: 0.74rem;
    line-height: 1.45;
}

.overview-platform-card li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 0.35rem;
    height: 0.35rem;
    background: var(--card-accent);
    border-radius: 50%;
}

.overview-platform-card > strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    color: #dedfe3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.overview-platform-card > strong span {
    color: var(--card-accent);
    font-size: 0.9rem;
}

/* Selected work */
.overview-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.overview-work-card {
    overflow: hidden;
    background: #080809;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.overview-work-card:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.48);
    transform: translateY(-2px);
}

.overview-work-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0d0d10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.overview-work-card:hover .overview-work-image img {
    transform: scale(1.025);
}

.overview-work-content {
    display: flex;
    min-height: 10rem;
    padding: 1.35rem;
    flex-direction: column;
}

.overview-work-content small {
    margin-bottom: 0.7rem;
    color: var(--platform-accent);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-work-content > strong {
    max-width: 20ch;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.35;
}

.overview-work-content em {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    color: #a6a7ae;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.overview-work-content em span {
    color: var(--platform-accent);
}

@media (max-width: 1100px) {
    .overview-brief-chip {
        right: -0.8rem;
    }

    .overview-platform-card {
        min-height: 22rem;
    }
}

@media (min-width: 901px) {
    .overview-hero .platform-title {
        font-size: clamp(3rem, 4.4vw, 4.25rem);
    }
}

@media (max-width: 900px) {
    .overview-platform-grid {
        grid-template-columns: 1fr;
    }

    .overview-platform-card {
        min-height: 0;
    }

    .overview-platform-index {
        margin-bottom: 2rem;
    }

}

@media (max-width: 700px) {
    .overview-hero .platform-title {
        max-width: 16ch;
    }

    .foundation-map {
        transform: none;
    }

    .foundation-map-body {
        min-height: 0;
        padding: 0.8rem;
    }

    .foundation-question {
        padding: 0.85rem;
    }

    .foundation-path {
        grid-template-columns: 2rem minmax(0, 1fr) auto;
        gap: 0.65rem;
        padding: 0.72rem;
    }

    .foundation-path em {
        white-space: normal;
    }

    .foundation-rule {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .overview-brief-chip {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 1rem);
        margin: -1.2rem auto 0;
        border-radius: 0.75rem;
    }

    .overview-work-grid {
        grid-template-columns: 1fr;
    }

    .overview-work-content {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .foundation-path-index {
        width: 1.8rem;
        height: 1.8rem;
    }

    .foundation-path em {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .foundation-map {
        transform: none;
    }
}
