
.welcome-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(850px, calc(100svh - var(--header-height)));
    padding: 5rem 0 6rem;
    overflow: hidden;
    background: var(--color-background);
    color: var(--color-text);
}

.welcome-hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.welcome-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: linear-gradient(rgba(64, 191, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 191, 237, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, transparent, black 45%, black);
}

.welcome-hero__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
}

.welcome-hero__orb--blue {
    top: -230px;
    right: 5%;
    width: 480px;
    height: 480px;
    background: var(--color-brand-blue-light);
    opacity: 0.7;
}

.welcome-hero__orb--green {
    bottom: -260px;
    left: 35%;
    width: 420px;
    height: 420px;
    background: var(--color-brand-green-light);
    opacity: 0.65;
}

.welcome-hero__container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: min(100% - 3rem, var(--container-width-wide));
    margin-inline: auto;
}

.welcome-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 2rem 0;
}

.welcome-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 0.72rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
}

.welcome-hero__eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-brand-orange);
    box-shadow: 0 0 0 4px var(--color-brand-orange-light);
}

.welcome-hero__title {
    max-width: 700px;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 6.3vw, 6.2rem);
    font-weight: var(--font-weight-bold);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.welcome-hero__title span {
    position: relative;
    display: block;
    width: fit-content;
    margin-top: 0.15em;
    color: var(--color-brand-blue-dark);
}

.welcome-hero__title span::after {
    position: absolute;
    right: 0;
    bottom: -0.1em;
    left: 0;
    z-index: -1;
    height: 9px;
    background: var(--color-brand-green);
    content: "";
    transform: rotate(-1.5deg);
}

.welcome-hero__description {
    max-width: 510px;
    margin: 2rem 0 0;
    color: var(--color-text-secondary);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: var(--line-height-relaxed);
}

.welcome-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.welcome-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 54px;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: background-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.welcome-hero__button--primary {
    border: 2px solid var(--color-brand-blue-dark);
    background: var(--color-brand-blue-dark);
    color: var(--color-white);
    box-shadow: 5px 5px 0 var(--color-brand-green);
}

.welcome-hero__button--primary:hover {
    border-color: var(--color-brand-blue);
    background: var(--color-brand-blue);
    color: var(--color-black);
    box-shadow: 7px 7px 0 var(--color-brand-green);
    transform: translate(-2px, -2px);
}

.welcome-hero__button--secondary {
    border: 2px solid transparent;
    color: var(--color-text);
}

.welcome-hero__button--secondary:hover {
    color: var(--color-brand-blue-dark);
}

.welcome-hero__button:focus-visible {
    outline: 3px solid var(--color-brand-orange);
    outline-offset: 5px;
}

.welcome-hero__statement {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.welcome-hero__statement-line {
    width: 42px;
    height: 3px;
    background: var(--color-brand-orange);
}

.welcome-hero__statement p {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
}

/* Visual composition */

.welcome-hero__visual {
    position: relative;
    width: 100%;
    max-width: 650px;
    min-width: 0;
    margin-inline: auto;
}

.welcome-hero__visual-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

/* Video */

.welcome-hero__media {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    isolation: isolate;
}

.welcome-hero__video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-black);
    box-shadow: 12px 12px 0 var(--color-brand-blue-light),
    0 20px 50px rgba(47, 46, 45, 0.10);
}

.welcome-hero__video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Decorative gears */

.welcome-hero__gears {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.welcome-hero__gear {
    position: absolute;
    display: block;
    width: clamp(45px, 7vw, 125px);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 8px 12px rgba(47, 46, 45, 0.16));
    transform-origin: center;
    will-change: transform;
}

.welcome-hero__gear--primary {
    top: -42px;
    right: -38px;
    color: var(--color-brand-blue-dark);
}

.welcome-hero__gear--secondary {
    bottom: -42px;
    left: -35px;
    width: clamp(65px, 9vw, 95px);
    color: var(--color-brand-green-dark);
}

.welcome-hero__visual-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
}

.welcome-hero__bottom {
    position: absolute;
    right: max(1.5rem, calc((100% - var(--container-width-wide)) / 2));
    bottom: 1.5rem;
    left: max(1.5rem, calc((100% - var(--container-width-wide)) / 2));
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
}

.welcome-hero__bottom-line {
    width: 55px;
    height: 1px;
    background: var(--color-brand-blue-dark);
}

/* Scroll-driven gear animation */

@supports (animation-timeline: scroll(root block)) {

    .welcome-hero__gear--primary {
        animation-name: welcome-gear-clockwise;
        animation-duration: auto;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: scroll(root block);
        animation-range: 0% 100%;
    }

    .welcome-hero__gear--secondary {
        animation-name: welcome-gear-counterclockwise;
        animation-duration: auto;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: scroll(root block);
        animation-range: 0% 100%;
    }

}

@keyframes welcome-gear-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(3600deg);
    }
}

@keyframes welcome-gear-counterclockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-3600deg);
    }
}

/* Responsive */

@media (max-width: 1100px) {

    .welcome-hero {
        padding-block: 4rem 5rem;
    }

    .welcome-hero__container {
        gap: 2rem;
    }

    .welcome-hero__title {
        font-size: clamp(3.2rem, 6vw, 5rem);
    }

    .welcome-hero__gear--primary {
        right: -25px;
    }

    .welcome-hero__gear--secondary {
        left: -25px;
    }

}

@media (max-width: 850px) {

    .welcome-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 4rem 0 5rem;
    }

    .welcome-hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .welcome-hero__content {
        max-width: 700px;
    }

    .welcome-hero__visual {
        max-width: 600px;
    }

    .welcome-hero__bottom {
        position: static;
        width: min(100% - 3rem, var(--container-width-wide));
        margin: 3rem auto 0;
    }

}

@media (max-width: 576px) {

    .welcome-hero {
        padding: 3rem 0 2rem;
    }

    .welcome-hero__container {
        width: calc(100% - 2.5rem);
        max-width: 440px;
        margin-inline: auto;
        gap: 2.5rem;
    }

    .welcome-hero__content {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .welcome-hero__title {
        max-width: 100%;
        font-size: clamp(3rem, 13vw, 4.2rem);
        line-height: 1.02;
    }

    .welcome-hero__description {
        max-width: 100%;
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    .welcome-hero__eyebrow {
        gap: 0.55rem;
        margin-bottom: 1.5rem;
        padding: 0.6rem 0.7rem;
        font-size: 0.59rem;
    }

    .welcome-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .welcome-hero__button {
        width: 100%;
    }

    .welcome-hero__button--secondary {
        justify-content: flex-start;
    }

    .welcome-hero__statement {
        margin-top: 2.5rem;
    }

    .welcome-hero__visual-label {
        font-size: 0.52rem;
    }

    .welcome-hero__media {
        margin-top: 1rem;
    }

    .welcome-hero__video {
        box-shadow: 7px 7px 0 var(--color-brand-blue-light),
        0 12px 30px rgba(47, 46, 45, 0.10);
    }

    .welcome-hero__gear--primary {
        top: -25px;
        right: -35px;
        width: 76px;
    }

    .welcome-hero__gear--secondary {
        bottom: -28px;
        left: -25px;
        width: 66px;
    }

    .welcome-hero__visual-footer {
        margin-top: 1.5rem;
        font-size: 0.5rem;
    }

    .welcome-hero__bottom {
        width: calc(100% - 2rem);
        margin-top: 2rem;
        font-size: 0.56rem;
    }

}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .welcome-hero__gear {
        animation: none !important;
        will-change: auto;
    }

    .welcome-hero__button {
        transition: none;
    }

}
