.contact-hero {
    padding: var(--page-gutter);
}

.contact-hero__card {
    --scene-width: max(100cqw, 1000px);
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, #2b1a48 0%, #6e2d6e 24%, #e0707a 40%, #ffb487 50%, #ffcf96 58%, #ffcf96 100%);
    color: var(--color-white);
}

.contact-hero .navbar {
    z-index: 3;
}

.contact-hero__scene {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    align-self: center;
    width: var(--scene-width);
    height: calc(var(--scene-width) * 0.43);
    margin-top: clamp(-120px, -6vw, -40px);
    pointer-events: none;
}

.contact-hero__layer {
    position: absolute;
    top: calc(var(--scene-width) * var(--layer-top));
    left: 0;
    width: 100%;
    height: auto;
    transform: translate3d(0, calc(var(--parallax, 0px) * var(--layer-speed)), 0);
    will-change: transform;
}

.contact-hero__layer--1 {
    --layer-top: 0.0000;
    --layer-speed: 0.5;
}

.contact-hero__layer--2 {
    --layer-top: 0.0508;
    --layer-speed: 0.42;
}

.contact-hero__layer--3 {
    --layer-top: 0.0885;
    --layer-speed: 0.34;
}

.contact-hero__layer--4 {
    --layer-top: 0.1204;
    --layer-speed: 0.26;
}

.contact-hero__layer--5 {
    --layer-top: 0.1771;
    --layer-speed: 0.18;
}

.contact-hero__layer--6 {
    --layer-top: 0.2663;
    --layer-speed: 0.18;
}

.contact-hero__layer--7 {
    --layer-top: 0.3060;
    --layer-speed: 0.06;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.2vw, 20px);
    padding: clamp(24px, 3vh, 48px) var(--container-padding) clamp(48px, 8vh, 96px);
    text-align: center;
}

.contact-hero__title {
    --contact-word-size: min(calc(var(--display-size) * 0.65), 13vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(24px, 5vh, 56px);
    font-weight: inherit;
    text-shadow: 0 2px 30px rgba(16, 10, 50, 0.35);
}

.contact-hero__kicker {
    font-size: calc(var(--contact-word-size) * 0.346);
    white-space: nowrap;
    letter-spacing: 0.134em;
    margin-right: -0.134em;
}

.contact-hero__word {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--contact-word-size);
    line-height: 0.8;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin-top: -0.2em;
    padding-bottom: 0.18em;
}

.contact-hero__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
    width: 100%;
    max-width: 900px;
    margin-top: clamp(28px, 4vh, 48px);
    text-align: left;
}

@media (max-width: 760px) {
    .contact-hero__layer {
        transform: none;
        will-change: auto;
    }

    .contact-hero__scene {
        margin-top: -20px;
    }

    .contact-hero__options {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero__layer {
        transform: none;
    }
}

.contact-hero .contact-option {
    background-color: rgba(60, 22, 70, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.contact-hero .contact-option:hover,
.contact-hero .contact-option:focus-visible {
    background-color: var(--color-white);
    color: #4a2050;
}

.contact-hero__content {
    transform: translate3d(0, var(--content-shift, 0px), 0);
    will-change: transform;
}

.contact-hero .contact-option__icon {
    filter: blur(0.4px) drop-shadow(0 10px 20px rgba(90, 30, 80, 0.3));
}

@media (max-width: 760px) {
    .contact-hero__content {
        transform: none;
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero__content {
        transform: none;
    }
}

.contact-hero .contact-option__icon--mail {
    height: 125%;
}

.contact-hero .contact-option__icon--flag {
    height: 145%;
    right: clamp(-12px, -0.6vw, -4px);
}
