/* Tesla-inspired homepage system: media first, restrained, and consistent. */
.home-hero-refresh {
    position: relative;
    height: min(680px, calc(100svh - 160px));
    min-height: 560px;
    overflow: hidden;
    background: #e9e9e7;
}

.home-hero-refresh__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-refresh .container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 58px clamp(24px, 8vw, 132px) 36px;
}

.home-hero-refresh__content {
    width: min(430px, 100%);
    color: #171717;
    text-align: left;
}

.home-hero-refresh__content h1 {
    max-width: 430px;
    margin: 0 0 14px;
    color: #171717;
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: 0;
}

.home-hero-refresh__content p {
    max-width: 350px;
    margin: 0 0 28px;
    color: #303230;
    font-size: 19px;
    line-height: 1.48;
}

.home-hero-refresh .hero__actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.home-hero-refresh .btn {
    width: 210px;
    min-height: 48px;
    justify-content: center;
    padding: 12px 24px;
}

.home-hero-refresh .btn--primary {
    border-color: #171717;
    background: #171717;
    color: #fff;
}

.home-hero-refresh .btn--outline {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #171717;
}

.home-hero-refresh .btn:hover {
    border-color: #343735;
    background: #343735;
    color: #fff;
}

/* Services */
.home-service-pillars {
    padding: 88px 0 104px;
    background: #fff;
}

.home-service-pillars .section-header {
    display: flex;
    margin-bottom: 46px;
    align-items: center;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.home-service-pillars .section-header__text {
    max-width: 800px;
}

.home-service-pillars .section-header .label {
    display: block;
    margin-bottom: 14px;
    color: #a93623;
    font-size: 12px;
}

.home-service-pillars .section-header h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: 0;
}

.home-service-pillars .section-header p {
    max-width: 690px;
    margin: 18px auto 0;
    color: #555755;
    font-size: 18px;
    line-height: 1.55;
}

.home-service-pillars .section-header .btn {
    border-color: #171717;
    background: transparent;
    color: #171717;
}

.home-service-pillars .section-header .btn:hover {
    background: #171717;
    color: #fff;
}

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

.home-pillar-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 6 / 7;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #d9d9d7;
    color: #fff;
    text-decoration: none;
}

.home-pillar-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 46%,
        rgba(10, 10, 10, 0.12) 66%,
        rgba(10, 10, 10, 0.78) 100%
    );
    pointer-events: none;
}

.home-pillar-card__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-pillar-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.home-pillar-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    padding: 28px 26px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-pillar-card h3 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18);
}

.home-pillar-card__arrow {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: rgba(12, 12, 12, 0.24);
    color: #fff;
    transition: background-color 220ms ease, transform 220ms ease;
}

.home-pillar-card:hover .home-pillar-card__arrow {
    background: rgba(12, 12, 12, 0.52);
    transform: translateX(3px);
}

.home-pillar-card:hover img {
    filter: saturate(1.04) brightness(0.94);
    transform: scale(1.045);
}

.home-pillar-card:focus-visible {
    outline: 3px solid #a93623;
    outline-offset: 4px;
}

/* Work */
.home .projects-section {
    padding: 104px 0 112px;
    background: #f5f5f4;
}

.projects-section .section-header {
    display: flex;
    margin-bottom: 50px;
    align-items: center;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.projects-section .section-header__text {
    max-width: 860px;
}

.projects-section .section-header .label {
    display: block;
    margin-bottom: 14px;
    color: #a93623;
    font-size: 12px;
}

.projects-section .section-header h2 {
    max-width: 860px;
    margin: 0;
    color: #171717;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: 0;
}

.projects-section .section-header p {
    max-width: 690px;
    margin: 18px auto 0;
    color: #555;
    font-size: 18px;
    line-height: 1.55;
}

.projects-section .section-header .btn {
    border-color: #171717;
    background: transparent;
    color: #171717;
}

.projects-section .section-header .btn:hover {
    background: #171717;
    color: #fff;
}

.projects-section .projects-grid,
.projects-section .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.projects-section .projects-grid .project-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #dededb;
}

.projects-section .projects-grid .project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 50%,
        rgba(10, 10, 10, 0.12) 70%,
        rgba(10, 10, 10, 0.8) 100%
    );
    opacity: 1;
}

.projects-section .projects-grid .project-card__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px;
    opacity: 1;
    transform: none;
}

.projects-section .projects-grid .project-card__content span {
    display: none;
}

.projects-section .projects-grid .project-card__content h3 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);
}

.projects-section .projects-grid .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.projects-section .projects-grid .project-card:hover img {
    filter: brightness(0.94);
    transform: scale(1.035);
}

.projects-section .project-grid .project-card {
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.projects-section .project-grid .project-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 6px;
}

.projects-section .project-grid .project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-section .project-grid .project-card__body {
    padding: 16px 0 8px;
}

.projects-section .project-grid .project-card h3 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.15;
}

.projects-section .project-grid .project-card__body p {
    color: #5f5f5f;
    line-height: 1.55;
}

/* Production process */
.home-capabilities {
    padding: 108px 0 116px;
    background: #fff;
}

.home-capabilities .container {
    display: block;
}

.home-capabilities__content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.home-capabilities__content .label {
    display: block;
    margin-bottom: 14px;
    color: #a93623;
    font-size: 12px;
}

.home-capabilities__content h2 {
    margin: 0 0 20px;
    color: #171717;
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: 0;
}

.home-capabilities__content p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: #505050;
    font-size: 18px;
    line-height: 1.62;
}

.home-capabilities__content .btn {
    border-color: #171717;
    color: #171717;
}

.home-capabilities__content .btn:hover {
    background: #171717;
    color: #fff;
}

.home-capabilities .process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 72px;
    border-top: 1px solid #cfd0cd;
}

.home-capabilities .process-grid::before {
    display: none;
}

.home-capabilities .process-step {
    min-width: 0;
    min-height: 220px;
    padding: 30px 26px 20px;
    border-left: 1px solid #cfd0cd;
    text-align: left;
}

.home-capabilities .process-step:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-capabilities .process-step__number {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #a93623;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.home-capabilities .process-step h3 {
    margin: 0 0 10px;
    color: #171717;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: 0;
}

.home-capabilities .process-step p {
    max-width: 250px;
    margin: 0;
    color: #5b5b5b;
    font-size: 15px;
    line-height: 1.55;
}

/* About: full-bleed media panel. */
.home-about {
    padding: 0;
    background: #1b1c1b;
}

.home-about .container {
    max-width: none;
    padding: 0;
}

.home-about__inner {
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 0;
    align-items: stretch;
}

.home-about__image {
    order: 1;
    min-height: 620px;
    overflow: hidden;
    border-radius: 0;
}

.home-about__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-about__content {
    display: flex;
    max-width: 650px;
    order: 2;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 84px clamp(48px, 7vw, 112px);
    color: #fff;
}

.home-about__content .label {
    margin-bottom: 16px;
    color: #e26b55;
}

.home-about__content h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: 0;
}

.home-about__content .short_description,
.home-about__content .short_description p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.62;
}

.home-about__content .short_description {
    margin-bottom: 32px;
}

.home-about__content .btn {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.home-about__content .btn:hover {
    border-color: #fff;
    background: #fff;
    color: #171717;
}

/* Social proof */
.home .clients-section {
    padding: 84px 0 88px;
    background: #fff;
}

.home .clients-section .fade-up {
    opacity: 1;
    transform: none;
}

.home .clients-section h2 {
    margin-bottom: 12px;
    color: #171717;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 0;
}

.home .clients-section .clients_subtitle {
    margin-bottom: 38px;
    color: #5b5b5b;
    font-size: 17px;
}

.home .clients-section .clients_description {
    margin-bottom: 38px;
}

.home .clients-section .client_logo img {
    max-height: 64px;
    opacity: 0.7;
}

/* Final CTA */
.home-cta-band {
    padding: 76px 0 80px;
    background: #f0f1ef;
    text-align: center;
}

.home-cta-band .container {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 32px;
}

.home-cta-band__content {
    max-width: 720px;
}

.home-cta-band .label {
    display: block;
    margin-bottom: 14px;
    color: #a93623;
    font-size: 12px;
}

.home-cta-band h2 {
    margin: 0 0 16px;
    color: #171717;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: 0;
}

.home-cta-band p {
    max-width: 620px;
    margin: 0 auto;
    color: #4f4f4f;
    font-size: 18px;
    line-height: 1.58;
}

.home-cta-band .cta-band__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.home-cta-band .btn {
    min-width: 156px;
    min-height: 50px;
    justify-content: center;
}

@media (max-width: 980px) {
    .home-hero-refresh .container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .home-hero-refresh__content {
        width: min(430px, 100%);
    }

    .home-hero-refresh__content h1 {
        font-size: 44px;
    }

    .home-pillar-grid {
        gap: 14px;
    }

    .home-pillar-card__content {
        padding: 24px 20px;
    }

    .home-pillar-card h3 {
        font-size: 25px;
    }

    .projects-section,
    .home-capabilities {
        padding-top: 84px;
        padding-bottom: 92px;
    }

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

    .home-capabilities .process-step:nth-child(3) {
        border-left: 0;
    }

    .home-capabilities .process-step:nth-child(n + 3) {
        border-top: 1px solid #cfd0cd;
    }

    .home-about__inner {
        min-height: 560px;
        grid-template-columns: 1fr 1fr;
    }

    .home-about__image {
        min-height: 560px;
    }

    .home-about__content {
        padding: 64px 40px;
    }

    .home-about__content h2 {
        font-size: 38px;
    }

    .home-cta-band .container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-cta-band .cta-band__actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .home-hero-refresh {
        height: calc(100svh - 184px);
        min-height: 660px;
        max-height: 720px;
    }

    .home-hero-refresh__image {
        object-position: center;
    }

    .home-hero-refresh .container {
        padding: 28px 20px 30px;
    }

    .home-hero-refresh__content {
        width: 100%;
        text-align: center;
    }

    .home-hero-refresh__content h1 {
        max-width: 330px;
        margin: 0 auto 12px;
        font-size: 36px;
        line-height: 1.04;
    }

    .home-hero-refresh__content p {
        display: none;
    }

    .home-hero-refresh .hero__actions {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .home-hero-refresh .btn {
        width: min(100%, 350px);
    }

    .home-service-pillars {
        padding: 68px 0 76px;
    }

    .home-service-pillars .section-header {
        gap: 22px;
        margin-bottom: 32px;
    }

    .home-service-pillars .section-header h2,
    .projects-section .section-header h2 {
        font-size: 36px;
    }

    .home-service-pillars .section-header p {
        max-width: 340px;
        margin-top: 14px;
        font-size: 16px;
    }

    .home-service-pillars .section-header .btn {
        min-height: 46px;
    }

    .home-pillar-grid {
        grid-template-columns: none;
        grid-auto-columns: 86%;
        grid-auto-flow: column;
        gap: 12px;
        margin-right: -20px;
        padding-right: 20px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-pillar-grid::-webkit-scrollbar {
        display: none;
    }

    .home-pillar-card {
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
    }

    .home-pillar-card h3 {
        font-size: 28px;
    }

    .home-pillar-card__arrow {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .projects-section {
        padding: 76px 0 84px;
    }

    .projects-section .section-header {
        gap: 24px;
        margin-bottom: 36px;
    }

    .projects-section .section-header p {
        margin-top: 14px;
        font-size: 16px;
    }

    .projects-section .projects-grid,
    .projects-section .project-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .projects-section .projects-grid .project-card__content {
        padding: 22px;
    }

    .projects-section .projects-grid .project-card__content h3 {
        font-size: 24px;
    }

    .home-capabilities {
        padding: 76px 0 84px;
    }

    .home-capabilities__content h2 {
        font-size: 39px;
    }

    .home-capabilities__content p {
        font-size: 16px;
    }

    .home-capabilities .process-grid {
        grid-template-columns: 1fr;
        margin-top: 52px;
    }

    .home-capabilities .process-step,
    .home-capabilities .process-step:first-child,
    .home-capabilities .process-step:nth-child(3) {
        min-height: 0;
        padding: 24px 0 28px;
        border-top: 1px solid #cfd0cd;
        border-left: 0;
    }

    .home-capabilities .process-grid {
        border-top: 0;
    }

    .home-capabilities .process-step__number {
        margin-bottom: 20px;
    }

    .home-capabilities .process-step p {
        max-width: 340px;
    }

    .home-about__inner {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .home-about__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .home-about__content {
        max-width: none;
        padding: 56px 20px 64px;
    }

    .home-about__content h2 {
        font-size: 36px;
    }

    .home-about__content .short_description,
    .home-about__content .short_description p {
        font-size: 16px;
    }

    .home .clients-section {
        padding: 68px 0 72px;
    }

    .home .clients-section h2 {
        font-size: 34px;
    }

    .home .clients-section .client_logo img {
        max-height: 56px;
    }

    .home-cta-band {
        padding: 60px 0 64px;
    }

    .home-cta-band .container {
        gap: 28px;
    }

    .home-cta-band h2 {
        font-size: 36px;
    }

    .home-cta-band p {
        font-size: 16px;
    }

    .home-cta-band .cta-band__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .home-cta-band .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-pillar-card img,
    .projects-section .project-card img {
        transition: none;
    }
}
