/* Explain: Styles for gallery, header, hero section, and animated clouds. */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
    }

    .gallery-item.is-wide {
        grid-column: span 2;
    }
}

.header-logo-wrap {
    position: relative;
    display: block;
    width: 10rem;
    transition: width 320ms ease;
}

@media (min-width: 640px) {
    .header-logo-wrap {
        width: 13rem;
    }
}

.site-header.is-scrolled .header-logo-wrap {
    width: 6.5rem;
}

@media (min-width: 640px) {
    .site-header.is-scrolled .header-logo-wrap {
        width: 8rem;
    }
}

.header-logo-mark {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-logo-mark {
    width: 100%;
    max-width: 20rem;
    height: auto;
    object-fit: contain;
    filter: saturate(2.8) contrast(1.08);
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 64% 64% at 50% 50%, #000 10%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.32) 64%, rgba(0, 0, 0, 0.08) 84%, transparent 100%);
    mask-image: radial-gradient(ellipse 64% 64% at 50% 50%, #000 10%, rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.32) 64%, rgba(0, 0, 0, 0.08) 84%, transparent 100%);
}

@media (min-width: 640px) {
    .hero-logo-mark {
        max-width: 36rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo-mark {
        max-width: 52rem;
    }
}

.scroll-cue {
    display: inline-grid;
    height: 44px;
    width: 44px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-muted);
    transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(2px);
}

.hero-clouds {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-cloud {
    position: absolute;
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.6;
    filter: blur(30px) sepia(1) hue-rotate(178deg) saturate(2.4) contrast(1.4) brightness(0.4);
    -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 74%);
    mask-image: radial-gradient(70% 70% at 50% 50%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 74%);
    transform: translate3d(0, 0, 0) scale(1.04);
    animation: nd-mist-a 9s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-cloud-1 {
    top: -14%;
    left: -20%;
    width: 90%;
    height: 74%;
    opacity: 0.46;
}

.hero-cloud-2 {
    right: -22%;
    bottom: -16%;
    width: 96%;
    height: 78%;
    animation-name: nd-mist-b;
    animation-duration: 12s;
    animation-direction: alternate-reverse;
}

.hero-cloud-3 {
    top: 20%;
    left: 8%;
    width: 82%;
    height: 66%;
    opacity: 0.3;
    animation-name: nd-mist-c;
    animation-duration: 10s;
}

.hero-clouds-front {
    z-index: 20;
}

.hero-clouds-front .hero-cloud {
    opacity: 0.34;
    filter: blur(34px) sepia(1) hue-rotate(178deg) saturate(2.4) contrast(1.4) brightness(0.46);
    -webkit-mask-image: radial-gradient(66% 66% at 50% 50%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.42) 40%, transparent 72%);
    mask-image: radial-gradient(66% 66% at 50% 50%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.42) 40%, transparent 72%);
}

.hero-cloud-4 {
    top: 6%;
    left: -34%;
    width: 92%;
    height: 72%;
    opacity: 0.4;
    animation-name: nd-front-drift-a;
    animation-duration: 28s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.hero-cloud-5 {
    top: 24%;
    right: -40%;
    width: 86%;
    height: 68%;
    opacity: 0.3;
    animation-name: nd-front-drift-b;
    animation-duration: 36s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: normal;
}

.hero-clouds::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(58% 58% at 50% 50%, rgba(46, 107, 230, 0.08) 0%, transparent 70%),
        radial-gradient(74% 74% at 50% 50%, transparent 22%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-clouds-front::after {
    display: none;
}

@keyframes nd-mist-a {
    0% {
        transform: translate3d(-8%, 5%, 0) scale(1.02) rotate(-2deg);
    }
    50% {
        transform: translate3d(4%, -4%, 0) scale(1.26) rotate(1.2deg);
    }
    100% {
        transform: translate3d(11%, 5.5%, 0) scale(1.1) rotate(-0.8deg);
    }
}

@keyframes nd-mist-b {
    0% {
        transform: translate3d(9%, -5%, 0) scale(1.16) rotate(1.8deg);
    }
    50% {
        transform: translate3d(-4%, 3%, 0) scale(1.02) rotate(-1deg);
    }
    100% {
        transform: translate3d(-11%, -6%, 0) scale(1.22) rotate(0.9deg);
    }
}

@keyframes nd-mist-c {
    0% {
        transform: translate3d(-7%, -6%, 0) scale(1.04) rotate(-1.4deg);
    }
    50% {
        transform: translate3d(5%, 2.5%, 0) scale(1.22) rotate(1.4deg);
    }
    100% {
        transform: translate3d(10%, -5%, 0) scale(1.08) rotate(-0.7deg);
    }
}

@keyframes nd-front-drift-a {
    0% {
        transform: translate3d(0, 0, 0) scale(1.05) rotate(-1.5deg);
        opacity: 0;
    }
    14% {
        opacity: 0.42;
    }
    50% {
        transform: translate3d(84%, 4%, 0) scale(1.24) rotate(1.2deg);
        opacity: 0.4;
    }
    86% {
        opacity: 0.28;
    }
    100% {
        transform: translate3d(168%, -3%, 0) scale(1.1) rotate(-0.6deg);
        opacity: 0;
    }
}

@keyframes nd-front-drift-b {
    0% {
        transform: translate3d(0, 0, 0) scale(1.02) rotate(1.6deg);
        opacity: 0;
    }
    14% {
        opacity: 0.34;
    }
    50% {
        transform: translate3d(-72%, -3%, 0) scale(1.2) rotate(-1.2deg);
        opacity: 0.32;
    }
    86% {
        opacity: 0.2;
    }
    100% {
        transform: translate3d(-152%, 4%, 0) scale(1.08) rotate(0.8deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cloud {
        animation: none;
    }
}

.reel-anchor {
    scroll-margin-top: -40px;
}