/* ============================================================
   jakebaynham.com — Award-Winning Portfolio
   Dark premium creative studio aesthetic
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Colors */
    --bg:           #050505;
    --bg-subtle:    #0a0a0a;
    --surface:      #111111;
    --surface-hover:#161616;
    --border:       rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text:         #f0f0f0;
    --text-secondary:#777777;
    --text-tertiary: #4a4a4a;
    --accent:       #3b82f6;
    --accent-dim:   rgba(59,130,246,0.12);
    --accent-glow:  rgba(59,130,246,0.15);
    --green:        #22c55e;
    --green-dim:    rgba(34,197,94,0.12);
    --yellow:       #eab308;
    --yellow-dim:   rgba(234,179,8,0.12);
    --red:          #ef4444;
    --red-dim:      rgba(239,68,68,0.12);
    --purple:       #a855f7;
    --purple-dim:   rgba(168,85,247,0.12);
    --purple-glow:  rgba(168,85,247,0.15);
    --spotify-green: #1ed760;

    /* Gradient text */
    --gradient-text: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 50%, var(--accent) 100%);

    /* Typography */
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --grid-gap:    16px;
    --section-gap: 120px;
    --radius:      16px;
    --radius-sm:   10px;
    --radius-xs:   6px;

    /* Transitions */
    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --duration:    0.3s;
}

html {
    scroll-snap-type: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

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

::selection {
    background: var(--accent);
    color: #fff;
}

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

/* Subtle noise background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

/* --- Dot Nav (right side) --- */
.dot-nav {
    display: none !important;
}

.dot-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
    text-decoration: none;
    position: relative;
}

.dot-nav-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    transition: all 0.4s var(--ease);
    flex-shrink: 0;
}

.dot-nav-item:hover .dot-nav-dot {
    background: rgba(255,255,255,0.35);
    transform: scale(1.3);
}

.dot-nav-item.active .dot-nav-dot {
    background: rgba(255,255,255,0.5);
    box-shadow: none;
    transform: scale(1.2);
}

.dot-nav-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(4px);
    transition: all 0.25s var(--ease);
    pointer-events: none;
}

.dot-nav-item:hover .dot-nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* --- Floating Nav Pill --- */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    animation: navFadeIn 0.8s var(--ease) 0.5s forwards;
}

@keyframes navFadeIn {
    to { opacity: 1; }
}

.nav-pill-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 20px;
    background: rgba(17,17,17,0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all var(--duration) var(--ease);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.nav-status .status-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.02em;
}

/* --- Status Dots --- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-live {
    background: var(--green);
    animation: pulseLive 2.5s ease-in-out infinite;
}

.status-dot-away {
    background: var(--yellow);
}

.status-dot-offline {
    background: var(--text-tertiary);
}

.status-dot-paused {
    background: var(--yellow);
}

.status-dot-shipped {
    background: var(--accent);
}

.status-dot-planned {
    background: #a855f7;
}

.status-dot-in-progress {
    background: var(--accent);
    animation: pulseLive 2.5s ease-in-out infinite;
}

.status-dot-maintenance {
    background: #06b6d4;
}

.status-dot-beta {
    background: #f97316;
}

.status-dot-archived {
    background: var(--text-tertiary);
}

.status-dot-private {
    background: #f43f5e;
}

.status-dot-concept {
    background: #c084fc;
}

@keyframes pulseLive {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Hero background video — fixed so it stays locked during scroll */
.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-video.visible {
    opacity: 0.15;
}

/* Scroll fade overlay — covers everything during transition */
.hero-fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 2;
}

/* Hero animated gradient orbs */
.hero-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.hero-orb--purple {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation: orbDrift1 18s ease-in-out infinite;
}

.hero-orb--blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    top: 30%;
    right: -5%;
    animation: orbDrift2 22s ease-in-out infinite;
}

.hero-orb--green {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
    bottom: 5%;
    left: 20%;
    animation: orbDrift3 15s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 10px) scale(1.02); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 25px) scale(1.03); }
    66% { transform: translate(25px, -15px) scale(0.97); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(20px, -20px) scale(1.04); }
    70% { transform: translate(-15px, 30px) scale(0.98); }
}

/* Hero identity row (PFP + status badge) */
.hero-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-pfp-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.hero-pfp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* Hero massive name */
.hero-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0.95;
    margin-bottom: 20px;
}

.hero-name-line {
    position: relative;
    display: inline-block;
    font-size: clamp(72px, 12vw, 160px);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name-line::before,
.hero-name-line::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

/* Blue channel — left */
.hero-name-line.glitch-active::before {
    opacity: 0.75;
    -webkit-text-fill-color: rgba(59,130,246,0.75);
    transform: translateX(var(--gx-before, -5px));
    clip-path: inset(var(--g-clip-b-top, 20%) 0 var(--g-clip-b-bot, 40%) 0);
}

/* Purple channel — right */
.hero-name-line.glitch-active::after {
    opacity: 0.75;
    -webkit-text-fill-color: rgba(168,85,247,0.75);
    transform: translateX(var(--gx-after, 5px));
    clip-path: inset(var(--g-clip-a-top, 50%) 0 var(--g-clip-a-bot, 20%) 0);
}

/* Hero rotating subtitle */
.hero-subtitle-wrap {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-subtitle.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

/* Hero credential pills */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}

.hero-pill {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(0.8);
    animation: pillPopIn 0.5s var(--ease) forwards;
}

.hero-pill:nth-child(1) { animation-delay: 0.6s; }
.hero-pill:nth-child(2) { animation-delay: 0.7s; }
.hero-pill:nth-child(3) { animation-delay: 0.8s; }
.hero-pill:nth-child(4) { animation-delay: 0.9s; }
.hero-pill:nth-child(5) { animation-delay: 1.0s; }

@keyframes pillPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(6px);
    }
    60% {
        transform: scale(1.06) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scroll indicator */
.hero-scroll-indicator {
    color: var(--text-tertiary);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0;
    animation: scrollBounce 2s ease-in-out 1.5s infinite, navFadeIn 0.6s var(--ease) 1.5s forwards;
}

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

/* --- Sections --- */
.bento-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Full-width bg behind bento so it covers the fixed hero */
.bento-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--bg);
    z-index: -1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 40px;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    margin-top: 6px;
    font-size: clamp(14px, 1.6vw, 17px);
    color: var(--text-secondary);
    max-width: 480px;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

/* --- Bento Card --- */
.bento-card {
    position: relative;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%);
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(59,130,246,0.05);
}

.bento-card:hover::before {
    opacity: 1;
}

/* Card sizes */
.bento-card-wide {
    grid-column: span 2;
}

.bento-card-featured {
    grid-column: span 3;
}

/* --- Project Card --- */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
}

.project-card.has-image {
    min-height: 280px;
    justify-content: flex-end;
}

.project-card.has-image .bento-card-wide,
.project-card.bento-card-wide.has-image,
.project-card.bento-card-featured.has-image {
    min-height: 300px;
}

.project-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s var(--ease);
}

.project-card.has-image:hover .project-card-bg {
    transform: scale(1.03);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.35) 100%),
        linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 40%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.project-card.has-image .project-header,
.project-card.has-image .project-name,
.project-card.has-image .project-description,
.project-card.has-image .project-tags,
.project-card.has-image .project-meta {
    position: relative;
    z-index: 2;
}

.project-card.has-image .project-name {
    color: #fff;
}

.project-card.has-image .project-description {
    color: rgba(255,255,255,0.8);
}

.project-card.has-image .project-tag {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.project-card.has-image .project-meta {
    border-top-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

.project-card.has-image .project-status-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-card.has-image .project-icon-link {
    color: rgba(255,255,255,0.6);
}

.project-card.has-image .project-icon-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.project-card.has-image:hover {
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(59,130,246,0.1);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 100px;
}

.project-status-active {
    color: var(--green);
    background: var(--green-dim);
}

.project-status-paused {
    color: var(--yellow);
    background: var(--yellow-dim);
}

.project-status-shipped {
    color: var(--accent);
    background: var(--accent-dim);
}

.project-status-planned {
    color: #a855f7;
    background: rgba(168,85,247,0.12);
}

.project-status-in-progress {
    color: var(--accent);
    background: var(--accent-dim);
}

.project-status-maintenance {
    color: #06b6d4;
    background: rgba(6,182,212,0.12);
}

.project-status-beta {
    color: #f97316;
    background: rgba(249,115,22,0.12);
}

.project-status-archived {
    color: var(--text-tertiary);
    background: rgba(74,74,74,0.12);
}

.project-status-private {
    color: #f43f5e;
    background: rgba(244,63,94,0.12);
}

.project-status-concept {
    color: #c084fc;
    background: rgba(192,132,252,0.12);
}

.project-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.project-icon-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.project-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.project-tag {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-tertiary);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Section Backgrounds (shared base) --- */
.section-bg,
.section-particles {
    position: absolute;
    top: -200px;
    bottom: -200px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 200px, black calc(100% - 200px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 200px, black calc(100% - 200px), transparent);
}

.section-particles canvas {
    position: absolute;
    top: 200px;
    left: 0;
    width: 100%;
    height: calc(100% - 400px);
}

#music, #vault, #projects, #goals, #positions, #contact {
    position: relative;
}

#music > *:not(.section-bg),
#vault > *:not(.section-bg),
#projects > *:not(.section-bg),
#goals > *:not(.section-bg),
#positions > *:not(.section-particles),
#contact > *:not(.section-particles) {
    position: relative;
    z-index: 1;
}

/* --- Software: circuit grid with pulses --- */
.section-bg--code canvas {
    position: absolute;
    top: 200px;
    left: 0;
    width: 100%;
    height: calc(100% - 400px);
}

/* --- Widen transition zone between starfield ↔ circuit --- */
#vault .section-bg,
#projects .section-bg {
    top: -500px;
    bottom: -500px;
    mask-image: linear-gradient(to bottom, transparent, black 500px, black calc(100% - 500px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 500px, black calc(100% - 500px), transparent);
    transition: opacity 0.1s linear;
}

#vault .section-bg canvas,
#projects .section-bg canvas {
    top: 500px;
    height: calc(100% - 1000px);
}

/* --- Glowing animated borders on Software cards --- */
@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#projects .bento-card {
    border-color: rgba(59,130,246,0.15);
    box-shadow: 0 0 20px rgba(59,130,246,0.06), 0 0 4px rgba(59,130,246,0.12);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

/* Orbiting pulse dot */
#projects .bento-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: conic-gradient(
        from var(--border-angle),
        transparent 0%,
        transparent 70%,
        rgba(59,130,246,0.05) 78%,
        rgba(59,130,246,0.12) 85%,
        rgba(99,102,241,0.35) 91%,
        rgba(147,197,253,0.8) 95%,
        rgba(255,255,255,1) 97%,
        rgba(147,197,253,0.8) 98.5%,
        rgba(99,102,241,0.3) 99.5%,
        transparent 100%
    );
    animation: borderRotate 5s linear infinite;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Stagger pulse timing per card */
#projects .bento-card:nth-child(2)::before { animation-delay: -1.2s; }
#projects .bento-card:nth-child(3)::before { animation-delay: -2.5s; }
#projects .bento-card:nth-child(4)::before { animation-delay: -3.8s; }
#projects .bento-card:nth-child(5)::before { animation-delay: -1.8s; }
#projects .bento-card:nth-child(6)::before { animation-delay: -4.2s; }

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

#projects .bento-card:hover {
    border-color: rgba(59,130,246,0.25);
    box-shadow: 0 0 35px rgba(59,130,246,0.15), 0 0 70px rgba(99,102,241,0.08), 0 12px 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

#projects .bento-card:hover::before {
    opacity: 1;
    animation-duration: 3s;
    filter: brightness(1.3);
}

/* Constant subtle ambient border glow */
#projects .bento-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(99,102,241,0.05) 50%, rgba(59,130,246,0.1) 100%);
    padding: 1px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
    z-index: 0;
}

/* --- Goals: aurora ribbons (teal, purple, green) --- */
.section-bg--aurora::before {
    content: '';
    position: absolute;
    inset: -15% -10%;
    background:
        radial-gradient(ellipse 700px 250px at 15% 20%, rgba(168,85,247,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 75% 15%, rgba(6,182,212,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 800px 220px at 50% 45%, rgba(34,197,94,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 85% 60%, rgba(168,85,247,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 650px 250px at 25% 70%, rgba(59,130,246,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 700px 200px at 60% 85%, rgba(6,182,212,0.09) 0%, transparent 70%);
    animation: auroraDrift 20s ease-in-out infinite;
    filter: blur(60px);
}

.section-bg--aurora::after {
    content: '';
    position: absolute;
    inset: -15% -10%;
    background:
        radial-gradient(ellipse 600px 280px at 65% 30%, rgba(6,182,212,0.11) 0%, transparent 70%),
        radial-gradient(ellipse 700px 220px at 20% 50%, rgba(168,85,247,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 550px 300px at 80% 65%, rgba(34,197,94,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 600px 250px at 40% 85%, rgba(59,130,246,0.09) 0%, transparent 70%);
    animation: auroraDrift2 25s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes auroraDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    20% { transform: translate(30px, -20px) rotate(1deg) scale(1.02); }
    40% { transform: translate(-20px, 15px) rotate(-0.5deg) scale(0.98); }
    60% { transform: translate(15px, 25px) rotate(0.8deg) scale(1.03); }
    80% { transform: translate(-25px, -10px) rotate(-1deg) scale(0.99); }
}

@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(-25px, 20px) rotate(-1.2deg) scale(1.04); }
    50% { transform: translate(20px, -15px) rotate(0.6deg) scale(0.97); }
    75% { transform: translate(-15px, -25px) rotate(1deg) scale(1.01); }
}

/* --- Positions & Contact: stars + galaxy nebula --- */
.section-bg--ember,
.section-bg--glow {
    overflow: visible;
}

.section-bg--ember canvas,
.section-bg--glow canvas {
    position: absolute;
    top: 200px;
    left: 0;
    width: 100%;
    height: calc(100% - 400px);
}

/* Nebula glow layer behind stars */
.section-bg--ember::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 400px at 20% 30%, rgba(139,92,246,0.09) 0%, transparent 70%),
        radial-gradient(ellipse 600px 350px at 75% 25%, rgba(59,130,246,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 50% 65%, rgba(168,85,247,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 85% 70%, rgba(99,102,241,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 450px 250px at 10% 80%, rgba(139,92,246,0.04) 0%, transparent 70%);
    animation: nebulaDrift 26s ease-in-out infinite;
    filter: blur(80px);
}

.section-bg--glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 350px at 30% 35%, rgba(99,102,241,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 70% 40%, rgba(139,92,246,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 700px 250px at 50% 70%, rgba(59,130,246,0.05) 0%, transparent 70%),
        radial-gradient(ellipse 450px 350px at 15% 75%, rgba(168,85,247,0.04) 0%, transparent 70%);
    animation: nebulaDrift2 30s ease-in-out infinite;
    filter: blur(80px);
}

@keyframes nebulaDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 15px) scale(1.03); }
    50% { transform: translate(25px, -10px) scale(0.97); }
    75% { transform: translate(-10px, -20px) scale(1.01); }
}

@keyframes nebulaDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.02); }
    66% { transform: translate(-20px, 15px) scale(0.98); }
}

/* --- Goals --- */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    align-items: start;
    gap: var(--grid-gap);
}

.goal-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1.6s cubic-bezier(0.22, 1, 0.36, 1),
                border-color var(--duration) var(--ease);
    min-height: 120px;
    will-change: transform, opacity, filter;
    overflow: hidden;
}

.goal-card:hover {
    border-color: var(--border-hover);
}

.goal-card.completed {
    opacity: 0.5;
}

.goal-card.completed .goal-title {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.goal-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.goal-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-tertiary);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.goal-card.completed .goal-checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.goal-card.completed .goal-checkbox::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.goal-content {
    flex-grow: 1;
    min-width: 0;
}

.goal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.goal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.goal-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 3px 10px;
    border-radius: 6px;
}

.goal-priority {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.goal-priority-high { color: var(--red); }
.goal-priority-medium { color: var(--yellow); }
.goal-priority-low { color: var(--text-tertiary); }

/* Goal expanded detail */
.goal-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 1.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.goal-detail-inner {
    overflow: hidden;
}

.goal-card.goal-hovered .goal-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    transition: grid-template-rows 1.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.goal-detail-section {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
}

.goal-detail-section:first-child {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.goal-detail-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.goal-detail-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.goal-detail-tasks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.goal-detail-task {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.goal-task-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

/* Goal card dispersion */
.goals-grid.has-hover .goal-card {
    opacity: 0.2;
    filter: blur(4px);
}

.goals-grid.has-hover .goal-card.goal-hovered {
    opacity: 1;
    filter: none;
    transform: scale(1.04);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border-hover);
    z-index: 10;
    position: relative;
}

/* Blur everything outside the grid when a goal is hovered */
#goals .section-header {
    transition: filter 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#goals.goal-focus .section-header {
    filter: blur(6px);
    opacity: 0.15;
}

/* Blur nav pill during goal focus */
.nav-pill {
    transition: filter 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.goal-focus-active .nav-pill {
    filter: blur(8px);
    opacity: 0.1;
}

.goals-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: var(--text-tertiary);
    text-align: center;
    gap: 16px;
}

.goals-empty-icon {
    opacity: 0.3;
}

.goals-empty p {
    font-size: 14px;
}

/* --- Discography Bars --- */
.disco-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.disco-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                background var(--duration) var(--ease);
}

/* Left accent edge (all bars) */
.disco-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}

/* Top gradient line (all bars) */
.disco-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    pointer-events: none;
}

@media (hover: hover) {
    .disco-bar:hover {
        border-color: var(--border-hover);
        background: var(--surface-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

    .disco-bar:hover::before {
        transform: scaleY(1);
    }

    .disco-bar:hover::after {
        opacity: 1;
    }

    .disco-bar:hover .disco-title {
        color: #fff;
    }

    .disco-bar:hover .disco-artist {
        color: var(--text);
    }

    .disco-bar:hover .disco-year {
        color: var(--text-secondary);
    }

    .disco-bar:hover .disco-platforms {
        opacity: 1;
    }

    /* Latest bar hover: intensified glow */
    .disco-bar--latest:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 32px -4px rgba(168,85,247,0.3);
    }
}

.disco-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disco-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--duration) var(--ease);
}

.disco-sep {
    font-size: 12px;
    color: var(--text-tertiary);
    opacity: 0.4;
    flex-shrink: 0;
}

.disco-artist {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--duration) var(--ease);
}

.disco-platforms {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.disco-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--text-tertiary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.disco-platform:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.disco-platform svg {
    width: 14px;
    height: 14px;
}

/* Platform-specific hover colors */
.disco-platform--spotify:hover { color: #1ed760; }
.disco-platform--apple:hover { color: #fc3c44; }
.disco-platform--youtube:hover { color: #ff0000; }
.disco-platform--soundcloud:hover { color: #ff5500; }

.disco-year {
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: color var(--duration) var(--ease);
}

/* --- Latest Release Highlight --- */
@keyframes accentShift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.disco-bar--latest {
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                var(--surface);
    background-color: rgba(168,85,247,0.03);
    box-shadow: 0 0 24px -6px rgba(168,85,247,0.2);
}

/* Animated gradient left-edge accent (always visible) */
.disco-bar--latest::before {
    transform: scaleY(1);
    background: linear-gradient(180deg, var(--purple), var(--accent), var(--purple));
    background-size: 100% 200%;
    animation: accentShift 8s linear infinite;
}

/* Platform icons always visible on latest */
.disco-bar--latest .disco-platforms {
    opacity: 1;
}

/* Latest badge pill */
.disco-latest-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--purple);
    background: var(--purple-dim);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Music CTA */
.music-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.music-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--spotify-green);
    background: rgba(30, 215, 96, 0.08);
    border: 1px solid rgba(30, 215, 96, 0.15);
    border-radius: 100px;
    transition: all var(--duration) var(--ease);
}

.music-cta:hover {
    background: rgba(30, 215, 96, 0.14);
    border-color: rgba(30, 215, 96, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30, 215, 96, 0.1);
}

/* --- The Vault (bar-row layout, mirrors disco-bar) --- */
.vault-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vault-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                background var(--duration) var(--ease);
}

/* Left accent edge */
.vault-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease);
}

/* Top gradient line */
.vault-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
    pointer-events: none;
}

@media (hover: hover) {
    .vault-bar:hover {
        border-color: var(--border-hover);
        background: var(--surface-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }

    .vault-bar:hover::before {
        transform: scaleY(1);
    }

    .vault-bar:hover::after {
        opacity: 1;
    }

    .vault-bar:hover .vault-bar-title {
        color: #fff;
    }
}

/* Playing state */
.vault-bar--playing {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

.vault-bar--playing::before {
    transform: scaleY(1);
    background: var(--accent);
}

/* Color dot */
.vault-bar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Info area */
.vault-bar-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vault-bar-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--duration) var(--ease);
}

/* Player controls (right side) */
.vault-bar-player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.vault-bar-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
    flex-shrink: 0;
}

.vault-bar-play:hover {
    background: var(--accent);
    color: #fff;
}

.vault-bar-play svg {
    width: 14px;
    height: 14px;
}

/* Progress bar */
.vault-bar-progress {
    position: relative;
    width: 120px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Visible rail track */
.vault-bar-progress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    background: rgba(255,255,255,0.12);
}

.vault-bar-progress-fill {
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 2px;
    width: 0%;
    transition: none;
}

/* Current time */
.vault-bar-time {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-tertiary);
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

/* Lock (mock tracks) */
.vault-bar-lock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.vault-bar-lock svg {
    width: 14px;
    height: 14px;
}

/* Mobile: stack player below info */
@media (max-width: 480px) {
    .vault-bar {
        flex-wrap: wrap;
    }

    .vault-bar-player {
        width: 100%;
        padding-left: 24px;
        margin-top: 4px;
    }

    .vault-bar-progress {
        flex-grow: 1;
    }
}

/* --- Marquee Tickers --- */
.marquee-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    margin-top: 32px;
}

/* Edge fade masks */
.marquee-wrap::before,
.marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.marquee-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
}

.marquee {
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.marquee--skills {
    border-top: none;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track--reverse {
    animation: marqueeScrollReverse 32s linear infinite;
}

.marquee-item {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding: 0 12px;
    transition: color 0.3s ease;
}

.marquee--labels .marquee-item {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.07);
    letter-spacing: 0.12em;
}

.marquee--labels .marquee-item:hover {
    color: rgba(255,255,255,0.35);
}

.marquee-item--accent {
    color: rgba(59,130,246,0.4);
}

.marquee-sep {
    font-size: 10px;
    color: var(--text-tertiary);
    opacity: 0.3;
    padding: 0 18px;
    user-select: none;
}

.marquee--labels .marquee-sep {
    font-size: 16px;
    padding: 0 32px;
    opacity: 0.1;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* --- Contact Section --- */

/* Email rows */
.contact-emails {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-email-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration) var(--ease);
}

.contact-email-row:hover {
    border-color: var(--border-hover);
}

.contact-email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-icon-personal {
    background: var(--accent-dim);
    color: var(--accent);
}

.contact-icon-mgmt {
    background: var(--purple-dim);
    color: var(--purple);
}

.contact-email-info {
    min-width: 0;
}

.contact-email-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.contact-email-addr {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email-addr:hover {
    color: var(--accent);
}

/* Contact form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-field {
    margin-bottom: 16px;
}

.contact-form-row .contact-field {
    margin-bottom: 0;
}

.contact-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.contact-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.contact-input::placeholder {
    color: var(--text-tertiary);
}

.contact-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-select-wrap {
    position: relative;
}

.contact-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-select:invalid {
    color: var(--text-tertiary);
}

.contact-select option {
    background: var(--surface);
    color: var(--text);
}

.contact-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.contact-submit:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
    box-shadow: none;
}

.contact-form-note {
    font-size: 13px;
    margin-top: 12px;
    min-height: 20px;
    color: var(--text-secondary);
}

.contact-form-note.success {
    color: var(--accent);
}

.contact-form-note.error {
    color: #f87171;
}

/* --- Loading --- */
.loading-placeholder {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* Loading skeleton shimmer */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.04) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 2;
    padding: 80px 24px 60px;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.footer-headline {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: -12px;
}

.footer-social {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-tertiary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}

.footer-social-link:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-tertiary);
    opacity: 0.6;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.footer-legal-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.footer-legal-sep {
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* --- Animations --- */
.anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s var(--ease) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.35s; }

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

/* Scroll-triggered fade-up (IntersectionObserver fallback) */
.anim-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.anim-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.anim-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.16s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.20s; }
.anim-stagger > *:nth-child(6) { transition-delay: 0.24s; }
.anim-stagger > *:nth-child(7) { transition-delay: 0.28s; }
.anim-stagger > *:nth-child(8) { transition-delay: 0.32s; }

/* GSAP initial states (set by JS, these prevent FOUC) */
.gsap-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card-featured {
        grid-column: span 2;
    }

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marquee--labels .marquee-item {
        font-size: 22px;
    }


    .contact-emails {
        flex-direction: column;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .hero-name-line {
        font-size: clamp(56px, 10vw, 100px);
    }
}

@media (max-width: 640px) {
    .dot-nav {
        display: none;
    }

    /* Hide nav links on mobile — just logo + status */
    .nav-links {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .bento-card-wide,
    .bento-card-featured {
        grid-column: span 1;
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        padding: 100px 20px 60px;
    }

    .hero-name-line {
        font-size: clamp(48px, 14vw, 72px);
    }

    .hero-pills {
        flex-wrap: wrap;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .nav-pill-inner {
        gap: 12px;
        padding: 8px 16px;
    }

    .nav-status .status-text {
        display: none;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .bento-container {
        padding: 0 16px;
    }

    .contact-emails {
        flex-direction: column;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .disco-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .disco-sep {
        display: none;
    }

    .disco-platforms {
        display: none;
    }

    /* Latest: platforms stay hidden on mobile, badge stays visible */
    .disco-bar--latest .disco-platforms {
        display: none;
    }

    .footer-social-link {
        width: 44px;
        height: 44px;
    }

    /* === Mobile: strip almost everything === */

    .hero-orb { display: none !important; }
    .hero-content { position: absolute; }
    .hero-video { display: none !important; }
    .hero-fade { display: none !important; }
    body::before { display: none !important; }

    /* Kill all section background canvases */
    .section-bg, .section-particles { display: none !important; }

    /* Kill marquee */
    .marquee-wrap { display: none !important; }

    /* Kill backdrop-filter */
    .nav-pill-inner {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(17,17,17,0.95);
    }

    /* Kill all card animations */
    #projects .bento-card::before { animation: none !important; background: none !important; }
    .bento-card:hover { transform: none; box-shadow: none; }

    /* Kill all CSS animations and transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
    }

    /* Restore status dot pulse (it's tiny) */
    .status-dot-live { animation: pulseLive 2.5s ease-in-out infinite !important; }

    /* Force anim-scroll elements visible (no JS fade-in) */
    .anim-scroll { opacity: 1 !important; transform: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }

    .hero-orb {
        animation: none !important;
    }

    .vault-bar {
        animation: none !important;
    }

    .marquee-track {
        animation: none !important;
    }

    .hero-pill {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-scroll-indicator {
        animation: none !important;
        opacity: 0.5 !important;
    }
}


/* --- Positions Section --- */

.positions-intro {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.positions-intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

@media (max-width: 700px) {
    .positions-grid {
        grid-template-columns: 1fr;
    }
}

.position-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.position-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59, 130, 246, 0.06);
}

.position-card:hover::before {
    opacity: 1;
}

.position-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.position-card:hover .position-icon {
    background: var(--accent);
    color: #fff;
}

.position-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.position-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
}

.position-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.position-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.position-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    align-self: flex-start;
    margin-top: 4px;
}

.position-apply:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateX(4px);
}

.positions-cta {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.015);
}

.positions-cta-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
