/* Keep the product display in frame and leave room for mobile navigation. */
@media (max-width: 767px) {
    .home-hero {
        height: auto;
        min-height: 100svh;
        box-sizing: border-box;
        padding: 120px 0 88px;
    }
    .home-hero .hero-background { object-position: 74% center; }
    .home-hero .hero-overlay {
        background: linear-gradient(to bottom, rgba(15, 41, 30, 0.48), rgba(15, 41, 30, 0.72) 45%, rgba(15, 41, 30, 0.7));
    }
    .home-hero .hero-content { width: 100%; max-width: 440px; padding-inline: 24px; }
    .home-hero h1 { font-size: clamp(1.875rem, 8.5vw, 2.5rem); line-height: 1.2; margin-bottom: 24px; }
    .home-hero .hero-content > p:first-child { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 20px; }
    .home-hero .hero-content > p:nth-of-type(2) { font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
    .home-hero .hero-content > div { max-width: 320px; margin-inline: auto; gap: 12px; }
}

/* Slim, branded page scrollbar. Keep system colours in high-contrast mode. */
@media (forced-colors: none) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #858585 #292929;
    }
    html::-webkit-scrollbar { width: 8px; height: 8px; }
    html::-webkit-scrollbar-track { background: #292929; }
    html::-webkit-scrollbar-thumb {
        background: #858585;
        border: 2px solid #292929;
        border-radius: 999px;
    }
    html::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }
    html::-webkit-scrollbar-corner { background: #292929; }
}

/* Stable header geometry before the Tailwind CDN styles dynamic markup. */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
    padding: 16px 24px;
    color: white;
    transition: none;
}
#navbar[data-solid="true"] { background-color: #0f291e; }
#navbar[data-solid="false"] { background-color: transparent; }
#navbar > div:first-child {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#navbar img { display: block; height: 56px; width: auto; }
#navbar > div:first-child > div { display: none; }
#mobile-menu.hidden { display: none; }
@media (min-width: 768px) {
    #navbar img { height: 64px; }
    #navbar > div:first-child > div { display: flex; gap: 32px; align-items: center; }
    #mobile-menu-btn { display: none; }
}
@media (min-width: 1024px) { #navbar { padding-inline: 48px; } }
@media (prefers-reduced-motion: no-preference) {
    #navbar.nav-ready {
        transition: background-color 850ms cubic-bezier(0.22, 1, 0.36, 1),
            box-shadow 850ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .hero-content > * {
        animation: hero-enter 1200ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .hero-content > :nth-child(1) { animation-delay: 100ms; }
    .hero-content > :nth-child(2) { animation-delay: 260ms; }
    .hero-content > :nth-child(3) { animation-delay: 440ms; }
    .hero-content > :nth-child(4) { animation-delay: 620ms; }
    html { scroll-behavior: smooth; }
    a, button {
        transition: color 200ms ease, background-color 200ms ease,
            border-color 200ms ease, box-shadow 250ms ease, transform 250ms ease;
    }
    input, textarea, select {
        transition: border-color 200ms ease, box-shadow 200ms ease;
    }
    #site-footer a {
        transition: color 220ms ease, background-color 220ms ease, translate 250ms ease;
    }
    #site-footer ul a { display: inline-block; }
    #site-footer a:focus-visible { outline-offset: 5px; }
    @media (hover: hover) {
        #site-footer ul a:hover { translate: 4px 0; }
        #site-footer [aria-label="Social media"] a:hover { translate: 0 -4px; }
        section .group {
            transition: translate 300ms ease, box-shadow 300ms ease, background-color 300ms ease;
        }
        section .group:hover { translate: 0 -5px; }
    }
}
@keyframes hero-enter {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
