
:root {
    --bg-page: #030304;
    --bg-card: rgba(18, 18, 20, 0.6);
    --bg-card-hover: rgba(30, 30, 35, 0.7);
    --border-base: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --text-main: #FAFAFA;
    --text-muted: #A1A1AA;
    --text-dim: #52525B;
    --accent: #FACC15;
    --accent-rgb: 250, 204, 21;
    --accent-secondary: #EAB308;
    --accent-ink: #1A1405;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --dur-fast: 160ms;
    --dur-mid: 300ms;
    --dur-slow: 520ms;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
}

.tech-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 90%);
    opacity: 0.8;
    animation: gridMove 60s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-40px, -40px);
    }
}

.spotlight-group {
    position: relative;
    z-index: 10;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-base);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

a.card:hover,
a.card.active:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translate3d(0, -5px, 0);
    box-shadow:
        0 18px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 24px rgba(var(--accent-rgb), 0.14);
}

a.card:active,
a.card.active:active {
    transform: translate3d(0, -2px, 0);
    transition-duration: 90ms;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 40%, #ffffff 60%, #94a3b8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 10px var(--accent);
}

.pill {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-base);
    color: var(--text-muted);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.02em;
}

.nav-dock {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    padding: 6px;
    border-radius: 99px;
    display: flex;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

.nav-btn::after {
    content: attr(aria-label);
    position: absolute;
    top: -40px;
    background: #111;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    border: 1px solid var(--border-base);
    white-space: nowrap;
    color: #fff;
}

.nav-btn:hover::after {
    opacity: 1;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(transparent 0, transparent 2px, rgba(0, 0, 0, 0.2) 3px, rgba(0, 0, 0, 0.2) 4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

a.card:hover .img-placeholder::after,
a.card.active:hover .img-placeholder::after {
    opacity: 1;
}

.img-placeholder img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

a.card:hover .img-placeholder img,
a.card.active:hover .img-placeholder img {
    transform: scale(1.08);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 140px 24px;
    width: 100%;
}

@media (min-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .col-span-2 {
        grid-column: span 2;
    }

    .col-span-3 {
        grid-column: span 3;
    }

    .col-span-4 {
        grid-column: span 4;
    }
}

.reveal {
    transition:
        opacity var(--dur-slow) var(--ease-out-expo),
        transform var(--dur-slow) var(--ease-out-expo),
        filter var(--dur-slow) var(--ease-out-expo);
}

html.js .reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.99);
    filter: blur(3px);

}

html.js .reveal.active {
    opacity: 1;
    transform: none;
    filter: blur(0px);
}

.reveal.settled {
    will-change: auto;
}

html.js .reveal .stat,
html.js .reveal .game-section li {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition:
        opacity 0.5s var(--ease-out-quart),
        transform 0.5s var(--ease-out-quart);
}

html.js .reveal.active .stat,
html.js .reveal.active .game-section li {
    opacity: 1;
    transform: none;
    transition-delay: calc(180ms + var(--stagger-i, 0) * 55ms);
}

html.js .reveal .img-placeholder img,
html.js .reveal .classified-visual {
    transform: scale(1.06);
    transition: transform 1.1s var(--ease-out-expo);
}

html.js .reveal.active .img-placeholder img,
html.js .reveal.active .classified-visual {
    transform: scale(1);
}

html.js .reveal .h-px {
    transform: scaleX(0);
    transition: transform 0.9s var(--ease-out-expo) 120ms;
}

html.js .reveal.active .h-px {
    transform: scaleX(1);
}

.delay-100,
.delay-200,
.delay-300 {
    transition-delay: 0ms;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.game-page-hero {
    padding-top: 40px;
}

.game-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-base);
    background: rgba(0, 0, 0, 0.5);
}

.game-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.game-section {
    padding-top: 32px;
}

.game-section h2 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-section h2::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    display: block;
}

.game-section p,
.game-section li {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

.game-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-section li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-base);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.game-section li:last-child {
    border-bottom: none;
}

.game-section li::before {
    content: '▸';
    color: var(--accent);
    font-weight: bold;
    margin-top: 1px;
    flex-shrink: 0;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: var(--accent-ink);
    font-weight: 700;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -6px rgba(var(--accent-rgb), 0.5);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-top: 40px;
    margin-bottom: 40px;
}

.back-link:hover {
    color: var(--text-main);
}

@media (max-width: 767px) {
    .nav-dock {
        bottom: 20px;
        padding: 6px;
        gap: 6px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
    }

    .nav-btn::after {
        display: none;
    }

    .grid-container {
        padding: 30px 16px 140px 16px;
        gap: 16px;

    }

    .card {
        padding: 24px !important;

    }

    h1 {
        font-size: 2.5rem !important;

        line-height: 1.1 !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--text-dim);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: 10;
}

.group:hover .timeline-dot {
    border-color: var(--accent);
    transform: scale(1.25);
    background: var(--bg-page);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5);
}

.timeline-dot.active {
    background: var(--accent);
    border: none;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
    }
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.boot-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #030304;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-content {
    width: 340px;
    font-family: 'Space Grotesk', 'Courier New', monospace;
}

.boot-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4);
}

.boot-lines {
    min-height: 120px;
    margin-bottom: 16px;
}

.boot-line {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.8;
    opacity: 0;
    animation: bootFadeIn 0.15s forwards;
}

.boot-line.success {
    color: #10b981;
}

.boot-line .accent {
    color: var(--accent);
}

@keyframes bootFadeIn {
    to {
        opacity: 1;
    }
}

.boot-bar-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.boot-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.project-card {
    transition: opacity 0.4s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.3s ease, box-shadow 0.3s ease, filter 0.4s ease;
}

.project-card.dimmed {
    opacity: 0.3;
    filter: grayscale(0.5);
}

.project-card.highlighted {
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.25);
}

.cursor-dot {
    display: none;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(var(--accent-rgb), 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;

    transform: translate3d(-100px, -100px, 0);
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.cursor-ring.hovering {
    width: 50px;
    height: 50px;
    border-color: rgba(var(--accent-rgb), 0.8);
}

@media (hover: none),
(pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    z-index: 9998;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

@view-transition {
    navigation: auto;
}

.testimonial-quote-mark {
    color: var(--border-highlight);
    opacity: 0.6;
}

.testimonial-text p {
    margin: 0;
}

.testimonial-text p+p {
    margin-top: 0.85em;
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient::before,
.ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.ambient::before {
    width: 55vw;
    height: 55vw;
    top: -18vw;
    left: -12vw;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 70%);
    animation: drift 26s ease-in-out infinite alternate;
}

.ambient::after {
    width: 45vw;
    height: 45vw;
    bottom: -15vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    animation: drift 34s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(6vw, 8vh, 0) scale(1.15);
    }
}

.grain {
    position: fixed;

    inset: -5%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 0.8s steps(4) infinite;
}

@keyframes grainShift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2%, 1%);
    }

    50% {
        transform: translate(1%, -2%);
    }

    75% {
        transform: translate(2%, 2%);
    }
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg,
            rgba(var(--accent-rgb), 0.5),
            transparent 35%,
            transparent 65%,
            rgba(255, 255, 255, 0.18));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

a.card:hover::before {
    opacity: 1;
}

.hero-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

@media (min-width: 900px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 56px;
    }
}

#profile {
    isolation: isolate;
}

#profile::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -12%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.07), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.hero-layout {
    position: relative;
    z-index: 1;
}

.hero-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 240px;
    border: 1px solid var(--border-base);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-page);
    box-shadow:
        0 0 0 1px rgba(var(--accent-rgb), 0.06),
        0 20px 45px -25px rgba(0, 0, 0, 0.9);
}

.hero-portrait::before,
.hero-portrait::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 0 solid var(--accent);
    opacity: 0.75;
    pointer-events: none;
    z-index: 12;
}

.hero-portrait::before {
    top: 10px;
    left: 10px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: 5px;
}

.hero-portrait::after {
    bottom: 10px;
    right: 10px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 5px;
}

.live-dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: livePing 2.6s var(--ease-out-quart) infinite;
}

@keyframes livePing {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }

    70%,
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-creds {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    max-width: 240px;
}

.hero-cred {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
    padding: 9px 12px;
    border: 1px solid var(--border-base);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.skill-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
}

@media (min-width: 760px) {
    .skill-groups {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.8fr);
        gap: 28px;
    }
}

.skill-group {
    border-top: 1px solid var(--border-base);
    padding-top: 14px;
}

.skill-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.skill-group-title::before {
    content: '';
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html.js .reveal .skill-pill {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition:
        opacity 0.45s var(--ease-out-quart),
        transform 0.45s var(--ease-out-quart);
}

html.js .reveal.active .skill-pill {
    opacity: 1;
    transform: none;
    transition-delay: calc(140ms + var(--stagger-i, 0) * 32ms);
}

.stat-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 36px;
}

.stat {
    padding: 2px 26px;
    border-left: 1px solid var(--border-base);
}

.stat:first-child {
    padding-left: 0;
    border-left: none;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -0.04em;
}

.stat-value span {
    color: var(--accent);
}

.stat-value .stat-num {
    color: var(--text-main);
    font-style: normal;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-top: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.classified-visual {
    position: relative;
    width: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(var(--accent-rgb), 0.12), transparent 65%),
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.02) 0 12px,
            transparent 12px 24px),
        #060608;
    border-bottom: 1px solid var(--border-base);
}

.classified-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.28) 3px 4px);
    opacity: 0.5;
    pointer-events: none;
}

.classified-seal {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
}

.classified-lock {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.07);
    color: var(--accent);
    animation: sealPulse 3.5s ease-in-out infinite;
}

@keyframes sealPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.25);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0);
    }
}

.classified-code {
    font-family: 'Space Grotesk', 'Courier New', monospace;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    color: var(--text-main);
    text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
}

.classified-visual.is-cover {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.classified-visual.is-cover .classified-code {
    font-size: clamp(2rem, 5vw, 3rem);
}

.classified-index {
    display: block;
    width: fit-content;
    margin: 14px auto 0;
    padding-top: 10px;
    font-family: 'Space Grotesk', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-top: 1px solid var(--border-base);
}

.classified-tape {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px dashed rgba(var(--accent-rgb), 0.4);
    padding: 6px 14px;
    border-radius: 4px;
}

.pill-accent {
    background: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
}

.divider-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-dim);
    white-space: nowrap;
}

.link-underline {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.link-underline:hover {
    background-size: 100% 1px;
}

.spotlight-group a.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--dur-mid) var(--ease-out-quart);
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
            rgba(var(--accent-rgb), 0.09),
            transparent 65%);
}

.spotlight-group a.card:hover::after {
    opacity: 1;
}

[data-lucide="arrow-right"],
[data-lucide="arrow-down"],
[data-lucide="arrow-left"],
[data-lucide="external-link"],
.lucide-arrow-right,
.lucide-arrow-down,
.lucide-arrow-left,
.lucide-external-link {
    transition: transform var(--dur-mid) var(--ease-spring);
}

.group:hover [data-lucide="arrow-right"],
.group:hover .lucide-arrow-right,
a:hover>[data-lucide="arrow-right"],
a:hover>.lucide-arrow-right,
button:hover>[data-lucide="arrow-right"],
button:hover>.lucide-arrow-right {
    transform: translateX(5px);
}

.group:hover [data-lucide="arrow-down"],
.group:hover .lucide-arrow-down,
a:hover>[data-lucide="arrow-down"],
a:hover>.lucide-arrow-down {
    transform: translateY(4px);
}

a:hover>[data-lucide="arrow-left"],
a:hover>.lucide-arrow-left,
.back-link:hover .lucide-arrow-left {
    transform: translateX(-5px);
}

.group:hover [data-lucide="external-link"],
.group:hover .lucide-external-link {
    transform: translate(3px, -3px);
}

.btn-shimmer,
.play-btn,
.back-link,
a[class*="border-[var(--border-highlight)]"] {
    transition:
        transform var(--dur-fast) var(--ease-spring),
        background-color var(--dur-fast) var(--ease-out-quart),
        border-color var(--dur-fast) var(--ease-out-quart),
        box-shadow var(--dur-mid) var(--ease-out-quart),
        color var(--dur-fast) var(--ease-out-quart);
}

.btn-shimmer:hover,
a[class*="border-[var(--border-highlight)]"]:hover {
    transform: translateY(-2px);
}

.btn-shimmer:active,
.play-btn:active,
a[class*="border-[var(--border-highlight)]"]:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.pill {
    transition: border-color var(--dur-fast) var(--ease-out-quart);
}

a.card:hover .pill {
    border-color: rgba(255, 255, 255, 0.14);
}

.nav-btn {
    transition:
        transform var(--dur-mid) var(--ease-spring),
        background-color var(--dur-fast) var(--ease-out-quart),
        color var(--dur-fast) var(--ease-out-quart);
}

.nav-btn:active {
    transform: translateY(0) scale(0.9);
    transition-duration: 90ms;
}

.nav-btn.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
    animation: dotIn var(--dur-mid) var(--ease-spring);
}

@keyframes dotIn {
    from {
        transform: translateX(-50%) scale(0);
    }

    to {
        transform: translateX(-50%) scale(1);
    }
}

.nav-btn::after {
    transform: translateY(4px);
    transition:
        opacity var(--dur-fast) var(--ease-out-quart),
        transform var(--dur-fast) var(--ease-out-quart);
}

.nav-btn:hover::after {
    transform: translateY(0);
}

.section-label::before {
    animation: labelPulse 3s var(--ease-out-quart) infinite;
}

@keyframes labelPulse {

    0%,
    100% {
        box-shadow: 0 0 10px var(--accent), 0 0 0 0 rgba(var(--accent-rgb), 0.35);
    }

    60% {
        box-shadow: 0 0 10px var(--accent), 0 0 0 7px rgba(var(--accent-rgb), 0);
    }
}

.stat-value {
    font-variant-numeric: tabular-nums;
}

.scroll-progress {
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {

    .tech-grid,
    .grain,
    .ambient::before,
    .ambient::after,
    .text-gradient,
    .btn-shimmer::before,
    .classified-lock,
    .section-label::before,
    .nav-btn.active::before,
    .live-dot::after {
        animation: none !important;
    }

    .reveal,
    .reveal .stat,
    .reveal .skill-pill,
    .reveal .game-section li,
    .reveal .img-placeholder img,
    .reveal .classified-visual,
    .reveal .h-px {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        will-change: auto !important;
    }

    a.card:hover,
    a.card.active:hover,
    .btn-shimmer:hover,
    .nav-btn:hover {
        transform: none !important;
    }

    .spotlight-group a.card::after {
        display: none;
    }

    * {
        scroll-behavior: auto !important;
    }
}
