/* MAKTECH Truus Hero - scoped frontend styles */
.maktech-truus-hero {
    --mth-white: #f4f2ec;
    --mth-blue: #82a0ff;
    --mth-lime: #e6fab9;
    --mth-pink: #f0befa;
    --mth-edge: clamp(16px, 2.3vw, 38px);
    --mth-media-inset-y: 7%;
    --mth-media-inset-x: 5.5%;
    --mth-media-radius: 1.6vw;
    --mth-object-x: 50%;
    --mth-object-y: 50%;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #111;
    color: var(--mth-white);
    font-family: "DM Sans", Arial, sans-serif;
}

.maktech-truus-hero,
.maktech-truus-hero * {
    box-sizing: border-box;
}

.maktech-truus-hero button {
    font: inherit;
}

.maktech-truus-hero .mth-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #101010;
    will-change: clip-path, transform;
    clip-path: inset(var(--mth-media-inset-y) var(--mth-media-inset-x) var(--mth-media-inset-y) var(--mth-media-inset-x) round var(--mth-media-radius));
}

.maktech-truus-hero .mth-media-stage,
.maktech-truus-hero .mth-shade,
.maktech-truus-hero .mth-poster,
.maktech-truus-hero .mth-sound-hit {
    position: absolute;
    inset: 0;
}

.maktech-truus-hero .mth-media-stage {
    z-index: 1;
    overflow: hidden;
}

.maktech-truus-hero .mth-poster {
    z-index: 2;
    background-position: var(--mth-object-x) var(--mth-object-y);
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity .45s ease;
    pointer-events: none;
}

.maktech-truus-hero .mth-poster.is-hidden {
    opacity: 0;
}

.maktech-truus-hero .mth-shade {
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.03) 0%, rgba(0,0,0,.02) 38%, rgba(0,0,0,.08) 62%, rgba(0,0,0,.28) 100%);
}

.maktech-truus-hero .mth-media-image,
.maktech-truus-hero .mth-slide img,
.maktech-truus-hero .mth-native-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--mth-object-x) var(--mth-object-y);
    border: 0;
    pointer-events: none;
}

/* Image slider */
.maktech-truus-hero .mth-slider,
.maktech-truus-hero .mth-slide {
    position: absolute;
    inset: 0;
}

.maktech-truus-hero .mth-slider {
    overflow: hidden;
}

.maktech-truus-hero .mth-slide {
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    will-change: opacity, transform;
}

.maktech-truus-hero .mth-slider--fade .mth-slide {
    opacity: 0;
    transition: opacity var(--mth-slider-speed, 900ms) cubic-bezier(.22,.61,.36,1);
}

.maktech-truus-hero .mth-slider--fade .mth-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.maktech-truus-hero .mth-slider--slide .mth-slide {
    transform: translate3d(100%,0,0);
    transition: transform var(--mth-slider-speed, 900ms) cubic-bezier(.76,0,.24,1);
}

.maktech-truus-hero .mth-slider--slide .mth-slide.is-active {
    z-index: 3;
    transform: translate3d(0,0,0);
}

.maktech-truus-hero .mth-slider--slide .mth-slide.is-leaving {
    z-index: 2;
    transform: translate3d(-100%,0,0);
}

/* Video providers */
.maktech-truus-hero .mth-iframe-shell {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.maktech-truus-hero .mth-iframe-shell iframe,
.maktech-truus-hero .mth-youtube-target,
.maktech-truus-hero .mth-youtube-target iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.maktech-truus-hero .mth-sound-hit {
    z-index: 8;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: none;
}

.maktech-truus-hero .mth-loader {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 2px solid rgba(255,255,255,.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mth-spin .8s linear infinite;
    pointer-events: none;
}

@keyframes mth-spin {
    to { transform: rotate(360deg); }
}

/* Main title */
.maktech-truus-hero .mth-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    padding: 0 var(--mth-edge) clamp(34px, 5.3vh, 70px);
    pointer-events: none;
}

.maktech-truus-hero .mth-title {
    margin: 0;
    max-width: 96vw;
    color: var(--mth-white);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: clamp(68px, 8.55vw, 164px);
    line-height: .80;
    letter-spacing: -.066em;
    font-weight: 700;
    text-wrap: balance;
}

.maktech-truus-hero .mth-word {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}

.maktech-truus-hero .mth-word + .mth-word {
    margin-left: .12em;
}

.maktech-truus-hero .mth-serif {
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.07em;
    margin-left: .09em;
    margin-right: .02em;
}

.maktech-truus-hero .mth-make,
.maktech-truus-hero .mth-mainstream {
    position: relative;
}

/* Smiley */
.maktech-truus-hero .mth-smiley {
    position: absolute;
    z-index: 5;
    top: -.34em;
    right: -.50em;
    width: .72em;
    height: .72em;
    pointer-events: none;
    transform-origin: 50% 50%;
}

.maktech-truus-hero .mth-smiley svg {
    display: block;
    width: 100%;
    height: 100%;
}

.maktech-truus-hero .mth-smiley__face { fill: var(--mth-blue); }
.maktech-truus-hero .mth-smiley__detail { fill: var(--mth-lime); }

/* Mainstream oval + star */
.maktech-truus-hero .mth-mainstream {
    margin-right: .60em;
}

.maktech-truus-hero .mth-oval {
    position: absolute;
    z-index: -1;
    left: -.07em;
    top: -.08em;
    width: calc(100% + .18em);
    height: 1.09em;
    overflow: visible;
    color: var(--mth-white);
    pointer-events: none;
}

.maktech-truus-hero .mth-oval path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.maktech-truus-hero .mth-star {
    position: absolute;
    z-index: 6;
    right: -.69em;
    top: -.35em;
    width: .78em;
    height: .78em;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    pointer-events: none;
    transform-origin: 50% 50%;
}

.maktech-truus-hero button.mth-star {
    pointer-events: auto;
    cursor: pointer;
}

.maktech-truus-hero .mth-star svg {
    display: block;
    width: 100%;
    height: 100%;
}

.maktech-truus-hero .mth-star path {
    fill: var(--mth-pink);
}

.maktech-truus-hero .mth-touch-sound {
    position: absolute;
    inset: 18%;
    display: none;
    place-items: center;
    border-radius: 50%;
    background: var(--mth-lime);
    color: #16211a;
    font-size: .13em;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

/* Bottom-right controls */
.maktech-truus-hero .mth-controls {
    position: absolute;
    z-index: 12;
    right: var(--mth-edge);
    bottom: clamp(18px, 2.3vw, 34px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.maktech-truus-hero .mth-control {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    background: rgba(0,0,0,.08);
    color: #fff;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}

.maktech-truus-hero .mth-control:hover {
    transform: scale(1.06);
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.8);
}

.maktech-truus-hero .mth-control svg {
    width: 20px;
    height: 20px;
}

.maktech-truus-hero .mth-play-icon,
.maktech-truus-hero .mth-fullscreen-exit {
    display: none;
}

.maktech-truus-hero.is-media-paused .mth-play-icon { display: block; }
.maktech-truus-hero.is-media-paused .mth-pause-icon { display: none; }
.maktech-truus-hero.is-fullscreen .mth-fullscreen-enter { display: none; }
.maktech-truus-hero.is-fullscreen .mth-fullscreen-exit { display: block; }

/* Desktop sound cursor */
.maktech-truus-hero .mth-sound-cursor {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 68px;
    height: 68px;
    transform: translate(-50%,-50%) scale(.72);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mth-lime);
    color: #172117;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
    box-shadow: 0 10px 38px rgba(0,0,0,.12);
}

.maktech-truus-hero .mth-sound-cursor svg {
    position: absolute;
    width: 34px;
    height: 34px;
    display: block;
}

.maktech-truus-hero .mth-sound-cursor__mute,
.maktech-truus-hero .mth-sound-cursor__unmute {
    transition: opacity .12s ease, transform .18s ease;
    transform-origin: center;
}

.maktech-truus-hero .mth-sound-cursor__unmute {
    opacity: 0;
    transform: scale(.82);
}

.maktech-truus-hero .mth-sound-cursor.is-sound-on .mth-sound-cursor__mute {
    opacity: 0;
    transform: scale(.82);
}

.maktech-truus-hero .mth-sound-cursor.is-sound-on .mth-sound-cursor__unmute {
    opacity: 1;
    transform: scale(1);
}

.maktech-truus-hero:fullscreen,
.maktech-truus-hero:-webkit-full-screen {
    width: 100vw;
    height: 100vh !important;
    min-height: 100vh !important;
}

/* Tablet defaults */
@media (max-width: 1024px) {
    .maktech-truus-hero .mth-title {
        font-size: clamp(62px, 10.8vw, 116px);
        line-height: .82;
    }

    .maktech-truus-hero .mth-content {
        padding-bottom: clamp(34px, 5vh, 56px);
    }
}

/* Mobile defaults */
@media (max-width: 767px) {
    .maktech-truus-hero {
        --mth-edge: 18px;
        --mth-media-inset-y: 5.5%;
        --mth-media-inset-x: 4.5%;
        --mth-media-radius: 18px;
        min-height: 560px;
    }

    .maktech-truus-hero .mth-content {
        padding-bottom: 78px;
    }

    .maktech-truus-hero .mth-title {
        max-width: 100%;
        font-size: clamp(48px, 14.9vw, 76px);
        line-height: .84;
        letter-spacing: -.06em;
        text-wrap: wrap;
    }

    .maktech-truus-hero .mth-word + .mth-word {
        margin-left: .10em;
    }

    .maktech-truus-hero .mth-smiley {
        width: .68em;
        height: .68em;
        right: -.49em;
        top: -.30em;
    }

    .maktech-truus-hero .mth-mainstream { margin-right: .52em; }

    .maktech-truus-hero .mth-star {
        width: .72em;
        height: .72em;
        right: -.60em;
        top: -.29em;
    }

    .maktech-truus-hero button.mth-star .mth-touch-sound {
        display: grid;
    }

    .maktech-truus-hero.mth-type-image .mth-touch-sound,
    .maktech-truus-hero.mth-type-slider .mth-touch-sound {
        display: none;
    }

    .maktech-truus-hero .mth-controls {
        right: 18px;
        bottom: 18px;
    }

    .maktech-truus-hero .mth-control {
        width: 38px;
        height: 38px;
    }

    .maktech-truus-hero .mth-sound-cursor { display: none; }
    .maktech-truus-hero .mth-sound-hit { cursor: pointer; }
}

@media (max-width: 430px) {
    .maktech-truus-hero .mth-title {
        font-size: clamp(45px, 14.2vw, 64px);
    }

    .maktech-truus-hero .mth-content {
        padding-bottom: 72px;
    }
}

@media (max-width: 360px) {
    .maktech-truus-hero .mth-title {
        font-size: clamp(42px, 13.7vw, 54px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .maktech-truus-hero .mth-media { clip-path: none !important; }
    .maktech-truus-hero .mth-word,
    .maktech-truus-hero .mth-smiley,
    .maktech-truus-hero .mth-star,
    .maktech-truus-hero .mth-oval path,
    .maktech-truus-hero .mth-slide {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
