/* Distantec projects prototype — static, responsive, no continuous motion. */
.projects-container {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

.project-main {
    flex: 1;
    padding-top: 80px;
}

.projects-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #60a5fa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.projects-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.projects-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 96px 0 88px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.projects-hero::before,
.project-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .22), transparent 34%),
        radial-gradient(circle at 84% 34%, rgba(14, 165, 233, .12), transparent 30%),
        linear-gradient(rgba(96, 165, 250, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, .05) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.projects-hero::after,
.project-detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 8% -240px auto;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    pointer-events: none;
    background: radial-gradient(circle, rgba(59, 130, 246, .13), transparent 64%);
}

.projects-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
    gap: 72px;
    align-items: end;
}

.projects-hero h1,
.project-detail-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.projects-hero h1 span {
    color: #60a5fa;
}

.projects-hero > .projects-container > div:first-child > p,
.projects-hero-grid > div:first-child > p {
    max-width: 760px;
    margin: 28px 0 0;
    color: #a8b3c7;
    font-size: 19px;
    line-height: 1.75;
}

.projects-hero-note {
    padding: 26px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 20px;
    background: rgba(15, 23, 42, .68);
    box-shadow: 0 22px 60px rgba(2, 6, 23, .24);
}

.projects-hero-note strong {
    display: block;
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 16px;
}

.projects-hero-note p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

.projects-catalog,
.other-projects {
    padding: 80px 0;
}

.projects-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.projects-section-head h2,
.projects-principles h2,
.projects-cta h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.projects-section-head > p {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.projects-section-head > a {
    color: #93c5fd;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.projects-section-head > a:hover {
    color: #bfdbfe;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    --accent: 96, 165, 250;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 470px;
    flex-direction: column;
    overflow: hidden;
    padding: 30px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--accent), .13), transparent 38%),
        rgba(21, 31, 51, .70);
    box-shadow: 0 20px 60px rgba(2, 6, 23, .18);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.project-card--violet { --accent: 167, 139, 250; }
.project-card--teal { --accent: 45, 212, 191; }

.project-card:hover,
.project-card:focus-visible {
    border-color: rgba(var(--accent), .38);
    background-color: rgba(27, 39, 62, .78);
    box-shadow: 0 24px 72px rgba(2, 6, 23, .28), 0 0 0 1px rgba(var(--accent), .08);
}

.project-card:focus-visible {
    outline: 2px solid rgba(var(--accent), .85);
    outline-offset: 4px;
}

.project-card-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid rgba(var(--accent), .25);
    border-radius: 16px;
    color: rgb(var(--accent));
    background: rgba(var(--accent), .09);
}

.project-icon-svg {
    width: 27px;
    height: 27px;
}

.project-card-category {
    display: block;
    margin-bottom: 10px;
    color: rgb(var(--accent));
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.project-card h2 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1.28;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.project-card-summary {
    margin: 0 0 28px;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
}

.project-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.project-card-metrics > span {
    min-width: 0;
}

.project-card-metrics strong {
    display: block;
    color: #f8fafc;
    font-size: 27px;
    line-height: 1;
}

.project-card-metrics small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.project-card-link span {
    color: rgb(var(--accent));
    font-size: 20px;
}

.projects-principles {
    padding: 0 0 80px;
}

.projects-principles-shell {
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 26px;
    background: rgba(15, 23, 42, .54);
}

.projects-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin-top: 40px;
}

.projects-principles-grid article {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.projects-principles-grid article > span {
    color: #60a5fa;
    font-size: 12px;
    font-weight: 800;
}

.projects-principles-grid h3 {
    margin: 14px 0 10px;
    color: #e2e8f0;
    font-size: 18px;
}

.projects-principles-grid p {
    margin: 0;
    color: #7f8da3;
    font-size: 14px;
    line-height: 1.65;
}

.projects-cta {
    padding: 0 0 80px;
}

.projects-cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border: 1px solid rgba(59, 130, 246, .18);
    border-radius: 26px;
    background:
        radial-gradient(circle at 86% 50%, rgba(37, 99, 235, .17), transparent 36%),
        rgba(21, 31, 51, .78);
}

.projects-cta p {
    max-width: 700px;
    margin: 16px 0 0;
    color: #94a3b8;
    line-height: 1.65;
}

.projects-cta-shell > a,
.project-sidebar-cta a,
.projects-home-link {
    display: inline-flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 12px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .24);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.projects-cta-shell > a:hover,
.project-sidebar-cta a:hover,
.projects-home-link:hover {
    background: #1d4ed8;
}

.project-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 0 76px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.project-detail-hero--violet::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(124, 58, 237, .2), transparent 34%),
        radial-gradient(circle at 84% 34%, rgba(167, 139, 250, .12), transparent 30%),
        linear-gradient(rgba(167, 139, 250, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, .045) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.project-detail-hero--teal::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(13, 148, 136, .19), transparent 34%),
        radial-gradient(circle at 84% 34%, rgba(45, 212, 191, .11), transparent 30%),
        linear-gradient(rgba(45, 212, 191, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, .045) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.project-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 54px;
    color: #64748b;
    font-size: 13px;
}

.project-breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
}

.project-breadcrumbs a:hover {
    color: #bfdbfe;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .65fr);
    gap: 72px;
    align-items: end;
}

.project-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-kicker-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 165, 250, .25);
    border-radius: 11px;
    background: rgba(59, 130, 246, .09);
}

.project-kicker-svg {
    width: 19px;
    height: 19px;
}

.project-detail-hero h1 {
    max-width: 920px;
    font-size: clamp(38px, 5vw, 66px);
}

.project-lead {
    max-width: 820px;
    margin: 26px 0 0;
    color: #a8b3c7;
    font-size: 19px;
    line-height: 1.75;
}

.project-facts {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
}

.project-facts div {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px;
    background: rgba(15, 23, 42, .9);
}

.project-facts strong {
    color: #f8fafc;
    font-size: 26px;
    overflow-wrap: anywhere;
}

.project-facts span {
    color: #7f8da3;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .55fr);
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 80px;
}

.project-story {
    display: grid;
    gap: 18px;
}

.project-story-section {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 24px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    background: rgba(21, 31, 51, .58);
}

.project-section-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(96, 165, 250, .2);
    border-radius: 13px;
    color: #60a5fa;
    background: rgba(59, 130, 246, .08);
    font-size: 12px;
    font-weight: 800;
}

.project-story-section h2 {
    margin: 4px 0 14px;
    color: #f8fafc;
    font-size: 26px;
    letter-spacing: -.02em;
}

.project-story-section p {
    margin: 0;
    color: #a1aec2;
    font-size: 16px;
    line-height: 1.8;
}

.project-work-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-work-list li {
    position: relative;
    padding-left: 28px;
    color: #a1aec2;
    line-height: 1.72;
}

.project-work-list li::before {
    content: "";
    position: absolute;
    top: .62em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59, 130, 246, .09);
}

.project-result-section {
    border-color: rgba(34, 197, 94, .16);
    background: linear-gradient(135deg, rgba(21, 31, 51, .68), rgba(20, 83, 45, .10));
}

.project-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.project-sidebar-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(15, 23, 42, .62);
}

.project-sidebar-label {
    display: block;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.project-sidebar-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-sidebar-card li {
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .035);
    font-size: 12px;
}

.project-sidebar-cta p {
    margin: 0 0 20px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

.project-sidebar-cta a {
    width: 100%;
}

.other-projects {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .018);
}

.projects-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Homepage integration. */
#cases a.case-project-card {
    color: inherit;
    text-decoration: none;
}

#cases a.case-project-card:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 4px;
}

.case-project-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
}

.projects-home-actions {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

@media (max-width: 1100px) {
    .projects-hero-grid,
    .project-detail-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .projects-hero-note {
        max-width: 620px;
    }

    .project-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-facts div {
        grid-template-columns: 1fr;
        gap: 8px;
        align-content: start;
    }

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

    .projects-grid .project-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        min-height: 400px;
    }
}

@media (max-width: 800px) {
    .projects-container {
        width: min(100% - 28px, 1280px);
    }

    .projects-hero,
    .project-detail-hero {
        padding: 64px 0;
    }

    .projects-hero-grid,
    .project-detail-grid {
        gap: 34px;
    }

    .projects-hero h1,
    .project-detail-hero h1 {
        font-size: clamp(36px, 10vw, 54px);
    }

    .projects-hero > .projects-container > div:first-child > p,
    .projects-hero-grid > div:first-child > p,
    .project-lead {
        font-size: 17px;
    }

    .projects-catalog,
    .other-projects {
        padding: 56px 0;
    }

    .projects-section-head {
        align-items: start;
    }

    .projects-grid,
    .projects-grid--related,
    .projects-principles-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:last-child:nth-child(odd) {
        grid-column: auto;
        min-height: 0;
    }

    .project-card {
        min-height: 0;
    }

    .projects-principles,
    .projects-cta {
        padding-bottom: 56px;
    }

    .projects-principles-shell,
    .projects-cta-shell {
        padding: 30px;
    }

    .projects-cta-shell {
        align-items: start;
        flex-direction: column;
    }

    .project-breadcrumbs {
        margin-bottom: 38px;
    }

    .project-facts {
        grid-template-columns: 1fr;
    }

    .project-facts div {
        grid-template-columns: minmax(92px, auto) 1fr;
        gap: 18px;
        align-items: center;
    }

    .project-story-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (max-width: 520px) {
    .project-main {
        padding-top: 80px;
    }

    .projects-hero,
    .project-detail-hero {
        padding: 48px 0;
    }

    .projects-hero h1,
    .project-detail-hero h1 {
        font-size: 36px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .projects-hero::after,
    .project-detail-hero::after {
        right: -180px;
        width: 360px;
        height: 360px;
    }

    .projects-hero-note,
    .project-card,
    .projects-principles-shell,
    .projects-cta-shell,
    .project-sidebar-card {
        padding: 24px;
        border-radius: 18px;
    }

    .projects-section-head {
        display: block;
        margin-bottom: 26px;
    }

    .projects-section-head > p,
    .projects-section-head > a {
        display: inline-block;
        margin-top: 14px;
    }

    .project-card h2 {
        font-size: 22px;
    }

    .project-card-metrics strong {
        font-size: 25px;
    }

    .projects-principles-grid {
        gap: 22px;
        margin-top: 30px;
    }

    .projects-cta-shell > a {
        width: 100%;
    }

    .project-detail-hero {
        padding-top: 38px;
    }

    .project-breadcrumbs {
        margin-bottom: 30px;
    }

    .project-kicker {
        align-items: flex-start;
        font-size: 11px;
    }

    .project-story-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px;
        border-radius: 18px;
    }

    .project-story-section h2 {
        margin-top: 0;
        font-size: 23px;
    }

    .project-story-section p,
    .project-work-list li {
        font-size: 15px;
    }
}
