.hemix-home {
    min-height: 100vh;
    overflow-x: hidden;
    background: #050505;
}

.hemix-home .hemix-footer {
    display: none;
}

.hemix-home-main {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
}

.hemix-home-main .hemix-page {
    width: 100%;
    max-width: none;
}

.home-loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    gap: var(--hemix-space-3);
    padding: var(--hemix-space-4);
    background:
        radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.18), transparent 32%),
        #070707;
    transition:
        opacity 640ms var(--hemix-ease-standard),
        visibility 640ms var(--hemix-ease-standard);
}

.home-loader.is-complete {
    visibility: hidden;
    opacity: 0;
}

.home-loader__mark {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 1px solid rgba(242, 202, 80, 0.44);
    border-radius: 50%;
    background: rgba(14, 14, 14, 0.78);
    box-shadow: var(--hemix-shadow-gold);
}

.home-loader__mark img {
    width: 54px;
    height: 54px;
}

.home-loader__copy {
    display: grid;
    gap: 8px;
    text-align: center;
}

.home-loader__copy span {
    color: var(--hemix-color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--hemix-letter-caps);
    text-transform: uppercase;
}

.home-loader__copy strong {
    color: var(--hemix-color-text);
    font-family: var(--hemix-font-heading);
    font-size: 28px;
}

.home-loader__bar {
    width: min(280px, 72vw);
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.home-loader__bar span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--hemix-color-primary-bright), transparent);
    animation: home-loader-bar 1200ms var(--hemix-ease-standard) infinite;
}

.home-hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.home-hero__render,
.home-hero__shade,
.home-hero__frame {
    position: absolute;
    inset: 0;
}

.home-hero__render {
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: home-render-arrive 1200ms var(--hemix-ease-standard) both;
}

.home-hero__shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.58) 36%, rgba(5, 5, 5, 0.12) 70%),
        linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, transparent 38%);
}

.home-hero__frame {
    z-index: -1;
    margin: var(--hemix-space-3);
    border: 1px solid rgba(242, 202, 80, 0.18);
    pointer-events: none;
}

.home-hero-panel {
    align-self: center;
    width: min(560px, calc(100vw - 48px));
    margin-left: clamp(24px, 5vw, 72px);
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--hemix-radius-lg);
    animation: home-panel-in 780ms var(--hemix-ease-standard) 220ms both;
}

.home-project {
    display: flex;
    align-items: center;
    gap: var(--hemix-space-2);
}

.home-project__logo {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
}

.home-kicker {
    color: var(--hemix-color-primary-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--hemix-letter-caps);
    text-transform: uppercase;
}

.home-project h1 {
    max-width: 10ch;
    margin: 8px 0;
    color: var(--hemix-color-text);
    font-family: var(--hemix-font-heading);
    font-size: clamp(46px, 6vw, 78px);
    line-height: 0.96;
}

.home-project p {
    margin: 0;
    color: var(--hemix-color-text-muted);
    font-size: var(--hemix-font-size-body-md);
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hemix-space-2);
    margin-top: var(--hemix-space-4);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-top: var(--hemix-space-4);
    border: 1px solid var(--hemix-color-surface-border);
    border-radius: var(--hemix-radius-lg);
    background: var(--hemix-color-surface-border);
}

.home-stat {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: var(--hemix-space-2);
    background: rgba(10, 10, 10, 0.54);
}

.home-stat strong {
    color: var(--hemix-color-text);
    font-family: var(--hemix-font-heading);
    font-size: 22px;
    line-height: 1;
}

.home-stat span {
    color: var(--hemix-color-text-subtle);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-whatsapp {
    position: fixed;
    right: var(--hemix-space-3);
    bottom: var(--hemix-space-3);
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 var(--hemix-space-2);
    color: #061F14;
    border-radius: var(--hemix-radius-full);
    background: #34D976;
    font-size: var(--hemix-font-size-body-sm);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(17, 126, 70, 0.32);
}

.home-preview-strip {
    position: fixed;
    left: clamp(24px, 5vw, 72px);
    right: clamp(92px, 8vw, 140px);
    bottom: clamp(22px, 3vw, 40px);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
}

.home-preview-card {
    min-height: 84px;
    padding: 16px 18px;
    color: var(--hemix-color-text);
    border: 1px solid var(--hemix-color-surface-border);
    border-radius: var(--hemix-radius-md);
    background: rgba(8, 8, 8, 0.66);
    backdrop-filter: blur(var(--hemix-blur-panel));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    text-decoration: none;
    transition:
        border-color var(--hemix-duration-base) var(--hemix-ease-standard),
        background var(--hemix-duration-base) var(--hemix-ease-standard),
        transform var(--hemix-duration-fast) var(--hemix-ease-standard);
}

.home-preview-card:hover {
    border-color: rgba(242, 202, 80, 0.42);
    background: rgba(24, 22, 16, 0.78);
    transform: translateY(-2px);
}

.home-preview-card span {
    color: var(--hemix-color-primary-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: var(--hemix-letter-caps);
}

.home-preview-card strong,
.home-preview-card small {
    display: block;
}

.home-preview-card strong {
    margin-top: 8px;
    font-family: var(--hemix-font-heading);
    font-size: 18px;
}

.home-preview-card small {
    margin-top: 4px;
    color: var(--hemix-color-text-subtle);
    font-size: 12px;
    line-height: 1.35;
}

.home-video-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--hemix-radius-lg);
    background: #050505;
}

.home-video-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.74;
}

.home-video-frame span {
    position: absolute;
    inset: auto var(--hemix-space-2) var(--hemix-space-2);
    padding: 12px;
    color: var(--hemix-color-text);
    border: 1px solid var(--hemix-color-surface-border);
    border-radius: var(--hemix-radius-md);
    background: rgba(10, 10, 10, 0.72);
    text-align: center;
}

@keyframes home-loader-bar {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(260%);
    }
}

@keyframes home-render-arrive {
    from {
        opacity: 0;
        transform: scale(1.08);
    }

    to {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes home-panel-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .hemix-home-main {
        padding: 0;
        padding-bottom: var(--hemix-mobile-nav-height);
    }

    .home-hero {
        min-height: calc(100vh - var(--hemix-mobile-nav-height));
        align-content: end;
        padding: var(--hemix-space-3) var(--hemix-space-2);
    }

    .home-hero__shade {
        background:
            linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.62) 46%, rgba(5, 5, 5, 0.1) 100%);
    }

    .home-hero__frame {
        margin: var(--hemix-space-2);
    }

    .home-hero-panel {
        width: 100%;
        margin: 0;
        padding: var(--hemix-space-3);
    }

    .home-project {
        align-items: flex-start;
    }

    .home-project__logo {
        width: 56px;
        height: 56px;
    }

    .home-project h1 {
        font-size: 42px;
    }

    .home-actions,
    .home-actions .hemix-button {
        width: 100%;
    }

    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-whatsapp {
        right: var(--hemix-space-2);
        bottom: calc(var(--hemix-mobile-nav-height) + var(--hemix-space-2));
    }

    .home-preview-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: var(--hemix-space-2) var(--hemix-space-2) calc(var(--hemix-mobile-nav-height) + var(--hemix-space-3));
        margin-top: calc(-1 * var(--hemix-space-2));
    }

    .home-preview-card {
        min-height: 74px;
        padding: 14px 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hemix-home-main {
        padding: 0;
    }

    .home-hero {
        min-height: calc(100svh - var(--hemix-topbar-height));
        padding: calc(var(--hemix-topbar-height) + var(--hemix-space-3)) var(--hemix-layout-margin-tablet) var(--hemix-space-3);
        align-content: end;
    }

    .home-hero__shade {
        background:
            linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.4) 46%, rgba(5, 5, 5, 0.08) 100%),
            linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, transparent 42%);
    }

    .home-hero-panel {
        width: min(620px, 100%);
        margin: 0;
        padding: var(--hemix-space-3);
    }

    .home-project h1 {
        font-size: clamp(44px, 7vw, 68px);
    }

    .home-actions {
        margin-top: var(--hemix-space-3);
    }

    .home-stats {
        margin-top: var(--hemix-space-3);
    }

    .home-preview-strip {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0 var(--hemix-layout-margin-tablet) var(--hemix-space-4);
        margin-top: var(--hemix-space-2);
    }

    .home-preview-card {
        min-height: 92px;
    }

    .home-whatsapp {
        right: var(--hemix-layout-margin-tablet);
        bottom: var(--hemix-space-3);
    }
}

@media (min-width: 768px) and (max-width: 860px) {
    .home-preview-strip {
        grid-template-columns: 1fr;
    }

    .home-preview-card {
        min-height: 76px;
    }
}

@media (min-width: 1024px) {
    .hemix-home-main {
        padding: 0;
    }

    .home-hero {
        min-height: 100vh;
    }

    .home-hero-panel {
        margin-left: calc(var(--hemix-sidebar-width) + clamp(24px, 4vw, 64px));
    }

    .home-preview-strip {
        left: calc(var(--hemix-sidebar-width) + clamp(24px, 4vw, 64px));
    }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
    .hemix-home-main,
    .hemix-home-main.hemix-main--with-sidebar {
        padding: 0;
        padding-bottom: 0;
    }

    .home-hero {
        min-height: 100svh;
        align-content: end;
        justify-items: center;
        padding: var(--hemix-space-2) var(--hemix-space-2) calc(86px + env(safe-area-inset-bottom, 0px));
    }

    .home-hero__render {
        left: -26%;
        width: 152%;
        max-width: none;
        object-fit: cover;
        object-position: 76% center;
        transform: translateX(-4%) scale(1.12);
        animation: none;
    }

    .home-hero__shade {
        background:
            linear-gradient(90deg, rgba(5, 5, 5, 0.28) 0%, rgba(5, 5, 5, 0.08) 42%, rgba(5, 5, 5, 0.18) 100%),
            linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.44) 46%, rgba(5, 5, 5, 0.04) 100%);
    }

    .home-hero__frame {
        margin: var(--hemix-space-2);
    }

    .home-hero-panel {
        width: min(560px, calc(100vw - var(--hemix-space-4)));
        margin: 0 auto;
        padding: var(--hemix-space-2);
        background: rgba(14, 14, 14, 0.64);
    }

    .home-project h1 {
        font-size: clamp(34px, 7vw, 56px);
    }

    .home-actions {
        margin-top: var(--hemix-space-2);
    }

    .home-actions .hemix-button {
        min-height: 48px;
    }

    .home-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: var(--hemix-space-2);
    }

    .home-stat {
        padding: 12px;
    }

    .home-stat strong {
        font-size: 18px;
    }

    .home-stat span {
        font-size: 9px;
    }

    .home-preview-strip {
        display: none;
    }

    .home-preview-card {
        min-height: 86px;
        scroll-snap-align: start;
    }

    .home-whatsapp {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 920px) and (orientation: portrait) {
    .home-hero {
        align-content: end;
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }

    .home-project {
        align-items: flex-start;
    }

    .home-project__logo {
        width: 48px;
        height: 48px;
    }

    .home-project h1 {
        max-width: 9ch;
        font-size: clamp(32px, 8vw, 48px);
    }

    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-preview-strip,
    .home-whatsapp {
        display: none;
    }
}

@media (max-width: 1366px) and (max-height: 820px) and (orientation: landscape) {
    .hemix-home-main,
    .hemix-home-main.hemix-main--with-sidebar {
        padding: 0;
    }

    .home-hero {
        min-height: 100svh;
        align-content: center;
        padding: var(--hemix-space-2);
    }

    .home-hero__render {
        object-fit: cover;
        object-position: center;
    }

    .home-hero__shade {
        background:
            linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.2) 48%, rgba(5, 5, 5, 0.04) 100%),
            linear-gradient(0deg, rgba(5, 5, 5, 0.58) 0%, transparent 46%);
    }

    .home-hero-panel {
        width: min(420px, 48vw);
        margin-left: var(--hemix-space-2);
        padding: var(--hemix-space-2);
        background: rgba(14, 14, 14, 0.62);
    }

    .home-project__logo {
        width: 44px;
        height: 44px;
    }

    .home-project h1 {
        max-width: 9ch;
        font-size: clamp(28px, 5vw, 44px);
    }

    .home-project p,
    .home-kicker {
        font-size: 12px;
    }

    .home-actions {
        margin-top: 14px;
    }

    .home-actions .hemix-button {
        min-height: 42px;
    }

    .home-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: 14px;
    }

    .home-stat {
        padding: 10px;
    }

    .home-stat strong {
        font-size: 17px;
    }

    .home-stat span {
        font-size: 8px;
    }

    .home-preview-strip,
    .home-whatsapp {
        display: none;
    }
}

@media (min-width: 1440px) {
    .hemix-home-main {
        padding-left: 0;
    }

    .home-hero-panel {
        width: 640px;
        margin-left: calc(var(--hemix-sidebar-width) + 88px);
        padding: var(--hemix-space-6);
    }

    .home-project h1 {
        font-size: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-loader__bar span,
    .home-hero__render,
    .home-hero-panel {
        animation: none;
    }
}
