.tg-cinematic-home {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    isolation: isolate;
}

.tg-cinematic-home,
.tg-cinematic-home * {
    box-sizing: border-box;
}

.tg-cinematic-home__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: auto;
}

.tg-cinematic-home__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.tg-cinematic-home__skip {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    z-index: 5;
    padding: 0.65rem 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.56);
    color: #fff;
    font: 700 0.75rem/1 "Courier New", Courier, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
}

.tg-cinematic-home__skip:focus-visible,
.tg-cinematic-home__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.tg-cinematic-home__logo {
    position: absolute;
    left: 50%;
    top: 29%;
    width: min(60vw, 720px);
    max-width: 88vw;
    height: auto;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    filter:
        drop-shadow(-2px -2px 0 rgba(255, 126, 104, 0.82))
        drop-shadow(2px 2px 0 rgba(68, 0, 7, 0.96))
        drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 0.55rem rgba(255, 38, 38, 0.34));
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    transition: opacity 900ms steps(8), transform 900ms steps(8);
}

.tg-cinematic-home.is-logo-visible .tg-cinematic-home__logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tg-cinematic-home__cta {
    position: absolute;
    left: 50%;
    top: 67%;
    transform: translate(-50%, calc(-50% + 0.8rem));
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(78vw, 350px);
    min-height: 3.35rem;
    padding: 0.9rem 1.3rem;
    border: 3px solid #f5d26a;
    background: #c51417;
    box-shadow: 0 0 0 3px #290000, 0.45rem 0.45rem 0 #090909;
    color: #fff;
    font: 900 clamp(0.92rem, 2.5vw, 1.2rem)/1.1 "Courier New", Courier, monospace;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    text-shadow: 2px 2px 0 #290000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms steps(4), transform 420ms steps(4);
}

.tg-cinematic-home.is-cta-visible .tg-cinematic-home__cta {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.tg-cinematic-home__cta:hover,
.tg-cinematic-home__cta:focus {
    background: #e51b23;
}

.tg-cinematic-home__fallback {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #000;
}

.tg-cinematic-home__fallback img {
    width: min(420px, 80vw);
    height: auto;
}

.tg-cinematic-home__fallback a {
    color: #fff;
    font-weight: 900;
}

@media (max-width: 720px) {
    .tg-cinematic-home__logo {
        top: 26%;
        width: min(82vw, 390px);
    }

    .tg-cinematic-home__cta {
        top: 66%;
        min-width: min(84vw, 330px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-cinematic-home__logo,
    .tg-cinematic-home__cta {
        transition: none;
    }
}
