/* Homepage redesign: a clearer conversion path over the shared DS system. */

.home-hero {
    min-height: max(780px, calc(100svh - 64px));
    padding-top: 148px;
    padding-bottom: 86px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.home-hero .hero-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-eyebrow {
    width: fit-content;
    position: relative;
    margin-bottom: 23px;
    padding: 0 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dedede;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
}

.hero-eyebrow::before {
    width: 100%;
    background: rgba(255, 255, 255, .16);
}

.hero-eyebrow::after {
    width: 34px;
    background: var(--signal-orange);
    box-shadow: 0 0 12px rgba(255, 106, 0, .5);
}

.signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .14);
}

.home-proof-strip {
    position: relative;
    z-index: 3;
    width: min(1320px, 88%);
    margin: -38px auto 0;
    padding: 22px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(11, 11, 11, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

.home-proof-strip > div {
    min-height: 56px;
    padding: 2px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 13px;
    align-content: center;
}

.home-proof-strip > div + div {
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.proof-number {
    grid-row: 1 / -1;
    align-self: center;
    color: var(--signal-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.home-proof-strip strong {
    color: var(--clear-white);
    font-size: 13px;
}

.home-proof-strip small {
    margin-top: 4px;
    color: var(--muted-grey);
    font-size: 12px;
    line-height: 1.4;
}

.section-heading {
    max-width: 1320px;
    margin: 0 auto 62px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
    align-items: end;
    gap: 50px;
}

.section-heading .tag {
    margin-bottom: 16px;
}

.section-heading h2 {
    max-width: 760px;
    margin: 0;
    text-align: left;
}

.section-heading > p {
    max-width: 460px;
    margin: 0 0 3px auto;
    color: var(--muted-grey);
    font-size: 16px;
    line-height: 1.7;
}

.home-services {
    padding-top: 118px;
    background: linear-gradient(180deg, var(--carbon-black), #0a0807 52%, var(--carbon-black));
}

.home-services .service-showcases {
    max-width: 1320px;
    margin-top: 8px;
    border: 0;
    display: grid;
    gap: 24px;
}

.home-services .service-showcase {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 0;
    background: #141414;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.home-services .service-showcase-website {
    border-color: rgba(255, 129, 45, .36);
}

.home-services .service-showcase-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(42px, 5vw, 76px) clamp(34px, 5vw, 68px);
    background: #141414;
}

.home-services .service-showcase-website .service-showcase-copy::before {
    content: "";
    width: 48px;
    height: 3px;
    flex: 0 0 auto;
    margin-bottom: 28px;
    background: var(--signal-orange);
}

.home-services .service-showcase-copy h3 {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: clamp(38px, 4vw, 62px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.home-services .service-showcase-copy > p:not(.service-managed-note) {
    max-width: 560px;
    color: #c6c6c6;
    font-size: 16px;
    line-height: 1.7;
}

.home-services .service-showcase-copy ul {
    width: 100%;
    max-width: 560px;
    gap: 13px;
    margin: 28px 0 34px;
}

.home-services .service-showcase-copy li {
    align-items: flex-start;
    gap: 12px;
    color: #f2f2f2;
    font-size: 15px;
    line-height: 1.45;
}

.home-services .service-showcase-copy li svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 2px;
}

.home-services .service-showcase-copy .btn {
    margin-top: auto;
}

.home-services .service-showcase-image {
    min-height: 0;
    align-self: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--raised-black);
    box-shadow: none;
}

.home-services .service-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(.92) contrast(1.04);
}

.service-managed-note {
    max-width: 540px;
    margin: 22px 0 26px;
    padding: 14px 16px;
    border-left: 2px solid var(--signal-orange);
    color: var(--muted-grey);
    background: rgba(255, 106, 0, .06);
    font-size: 13px;
    line-height: 1.55;
}

.service-managed-note strong {
    color: var(--clear-white);
}

.home-process {
    padding-top: 122px;
    background: #090807;
}

.process-list {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
    counter-reset: process;
}

.process-list li {
    min-height: 210px;
    padding: 28px;
    display: flex;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.process-step {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 129, 45, .5);
    border-radius: 50%;
    color: #ffd0ae;
    font-size: 12px;
    font-weight: 800;
}

.process-list h3 {
    margin: 0 0 12px;
    color: var(--clear-white);
    font-size: 18px;
}

.process-list p {
    margin: 0;
    color: var(--muted-grey);
    font-size: 14px;
    line-height: 1.65;
}

.home-services .service-showcase-reverse .service-showcase-copy {
    order: 2;
    background: #111;
}

.home-services .service-showcase-reverse .service-showcase-image {
    order: 1;
}

.home-services .service-showcase-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.home-work {
    padding-top: 122px;
    background: radial-gradient(circle at 18% 20%, rgba(255, 106, 0, .09), transparent 30%), var(--carbon-black);
}

.home-work .portfolio-grid {
    max-width: 1320px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
}

.home-work .portfolio-card {
    width: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
}

.home-work .portfolio-card-featured {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.home-work .portfolio-card:nth-child(even) .portfolio-image {
    order: 2;
}

.home-work .portfolio-image img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.home-work .portfolio-content {
    padding: clamp(28px, 4vw, 48px);
}

.home-work .portfolio-content p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.home-testimonials {
    padding-top: 122px;
    background: #090807;
}

.home-testimonials .testimonial-grid {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.home-testimonials .testimonial-card {
    position: relative;
    padding: clamp(30px, 5vw, 58px);
    border-color: rgba(255, 106, 0, .28);
    background: linear-gradient(145deg, rgba(255, 106, 0, .1), rgba(255, 255, 255, .025));
}

.home-testimonials .testimonial-card::before {
    content: '“';
    position: absolute;
    top: 18px;
    right: 34px;
    color: rgba(255, 129, 45, .3);
    font-size: 90px;
    line-height: 1;
    font-weight: 900;
}

.home-testimonials .testimonial-card p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.55;
}

.home-why {
    padding-top: 122px;
}

.home-why .why-grid {
    max-width: 1320px;
    gap: 12px;
}

.home-why .why-grid div {
    min-height: 236px;
    padding: 34px 26px;
    text-align: left;
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.home-why .why-grid span {
    width: 52px;
    height: 52px;
    margin: 0 0 30px;
    border-radius: 14px;
    font-size: 24px;
    box-shadow: 0 12px 30px rgba(255, 106, 0, .17);
}

.home-why .why-grid p {
    margin: 0;
    max-width: 240px;
}

.home-contact {
    margin-top: 30px;
    margin-bottom: 118px;
    padding: clamp(34px, 6vw, 72px);
    border-radius: 24px;
    background: radial-gradient(circle at 88% 12%, rgba(255, 106, 0, .28), transparent 34%), linear-gradient(135deg, #17110d, #0d0c0b 65%);
}

.home-contact h2 {
    max-width: 650px;
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: -.04em;
}

.footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .home-hero {
        min-height: min(740px, 100svh);
        padding-top: 120px;
    }

    .home-proof-strip {
        width: 88%;
        margin-top: -24px;
        padding: 10px 0;
    }

    .home-proof-strip > div {
        padding: 14px 18px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 42px;
    }

    .section-heading > p {
        margin-left: 0;
    }

    .home-services .service-showcase,
    .home-work .portfolio-card,
    .home-work .portfolio-card-featured {
        grid-template-columns: 1fr;
    }

    .home-services .service-showcase-image {
        min-height: 0;
    }

    .home-services .service-showcase-reverse .service-showcase-copy,
    .home-services .service-showcase-reverse .service-showcase-image {
        order: initial;
    }

    /* Keep the NFC product visual first when its desktop image column stacks. */
    .home-services .service-showcase-reverse .service-showcase-image {
        order: -1;
    }

    .home-work .portfolio-card:nth-child(even) .portfolio-image {
        order: initial;
    }

    .home-why .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-hero {
        min-height: min(760px, 100svh);
        padding-top: 106px;
    }

    .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .home-proof-strip {
        grid-template-columns: 1fr;
        margin-top: -12px;
        padding: 10px 16px;
    }

    .home-proof-strip > div {
        min-height: 0;
        padding: 13px 0;
    }

    .home-proof-strip > div + div {
        border-top: 1px solid rgba(255, 255, 255, .1);
        border-left: 0;
    }

    .home-services,
    .home-work,
    .home-testimonials,
    .home-why,
    .home-process {
        padding-top: 86px;
    }

    .home-services .service-showcase-copy {
        display: block;
        padding: 30px 23px;
    }

    .home-services .service-showcase-website .service-showcase-copy::before {
        margin-bottom: 22px;
    }

    .home-services .service-showcase-image {
        min-height: 0;
    }

    .home-why .why-grid {
        grid-template-columns: 1fr;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .process-list li {
        min-height: 0;
        padding: 24px 20px;
    }

    .home-contact {
        margin-right: 14px;
        margin-bottom: 74px;
        margin-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-services .service-showcase-image img,
    .home-work .portfolio-card,
    .home-why .why-grid div {
        transition: none;
    }
}

/* The homepage hero uses a bespoke image with intentional negative space for copy. */
.home-hero {
    background:
        linear-gradient(90deg, #030303 0%, #030303 42%, rgba(3, 3, 3, .98) 57%, rgba(3, 3, 3, .72) 78%, rgba(3, 3, 3, .3) 100%),
        url('/images/hero-business-v2.png') 72% center / cover no-repeat;
}

@media (max-width: 900px) {
    .home-hero {
        background:
            linear-gradient(90deg, rgba(3, 3, 3, .98) 0%, rgba(3, 3, 3, .94) 54%, rgba(3, 3, 3, .72) 100%),
            url('/images/hero-business-v2.png') 74% center / cover no-repeat;
    }
}

@media (max-width: 600px) {
    .home-hero {
        background:
            linear-gradient(180deg, rgba(3, 3, 3, .99) 0%, rgba(3, 3, 3, .96) 62%, rgba(3, 3, 3, .76) 100%),
            url('/images/hero-business-v2.png') 76% center / cover no-repeat;
    }
}
