.hero-section {
    position: relative;
    min-height: 768px;
    height: 100vh;
    overflow: hidden;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.15) 68%, rgba(0, 0, 0, 0.03) 100%);
}

.hero-section.hero--compact {
    min-height: 250px;
    height: 250px;
    background-image: url('../images/background-compact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--compact .hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.30) 100%);
}

.hero--compact .hero-content {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.hero--compact .hero-eyebrow {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.hero--compact .hero-title {
    font-size: 1.3rem;
    line-height: 1.1;
}

.hero--compact .hero-title span {
    color: var(--accent);
}

.hero--compact .hero-subtitle {
    display: none;
}

.hero--compact .hero-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border: none;
    margin: 8px auto 0;
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .hero-section.hero--compact {
        min-height: 250px;
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .hero-section.hero--compact {
        min-height: 250px;
        height: 250px;
    }
}


.hero-floating-brand {
    position: absolute;
    z-index: 1;
    left: -91px;
    top: -222px;
    width: min(58vw, 980px);
    margin: 0;
    pointer-events: none;
    opacity: 1;
    animation: none;
    will-change: auto;
}

.hero-floating-brand ._7_i_XA {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
    opacity: 1;
}

@keyframes logo-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(-1deg);
    }
}

.hero-title {
    margin: 0;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-title .white,
.hero-title .blue {
    display: inline-block;
    color: var(--hero-text);
    margin-bottom: 7px;
}

.hero-subtitle {
    margin: 19px 0 14px;
    max-width: none;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--hero-accent);
    transform: scale(0.414889);
    transform-origin: top left;
    width: auto;
    white-space: nowrap;
}

.hero-subtitle .linebox {
    background: var(--hero-text);
    padding: 4px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
}

.hero-social-link {
    width: 43.6605px;
    height: 43.6605px;
    border-radius: 6px;
    background: var(--hero-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-social-link:hover {
    background: var(--primary-blue-dark);
    color: var(--hero-text);
    transform: translateY(-1px);
}

.profile-decoration {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    top: var(--header-height);
    pointer-events: none;
    overflow: visible;
}

.profile-decoration img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 98%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.45));
}

.hero-text {
    display: none;
}

/* ── Desktop large ───────────────────────────────────────── */

@media (min-width: 1920px) {
    .profile-decoration {
        right: 25%;
    }
}

@media (max-width: 1920px) {
    .hero-floating-brand {
        left: 8vw;
        top: calc(126px + (var(--header-height) * 0.35));
        width: min(56vw, 700px);
    }

    .hero-content {
        left: 7.5vw;
        top: var(--header-height);
        bottom: auto;
        transform: scale(0.82);
        transform-origin: top left;
    }
}

@media (max-width: 1366px) {
    .hero-floating-brand {
        left: 8vw;
        top: calc(126px + (var(--header-height) * 0.35));
        width: min(56vw, 700px);
    }

    .hero-content {
        left: 7.5vw;
        top: var(--header-height);
        bottom: auto;
        transform: scale(0.82);
        transform-origin: top left;
    }
}

@media (max-width: 1200px) {
    .hero-floating-brand {
        left: 7vw;
        top: calc(126px + (var(--header-height) * 0.35));
        width: min(54vw, 620px);
    }

    .hero-content {
        left: 6vw;
        top: var(--header-height);
        bottom: auto;
        transform: scale(0.74);
        transform-origin: top left;
    }
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        overflow: hidden;
        padding: 16px 0 24px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.48) 100%);
    }

    .hero-content {
        position: relative;
        inset: auto;
        width: auto;
        margin: 0 auto;
        transform: none;
        padding: 70px 12px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-floating-brand {
        position: static;
        width: min(80vw, 220px);
        margin-bottom: 14px;
        pointer-events: auto;
    }

    .hero-floating-brand ._7_i_XA {
        filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
    }

    .hero-social-links {
        gap: 6px;
        flex-wrap: wrap;
    }

    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #hero-title,
    #hero-subtitle {
        display: none;
    }

    .profile-decoration {
        left: 0;
        right: 0;
        width: 100%;
        overflow: hidden;
    }

    .profile-decoration img {
        height: 85%;
        left: 50%;
        transform: translateX(-50%);
    }
}
