/*
 * Block: CS Hero
 */

.cs-hero__layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--section-space-l);
    min-height: 48vh;
    align-items: center;
}

/* Sidebar: line — logo — line */
.cs-hero__sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: var(--space-s);
    padding-block: 0;
}

.cs-hero__line {
    width: 1px;
    flex: 1;
    background: var(--border-color-light);
}

.cs-hero__logo {
    width: 15rem;
    height: auto;
    flex-shrink: 0;
}

.cs-hero__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Content */
.cs-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.cs-hero__heading {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-m);
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.cs-hero__title {
    display: block;
    font-family: 'DrukCond', sans-serif;
    font-size: var(--h1);
    font-weight: var(--heading-font-weight);
    text-transform: uppercase;
    line-height: 1;
    --reveal-delay: 0.6s;
}

.cs-hero__subtitle {
    font-size: var(--text-m);
    color: var(--base-semi-dark);
    font-weight: 600;
    margin: 0;
}

/* Category meta: separator line + label */
.cs-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-m);
}

.cs-hero__separator {
    width: 16rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: csHeroLineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.cs-hero__category {
    text-transform: uppercase;
    font-family: var(--text-font-family);
    font-size: var(--text-s);
    color: var(--base-semi-light);
    font-weight: 600;
    clip-path: inset(100% 0 0 0);
    animation: csHeroRevealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

@keyframes csHeroLineGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes csHeroRevealUp {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

/* Mobile logo in meta (hidden on desktop) */
.cs-hero__meta-logo {
    display: none;
}

.cs-hero__meta-logo img {
    width: auto;
    height: 3.2rem;
    object-fit: contain;
    max-width: 5.4rem;
}

/* Mobile */
@media (max-width: 767px) {
    .cs-hero__layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 0;
        gap: 0;
    }

    .cs-hero__sidebar {
        display: none;
    }

    .cs-hero__meta-logo {
        display: flex;
        align-items: center;
    }

    .cs-hero__separator {
        flex: 1;
        width: auto;
    }

    .cs-hero__meta {
        gap: var(--space-s);
    }
}
