:root {
    --tk-home-hero-height: clamp(360px, 29vw, 430px);
    --tk-home-hero-gold: #E0AD18;
    --tk-home-hero-green: #061a12;
}

.tk-home-hero {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 0;
    background: var(--tk-home-hero-green);
    overflow: hidden;
    isolation: isolate;
}

.tk-home-hero__viewport {
    position: relative;
    min-height: var(--tk-home-hero-height);
    background: var(--tk-home-hero-green);
    overflow: hidden;
}

.tk-home-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 520ms ease, visibility 520ms ease;
}

.tk-home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.tk-home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
    transform: scale(1.012);
    filter: brightness(1.07) saturate(1.05);
}

.tk-home-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 18, 12, 0.72) 0%, rgba(4, 18, 12, 0.48) 32%, rgba(4, 18, 12, 0.18) 64%, rgba(4, 18, 12, 0.04) 100%),
        linear-gradient(180deg, rgba(4, 18, 12, 0.10) 0%, rgba(4, 18, 12, 0.10) 44%, rgba(4, 18, 12, 0.34) 100%);
    z-index: 1;
}

.tk-home-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1240px);
    min-height: var(--tk-home-hero-height);
    margin-inline: auto;
    padding: clamp(24px, 2.4vw, 34px) clamp(22px, 4vw, 56px) clamp(72px, 6vw, 96px);
    display: flex;
    align-items: flex-end;
}

.tk-home-hero__content {
    width: min(100%, 540px);
    color: #fff;
}

.tk-home-hero__title {
    margin: 0;
    color: #fff;
    font-size: var(--tk-font-hero-title);
    line-height: var(--tk-line-hero-title);
    letter-spacing: var(--tk-letter-hero-title);
    font-weight: var(--tk-weight-hero-title);
    text-wrap: balance;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.tk-home-hero__text {
    margin: 14px 0 0;
    max-width: 540px;
    color: rgba(255,255,255,0.88);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.42;
    font-weight: var(--tk-weight-body);
    text-shadow: 0 2px 12px rgba(0,0,0,0.16);
}

.tk-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.tk-home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: var(--tk-font-trust);
    font-weight: var(--tk-weight-bold);
    line-height: var(--tk-line-button);
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tk-home-hero__button:hover,
.tk-home-hero__button:focus-visible {
    transform: translateY(-1px);
}

.tk-home-hero__button--primary {
    background: var(--tk-home-hero-gold);
    color: #07190f;
    border: 1px solid var(--tk-home-hero-gold);
}

.tk-home-hero__button--secondary {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.34);
    backdrop-filter: blur(8px);
}

.tk-home-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.40);
    background: rgba(5, 23, 15, 0.34);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tk-home-hero__arrow:hover,
.tk-home-hero__arrow:focus-visible {
    background: rgba(5, 23, 15, 0.56);
    border-color: rgba(255,255,255,0.68);
}

.tk-home-hero__arrow svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.tk-home-hero__arrow--prev { left: max(18px, calc((100vw - 1240px) / 2 + 18px)); }
.tk-home-hero__arrow--next { right: max(18px, calc((100vw - 1240px) / 2 + 18px)); }

.tk-home-hero__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(5, 23, 15, 0.26);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
}

.tk-home-hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,0.48);
    cursor: pointer;
    transition: width 180ms ease, background-color 180ms ease;
}

.tk-home-hero__dot.is-active {
    width: 28px;
    background: var(--tk-home-hero-gold);
}

@media (max-width: 1024px) {
    :root { --tk-home-hero-height: 340px; }

    .tk-home-hero__arrow--prev { left: 18px; }
    .tk-home-hero__arrow--next { right: 18px; }

    .tk-home-hero__inner {
        padding: 24px 28px 72px;
    }

    .tk-home-hero__content {
        width: min(100%, 500px);
    }
}

@media (max-width: 767px) {
    :root { --tk-home-hero-height: 270px; }

    .tk-home-hero__shade {
        background:
            linear-gradient(90deg, rgba(4, 18, 12, 0.74) 0%, rgba(4, 18, 12, 0.42) 62%, rgba(4, 18, 12, 0.12) 100%),
            linear-gradient(180deg, rgba(4, 18, 12, 0.12) 0%, rgba(4, 18, 12, 0.14) 42%, rgba(4, 18, 12, 0.44) 100%);
    }

    .tk-home-hero__inner {
        align-items: flex-end;
        padding: 22px 18px 56px;
    }

    .tk-home-hero__content {
        width: min(100%, 420px);
    }

    .tk-home-hero__title {
        font-size: clamp(34px, 10.8vw, 50px);
        letter-spacing: -0.05em;
    }

    .tk-home-hero__text {
        margin-top: 11px;
        font-size: 14px;
        line-height: 1.42;
    }

    .tk-home-hero__actions {
        margin-top: 14px;
        gap: 10px;
    }

    .tk-home-hero__button {
        min-height: 42px;
        padding-inline: 17px;
        font-size: 12px;
    }

    .tk-home-hero__arrow {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .tk-home-hero__arrow--prev { left: 18px; }
    .tk-home-hero__arrow--next { right: 18px; }

    .tk-home-hero__dots {
        bottom: 16px;
        left: 50%;
        max-width: calc(100% - 132px);
    }
}

@media (max-width: 420px) {
    :root { --tk-home-hero-height: 250px; }

    .tk-home-hero__button--secondary {
        display: none;
    }
}


/* Mobile homepage reduction pass. */
@media (max-width: 767px) {
    :root { --tk-home-hero-height: 270px; }

    .tk-home-hero__image {
        transform: scale(1.006);
        filter: brightness(1.06) saturate(1.03);
        object-position: center 72%;
    }

    .tk-home-hero__shade {
        background:
            linear-gradient(90deg, rgba(4, 18, 12, 0.72) 0%, rgba(4, 18, 12, 0.40) 60%, rgba(4, 18, 12, 0.10) 100%),
            linear-gradient(180deg, rgba(4, 18, 12, 0.10) 0%, rgba(4, 18, 12, 0.12) 48%, rgba(4, 18, 12, 0.48) 100%);
    }

    .tk-home-hero__inner {
        padding: 22px 16px 56px;
    }

    .tk-home-hero__content {
        width: min(100%, 320px);
    }

    .tk-home-hero__title {
        font-size: clamp(28px, 8.4vw, 38px);
        line-height: 1.02;
        letter-spacing: -0.045em;
        font-weight: 820;
    }

    .tk-home-hero__text {
        margin-top: 8px;
        max-width: 300px;
        font-size: 12.5px;
        line-height: 1.38;
    }

    .tk-home-hero__actions {
        margin-top: 13px;
    }

    .tk-home-hero__button {
        min-height: 36px;
        padding-inline: 15px;
        font-size: 11.5px;
    }

    .tk-home-hero__button--secondary {
        display: none;
    }

    .tk-home-hero__arrow {
        display: none;
    }

    .tk-home-hero__dots {
        bottom: 14px;
        padding: 6px 9px;
        gap: 6px;
        background: rgba(5, 23, 15, 0.28);
    }

    .tk-home-hero__dot {
        width: 7px;
        height: 7px;
    }

    .tk-home-hero__dot.is-active {
        width: 21px;
    }
}

@media (max-width: 420px) {
    :root { --tk-home-hero-height: 250px; }

    .tk-home-hero__text {
        max-width: 270px;
    }
}

/* LCP rendering pass: keep first hero image paint cheaper on mobile. */
.tk-home-hero__picture {
    position: absolute;
    inset: 0;
    display: block;
}

@media (max-width: 767px) {
    .tk-home-hero__image {
        transform: none;
        filter: none;
    }
}

/* Scoped accessibility pass: clearer focus and contrast without changing layout. */
.tk-home-hero__dot:focus-visible {
    outline: 2px solid #F0C94A;
    outline-offset: 3px;
}

.tk-home-hero__dot {
    background: rgba(255,255,255,0.72);
}

.tk-home-hero__dot.is-active {
    background: var(--tk-home-hero-gold);
}
