.hero-section {
    --hero-line-duration: 1.8s;
    --hero-line-1-delay: 0.36s;
    --hero-line-2-delay: 0.96s;
    --hero-accent-delay: calc(var(--hero-line-2-delay) + var(--hero-line-duration) + 0.1s);
    position: relative;
    overflow: hidden;
    height: 960px;
    min-height: 960px;
    padding: 0;
    background: #050505;
}

.hero-section__media {
    position: absolute;
    inset: 0;
}

.hero-section__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.84) 0%, rgba(5, 5, 5, 0.62) 38%, rgba(5, 5, 5, 0.72) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.48));
    pointer-events: none;
}

.hero-section__inner {
    padding: 0 10%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 960px;
}

.hero-section__copy {
    max-width: 58rem;
    padding: 0;
}

.hero-section__title {
    margin: 0;
    font-family: var(--font-hero);
    font-size: clamp(3rem, 5.8vw, 5.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: #ffffff;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero-section__line {
    display: block;
    width: fit-content;
    opacity: 0;
    transform: translateX(-36px);
    clip-path: inset(0 100% 0 0);
    animation: hero-line-reveal var(--hero-line-duration) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-section__line + .hero-section__line {
    margin-top: 0.18em;
}

.hero-section__line--1 {
    animation-delay: var(--hero-line-1-delay);
}

.hero-section__line--2 {
    animation-delay: var(--hero-line-2-delay);
}

.hero-section__line--nowrap {
    white-space: nowrap;
}

.hero-section__accent {
    color: #ffffff;
    animation: hero-accent-shift 1.1s ease forwards;
    animation-delay: var(--hero-accent-delay);
}

@keyframes hero-line-reveal {
    from {
        opacity: 0;
        transform: translateX(-36px);
        clip-path: inset(0 100% 0 0);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes hero-accent-shift {
    from {
        color: #ffffff;
    }

    to {
        color: var(--color-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-section__line {
        opacity: 1;
        transform: none;
        clip-path: inset(0 0 0 0);
        animation: none;
    }

    .hero-section__accent {
        color: var(--color-accent);
        animation: none;
    }
}

.profile-preview,
.profile-layout {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.profile-preview {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.84);
}

.profile-preview__image img,
.profile-layout__image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 22px;
}

.profile-preview__copy,
.profile-layout__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.82);
}

.page-shell--dark .profile-layout {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.94), rgba(8, 8, 8, 0.9));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.page-shell--dark .profile-layout__image img {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.card-stack {
    display: grid;
    gap: 1rem;
}

@media (max-width: 960px) {
    .profile-preview,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .hero-section {
        height: 720px;
        min-height: 720px;
    }

    .hero-section__inner {
        min-height: 720px;
    }

    .hero-section__copy {
        max-width: 40rem;
        padding: 0;
    }
}

@media (max-width: 640px) {
    .hero-section {
        height: 560px;
        min-height: 560px;
    }

    .hero-section__inner {
        min-height: 560px;
    }

    .hero-section__title {
        font-size: clamp(2.6rem, 13vw, 3.8rem);
    }

    .hero-section__copy {
        padding: 0;
    }

    .profile-preview,
    .profile-layout {
        padding: 1.4rem;
    }
}
