/* =========================================================
   HERO — STABLE LAYOUT
   ========================================================= */

.olg-hero-section {
    position: relative;

    width: 100%;
    min-height: 100svh;

    padding-top: 80px;
    padding-bottom: 0;

    background: var(--primary-dark);

    overflow: hidden;
}


/* =========================================================
   HERO CONTAINER / GRID
   ========================================================= */

.olg-hero-section>.container {
    height: 100%;
}


.olg-hero-grid {
    position: relative;

    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);

    align-items: stretch;

    width: 100%;
    min-height: calc(100svh - 80px);
}


/* =========================================================
   TEXT
   ========================================================= */

.olg-hero-text {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 650px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding-top: 40px;
    padding-bottom: 60px;
    color: #ffffff;
}

.olg-eyebrow,
.olg-sub-title {
    color: #999999;
}

.olg-st,
h6 {
    text-transform: uppercase;
}

h6 {
    font-size: 12px;
    margin-top: 10px;
}

h6,
.olg-st {
    color: #ffffff;
}

/* =========================================================
   IMAGE COLUMN
   Reserve the complete space immediately.
   ========================================================= */

.olg-image-main {
    position: relative;
    z-index: 2;

    width: 100%;
    height: calc(100svh - 80px);

    min-height: calc(100svh - 80px);

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   IMAGE
   Fixed intrinsic dimensions + fixed desktop height.
   ========================================================= */

.olg-image-main img {
    display: block;

    width: 100%;
    max-width: 500px;

    height: calc(100svh - 80px);

    min-height: 0;

    object-fit: cover;
    object-position: top center;

    flex: 0 0 auto;
}

/* =========================================================
   COUNTERS — RESERVE THEIR HEIGHT
   ========================================================= */

.olg-counter-container {
    display: flex;
    align-items: flex-start;

    min-height: 56px;

    gap: var(--gap-xxl);

    margin-bottom: 5px;
}


.olg-counter-item {
    display: flex;
    align-items: flex-start;

    gap: var(--gap-m);

    min-height: 56px;
}

.olg-number {
    display: inline-block;
    min-width: 2.5ch;
    font-variant-numeric: tabular-nums;

    font-size: 56px;
    font-weight: var(--fw-xl);
    line-height: 0.85;

    color: var(--text-light, #ffffff);
}


/* =========================================================
   HERO / HEADER ACTIONS
   ========================================================= */

/* =========================================================
   HERO ACTION BUTTONS
   HAND-DRAWN STROKE STYLE
   ========================================================= */

.olg-action-box {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}


/* =========================================================
   SHARED BUTTON
   ========================================================= */

.hero-explore,
.hero-resume {
    position: relative;

    display: inline-block;

    min-width: 154px;

    padding: 16px 20px;

    color: var(--text-white);
    text-decoration: none;

    text-align: center;

    font-size: 12px;
    font-weight: var(--fw-l);
    letter-spacing: 0.02em;

    line-height: 1;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* =========================================================
   STROKE
   ========================================================= */

.hero-button-stroke {
    display: block;

    position: absolute;

    left: 20px;
    bottom: -10px;

    width: calc(100% - 40px);
    height: 20px;

    overflow: visible;

    pointer-events: none;
}


/* First stroke — always visible */

.hero-button-stroke:first-of-type {
    stroke: var(--primary-light, #c33642);

    stroke-width: 3;
}


/* Second stroke — hidden / animated */

.hero-button-stroke:nth-of-type(2) {
    stroke: rgba(255, 255, 255, 0.18);

    stroke-width: 4;

    stroke-dasharray: 650px;
    stroke-dashoffset: 650px;

    transition:
        stroke-dashoffset 800ms ease-out;
}


/* =========================================================
   HOVER
   ========================================================= */

.hero-explore:hover,
.hero-resume:hover {
    color: var(--text-white);

    transform: translateY(-2px);
}


.hero-explore:hover .hero-button-stroke:nth-of-type(2),
.hero-resume:hover .hero-button-stroke:nth-of-type(2) {
    stroke-dashoffset: 0;
}


/* =========================================================
   FOCUS
   ========================================================= */

.hero-explore:focus-visible,
.hero-resume:focus-visible {
    outline: 1px solid var(--primary-light);
    outline-offset: 7px;
}


/* =========================================================
   EXPLORE
   PRIMARY
   ========================================================= */

.hero-explore {
    color: var(--text-white);
}


/* =========================================================
   RESUME
   SECONDARY
   ========================================================= */

.hero-resume {
    color: rgba(255, 255, 255, 0.68);
}

.hero-resume .hero-button-stroke:first-of-type {
    stroke: rgba(255, 255, 255, 0.35);
}

.hero-resume .hero-button-stroke:nth-of-type(2) {
    stroke: var(--primary-light, #c33642);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .olg-action-box {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .hero-explore,
    .hero-resume {
        min-width: 170px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hero-explore,
    .hero-resume,
    .hero-button-stroke {
        transition: none !important;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */



@media (max-width: 912px) {

    .olg-hero-section {
        min-height: 100svh;

        padding-top: 80px;
        padding-bottom: 30px;
    }


    .olg-hero-grid {
        display: block;

        width: 100%;
        min-height: calc(100svh - 110px);
    }


    /* -----------------------------------------------
       IMAGE — BACKGROUND / RIGHT SIDE
       ----------------------------------------------- */

    .olg-image-main {
        position: absolute;

        top: 0;
        right: -20px;

        width: 58%;
        height: calc(100% + 30px);

        min-height: 0;

        display: block;

        overflow: hidden;

        pointer-events: none;
    }


    .olg-image-main img {
        display: block;

        width: 100%;
        height: 100%;

        max-width: none;

        object-fit: cover;
        object-position: top center;
    }


    /* -----------------------------------------------
       TEXT
       ----------------------------------------------- */

    .olg-hero-text {
        position: relative;
        z-index: 3;

        width: 100%;
        max-width: 650px;

        min-height: calc(100svh - 110px);

        padding: 0 20px 45px 0;

        display: flex;
        flex-direction: column;

        /*
         * Fixed alignment.
         * Content no longer reacts to image loading.
         */
        justify-content: flex-end;
        align-items: flex-start;
    }


    .olg-title {
        font-size: 46px;
        line-height: 1.03;

        max-width: 90%;

        margin: 0 0 25px;
    }


    .olg-subtitle {
        font-size: 16px;
        line-height: 1.3;

        max-width: 80%;

        margin: 0 0 15px;
    }


    .olg-st {
        font-size: 14px;
        line-height: 1.4;

        max-width: 70%;

        margin: 0 0 25px;
    }


    .olg-counter-container {
        gap: 35px;

        width: 100%;

        margin: 10px 0;
    }


    .olg-number {
        font-size: 46px;
    }


    .olg-counter-item h6 {
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 853px) {

    .olg-image-main {
        right: -25px;
        width: 62%;
    }

    .olg-hero-text {
        padding-right: 15px;
    }

    .olg-title {
        font-size: 44px;
        max-width: 85%;
    }

    .olg-st {
        max-width: 68%;
    }
}

@media (max-width: 820px) {

    .olg-image-main {
        right: -30px;
        width: 64%;
    }

    .olg-hero-text {
        padding-bottom: 38px;
    }

    .olg-subtitle {
        font-size: 15px;
    }

    .olg-title {
        font-size: 42px;
        max-width: 82%;

        margin-bottom: 25px;
    }

    .olg-st {
        font-size: 11px;
        max-width: 65%;

        margin-bottom: 25px;
    }

    .olg-counter-container {
        gap: 28px;

        margin-bottom: 5px;
    }

    .olg-number {
        font-size: 42px;
    }
}

@media (max-width: 768px) {

    .olg-hero-section {
        padding-top: 70px;
        padding-bottom: 25px;
    }


    .olg-hero-grid {
        min-height: calc(100svh - 95px);
    }


    .olg-image-main {
        right: -30px;
        width: 66%;
    }


    .olg-hero-text {
        min-height: calc(100svh - 95px);

        padding-bottom: 35px;
    }


    .olg-subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }


    .olg-title {
        font-size: 40px;
        max-width: 82%;

        margin-bottom: 24px;
    }


    .olg-st {
        font-size: 10px;
        max-width: 65%;

        margin-bottom: 25px;
    }


    .olg-counter-container {
        gap: 25px;
        margin-bottom: 5px;
    }


    .olg-number {
        font-size: 40px;
    }


    .olg-counter-item h6 {
        font-size: 10px;
    }
}

@media (max-width: 540px) {

    .olg-hero-section {
        padding-top: 65px;
        padding-bottom: 20px;
    }


    .olg-hero-grid {
        min-height: calc(100svh - 85px);
    }


    .olg-image-main {
        right: -25px;
        width: 70%;
    }


    .olg-hero-text {
        min-height: calc(100svh - 85px);

        padding: 0 10px 30px 0;
    }


    .olg-subtitle {
        font-size: 13px;

        max-width: 85%;

        margin-bottom: 12px;
    }


    .olg-title {
        font-size: 36px;
        line-height: 1.02;

        max-width: 88%;

        margin-bottom: 22px;
    }


    .olg-st {
        font-size: 9px;
        line-height: 1.45;

        max-width: 65%;

        margin-bottom: 22px;
    }


    .olg-counter-container {
        gap: 22px;
        margin-bottom: 5px;
    }


    .olg-number {
        font-size: 36px;
    }


    .olg-counter-item {
        gap: 8px;
    }


    .olg-counter-item h6 {
        font-size: 9px;
    }
}

@media (max-width: 480px) {

    .olg-hero-section {
        padding-top: 60px;
        padding-bottom: 20px;
    }


    .olg-hero-grid {
        min-height: calc(100svh - 80px);
    }


    .olg-image-main {
        right: -25px;
        width: 74%;
    }


    .olg-hero-text {
        min-height: calc(100svh - 80px);

        padding: 0 10px 25px 0;

        justify-content: flex-end;
    }


    .olg-subtitle {
        font-size: 12px;
        line-height: 1.3;

        max-width: 85%;

        margin-bottom: 12px;
    }


    .olg-title {
        font-size: var(--fs-h1);
        line-height: 1.02;

        max-width: 90%;

        margin-bottom: 22px;
    }


    .olg-st {
        font-size: 9px;
        line-height: 1.45;

        max-width: 68%;

        margin-bottom: 22px;
    }


    .olg-counter-container {
        gap: 20px;
        margin-bottom: 5px;
    }


    .olg-number {
        font-size: 36px;
    }


    .olg-counter-item h6 {
        font-size: 9px;
    }
}

@media (max-width: 375px) {

    .olg-hero-section {
        padding-top: 55px;
        padding-bottom: 15px;
    }


    .olg-hero-grid {
        min-height: calc(100svh - 70px);
    }


    .olg-image-main {
        right: -25px;
        width: 76%;
    }


    .olg-hero-text {
        min-height: calc(100svh - 70px);

        padding: 0 8px 20px 0;
    }


    .olg-subtitle {
        font-size: 11px;

        max-width: 88%;

        margin-bottom: 10px;
    }


    .olg-title {
        font-size: 32px;
        line-height: 1.02;

        max-width: 92%;

        margin-bottom: 20px;
    }


    .olg-st {
        font-size: 8px;
        line-height: 1.4;

        max-width: 70%;

        margin-bottom: 20px;
    }


    .olg-counter-container {
        gap: 18px;
        margin-bottom: 5px;
    }


    .olg-number {
        font-size: 32px;
    }


    .olg-counter-item {
        gap: 7px;
    }


    .olg-counter-item h6 {
        font-size: 8px;
        line-height: 1.25;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .olg-image-main img {
        transition: none;
    }
}
