.hero {
    position: relative;
    z-index: 0;
    min-height: 70vh;
    overflow: hidden;
    display: flex;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to bottom, rgba(250, 246, 241, 0.65) 0, rgba(250, 246, 241, 0) 160px),
        linear-gradient(to top, var(--color-surface) 0, rgba(255, 255, 255, 0) 140px);
    background-position: top, bottom;
    background-repeat: no-repeat, no-repeat;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    max-width: 1440px;
    margin: 0 auto;
    background-image: url("../assets/img/hero_background.png");
    background-size: cover;
    background-position: 80% 50%;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background-color: var(--color-accent-dark);
}

.hero-est {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero-est-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.hero-est-line {
    width: 1px;
    height: 300px;
    background-color: var(--color-accent-dark);
}

.hero-social {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
}

.hero-social ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero-social svg {
    width: 24px;
    height: 24px;
}

.hero-social-line {
    width: 1px;
    height: 450px;
    background-color: var(--color-accent-dark);
}

.hero-social a:hover {
    color: var(--color-accent-dark);
}

.hero-divider {
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--color-accent-dark);
    margin: var(--space-sm) 0;
}

.hero .container {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 140px;
    padding-bottom: var(--space-xl);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.hero-copy {
    max-width: 480px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-title em {
    font-style: italic;
    color: var(--color-accent-dark);
}

.hero-text {
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: var(--space-md);
}

@media (max-width: 900px) {
    .hero-est,
    .hero-social {
        display: none;
    }

    .hero {
        min-height: 75vh;
        min-height: 75svh;
    }

    .hero-photo {
        background-position: 80% top;
    }

    .hero::before {
        background-image:
            linear-gradient(to bottom, rgba(250, 246, 241, 0.75) 0, rgba(250, 246, 241, 0) 140px),
            linear-gradient(to top, rgba(46, 36, 28, 0.9) 0, rgba(46, 36, 28, 0) 65%);
        background-position: top, bottom;
        background-repeat: no-repeat, no-repeat;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100%;
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .hero-copy {
        max-width: none;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-title,
    .hero-title em {
        color: var(--color-surface);
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    }

    .hero-divider {
        background-color: var(--color-surface);
    }

    .hero-text {
        color: rgba(250, 246, 241, 0.92);
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-copy .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
}
