.sm-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 42px);
    min-height: 480px;
    overflow: hidden;
    background: #000;
}

.sm-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sm-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sm-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.sm-hero__title-mask {
    overflow: hidden;
    padding: 0.18em 0;
    max-width: 90%;
}

.sm-hero__title {
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(32px, 8vw, 110px);
    line-height: 1.1;
    text-align: center;
    margin: 0;
}

.sm-hero__char {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    animation:
        sm-hero-char-rise 1.1s cubic-bezier(.16, 1, .3, 1) forwards,
        sm-hero-char-fade 1.6s linear forwards;
    animation-delay: calc(var(--char-index, 0) * 55ms + 0.6s);
    will-change: transform, opacity;
}

@keyframes sm-hero-char-rise {
    0%   { transform: translateY(110%); }
    100% { transform: translateY(0); }
}

@keyframes sm-hero-char-fade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .sm-hero__char {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1280px) { .sm-hero__title { font-size: 70px; } }
@media (max-width: 1023px) { .sm-hero__title { font-size: 53px; } }
@media (max-width: 767px)  { .sm-hero__title { font-size: 32px; } }
