main{
    background: url(../img/bg/squares.svg) top right;
    background-attachment: fixed;
    /* background: url(../img/bg/circles.png) top -10px right no-repeat;
    background-size: auto 900px; */
}

#home{
    min-height: calc(100vh - var(--promo-height) - var(--header-height));
}

/* Hero */
.hero {
    text-align: center;
    background: var(--hero-gradient);
    border-bottom: var(--border);
    padding-top: var(--space-12);
}

.hero-grid {
    display: grid;
    gap: var(--space-16);
    align-items: start;
    grid-template-columns: 1fr;
}

#hero-title {
    font-size: 54px;
    line-height: 1.3;
    text-wrap: balance;
    margin: 0;
}

[dir="ltr"] #hero-title {
    font-size: 48px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 25px;
    font-weight: 600;
    color: var(--primary);
    text-wrap: balance;
    max-width: 50ch;
    margin-inline: auto;
}

#hero-hidden-image{
    display: block;
    margin: 0 auto;
    height: 180px;
    width: 120px;
    object-fit: cover;
    border-radius: var(--radius-pill);    
    background: var(--bg-body);
    border: 2px solid var(--bg-body);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-4);
}

.eyebrow{
    margin-inline: auto;
}
@media (width > 1024px) {
    .eyebrow{
        margin-inline: unset;
    }
}

.gawish-title{
    display: flex;
    flex-flow: row wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: center;

    & span:not(:last-child)::after{
        content: '/';
        margin-inline-start: var(--space-2);
        color: var(--text-muted);
    }
}
@media (width > 1024px) {
    div.gawish-title{
        justify-content: flex-start;
    }
}

.hero-lede {
    margin-inline: auto;
    text-wrap: balance;
    font-size: var(--fs-lg);
    color: var(--text-soft);
    max-width: 60ch;
}

.hero-image{
    display: none;

    position: relative;
    height: 100%;
    
    & img{
        position: absolute;
        inset-inline: 0;
        inset-block-end: 0;
        /* height: 100%;
        max-height: 500px; */
        object-fit: cover;
    }
    & img:first-child{        
        filter: blur(10px) grayscale(1);
        scale: 1.05;
        opacity: .35;
    }
}

.hero-cta{
    margin: var(--space-4) auto var(--space-8);
    justify-content: center;
}

.hero .stat-grid{
    margin-inline: auto;
}


.gawish-card{
    text-align: start;
    max-width: 400px;
    margin: 0 auto var(--space-6);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    --av-width: 56px;

    & .gawish-title{
        justify-content: flex-start !important;
    }
}
.gawish-card header{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.gawish-card header strong{
    font-family: var(--font-heading);
}
.gawish-card blockquote{
    background: var(--bg-soft);
    padding: var(--space-2);
    padding-inline-start: var(--space-4);
    border-inline-start: 2px solid var(--primary);
}

.gawish-card ul {
    --mask: var(--success);

    & i{
        width: 30px;
        margin: 0;
    }

    & .pulse-dot{
        margin-inline: 10px;
    }
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-xs);
    color: var(--text-muted);

    --mask: var(--success);
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: var(--space-1);

    & i {
        margin: 0;
    }
}


/* @media (width > 560px) {
    #hero-title{
        font-size: 50px;
    }
}
@media (width > 768px) {
    #hero-title{
        font-size: 60px;
    }
} */
@media (width > 1024px) {
    .hero{
        text-align: start;
    }
    .hero-grid{
        grid-template-columns: 1fr 450px;
    }
    #hero-hidden-image{
        display: none;
    }
    .hero-image{
        display: block;
    }
    .hero-cta,
    .trust-list{
        margin-inline: 0;
        justify-content: flex-start;
    }
}

/* Logo strip */
.hero-white{
    margin-top: var(--space-8);
    background: var(--bg-surface);
    border-top: var(--border);
    border-bottom: var(--border);
    padding-block: var(--space-4);
}
#home .hero-white{
    margin-top: 0;
}
.hero-white-grid{
    gap: var(--space-8);
    align-items: center;
}

@media (width > 768px) {
    .hero-white-grid{
        grid-template-columns: 1fr 1fr;
    }
}

/*
.logo-strip {
    position: relative;    

    padding-inline-start: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}
@media (width > 768px) {
    .logo-strip {
        align-items: flex-start;
    }
}

.logo-strip-label {
    display: block;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    font-weight: 700;
}

.logo-strip-marquee {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
    width: max-content;
    gap: var(--space-8);
}

.logo-strip-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-soft);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    cursor: pointer;
}
.logo-item:is(:hover, :focus-visible) {
    color: var(--primary);
}
*/

/* .hero-grid {
    grid-template-columns: 1fr 400px;
    gap: 64px;
} */

/*@media (max-width: 1400px) {    
    #hero-title{
        font-size: 50px;
    }
}
@media (max-width: 1300px) {
    .hero-grid {
        grid-template-columns: 1fr 260px;
        gap: 48px;
    }
    #hero-title{
        font-size: 40px;
    }
}
@media (max-width: 1200px) {
    .hero-image img{
        max-height: 500px;
    }
}
@media (max-width: 1024px) {
    .hero{
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-image{
        display: none;
    }
    #hero-title{
        font-size: 55px;
    }
    #hero-hidden-image{
        display: block;
        margin-inline: auto;
    }
    .hero-desc{
        margin-inline: auto;
    }
}
@media (max-width: 1000px) {
    #hero-title{
        font-size: 48px;
    }
}
@media (max-width: 900px) {
    #hero-title{
        font-size: 44px;
    }
    .hero-desc{
        text-wrap: initial;
    }
}
@media (max-width: 730px) {
    #hero-title{
        font-size: 40px;
    }
}*/



/* Hero 2: Services page & Case Studies */
.hero2-grid {
    display: grid;
    gap: var(--space-8);
}
.hero-copy {
    max-width: 700px;
    margin-inline: auto;
}
.hero-copy .eyebrow{
    margin-bottom: var(--space-2);
}
.about-visual{
    max-width: 400px;
    margin: 0 auto var(--space-12);
    
    position: relative;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-surface);


    & img{
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    & figcaption{
        padding: var(--space-4);
        position: absolute;
        bottom: 0;
        background: linear-gradient(180deg, transparent, rgb(0 0 0 / 85%));
        width: 100%;
        color: var(--white);
    }

    & strong{
        display: block;
        font-family: var(--font-heading);
        margin-bottom: var(--space-1);
    }

    & small{
        opacity: .85;
    }
}

@media (width > 1024px) {
    .hero2-grid {
        grid-template-columns: 1.25fr .75fr;
        align-items: center;
    }
    .about-visual{
        display: block;
        margin-inline: auto;
    
        max-height: 450px;
    }
    .hero .stat-grid {
        margin-inline: 0;
    }
}


.rotating-text {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);

    font-family: var(--font-heading);    
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    transition: all var(--transition-normal);
    will-change: opacity, transform;
    text-wrap: nowrap;
    overflow: hidden;
}
@media (width > 1024px) {
    .rotating-text {
        font-size: var(--fs-2xl);
        justify-content: flex-start;
    }
}

.rotating-text.is-exiting {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
}

.rotating-text.is-entering {
    animation: text-enter 450ms ease both;
}

@keyframes text-enter {
    from {
        opacity: 0;
        transform: translateY(-12px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}