/* =========================================================
   TIRAQ — motion layer
   All motion is transform / opacity only (GPU-cheap) and is
   fully disabled under prefers-reduced-motion (see style.css).
   ========================================================= */


/* -------------------------
   KEYFRAMES
------------------------- */

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

@keyframes orb-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-soft {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reveal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes line-rise {
    from { transform: translateY(105%); }
    to   { transform: translateY(0); }
}


/* -------------------------
   SCROLL REVEALS
   Elements are only hidden when JS is confirmed running
   (html.js-anim), so the page is fully readable if JS fails.
------------------------- */

.js-anim .reveal {
    opacity: 0;
}

.js-anim .reveal.in {
    animation-duration: 0.9s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-delay: var(--d, 0ms);
    animation-fill-mode: both;
}

.js-anim .reveal.in.reveal-up   { animation-name: reveal-up; }
.js-anim .reveal.in.reveal-soft { animation-name: reveal-soft; }
.js-anim .reveal.in.reveal-fade { animation-name: reveal-fade; }

/* Once finished, drop the animation so hover transforms work */
.js-anim .reveal.reveal-done {
    opacity: 1;
    animation: none;
}


/* -------------------------
   HERO HEADLINE MASK REVEAL
------------------------- */

.line {
    display: block;
    overflow: hidden;
}

.line > span {
    display: block;
}

/* Only hide the lines when JS is confirmed running */
.js-anim .line > span {
    transform: translateY(105%);
}

.js-anim .hero-ready .line > span {
    animation: line-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-ready .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero-ready .line:nth-child(2) > span { animation-delay: 0.15s; }
.hero-ready .line:nth-child(3) > span { animation-delay: 0.25s; }


/* -------------------------
   DESKTOP CURSOR SPOTLIGHT
   Fine pointers only, very light, disabled on reduced motion.
------------------------- */

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                opacity 0.3s var(--ease), background-color 0.3s var(--ease);
    will-change: transform;
}

.cursor-dot.is-active {
    opacity: 1;
}

.cursor-dot.is-hover {
    width: 54px;
    height: 54px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}

@media (hover: none), (pointer: coarse) {
    .cursor-dot { display: none; }
}
