/* ===== CUSTOM PROPERTIES ===== */
:root {
    --bg-primary: #FAFAF5;
    --bg-dark: #0D0D0D;
    --text-primary: #1A1A1A;
    --neon-lime: #39FF14;
    --neon-magenta: #FF006E;
    --neon-cyan: #00F5D4;
    --neon-violet: #B537F2;
    --border-width: 4px;
    --shadow-offset: 6px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-jp: 'Zen Kaku Gothic New', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(3rem, 8vw, 6rem);
    border-bottom: var(--border-width) solid var(--text-primary);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: clamp(4rem, 12vh, 10rem);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.9;
    color: var(--text-primary);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    margin-top: 1rem;
    color: var(--text-primary);
}

.hero-tagline-jp {
    font-family: var(--font-jp);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.4;
}

/* Hero watercolor blob */
.hero-watercolor {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
    background:
        radial-gradient(ellipse at 30% 40%, rgba(57,255,20,0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(255,0,110,0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 30%, rgba(0,245,212,0.05) 0%, transparent 70%);
    animation: watercolorDrift1 25s ease-in-out infinite alternate;
}

@keyframes watercolorDrift1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 20px); }
}

/* Hero scroll arrow */
.hero-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
}

.arrow-down {
    display: block;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid var(--text-primary);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    position: relative;
    width: 100%;
    border-top: 3px dashed var(--text-primary);
    margin: 0;
    padding: 0;
}

.divider-diamond {
    position: absolute;
    top: -6px;
    width: 8px;
    height: 8px;
    background: var(--neon-lime);
    transform: rotate(45deg);
}

.divider-diamond.left { left: 2rem; }
.divider-diamond.right { right: 2rem; }

/* ===== SECTION HEADINGS ===== */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

/* ===== PROJECTS ===== */
.projects {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    max-width: 1200px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    position: relative;
    background: var(--bg-primary);
    border: var(--border-width) solid var(--text-primary);
    padding: 0;
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
    overflow: hidden;
}

.project-card[data-shadow="lime"] {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-lime);
}
.project-card[data-shadow="magenta"] {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-magenta);
}
.project-card[data-shadow="cyan"] {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-cyan);
}
.project-card[data-shadow="violet"] {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-violet);
}

.project-card:hover {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--neon-lime);
}
.project-card[data-shadow="magenta"]:hover {
    box-shadow: 0 0 0 var(--neon-magenta);
}
.project-card[data-shadow="cyan"]:hover {
    box-shadow: 0 0 0 var(--neon-cyan);
}
.project-card[data-shadow="violet"]:hover {
    box-shadow: 0 0 0 var(--neon-violet);
}

/* Card rotation offsets */
.project-card:nth-child(4n+1) { transform: rotate(-0.8deg); }
.project-card:nth-child(4n+2) { transform: rotate(0.6deg); }
.project-card:nth-child(4n+3) { transform: rotate(-1.2deg); }
.project-card:nth-child(4n+4) { transform: rotate(0.4deg); }

.project-card:hover {
    transform: translate(6px, 6px) rotate(0deg);
}

/* Card retro patterns */
.card-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.card-pattern.dot-grid {
    background: radial-gradient(circle, #1A1A1A 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.04;
}

.card-pattern.crosshatch {
    background: repeating-linear-gradient(45deg, #1A1A1A 0, #1A1A1A 1px, transparent 1px, transparent 6px);
    opacity: 0.03;
}

.card-pattern.checkerboard {
    background: conic-gradient(#1A1A1A 25%, transparent 25%) 0 0 / 8px 8px;
    opacity: 0.04;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 4px 10px;
    border: 2px solid var(--text-primary);
    background: var(--bg-primary);
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-badge.active .status-dot {
    background: var(--neon-lime);
    box-shadow: 0 0 6px 2px var(--neon-lime);
    animation: pulseGlow 2s infinite alternate;
}

.status-badge.completed .status-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 6px 2px var(--neon-cyan);
    animation: pulseGlowCyan 2s infinite alternate;
}

.status-badge.on-hold .status-dot {
    background: var(--neon-magenta);
    box-shadow: 0 0 6px 2px var(--neon-magenta);
    animation: pulseGlowMagenta 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 4px 2px var(--neon-lime); }
    100% { box-shadow: 0 0 12px 4px var(--neon-lime); }
}

@keyframes pulseGlowCyan {
    0% { box-shadow: 0 0 4px 2px var(--neon-cyan); }
    100% { box-shadow: 0 0 12px 4px var(--neon-cyan); }
}

@keyframes pulseGlowMagenta {
    0% { box-shadow: 0 0 4px 2px var(--neon-magenta); }
    100% { box-shadow: 0 0 12px 4px var(--neon-magenta); }
}

.project-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 3px 10px;
    border: 2px solid var(--text-primary);
    background: var(--bg-primary);
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.tag:hover {
    box-shadow: 3px 3px 0 var(--neon-cyan);
    transform: translate(-3px, -3px);
}

/* ===== DEV LOG ===== */
.devlog {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) 0;
    overflow: hidden;
}

.devlog .section-heading {
    text-align: center;
}

.devlog-river {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.devlog-entry {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    position: relative;
}

.devlog-entry + .devlog-entry {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

/* Timeline line */
.devlog-river::before {
    content: '';
    position: absolute;
    left: calc(2rem + 5px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(26, 26, 26, 0.12);
}

/* Dev log code block tint — #f0f0f0 per design spec */

.devlog-pip {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.devlog-pip.active {
    background: var(--neon-lime);
    box-shadow: 0 0 8px 2px var(--neon-lime);
}

.devlog-pip.completed {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px 2px var(--neon-cyan);
}

.devlog-pip.on-hold {
    background: var(--neon-magenta);
    box-shadow: 0 0 8px 2px var(--neon-magenta);
}

.devlog-content {
    flex: 1;
}

.devlog-timestamp {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-cyan);
    display: block;
    margin-bottom: 0.35rem;
}

.devlog-text {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 2px;
}

/* Devlog watercolor */
.devlog-watercolor {
    position: absolute;
    top: 20%;
    left: -15%;
    width: 500px;
    height: 500px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(50px);
    background:
        radial-gradient(ellipse at 40% 50%, rgba(181,55,242,0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 60% 30%, rgba(57,255,20,0.05) 0%, transparent 70%);
    animation: watercolorDrift2 30s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes watercolorDrift2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -20px); }
}

/* ===== MEMBERS ===== */
.members {
    position: relative;
    padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem);
}

.members-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    border: var(--border-width) solid var(--text-primary);
    background: var(--bg-primary);
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.member-card[data-shadow="lime"] { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-lime); }
.member-card[data-shadow="magenta"] { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-magenta); }
.member-card[data-shadow="cyan"] { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-cyan); }
.member-card[data-shadow="violet"] { box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--neon-violet); }

/* Member stagger offsets */
.member-card:nth-child(odd) { transform: translateY(-20px) rotate(-1deg); }
.member-card:nth-child(even) { transform: translateY(20px) rotate(0.8deg); }

.member-card:hover {
    transform: translateY(0) rotate(0deg) translate(6px, 6px) scale(1.05);
    box-shadow: 0 0 0 currentColor;
    z-index: 10;
}

.member-card[data-shadow="lime"]:hover { box-shadow: 0 0 0 var(--neon-lime); }
.member-card[data-shadow="magenta"]:hover { box-shadow: 0 0 0 var(--neon-magenta); }
.member-card[data-shadow="cyan"]:hover { box-shadow: 0 0 0 var(--neon-cyan); }
.member-card[data-shadow="violet"]:hover { box-shadow: 0 0 0 var(--neon-violet); }

.member-avatar {
    width: 64px;
    height: 64px;
    border: 3px solid var(--text-primary);
}

.avatar-shape-1 {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-lime), var(--neon-cyan));
}

.avatar-shape-2 {
    border-radius: 8px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-violet));
}

.avatar-shape-3 {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border: none;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-lime));
}

.avatar-shape-4 {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: none;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
}

.member-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.member-role {
    font-family: var(--font-mono);
    font-size: 13px;
    opacity: 0.6;
}

/* ===== PIXEL SPRITES ===== */
.pixel-sprite {
    position: absolute;
    width: 1px;
    height: 1px;
    pointer-events: none;
    z-index: 0;
}

/* Star sprite - 16x16 pixel art via box-shadow */
.sprite-star {
    right: 5%;
    top: 15%;
    transform: scale(3);
    color: var(--neon-lime);
    box-shadow:
        /* row 0 */  7px 0 0 currentColor, 8px 0 0 currentColor,
        /* row 1 */  7px 1px 0 currentColor, 8px 1px 0 currentColor,
        /* row 2 */  7px 2px 0 currentColor, 8px 2px 0 currentColor,
        /* row 3 */  5px 3px 0 currentColor, 6px 3px 0 currentColor, 7px 3px 0 currentColor, 8px 3px 0 currentColor, 9px 3px 0 currentColor, 10px 3px 0 currentColor,
        /* row 4 */  4px 4px 0 currentColor, 5px 4px 0 currentColor, 6px 4px 0 currentColor, 7px 4px 0 currentColor, 8px 4px 0 currentColor, 9px 4px 0 currentColor, 10px 4px 0 currentColor, 11px 4px 0 currentColor,
        /* row 5 */  0px 5px 0 currentColor, 1px 5px 0 currentColor, 5px 5px 0 currentColor, 6px 5px 0 currentColor, 7px 5px 0 currentColor, 8px 5px 0 currentColor, 9px 5px 0 currentColor, 10px 5px 0 currentColor, 14px 5px 0 currentColor, 15px 5px 0 currentColor,
        /* row 6 */  0px 6px 0 currentColor, 1px 6px 0 currentColor, 2px 6px 0 currentColor, 3px 6px 0 currentColor, 4px 6px 0 currentColor, 5px 6px 0 currentColor, 6px 6px 0 currentColor, 7px 6px 0 currentColor, 8px 6px 0 currentColor, 9px 6px 0 currentColor, 10px 6px 0 currentColor, 11px 6px 0 currentColor, 12px 6px 0 currentColor, 13px 6px 0 currentColor, 14px 6px 0 currentColor, 15px 6px 0 currentColor,
        /* row 7 */  2px 7px 0 currentColor, 3px 7px 0 currentColor, 4px 7px 0 currentColor, 5px 7px 0 currentColor, 6px 7px 0 currentColor, 7px 7px 0 currentColor, 8px 7px 0 currentColor, 9px 7px 0 currentColor, 10px 7px 0 currentColor, 11px 7px 0 currentColor, 12px 7px 0 currentColor, 13px 7px 0 currentColor,
        /* row 8 */  4px 8px 0 currentColor, 5px 8px 0 currentColor, 6px 8px 0 currentColor, 7px 8px 0 currentColor, 8px 8px 0 currentColor, 9px 8px 0 currentColor, 10px 8px 0 currentColor, 11px 8px 0 currentColor,
        /* row 9 */  5px 9px 0 currentColor, 6px 9px 0 currentColor, 7px 9px 0 currentColor, 8px 9px 0 currentColor, 9px 9px 0 currentColor, 10px 9px 0 currentColor,
        /* row 10 */ 4px 10px 0 currentColor, 5px 10px 0 currentColor, 6px 10px 0 currentColor, 9px 10px 0 currentColor, 10px 10px 0 currentColor, 11px 10px 0 currentColor,
        /* row 11 */ 3px 11px 0 currentColor, 4px 11px 0 currentColor, 5px 11px 0 currentColor, 10px 11px 0 currentColor, 11px 11px 0 currentColor, 12px 11px 0 currentColor,
        /* row 12 */ 2px 12px 0 currentColor, 3px 12px 0 currentColor, 12px 12px 0 currentColor, 13px 12px 0 currentColor;
    animation: spriteFloat 8s ease-in-out infinite alternate;
}

.sprite-potion {
    left: 3%;
    bottom: 10%;
    transform: scale(3);
    color: var(--neon-magenta);
    box-shadow:
        6px 0 0 currentColor, 7px 0 0 currentColor, 8px 0 0 currentColor, 9px 0 0 currentColor,
        5px 1px 0 currentColor, 10px 1px 0 currentColor,
        7px 2px 0 currentColor, 8px 2px 0 currentColor,
        6px 3px 0 currentColor, 7px 3px 0 currentColor, 8px 3px 0 currentColor, 9px 3px 0 currentColor,
        5px 4px 0 currentColor, 6px 4px 0 currentColor, 7px 4px 0 currentColor, 8px 4px 0 currentColor, 9px 4px 0 currentColor, 10px 4px 0 currentColor,
        4px 5px 0 currentColor, 5px 5px 0 currentColor, 6px 5px 0 currentColor, 7px 5px 0 currentColor, 8px 5px 0 currentColor, 9px 5px 0 currentColor, 10px 5px 0 currentColor, 11px 5px 0 currentColor,
        4px 6px 0 currentColor, 5px 6px 0 currentColor, 6px 6px 0 currentColor, 7px 6px 0 currentColor, 8px 6px 0 currentColor, 9px 6px 0 currentColor, 10px 6px 0 currentColor, 11px 6px 0 currentColor,
        4px 7px 0 currentColor, 5px 7px 0 currentColor, 6px 7px 0 currentColor, 7px 7px 0 currentColor, 8px 7px 0 currentColor, 9px 7px 0 currentColor, 10px 7px 0 currentColor, 11px 7px 0 currentColor,
        4px 8px 0 currentColor, 5px 8px 0 currentColor, 6px 8px 0 currentColor, 7px 8px 0 currentColor, 8px 8px 0 currentColor, 9px 8px 0 currentColor, 10px 8px 0 currentColor, 11px 8px 0 currentColor,
        5px 9px 0 currentColor, 6px 9px 0 currentColor, 7px 9px 0 currentColor, 8px 9px 0 currentColor, 9px 9px 0 currentColor, 10px 9px 0 currentColor,
        6px 10px 0 currentColor, 7px 10px 0 currentColor, 8px 10px 0 currentColor, 9px 10px 0 currentColor;
    animation: spriteFloat 10s ease-in-out infinite alternate-reverse;
}

.sprite-mushroom {
    right: 8%;
    top: 30%;
    transform: scale(3);
    color: var(--neon-cyan);
    box-shadow:
        6px 0 0 currentColor, 7px 0 0 currentColor, 8px 0 0 currentColor, 9px 0 0 currentColor,
        4px 1px 0 currentColor, 5px 1px 0 currentColor, 6px 1px 0 currentColor, 7px 1px 0 currentColor, 8px 1px 0 currentColor, 9px 1px 0 currentColor, 10px 1px 0 currentColor, 11px 1px 0 currentColor,
        3px 2px 0 currentColor, 4px 2px 0 currentColor, 5px 2px 0 currentColor, 6px 2px 0 #FAFAF5, 7px 2px 0 currentColor, 8px 2px 0 currentColor, 9px 2px 0 #FAFAF5, 10px 2px 0 currentColor, 11px 2px 0 currentColor, 12px 2px 0 currentColor,
        3px 3px 0 currentColor, 4px 3px 0 #FAFAF5, 5px 3px 0 #FAFAF5, 6px 3px 0 currentColor, 7px 3px 0 currentColor, 8px 3px 0 #FAFAF5, 9px 3px 0 #FAFAF5, 10px 3px 0 currentColor, 11px 3px 0 currentColor, 12px 3px 0 currentColor,
        4px 4px 0 currentColor, 5px 4px 0 currentColor, 6px 4px 0 currentColor, 7px 4px 0 currentColor, 8px 4px 0 currentColor, 9px 4px 0 currentColor, 10px 4px 0 currentColor, 11px 4px 0 currentColor,
        6px 5px 0 #1A1A1A, 7px 5px 0 #FAFAF5, 8px 5px 0 #FAFAF5, 9px 5px 0 #1A1A1A,
        6px 6px 0 #1A1A1A, 7px 6px 0 #FAFAF5, 8px 6px 0 #FAFAF5, 9px 6px 0 #1A1A1A,
        6px 7px 0 #1A1A1A, 7px 7px 0 #FAFAF5, 8px 7px 0 #FAFAF5, 9px 7px 0 #1A1A1A,
        5px 8px 0 #1A1A1A, 6px 8px 0 #FAFAF5, 7px 8px 0 #FAFAF5, 8px 8px 0 #FAFAF5, 9px 8px 0 #FAFAF5, 10px 8px 0 #1A1A1A;
    animation: spriteFloat 12s ease-in-out infinite alternate;
}

.sprite-sword {
    left: 5%;
    bottom: 25%;
    transform: scale(3);
    color: var(--neon-violet);
    box-shadow:
        12px 0 0 currentColor, 13px 0 0 currentColor,
        11px 1px 0 currentColor, 12px 1px 0 #FAFAF5, 13px 1px 0 currentColor,
        10px 2px 0 currentColor, 11px 2px 0 #FAFAF5, 12px 2px 0 currentColor,
        9px 3px 0 currentColor, 10px 3px 0 #FAFAF5, 11px 3px 0 currentColor,
        8px 4px 0 currentColor, 9px 4px 0 #FAFAF5, 10px 4px 0 currentColor,
        7px 5px 0 currentColor, 8px 5px 0 #FAFAF5, 9px 5px 0 currentColor,
        6px 6px 0 currentColor, 7px 6px 0 #FAFAF5, 8px 6px 0 currentColor,
        5px 7px 0 currentColor, 6px 7px 0 #FAFAF5, 7px 7px 0 currentColor,
        4px 8px 0 currentColor, 5px 8px 0 #FAFAF5, 6px 8px 0 currentColor,
        3px 9px 0 currentColor, 4px 9px 0 #1A1A1A, 5px 9px 0 currentColor,
        2px 10px 0 #1A1A1A, 3px 10px 0 currentColor, 4px 10px 0 #1A1A1A,
        1px 11px 0 #1A1A1A, 2px 11px 0 #1A1A1A, 3px 11px 0 #1A1A1A,
        0px 12px 0 #1A1A1A, 1px 12px 0 #1A1A1A;
    animation: spriteFloat 9s ease-in-out infinite alternate-reverse;
}

@keyframes spriteFloat {
    0% { transform: scale(3) translateY(0) rotate(0deg); }
    100% { transform: scale(3) translateY(-15px) rotate(5deg); }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    padding: 2rem;
    text-align: center;
}

.footer-text {
    font-family: var(--font-jp);
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

/* ===== STAGGER ANIMATION ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Preserve card rotations when visible */
.project-card.stagger-item.visible:nth-child(4n+1) { transform: rotate(-0.8deg); }
.project-card.stagger-item.visible:nth-child(4n+2) { transform: rotate(0.6deg); }
.project-card.stagger-item.visible:nth-child(4n+3) { transform: rotate(-1.2deg); }
.project-card.stagger-item.visible:nth-child(4n+4) { transform: rotate(0.4deg); }

/* Member stagger offsets preserved */
.member-card.stagger-item.visible:nth-child(odd) { transform: translateY(-20px) rotate(-1deg); }
.member-card.stagger-item.visible:nth-child(even) { transform: translateY(20px) rotate(0.8deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .members-row {
        flex-direction: column;
    }

    .member-card:nth-child(odd),
    .member-card:nth-child(even),
    .member-card.stagger-item.visible:nth-child(odd),
    .member-card.stagger-item.visible:nth-child(even) {
        transform: none;
    }

    .pixel-sprite {
        display: none;
    }
}
