:root {
    --bg: #09080f;
    --card: rgba(255, 255, 255, 0.035);
    --card-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f2f3f7;
    --muted: #9ba0ad;
    --violet: #8b6cff;
    --magenta: #f0509b;
    --ember: #ff8a4c;
    --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg) radial-gradient(rgba(255, 255, 255, 0.04) 1.3px, transparent 1.8px) 0 0 / 26px 26px; color: var(--text); font: 400 16px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.mono, code, pre { font-family: var(--mono); font-variant-ligatures: none; }

/* progress + nav */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--magenta), var(--ember), var(--violet)); }
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 60px; padding: 0 clamp(16px, 3vw, 32px);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(9, 8, 15, 0.6); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line);
    opacity: 0; animation: fade 0.8s 0.1s forwards;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.links { position: relative; display: flex; gap: 4px; }
.links a { position: relative; z-index: 1; padding: 6px 14px; font-size: 14px; color: var(--muted); transition: color 0.25s; }
.links a:hover, .links a.on { color: var(--text); }
.pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--card-2); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }

/* buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--card-2); border: 1px solid var(--line); transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(0) scale(0.98); }
/* ink fill: a circle of ink grows from where the pointer entered and withdraws toward where it left (set by main.js) */
.btn, .copy, .filters button:not(.on) { isolation: isolate; --ink: #f2f3f7; --ink-text: #09080f; --r: 160px; --ox: 50%; --oy: 50%; }
.btn::before, .copy::before, .filters button:not(.on)::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: var(--ink);
    width: calc(var(--r) * 2); height: calc(var(--r) * 2); left: calc(50% - var(--r)); top: calc(50% - var(--r));
    transform-origin: var(--ox) var(--oy); transform: scale(0); transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn, .copy, .filters button { transition: color 0.4s var(--ease), transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
@media (hover: hover) {
    .btn:hover, .copy:hover, .filters button:not(.on):hover { color: var(--ink-text); }
    .btn:hover::before, .copy:hover::before, .filters button:not(.on):hover::before { transform: scale(1); }
}
.copy { position: relative; overflow: hidden; }
.filters button { position: relative; overflow: hidden; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-primary { background: var(--violet); border-color: transparent; box-shadow: 0 8px 30px -8px rgba(139, 108, 255, 0.7); }
.btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); animation: shine 4.5s 2s infinite; }
.btn .ar { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateY(3px); }

/* pinned hero: the camera layer zooms, blurs and dims while the About curtain slides up over it */
.pin { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cam { position: absolute; inset: 0; transform-origin: 50% 42%; will-change: transform, filter; }
.media { position: absolute; inset: 0; }
.veil { position: absolute; inset: 0; z-index: 4; background: var(--bg); opacity: 0; pointer-events: none; }
.reel {
    position: absolute; inset: -20%;
    background:
        radial-gradient(42% 52% at 16% 18%, rgba(139, 108, 255, 0.38), transparent 70%),
        radial-gradient(46% 56% at 86% 34%, rgba(240, 80, 155, 0.30), transparent 70%),
        radial-gradient(40% 45% at 32% 92%, rgba(255, 138, 76, 0.18), transparent 70%),
        #0c0a14;
    background-size: 140% 140%; animation: drift 22s ease-in-out infinite alternate;
}
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.avatar { position: absolute; z-index: 2; width: min(46vw, 640px); height: auto; right: 3vw; bottom: -4vh; transform-origin: 50% 50%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); opacity: 0; animation: avatar-in 1.2s 0.5s var(--ease) forwards; will-change: transform; pointer-events: none; }
.avatar.float { animation: float 6s ease-in-out infinite; opacity: 1; }
canvas.avatar { bottom: 10vh; }

.hero { position: absolute; z-index: 3; inset: 0; padding: 0 clamp(20px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 760px; will-change: transform, opacity; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(240, 80, 155, 0.12); color: #ff9ec8; border: 1px solid rgba(240, 80, 155, 0.3); opacity: 0; animation: up 0.7s 0.3s var(--ease) forwards; }
.badge.alt { background: var(--card-2); color: var(--text); border-color: var(--line); animation-delay: 0.42s; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); display: inline-block; flex: none; animation: pulse 1.6s infinite; }
.title { font: 800 clamp(48px, 8.6vw, 120px)/0.98 var(--display); letter-spacing: -0.04em; }
.title .w { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.title .l { display: inline-block; transform: translateY(110%); animation: rise 0.9s calc(0.45s + var(--i) * 0.045s) var(--ease) forwards; }
.tagline { font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: 600; color: #d8dbe3; opacity: 0; animation: up 0.7s 1s var(--ease) forwards; }
.roll { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; height: 1.3em; color: var(--ember); }
.roll span { display: block; }
.roll .out { animation: roll-out 0.45s var(--ease) forwards; position: absolute; }
.roll .in { animation: roll-in 0.45s var(--ease); }
.intro { max-width: 52ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); opacity: 0; animation: up 0.7s 1.1s var(--ease) forwards; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: up 0.7s 1.2s var(--ease) forwards; }
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 720px; }
.hs { position: relative; padding: 14px 16px; border-radius: 14px; background: rgba(12, 10, 20, 0.55); backdrop-filter: blur(10px); border: 1px solid var(--line); opacity: 0; transform: translateY(14px); animation: card 0.8s calc(1.3s + var(--i, 0) * 0.08s) var(--ease) forwards; }
.hs:nth-child(2) { --i: 1; } .hs:nth-child(3) { --i: 2; } .hs:nth-child(4) { --i: 3; }
.hs b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hs span { font-size: 12px; color: var(--muted); }
.hs .dot { position: absolute; top: 14px; right: 14px; }
.spark { position: absolute; left: 16px; right: 16px; bottom: 6px; width: calc(100% - 32px); height: 16px; opacity: 0.8; }
.spark polyline { fill: none; stroke: var(--magenta); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s var(--ease); }
.spark.drawn polyline { stroke-dashoffset: 0; }

/* About: a curtain that rises over the pinned hero */
.curtain {
    position: relative; z-index: 5; margin-top: -10vh; padding: 110px 0 60px;
    background: var(--bg) radial-gradient(rgba(255, 255, 255, 0.04) 1.3px, transparent 1.8px) 0 0 / 26px 26px;
    border-radius: 34px 34px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -40px 90px rgba(0, 0, 0, 0.65);
}
.about { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ab-text { display: grid; gap: 14px; }
.kicker { font-size: 13px; color: var(--muted); font-weight: 600; }
.about h2 { font: 800 clamp(36px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.03em; }
.about p { color: #c4c8d2; max-width: 60ch; }
.inf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.inf { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.inf span { display: block; font-size: 12px; color: var(--muted); }
.inf b { font-size: 15px; }

.profile { display: grid; border-radius: 24px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform 0.45s var(--ease), border-color 0.3s; }
.profile:hover { transform: translateY(-4px) rotate(-0.6deg); border-color: rgba(255, 255, 255, 0.16); }
.p-body { padding: 16px 18px 18px; display: grid; gap: 2px; }
.p-body > b { font: 700 22px/1.2 var(--display); }
.p-body > span { font-size: 13px; color: var(--muted); }
.p-since { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); display: grid; }
.p-since span { font-size: 12px; color: var(--muted); }
.p-since b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hint { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; color: var(--muted); transition: opacity 0.3s; }
.hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite alternate; }

/* marquee */
.marquee { display: grid; gap: 10px; padding: 26px 0; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.row { display: flex; width: max-content; animation: belt 40s linear infinite; }
.row.rev { animation-direction: reverse; animation-duration: 48s; }
.belt { display: flex; gap: 10px; padding-right: 10px; }
.belt span { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: #c9ccd5; white-space: nowrap; }
.marquee:hover .row { animation-play-state: paused; }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 48px) 20px; }
.head { margin-bottom: 40px; max-width: 720px; }
.head h2 { display: flex; align-items: center; gap: 16px; font: 800 clamp(34px, 5vw, 60px)/1.05 var(--display); letter-spacing: -0.03em; }
/* a 2x1 Roblox brick with studs marks every section title */
.head h2::before { content: ""; flex: none; width: 34px; height: 20px; border-radius: 4px; background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 3px, transparent 3.6px) 0 0 / 17px 20px, var(--ember); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
#games .head h2::before { background-color: var(--magenta); }
#systems .head h2::before { background-color: var(--violet); }
#contact .head h2::before { background-color: #ff5d6c; }
.head p { color: var(--muted); margin-top: 12px; }
.head p b { color: var(--magenta); }
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* spotlight on hover for any card */
.cell, .game, .clip, .cc { position: relative; isolation: isolate; }
.cell::before, .game::before, .clip::before, .cc::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 60%); }
.cell:hover::before, .game:hover::before, .clip:hover::before, .cc:hover::before { opacity: 1; }

/* bento: every cell has the same height and every demo a fixed box, so animations never resize the grid */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cell { height: 360px; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-rows: auto auto 1fr; gap: 6px; overflow: hidden; transition: border-color 0.3s; }
.cell:hover { border-color: rgba(255, 255, 255, 0.16); }
.cell h3 { font: 700 19px/1.2 var(--display); }
.cell > p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.demo { position: relative; min-height: 0; height: 100%; overflow: hidden; border-radius: 14px; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); }

.code { margin: 0; padding: 16px 18px; font-size: 13px; line-height: 1.75; white-space: pre; color: #cfd3dc; }
.code .kw { color: #c084fc; } .code .num { color: #ffb067; } .code .str { color: #ff9ec8; } .code .cm { color: #6b7280; }
.code::after { content: ""; display: inline-block; width: 7px; height: 1.05em; vertical-align: text-bottom; background: var(--violet); animation: blink 1s steps(2) infinite; }

/* web: a tiny browser whose page assembles itself */
.browser .bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3f4b; }
.browser .url { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: var(--card-2); font: 11px/18px var(--mono); color: var(--muted); padding: 0 8px; overflow: hidden; white-space: nowrap; }
.page { padding: 12px; display: grid; gap: 10px; }
.page > *, .page span { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.page .on { opacity: 1; transform: none; }
.b-nav { height: 10px; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--card-2) 20%, transparent 20% 60%, var(--card-2) 60%); }
.b-hero { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: linear-gradient(120deg, rgba(139, 108, 255, 0.35), rgba(240, 80, 155, 0.2)); }
.b-hero span { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); width: 62%; }
.b-hero span:nth-child(2) { width: 42%; background: rgba(255, 255, 255, 0.3); }
.b-hero .b-btn { width: 60px; height: 16px; border-radius: 99px; background: var(--ember); }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-cards span { height: 44px; border-radius: 8px; background: var(--card-2); }

/* team: a sprint board whose tickets move across the columns while commits land in a short log */
.team { padding: 12px 14px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.t-top { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.t-top em { font: 11px var(--mono); font-style: normal; color: var(--muted); margin-left: auto; }
.t-prog { flex: 1; max-width: 120px; height: 5px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.t-prog i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--magenta)); transition: width 0.6s var(--ease); }
.t-cols { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.t-lane { position: relative; min-height: 0; }
.tk { position: absolute; left: 0; top: 0; height: 26px; padding: 0 9px; display: flex; align-items: center; border-radius: 7px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--violet); transition: transform 0.7s var(--ease), border-color 0.4s, background 0.4s; }
.tk[data-col="1"] { border-left-color: var(--magenta); background: rgba(240, 80, 155, 0.12); }
.tk[data-col="2"] { border-left-color: var(--ember); background: rgba(255, 138, 76, 0.12); }
.t-log { list-style: none; display: grid; gap: 2px; font: 11px/1.4 var(--mono); color: #c9ccd5; min-height: 31px; border-top: 1px solid var(--line); padding-top: 6px; }
.t-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: land 0.4s var(--ease) both; }
.t-log b { color: var(--ember); font-weight: 500; margin-right: 8px; }

/* feel: a range with two targets; spread blooms per shot and settles, damage falls off by distance */
.feel { padding: 0; }
.feel canvas { display: block; width: 100%; height: 100%; cursor: none; touch-action: none; }

/* games: 3D flip cards in a grid (hover on desktop, tap on touch) */
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.flip { perspective: 1400px; aspect-ratio: 4 / 5; cursor: pointer; border-radius: 26px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.3, 0.9, 0.25, 1); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip-inner { transform: rotateY(180deg); } }
/* hit-testing ignores backface-visibility here, so the face turned away is switched off explicitly */
.back { pointer-events: none; }
.flip.is-flipped .back { pointer-events: auto; }
.flip.is-flipped .front { pointer-events: none; }
@media (hover: hover) { .flip:hover .back { pointer-events: auto; } .flip:hover .front { pointer-events: none; } }
.face { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--line); }

.front { background: #0e0b15; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.f-art { position: absolute; inset: 0; background: linear-gradient(135deg, #15121f, #1c1018); }
.f-art video, .f-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-art video[data-src]:not([poster]):not(.ready) { opacity: 0; }
.f-art video.ready + .soon { display: none; }
.f-art.icon::before { content: ""; position: absolute; inset: -20%; background: var(--img) center / cover; filter: blur(36px) saturate(1.4); opacity: 0.6; }
.f-art.icon > img { inset: auto; left: 50%; top: 42%; width: 52%; height: auto; transform: translate(-50%, -50%); border-radius: 22%; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.front::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(9, 8, 15, 0.96), rgba(9, 8, 15, 0.55) 55%, transparent); pointer-events: none; }
.f-tag { position: absolute; z-index: 2; top: 16px; left: 16px; }
.f-btn { position: absolute; z-index: 2; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(9, 8, 15, 0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); cursor: pointer; transition: transform 0.6s var(--ease), background 0.25s; }
.f-btn svg { width: 16px; height: 16px; }
.flip:hover .f-btn { transform: rotate(180deg); background: rgba(255, 255, 255, 0.14); }
.f-name { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 2px; }
.f-name h3 { font: 800 clamp(24px, 2.3vw, 31px)/1.05 var(--display); letter-spacing: -0.02em; }
.f-name span { font-size: 14px; color: #c4c8d2; }

.back { transform: rotateY(180deg); padding: 24px 22px 22px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; background: radial-gradient(120% 70% at 50% -10%, rgba(139, 108, 255, 0.16), transparent 60%), #100d18; }
.back .g-top { margin: 0; }
.back h3 { font: 800 clamp(22px, 2vw, 27px)/1.1 var(--display); letter-spacing: -0.02em; }
.back > p { color: #c4c8d2; font-size: 14.5px; line-height: 1.55; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); align-self: end; }
.stats3 b { display: block; font: 700 21px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 11.5px; color: var(--muted); }
.b-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.b-foot .chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--card-2); color: #c9ccd5; }
.back .btn { margin-left: auto; }
.g-top { display: flex; align-items: center; gap: 10px; }
.role { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; backdrop-filter: blur(8px); }
.role.contrib { background: rgba(139, 108, 255, 0.2); color: #c7b8ff; }
.role.dev { background: rgba(255, 138, 76, 0.18); color: #ffc29e; }
.role.owner { background: rgba(240, 80, 155, 0.18); color: #ff9ec8; }
.state, .live-tag { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.live-tag b { color: var(--text); font-variant-numeric: tabular-nums; }
.deck-hint { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* clips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 500 14px Inter, sans-serif; cursor: pointer; transition: all 0.25s; }
.filters button i { font-style: normal; font-size: 12px; padding: 0 6px; border-radius: 99px; background: var(--card-2); }
.filters button.on { color: #09080f; background: var(--text); }
.filters button.on i { background: rgba(0, 0, 0, 0.1); }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.clip { height: 420px; overflow: hidden; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease); }
.clip:hover { border-color: rgba(255, 255, 255, 0.16); }
.clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9, 8, 15, 0.75)); pointer-events: none; }
.clip.hide { display: none; }
.vid { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #15121f, #1c1018); transition: transform 0.4s var(--ease); }
.clip:hover .vid, .clip.open .vid { transform: scale(1.05); }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s; }
.vid video[data-src]:not([poster]):not(.ready) { opacity: 0; }
.soon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.soon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.6s linear infinite; }
.vid video.ready + .soon { display: none; }
.info { position: absolute; z-index: 1; inset: auto 12px 12px; padding: 14px 16px; border-radius: 16px; background: rgba(9, 8, 15, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s; }
.more > div { min-height: 0; overflow: hidden; }
.clip:hover .more, .clip:focus-within .more, .clip.open .more { grid-template-rows: 1fr; opacity: 1; }
.clip h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.feat, .wip { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 138, 76, 0.14); color: #ffc29e; font-family: Inter, sans-serif; font-weight: 600; letter-spacing: 0; }
.wip { background: rgba(139, 108, 255, 0.16); color: #c7b8ff; }
.tags a { font-size: 12px; padding: 2px 9px; border-radius: 99px; color: var(--violet); border: 1px solid rgba(139, 108, 255, 0.4); }
.clip p { font-size: 14px; color: #c9ccd5; padding: 8px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--card-2); color: #c9ccd5; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cc { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; }
.lbl { font-size: 13px; color: var(--muted); }
.val { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.val b { font-size: 20px; word-break: break-all; }
.cc p { font-size: 14px; color: var(--muted); }
.copy { position: relative; overflow: hidden; height: 32px; min-width: 76px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: 600 13px Inter, sans-serif; cursor: pointer; }
.copy span { display: block; transition: transform 0.35s var(--ease); }
.copy .ok { position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(100%); color: var(--magenta); }
.copy.done span:first-child { transform: translateY(-160%); }
.copy.done .ok { transform: none; }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.socials a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; transition: transform 0.3s var(--ease), border-color 0.3s; }
.socials a span { font-size: 12px; color: var(--muted); font-weight: 500; }
.socials a:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); }
footer { text-align: center; padding: 80px 20px 40px; font-size: 13px; color: var(--muted); }

@keyframes fade { to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes card { to { opacity: 1; transform: none; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes drift { to { background-position: 100% 100%; } }
@keyframes avatar-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 80, 155, 0.5); } 100% { box-shadow: 0 0 0 7px rgba(240, 80, 155, 0); } }
@keyframes nudge { to { transform: translateY(5px); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }
@keyframes roll-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes roll-in { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes belt { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes land { from { opacity: 0; transform: translateY(6px); } }
@keyframes shimmer { to { background-position: -150% 0; } }

@media (max-width: 960px) {
    .links { display: none; }
    .stage { position: relative; height: auto; overflow: hidden; }
    .cam { position: relative; }
    .hero { position: relative; inset: auto; min-height: 100svh; padding-top: 90px; padding-bottom: 60px; }
    /* narrow screens: the avatar sits above the text instead of behind it, so it is never covered or faded */
    .avatar, .avatar.float, canvas.avatar { position: absolute; width: min(64vw, 400px); right: auto; left: calc(50% - min(32vw, 200px)); top: 70px; bottom: auto; }
    .hero { padding-top: calc(80px + min(58vw, 360px)); }
    .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .curtain { margin-top: -30px; padding-top: 70px; }
    .about { grid-template-columns: 1fr; }
    .hint, .veil { display: none; }
    .bento, .clips, .contact, .socials, .deck { grid-template-columns: 1fr; }
    .code { font-size: 11px; white-space: pre-wrap; padding: 12px; }
    .deck { max-width: 420px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
    .rv { opacity: 1; transform: none; }
}
