.selected-projects,
.case-study-page {
    --proof-accent: #7f82ff;
    --proof-warm: #ff8d45;
    --proof-surface: #101218;
    --proof-surface-soft: #151820;
    --proof-border: rgba(255, 255, 255, 0.1);
    --proof-muted: #aeb5c5;
    background: #060708;
    color: #f7f8fc;
}

.selected-projects {
    padding: 120px 0;
}

.selected-projects__intro {
    max-width: 720px;
    margin-bottom: 46px;
}

.selected-projects__eyebrow,
.case-study-eyebrow,
.selected-projects__cta-label,
.project-card__count,
.case-study-section__label {
    margin: 0 0 14px;
    color: #949bff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.selected-projects__eyebrow::before,
.case-study-eyebrow::before,
.case-study-section__label::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 10px 1px 0;
    border-radius: 50%;
    background: var(--proof-accent);
    box-shadow: 0 0 0 5px rgba(127, 130, 255, 0.1);
}

.selected-projects__intro h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.selected-projects__intro > p:last-child {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--proof-muted);
    font-size: 17px;
    line-height: 1.75;
}

.project-carousel__viewport {
    border-radius: 24px;
    outline: none;
    touch-action: pan-y;
}

.project-carousel__viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(127, 130, 255, 0.48);
}

.project-carousel__slide[hidden] {
    display: none;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
    min-height: 510px;
    padding: clamp(26px, 4vw, 54px);
    border: 1px solid var(--proof-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(127, 130, 255, 0.1), transparent 32%),
        linear-gradient(145deg, #11131a, #0c0e13);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.project-media-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    background: #090a0d;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.project-media-frame__bar {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 35px;
    padding: 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #171920;
}

.project-media-frame__bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.project-media-frame__bar span:first-child {
    background: rgba(255, 141, 69, 0.55);
}

.project-media-frame__bar span:nth-child(2) {
    background: rgba(255, 202, 99, 0.45);
}

.project-media-frame__bar span:nth-child(3) {
    background: rgba(127, 130, 255, 0.5);
}

.project-media-frame__content {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(127, 130, 255, 0.12), transparent 32%),
        #0d0f14;
    background-size: 32px 32px, 32px 32px, auto, auto;
}

.project-media-frame__content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-media-frame__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: center;
    justify-content: center;
    color: #7f8799;
    text-align: center;
}

.project-media-frame__placeholder span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card__content {
    max-width: 520px;
}

.project-card__service {
    display: inline-flex;
    margin: 0 0 20px;
    padding: 8px 12px;
    border: 1px solid rgba(127, 130, 255, 0.24);
    border-radius: 999px;
    background: rgba(127, 130, 255, 0.09);
    color: #c8caff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.project-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.project-card__copy {
    margin: 22px 0 0;
    color: #c2c7d3;
    font-size: 16px;
    line-height: 1.78;
}

.project-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.project-link,
.project-cta-button,
.case-study-button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #f7f8fc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible,
.project-cta-button:hover,
.project-cta-button:focus-visible,
.case-study-button:hover,
.case-study-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    transform: translateY(-1px);
}

.project-link:focus-visible,
.project-cta-button:focus-visible,
.case-study-button:focus-visible,
.project-carousel__arrow:focus-visible,
.project-carousel__dot:focus-visible {
    outline: 3px solid rgba(127, 130, 255, 0.55);
    outline-offset: 3px;
}

.project-link--primary,
.project-cta-button,
.case-study-button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #ef8552, #676cf5);
    color: #ffffff;
}

.project-link--primary:hover,
.project-link--primary:focus-visible,
.project-cta-button:hover,
.project-cta-button:focus-visible,
.case-study-button--primary:hover,
.case-study-button--primary:focus-visible {
    border-color: transparent;
    background: linear-gradient(135deg, #fa915d, #777cfb);
}

.project-carousel__controls {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.project-carousel__controls[hidden] {
    display: none;
}

.project-carousel__arrows {
    display: flex;
    gap: 10px;
}

.project-carousel__arrow {
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--proof-border);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #11131a;
    color: #ffffff;
    cursor: pointer;
}

.project-carousel__arrow:hover {
    border-color: rgba(127, 130, 255, 0.5);
    background: #171a24;
}

.project-carousel__dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.project-carousel__dot {
    display: inline-flex;
    width: 30px;
    height: 38px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
}

.project-carousel__dot span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #4c5261;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.project-carousel__dot.is-active span {
    width: 22px;
    background: var(--proof-accent);
}

.selected-projects__cta {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    margin-top: 64px;
    padding: 34px 38px;
    border: 1px solid var(--proof-border);
    border-radius: 20px;
    background:
        linear-gradient(110deg, rgba(127, 130, 255, 0.12), rgba(255, 141, 69, 0.07)),
        #11131a;
}

.selected-projects__cta-label {
    margin-bottom: 8px;
}

.selected-projects__cta h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.project-cta-button {
    flex: 0 0 auto;
    min-height: 50px;
    padding-right: 20px;
    padding-left: 20px;
}

.case-study-page {
    overflow: hidden;
}

.case-study-hero {
    position: relative;
    padding: 192px 0 92px;
    border-bottom: 1px solid var(--proof-border);
    background:
        radial-gradient(circle at 78% 26%, rgba(127, 130, 255, 0.17), transparent 30%),
        radial-gradient(circle at 15% 82%, rgba(255, 141, 69, 0.09), transparent 27%),
        #08090c;
}

.case-study-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 130, 255, 0.55), transparent);
}

.case-study-hero__inner {
    max-width: 980px;
}

.case-study-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.case-study-hero__intro {
    max-width: 820px;
    margin: 30px 0 0;
    color: #c5cad6;
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.7;
}

.case-study-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.case-study-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.case-study-hero__meta span {
    padding: 8px 12px;
    border: 1px solid var(--proof-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #c3c8d4;
    font-size: 12px;
    font-weight: 700;
}

.case-study-content {
    padding: 108px 0;
    background: #060708;
}

.case-study-section {
    display: grid;
    grid-template-columns: minmax(190px, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(40px, 8vw, 110px);
    max-width: 1050px;
    padding: 64px 0;
    border-bottom: 1px solid var(--proof-border);
}

.case-study-section:first-child {
    padding-top: 0;
}

.case-study-section:last-child {
    border-bottom: 0;
}

.case-study-section h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.case-study-section__body p {
    margin: 0;
    color: #c4c9d5;
    font-size: 17px;
    line-height: 1.85;
}

@media (min-width: 992px) {
    .case-study-section__body {
        padding-top: 38px;
    }
}

.case-study-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-study-list li {
    position: relative;
    padding: 17px 20px 17px 48px;
    border: 1px solid var(--proof-border);
    border-radius: 13px;
    background: var(--proof-surface);
    color: #e5e7ed;
    font-size: 16px;
    line-height: 1.55;
}

.case-study-list li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 20px;
    width: 14px;
    height: 8px;
    border-bottom: 2px solid #9295ff;
    border-left: 2px solid #9295ff;
    transform: rotate(-45deg);
}

.case-study-outcome {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(127, 130, 255, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(127, 130, 255, 0.16), transparent 40%),
        var(--proof-surface);
}

.case-study-outcome p {
    color: #f0f1f6;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.62;
}

.case-study-gallery {
    padding: 100px 0 116px;
    border-top: 1px solid var(--proof-border);
    background: #0a0b0e;
}

.case-study-gallery__intro {
    max-width: 700px;
    margin-bottom: 42px;
}

.case-study-gallery__intro h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.case-study-gallery__intro p {
    margin: 18px 0 0;
    color: var(--proof-muted);
    font-size: 16px;
    line-height: 1.75;
}

.case-study-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.case-study-gallery__item {
    margin: 0;
}

.case-study-gallery__item .project-media-frame__content {
    aspect-ratio: 16 / 10;
}

.case-study-gallery__item figcaption {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    color: #d8dbe4;
    font-size: 14px;
    font-weight: 700;
}

.case-study-gallery__item figcaption::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--proof-accent);
}

.case-study-bottom-cta {
    padding: 96px 0;
    background:
        linear-gradient(115deg, rgba(127, 130, 255, 0.14), rgba(255, 141, 69, 0.1)),
        #0d0f14;
}

.case-study-bottom-cta__inner {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
}

.case-study-bottom-cta h2 {
    max-width: 720px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.case-study-bottom-cta p {
    max-width: 650px;
    margin: 18px 0 0;
    color: #bfc4d0;
    font-size: 17px;
    line-height: 1.7;
}

.case-study-button {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 13px 21px;
}

.case-study-contact {
    padding: 116px 0;
    border-top: 1px solid var(--proof-border);
    background:
        radial-gradient(circle at 12% 20%, rgba(127, 130, 255, 0.11), transparent 30%),
        #060708;
}

.case-study-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: start;
}

.case-study-contact__intro {
    max-width: 540px;
    padding-top: 18px;
}

.case-study-contact__intro h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.case-study-contact__intro > p:not(.case-study-section__label) {
    margin: 24px 0 0;
    color: #bdc3d0;
    font-size: 17px;
    line-height: 1.78;
}

.case-study-contact__details {
    display: grid;
    gap: 10px;
    margin-top: 38px;
}

.case-study-contact__details > * {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
    padding: 17px 19px;
    border: 1px solid var(--proof-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: #ffffff;
    text-decoration: none;
}

.case-study-contact__details a {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.case-study-contact__details a:hover,
.case-study-contact__details a:focus-visible {
    border-color: rgba(127, 130, 255, 0.5);
    background: rgba(127, 130, 255, 0.07);
    color: #ffffff;
}

.case-study-contact__details a:focus-visible {
    outline: 3px solid rgba(127, 130, 255, 0.5);
    outline-offset: 3px;
}

.case-study-contact__details span {
    color: #8f97aa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.case-study-contact__details strong {
    color: #eef0f6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.case-study-contact__form-shell {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--proof-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(127, 130, 255, 0.1), transparent 34%),
        #101218;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.case-study-contact__form-shell h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.case-study-contact__form-shell > p {
    max-width: 620px;
    margin: 13px 0 30px;
    color: #aeb5c5;
    font-size: 14px;
    line-height: 1.7;
}

.case-study-contact__honeypot {
    position: absolute;
    left: -9999px;
}

.case-study-contact__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.case-study-contact__field {
    min-width: 0;
}

.case-study-contact__field--full {
    grid-column: 1 / -1;
}

.case-study-contact__field label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7ed;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.case-study-contact__field label span {
    color: #8991a2;
    font-weight: 600;
}

.case-study-contact__field input,
.case-study-contact__field textarea {
    display: block;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    outline: none;
    background: #0b0d12;
    box-shadow: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.case-study-contact__field textarea {
    min-height: 148px;
    resize: vertical;
}

.case-study-contact__field input:focus,
.case-study-contact__field textarea:focus {
    border-color: rgba(127, 130, 255, 0.75);
    background: #0d0f15;
    box-shadow: 0 0 0 4px rgba(127, 130, 255, 0.12);
}

.case-study-contact__field textarea::placeholder {
    color: #6f7788;
}

.case-study-contact__form-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 26px;
}

.case-study-contact__submit {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 21px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef8552, #676cf5);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.case-study-contact__submit:hover,
.case-study-contact__submit:focus-visible {
    background: linear-gradient(135deg, #fa915d, #777cfb);
    color: #ffffff;
    transform: translateY(-1px);
}

.case-study-contact__submit:focus-visible {
    outline: 3px solid rgba(127, 130, 255, 0.55);
    outline-offset: 3px;
}

.case-study-contact__submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.case-study-contact__form-footer p {
    margin: 0;
    color: #8991a2;
    font-size: 12px;
    line-height: 1.45;
}

.case-study-contact__status {
    min-height: 20px;
    margin-top: 14px;
    color: #9c9c9c;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .selected-projects {
        padding: 92px 0;
    }

    .project-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .project-card__content {
        max-width: none;
    }

    .case-study-section {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .case-study-bottom-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .case-study-contact__grid {
        grid-template-columns: 1fr;
    }

    .case-study-contact__intro {
        max-width: 680px;
        padding-top: 0;
    }

    .case-study-contact__details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .selected-projects {
        padding: 74px 0;
    }

    .selected-projects__intro {
        margin-bottom: 30px;
    }

    .project-card {
        gap: 28px;
        padding: 18px;
        border-radius: 18px;
    }

    .project-media-frame {
        border-radius: 11px;
    }

    .project-media-frame__bar {
        height: 29px;
    }

    .project-card__copy {
        font-size: 15px;
        line-height: 1.7;
    }

    .project-card__links {
        align-items: stretch;
        flex-direction: column;
    }

    .project-link {
        width: 100%;
    }

    .project-carousel__controls {
        flex-direction: row-reverse;
    }

    .selected-projects__cta {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 46px;
        padding: 28px 24px;
    }

    .project-cta-button {
        width: 100%;
    }

    .case-study-hero {
        padding: 176px 0 70px;
    }

    .case-study-content {
        padding: 76px 0;
    }

    .case-study-section {
        padding: 48px 0;
    }

    .case-study-section__body p {
        font-size: 16px;
        line-height: 1.75;
    }

    .case-study-gallery {
        padding: 74px 0 84px;
    }

    .case-study-gallery__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-study-bottom-cta {
        padding: 74px 0;
    }

    .case-study-button {
        width: 100%;
    }

    .case-study-hero__actions .case-study-button {
        width: auto;
    }

    .case-study-contact {
        padding: 78px 0;
    }

    .case-study-contact__details,
    .case-study-contact__fields {
        grid-template-columns: 1fr;
    }

    .case-study-contact__field--full {
        grid-column: auto;
    }

    .case-study-contact__form-shell {
        padding: 25px 20px;
        border-radius: 17px;
    }

    .case-study-contact__form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .case-study-contact__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-link,
    .project-cta-button,
    .case-study-button,
    .case-study-contact__details a,
    .case-study-contact__field input,
    .case-study-contact__field textarea,
    .case-study-contact__submit,
    .project-carousel__dot span {
        transition: none;
    }
}
