:root {
    --bg: #050505;
    --bg2: #0b0b0b;
    --fg: #fff;
    --fg2: #a8a8a8;
    --brd: rgba(255, 255, 255, .08);
    --px: clamp(32px, 9vw, 140px);
    --nh: 60px;
    --hf: 'Montserrat', sans-serif;
    --bf: 'Barlow', sans-serif;
    --e: cubic-bezier(.16, 1, .3, 1)
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--bf);
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none !important
}

*,
a,
button {
    cursor: none !important
}

img {
    display: block;
    max-width: 100%
}

a {
    text-decoration: none;
    color: inherit
}

button {
    background: none;
    border: none;
    font-family: var(--bf);
    color: var(--fg)
}

/* BG */
#bg-canvas,
#bg-holo,
#bg-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none
}

#bg-canvas {
    z-index: 0
}

#bg-noise {
    position: fixed;
    inset: 0;
    background: url('./public/helpers/noise.jpg');
    opacity: 0.08;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

#bg-holo {
    z-index: 1;
    opacity: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 255, 255, .03), transparent);
    transition: opacity .6s ease
}

#bg-vignette {
    z-index: 2;
    background: radial-gradient(ellipse 85% 75% at 50% 40%, transparent 20%, var(--bg) 100%)
}

/* LOADER */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .9s var(--e)
}

#loader.out {
    opacity: 0;
    pointer-events: none
}

#loader-noise-canvas {
    position: absolute;
    inset: 0;
    opacity: .05;
    pointer-events: none
}

#loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px
}

#loader-logo {
    font-family: var(--hf);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -.03em;
    animation: lp 1.2s var(--e) forwards;
    opacity: 0
}

@keyframes lp {
    0% {
        opacity: 0;
        transform: scale(.92)
    }

    70% {
        opacity: 1;
        transform: scale(1)
    }

    100% {
        opacity: 1
    }
}

#loader-bar-wrap {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden
}

#loader-bar {
    height: 100%;
    background: var(--fg);
    width: 0;
    animation: lb 1s var(--e) .2s forwards
}

@keyframes lb {
    to {
        width: 100%
    }
}

/* CURSOR */
#cursor {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fg);
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width .25s var(--e), height .25s var(--e);
    will-change: transform
}

#cursor.big {
    width: 28px;
    height: 28px
}

#cursor-ring {
    position: fixed;
    z-index: 3;
    pointer-events: none;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: url('./public/helpers/spotlight.webp') no-repeat center center;
    background-size: contain;
    opacity: 0.08;
    transform: translate(-50%, -50%);
    will-change: transform
}

/* SCROLL PROGRESS */
#scroll-prog {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    height: 1px;
    width: 0%;
    background: rgba(255, 255, 255, .35);
    transition: width .05s linear
}

/* NAV */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    height: var(--nh);
    background: rgba(5, 5, 5, .5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--brd);
    transition: transform .45s var(--e)
}

#nav.hide {
    transform: translateY(-100%)
}

.nav-wrap {
    height: 100%;
    padding: 0 var(--px);
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    font-family: var(--hf);
    font-size: 1.1rem;
    font-weight: 600
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    position: relative;
    font-size: .8rem;
    color: var(--fg2);
    transition: color .3s
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg)
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--fg);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, .5)
}

.nav-cta {
    font-size: .8rem;
    padding: .5rem 1.4rem;
    border: 1px solid var(--brd);
    border-radius: 100px;
    transition: background .3s, color .3s, border-color .3s
}

.nav-cta:hover {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg)
}

/* LAYOUT */
.wrap {
    padding: 0 var(--px)
}

.sec {
    padding: 6rem 0;
    position: relative;
    z-index: 4
}

.sec-head {
    margin-bottom: 3.5rem
}

.label {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--fg2);
    margin-bottom: 1.2rem
}

.sec-title {
    font-family: var(--hf);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 4rem
}

.glow-text {
    text-shadow: 0 0 40px rgba(255, 255, 255, .12), 0 0 80px rgba(255, 255, 255, .05)
}

/* BUTTONS */
.btn-solid {
    display: inline-flex;
    align-items: center;
    padding: .8rem 2rem;
    border-radius: 100px;
    background: var(--fg);
    color: var(--bg);
    font-size: .85rem;
    font-weight: 500;
    font-family: var(--hf);
    transition: box-shadow .3s
}

.btn-solid:hover {
    box-shadow: 0 0 28px rgba(255, 255, 255, .18)
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: .8rem 2rem;
    border-radius: 100px;
    background: transparent;
    color: var(--fg);
    font-size: .85rem;
    border: 1px solid var(--brd);
    transition: border-color .3s, background .3s
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .04)
}

/* ── HERO ── */
#hero {
    position: relative;
    z-index: 4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: calc(var(--nh) + 8rem) 0 5rem;
    gap: 7rem
}

#hero-center {
    position: relative;
    z-index: 2;
    padding: 0 var(--px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0
}

.hero-spotlight {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    height: 550px;
    background: radial-gradient(ellipse at top center, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    filter: blur(40px)
}

.hero-eyebrow {
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fg2);
    margin-bottom: 1.6rem;
    opacity: 0
}

.hero-h1 {
    font-family: var(--hf);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.05;
    margin-bottom: 1.6rem;
    opacity: 0
}

.hero-sub {
    font-size: clamp(.85rem, 1.2vw, .95rem);
    color: var(--fg2);
    max-width: 540px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0
}

.hero-anim {
    opacity: 0
}

.hero-anim.vis {
    opacity: 1
}

/* ── MARQUEE ── */
#marquee-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    z-index: 4;
    overflow-x: hidden;
    overflow-y: visible
}

.mq-fade-l,
.mq-fade-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    z-index: 10;
    pointer-events: none
}

.mq-fade-l {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent)
}

.mq-fade-r {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent)
}

.mq-row {
    display: flex
}

.mq-track {
    display: flex;
    gap: 0.5rem;
    padding-left: .75rem;
    padding-right: .75rem;
    width: max-content;
    animation: mqleft linear infinite
}

.mq-rev .mq-track {
    animation-direction: reverse
}

@keyframes mqleft {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Thumbnail card — NEVER pause whole row */
.th {
    position: relative;
    flex-shrink: 0;
    width: 360px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--brd);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s, opacity .4s var(--e);
    -webkit-mask-image: -webkit-radial-gradient(white, black)
}

.th img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--e);
    border-radius: 9px
}



/* Row itself never pauses */

/* ── MASONRY PORTFOLIO ── */
#masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 1.5rem;
    align-items: stretch
}

.mc {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--brd);
    background: var(--bg2);
    transition: transform .5s var(--e), box-shadow .5s var(--e), border-color .5s, opacity .5s var(--e);
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) translateZ(0) rotateX(0deg) rotateY(0deg);
    -webkit-mask-image: -webkit-radial-gradient(white, black)
}

.mc:hover {
    transform: scale(1.08) !important;
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 28px var(--glow, rgba(255, 255, 255, .05));
    z-index: 10;
}

.badge-new {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mc-img {
    aspect-ratio: 16/9;
    height: 100%;
    overflow: hidden;
    position: relative
}

.mc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--e);
    border-radius: 11px
}

.mc-lbl {
    display: none !important;
}



.mc-lbl h3 {
    font-family: var(--hf);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .2rem
}

.mc-lbl span {
    font-size: .68rem;
    color: var(--fg2);
    letter-spacing: .08em;
    text-transform: uppercase
}

/* STAGGER OFFSETS via data */
.mc[data-d="1"] {
    transition-delay: .1s
}

.mc[data-d="2"] {
    transition-delay: .2s
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center
}

.about-portrait-wrap {
    display: flex;
    justify-content: center
}

.portrait-holo {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-left: 0
}

.portrait-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
    animation: gring 4s ease-in-out infinite alternate;
    filter: blur(20px)
}

@keyframes gring {
    from {
        transform: scale(.95);
        opacity: .5
    }

    to {
        transform: scale(1.05);
        opacity: 1
    }
}

.portrait-img-wrap {
    position: relative;
    width: 100%;
    animation: pfloat 5s ease-in-out infinite;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%);
    mask-composite: intersect
}

.portrait-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom center
}

@keyframes pfloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.holo-chip {
    position: absolute;
    padding: .45rem 1rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: .72rem;
    color: var(--fg2);
    white-space: nowrap;
    animation: chipfloat 4s ease-in-out infinite
}

.chip-1 {
    top: 120px;
    right: 20px;
    animation-delay: 0s
}

.chip-2 {
    bottom: 80px;
    left: -10px;
    animation-delay: 1.5s
}

.chip-3 {
    bottom: 20px;
    right: 40px;
    animation-delay: .8s
}

@keyframes chipfloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.about-h2 {
    font-family: var(--hf);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem
}

.about-p {
    font-size: .9rem;
    color: var(--fg2);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    max-width: 540px;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--brd);
    max-width: 540px;
}

.astat {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.astat b {
    font-family: var(--hf);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -.03em
}

.astat span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--fg2)
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 30vh;
    position: relative;
    margin-top: 3rem;
    align-items: center;
    padding-bottom: 0;
}

.timeline-line {
    display: none;
}

.proc-step {
    --card-h: clamp(400px, 65vh, 650px);
    position: sticky;
    top: calc(50vh - (var(--card-h) / 2));
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 850px;
    height: var(--card-h);
}

.proc-step:nth-child(2) {
    z-index: 2;
}

.proc-step:nth-child(3) {
    z-index: 3;
}

.proc-step:nth-child(4) {
    z-index: 4;
}

.proc-num {
    position: absolute;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--hf);
    font-size: .72rem;
    letter-spacing: .14em;
    color: var(--fg2);
    background: var(--bg);
    border: 1px solid var(--brd);
    border-radius: 100px;
    padding: .4rem .9rem;
    z-index: 5;
}

.proc-card {
    padding: clamp(1rem, 3vh, 2rem) 1.5rem;
    border-radius: 14px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg2);
    border: 1px solid var(--brd);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s var(--e);
}

.proc-card h3 {
    font-family: var(--hf);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.proc-card p {
    font-size: .85rem;
    color: var(--fg2);
    line-height: 1.7;
    margin-top: auto;
    flex-shrink: 0;
}

.proc-img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex: 1;
    min-height: 0;
}

.shine-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
}

.shine-wrap .proc-img {
    margin-bottom: 0;
    flex: 1;
    max-height: 100%;
}

.shine-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    animation: shineSweep 4s infinite;
}

@keyframes shineSweep {
    0% {
        left: -150%;
    }

    20%,
    100% {
        left: 250%;
    }
}

mark {
    background: transparent;
    color: var(--fg);
    position: relative;
    white-space: nowrap;
    z-index: 1;
    font-weight: 500;
}

mark::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: -1;
    transform: skewX(-10deg);
}

/* Chat UI */
.chat-ui {
    display: flex;
    flex-direction: column;
    margin-bottom: .5rem;
    animation: chatUiLoop 6s forwards;
    flex: 1;
    min-height: 0;
    justify-content: center;
}

@keyframes chatUiLoop {

    0%,
    80% {
        opacity: 1;
    }

    90%,
    100% {
        opacity: 0;
    }
}

.chat-msg {
    padding: .5rem .8rem;
    border-radius: 12px;
    font-size: .78rem;
    max-width: 80%;
    opacity: 0;
    transform: translateY(8px);
    margin-bottom: .6rem;
}

.recv {
    background: rgba(255, 255, 255, .07);
    border-radius: 0 12px 12px 12px;
    align-self: flex-start
}

.sent {
    background: rgba(255, 255, 255, .14);
    border-radius: 12px 0 12px 12px;
    align-self: flex-end
}

.chat-m1 {
    animation: chatpop .4s var(--e) .8s forwards
}

.chat-m2 {
    animation: chatpop .4s var(--e) 1.9s forwards
}

.chat-m3 {
    animation: chatpop .4s var(--e) 3.2s forwards
}

@keyframes chatpop {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 48px;

    /* Hidden by default so it doesn't take space */
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: .8rem;
    padding-right: .8rem;
    opacity: 0;
    overflow: hidden;
    border: none;
    box-sizing: border-box;
}

.chat-typing.recv {
    background: rgba(255, 255, 255, .07);
    border-radius: 0 12px 12px 12px;
    align-self: flex-start;
}

.chat-typing.sent {
    background: rgba(255, 255, 255, .14);
    border-radius: 12px 0 12px 12px;
    align-self: flex-end;
}

/* Typing animations */
.chat-t1 {
    animation: typeFade .8s var(--e) 0s forwards
}

.chat-t2 {
    animation: typeFade .9s var(--e) 1s forwards
}

.chat-t3 {
    animation: typeFade 1.2s var(--e) 2s forwards
}

@keyframes typeFade {
    0% {
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }

    15% {
        max-height: 40px;
        margin-bottom: .6rem;
        padding-top: .5rem;
        padding-bottom: .5rem;
        opacity: 1;
    }

    85% {
        max-height: 40px;
        margin-bottom: .6rem;
        padding-top: .5rem;
        padding-bottom: .5rem;
        opacity: 1;
    }

    100% {
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        opacity: 0;
    }
}

.chat-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fg2);
    animation: tdot 1.2s ease-in-out infinite
}

.chat-typing span:nth-child(2) {
    animation-delay: .2s
}

.chat-typing span:nth-child(3) {
    animation-delay: .4s
}

@keyframes tdot {

    0%,
    80%,
    100% {
        transform: scale(.6);
        opacity: .4
    }

    40% {
        transform: scale(1);
        opacity: 1
    }
}

/* Sketch UI */
.sketch-ui {
    padding: .75rem;
    background: rgba(255, 255, 255, .03);
    border-radius: 10px;
    border: 1px solid var(--brd);
    margin-bottom: .5rem
}

.sketch-paper {
    position: relative;
    height: 90px
}

.sk-line {
    position: absolute;
    height: 1px;
    background: rgba(255, 255, 255, .2);
    border-radius: 4px
}

.sk-l1 {
    width: 0;
    top: 15px;
    left: 10px;
    animation: skdraw 1s var(--e) .3s forwards
}

.sk-l2 {
    width: 0;
    top: 30px;
    left: 10px;
    animation: skdraw .8s var(--e) .9s forwards
}

@keyframes skdraw {
    to {
        width: 60%
    }
}

.sk-rect {
    position: absolute;
    width: 0;
    height: 0;
    right: 10px;
    top: 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    animation: skrect .6s var(--e) 1.5s forwards;
    border-radius: 3px
}

@keyframes skrect {
    to {
        width: 40px;
        height: 35px
    }
}

.sk-circle {
    position: absolute;
    width: 0;
    height: 0;
    right: 12px;
    top: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    animation: skcirc .5s var(--e) 2.2s forwards
}

@keyframes skcirc {
    to {
        width: 18px;
        height: 18px
    }
}

.sk-note {
    position: absolute;
    font-size: .6rem;
    color: rgba(255, 200, 0, .6);
    opacity: 0;
    animation: sknote .3s ease forwards
}

.sk-n1 {
    top: 50px;
    left: 10px;
    animation-delay: 1.8s
}

.sk-n2 {
    top: 65px;
    left: 10px;
    animation-delay: 2.5s
}

@keyframes sknote {
    to {
        opacity: 1
    }
}

/* Reveal UI */
.reveal-ui {
    position: relative;
    height: 90px;
    margin-bottom: .5rem;
    border-radius: 10px;
    overflow: hidden
}

.reveal-sketch,
.reveal-final {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.reveal-sketch {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--brd)
}

.rev-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1rem;
    width: 100%
}

.rev-lines div {
    height: 2px;
    background: rgba(255, 255, 255, .15);
    border-radius: 4px;
    animation: revline 2s ease-in-out infinite
}

.rev-lines div:nth-child(2) {
    width: 70%;
    animation-delay: .2s
}

.rev-lines div:nth-child(3) {
    width: 50%;
    animation-delay: .4s
}

.rev-lines div:nth-child(4) {
    width: 80%;
    animation-delay: .6s
}

@keyframes revline {

    0%,
    100% {
        opacity: .4
    }

    50% {
        opacity: 1
    }
}

.reveal-final {
    opacity: 0;
    animation: revfinal 1s var(--e) 1.5s forwards
}

@keyframes revfinal {
    to {
        opacity: 1
    }
}

.reveal-final img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.reveal-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    animation: flash .4s ease 1.5s
}

@keyframes flash {
    0% {
        opacity: .6
    }

    100% {
        opacity: 0
    }
}

.reveal-glow-ring {
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .2);
    opacity: 0;
    animation: gring2 .5s ease 2s forwards
}

@keyframes gring2 {
    to {
        opacity: 1
    }
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--brd);
    position: relative;
    overflow: hidden
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 60%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .04), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--e)
}

.glass-card:hover::before {
    left: 150%
}

/* TESTIMONIALS */
#testi-marquee {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    overflow-x: hidden;
    overflow-y: visible
}

.t-card {
    width: 360px;
    flex-shrink: 0;
    padding: 2rem 1.8rem;
    border-radius: 14px;
    transition: transform .4s var(--e)
}

.t-card:hover {
    transform: translateY(-5px)
}

.t-stars {
    font-size: .85rem;
    color: #ffd700;
    letter-spacing: .15em;
    margin-bottom: 1.2rem
}

.t-card blockquote {
    font-size: .88rem;
    color: var(--fg2);
    font-style: italic;
    line-height: 1.8;
}

.t-who span {
    font-size: .7rem;
    color: var(--fg2)
}

/* CONTACT */
.contact-sec {
    text-align: center
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center
}

.contact-h {
    font-family: var(--hf);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 1.2rem
}

.contact-p {
    font-size: .9rem;
    color: var(--fg2);
    max-width: 420px;
    line-height: 1.8;
    margin-bottom: 2.5rem
}

.contact-btns {
    margin-bottom: 2rem
}

.socials {
    display: flex;
    gap: 2rem
}

.socials a {
    font-size: .8rem;
    color: var(--fg2);
    transition: color .3s
}

.socials a:hover {
    color: var(--fg)
}

/* FOOTER */
#footer {
    position: relative;
    z-index: 4;
    padding: 2.5rem 0;
    border-top: 1px solid var(--brd)
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem
}

.footer-logo {
    font-family: var(--hf);
    font-size: 1rem;
    font-weight: 600
}

.footer-copy {
    font-size: .72rem;
    color: var(--fg2)
}

.footer-links {
    display: flex;
    gap: 1.5rem
}

.footer-links a {
    font-size: .72rem;
    color: var(--fg2);
    transition: color .3s
}

.footer-links a:hover {
    color: var(--fg)
}

/* SCROLL REVEAL */
.rv {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity .9s var(--e), transform .9s var(--e), filter .9s var(--e)
}

.rv.vis {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0)
}

[data-d="1"] {
    transition-delay: .12s
}

[data-d="2"] {
    transition-delay: .24s
}

[data-d="3"] {
    transition-delay: .36s
}

[data-d="4"] {
    transition-delay: .48s
}

/* Section transition sweep (REMOVED - Replaced by fixed bottom gradient) */
#bottom-gradient {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    z-index: 8000;
    opacity: 0;
    transition: opacity .6s var(--e)
}

#bottom-gradient.vis {
    opacity: 1
}

.section-separator {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    margin: 3rem auto;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 0.8;
}

/* RESPONSIVE */
@media(max-width:1100px) {
    #masonry {
        grid-template-columns: repeat(2, 1fr)
    }

    .process-timeline {
        grid-template-columns: 1fr
    }

    .timeline-line {
        display: none
    }


}

@media(max-width:820px) {
    :root {
        --px: clamp(20px, 5vw, 40px)
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    #masonry {
        grid-template-columns: 1fr;
    }



    .nav-links {
        display: none
    }

    .about-text-side {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem
    }

    .portrait-holo {
        width: 100%;
        max-width: 380px;
        height: auto;
        margin: 0 auto
    }

    .chip-1 {
        top: 80px;
        right: 0
    }

    .chip-2 {
        bottom: 60px;
        left: -10px
    }

    .chip-3 {
        bottom: 10px;
        right: 20px
    }
}

@media(max-width:480px) {

    #cursor,
    #cursor-ring {
        display: none
    }

    *,
    a,
    button {
        cursor: auto !important
    }

    .hero-btns {
        flex-direction: column;
        align-items: center
    }

    .portrait-holo {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto
    }

    .chip-1 {
        top: 40px;
        right: -10px;
        font-size: .65rem;
        padding: .3rem .7rem
    }

    .chip-2 {
        bottom: 40px;
        left: -15px;
        font-size: .65rem;
        padding: .3rem .7rem
    }

    .chip-3 {
        bottom: 0;
        right: 0;
        font-size: .65rem;
        padding: .3rem .7rem
    }
}