.wafu-hero {
    --wafu-duration: 6000ms;
    position: relative;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #152b3caf;
    color: #fff;
}

body > #navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 28, 41, .48), rgba(7, 28, 41, 0));
    box-shadow: none;
    backdrop-filter: none;
}

#navbar > .container > div > nav > a:not(:last-child),
#navbar > .container > div > nav > div > a,
#navbar > .container > div > nav > div > button,
#navbar #mobile-menu-btn {
    color: #fff;
}

#navbar > .container > div > a > img {
    height: min(90px, 12svh);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 4px rgba(255, 255, 255, .9));
}

/* The mobile dropdown keeps its own solid background and dark link colors. */
.wafu-hero__slides,
.wafu-hero__slide,
.wafu-hero__slide picture,
.wafu-hero__slide img,
.wafu-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wafu-hero__slide {
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.wafu-hero__slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
}

.wafu-hero__slide img {
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.025);
}

.wafu-hero__slide.is-active img {
    animation: wafu-image-in var(--wafu-duration) linear both;
}

.wafu-hero__shade {
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 31, 45, 0.075), rgba(22, 57, 76, 0) 52%, rgba(13, 40, 56, .15)), rgba(28, 73, 94, .16);
}

.wafu-hero__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(6vw, 48px);
    width: min(860px, calc(100% - 120px));
    transform: translateY(-42%);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .18);
}

.wafu-hero__eyebrow {
    margin: 0 0 48px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0;
}

.wafu-hero__content h1,
.wafu-hero__content h2 {
    margin: 0;
    max-width: 920px;
    color: #fff;
    font-size: 58px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 0;
}

.wafu-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .8);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.wafu-hero__link:hover,
.wafu-hero__link:focus-visible {
    color: #fff;
    border-color: #fff;
}

.wafu-hero__content > * {
    opacity: 0;
    transform: translateY(22px);
}

.wafu-hero__eyebrow { animation: wafu-copy-in .8s .28s ease forwards; }
.wafu-hero__content h1 { animation: wafu-copy-in .9s .45s ease forwards; }
.wafu-hero__link { animation: wafu-copy-in .9s .62s ease forwards; }

.wafu-hero__pagination {
    position: absolute;
    z-index: 4;
    right: max(4vw, 34px);
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wafu-hero__dot {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.wafu-hero__dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    transform: translate(-50%, -50%);
}

.wafu-hero__dot svg {
    display: block;
    width: 36px;
    height: 36px;
    transform: rotate(-90deg);
}

.wafu-hero__dot circle { fill: none; stroke-width: 1.5; }
.wafu-hero__dot-track { stroke: rgba(255, 255, 255, .28); }
.wafu-hero__dot-progress { stroke: #fff; stroke-dasharray: 101; stroke-dashoffset: 101; }
.wafu-hero__dot.is-active::after { background: #fff; }
.wafu-hero__dot.is-active .wafu-hero__dot-progress { animation: wafu-progress var(--wafu-duration) linear forwards; }
.wafu-hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wafu-hero__scroll {
    position: absolute;
    z-index: 4;
    left: 28px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    writing-mode: vertical-rl;
}

.wafu-hero__scroll i {
    display: block;
    width: 1px;
    height: 58px;
    overflow: hidden;
    background: rgba(255, 255, 255, .35);
}

.wafu-hero__scroll i::after {
    content: "";
    display: block;
    width: 100%;
    height: 50%;
    background: #fff;
    animation: wafu-scroll 1.9s ease-in-out infinite;
}

@keyframes wafu-image-in { from { transform: scale(1.025); } to { transform: scale(1.075); } }
@keyframes wafu-copy-in { to { opacity: 1; transform: translateY(0); } }
@keyframes wafu-progress { to { stroke-dashoffset: 0; } }
@keyframes wafu-scroll { 0% { transform: translateY(-110%); } 55%, 100% { transform: translateY(210%); } }

@media (max-width: 1023px) {
    .wafu-hero__content h1,
    .wafu-hero__content h2 { font-size: 46px; }
}

@media (max-width: 767px) {
    #navbar > .container > div { height: 76px; }
    #navbar > .container > div > a > img { height: 68px; }
    .wafu-hero__slide img { object-position: 58% center; }
    .wafu-hero__shade { background: linear-gradient(0deg, rgba(8, 29, 42, .72), rgba(14, 47, 65, .28) 72%, rgba(14, 47, 65, .2)), rgba(25, 70, 91, .14); }
    .wafu-hero__content {
        top: auto;
        right: 80px;
        bottom: 112px;
        left: 24px;
        width: auto;
        transform: none;
    }
    .wafu-hero__eyebrow { margin-bottom: 24px; font-size: 14px; }
    .wafu-hero__content h1,
    .wafu-hero__content h2 { font-size: 34px; line-height: 1.24; }
    .wafu-hero__link { margin-top: 20px; font-size: 15px; }
    .wafu-hero__pagination { right: 20px; bottom: 28px; gap: 8px; }
    .wafu-hero__scroll { display: none; }
}

@media (max-width: 390px) {
    .wafu-hero__content h1,
    .wafu-hero__content h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    .wafu-hero__slide,
    .wafu-hero__content > * { transition: none; }
    .wafu-hero__slide.is-active img,
    .wafu-hero__content > *,
    .wafu-hero__dot.is-active .wafu-hero__dot-progress,
    .wafu-hero__scroll i::after { animation: none; }
    .wafu-hero__content > * { opacity: 1; transform: none; }
}
