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

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1a1a1a;
    --border: #262626;
    --text: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #8a8a8a;
    --accent: #3b82f6;
    --accent-hover: #93c5fd;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --gradient-1: #3b82f6;
    --gradient-2: #8b5cf6;
    --gradient-3: #ec4899;
    --status: #22c55e;
    --status-glow: rgba(34, 197, 94, 0.4);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --section-gap: clamp(2.5rem, 5vw, 3.5rem);
    --nav-height: 3rem;
    --nav-bg: rgba(10, 10, 10, 0.88);
    --shadow: rgba(0, 0, 0, 0.25);
    --shadow-strong: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #fafafa;
        --surface: #ffffff;
        --surface-hover: #f5f5f5;
        --border: #e5e5e5;
        --text: #171717;
        --text-secondary: #525252;
        --text-muted: #737373;
        --accent-glow: rgba(59, 130, 246, 0.1);
        --nav-bg: rgba(250, 250, 250, 0.9);
        --shadow: rgba(0, 0, 0, 0.08);
        --shadow-strong: rgba(0, 0, 0, 0.12);
        color-scheme: light;
    }
}

:root[data-theme="light"] {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f5f5f5;
    --border: #e5e5e5;
    --text: #171717;
    --text-secondary: #525252;
    --text-muted: #737373;
    --accent-glow: rgba(59, 130, 246, 0.1);
    --nav-bg: rgba(250, 250, 250, 0.9);
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
    color-scheme: light;
}

:root[data-theme="dark"] { color-scheme: dark; }

html { scroll-behavior: smooth; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

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

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.04) 35%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
    opacity: 0;
    will-change: transform;
}
body.cursor-active .cursor-glow { opacity: 1; }

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

.parallax-wrap {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}
.parallax-wrap-1 { top: -200px; right: -100px; }
.parallax-wrap-2 { bottom: -200px; left: -100px; }

.gradient-blob {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.07;
    animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { background: var(--gradient-1); animation-delay: 0s; }
.blob-2 { background: var(--gradient-2); animation-delay: -10s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(139, 92, 246, 0.08); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.25), 0 0 80px rgba(139, 92, 246, 0.12); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--status-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-2 { animation-delay: 0.2s; }

.section-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-reveal.is-visible .reveal-child { opacity: 1; transform: translateY(0); }
.section-reveal.is-visible .cards-grid .reveal-child:nth-child(1),
.section-reveal.is-visible .now-timeline .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.section-reveal.is-visible .cards-grid .reveal-child:nth-child(2),
.section-reveal.is-visible .now-timeline .reveal-child:nth-child(2) { transition-delay: 0.12s; }
.section-reveal.is-visible .cards-grid .reveal-child:nth-child(3),
.section-reveal.is-visible .now-timeline .reveal-child:nth-child(3) { transition-delay: 0.19s; }
.section-reveal.is-visible .now-timeline .reveal-child:nth-child(4) { transition-delay: 0.26s; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    position: relative;
    z-index: 1;
}

header {
    padding: clamp(2rem, 6vw, 3rem) 0 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.theme-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--surface-hover);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.theme-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

.header-content {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
    flex: 1;
    min-width: 0;
}

.avatar, .avatar-img {
    width: clamp(72px, 18vw, 80px);
    height: clamp(72px, 18vw, 80px);
    border-radius: 50%;
    border: 2px solid var(--border);
    padding: 0;
    color: #fff;
    font-family: inherit;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    animation: avatarGlow 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.avatar:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.avatar.is-waving {
    animation: avatarWave 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes avatarWave {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.06); }
    50% { transform: rotate(8deg) scale(1.08); }
    75% { transform: rotate(-4deg) scale(1.04); }
}
.avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
}

.header-text h1 {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text) 0%, var(--text) 40%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header-text .tagline {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-top: 0.5rem;
}
.tagline-typed-line {
    display: inline-grid;
    vertical-align: bottom;
    max-width: 100%;
}
.tagline-ghost,
.tagline-live { grid-area: 1 / 1; }
.tagline-ghost {
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
}
.tagline-live { white-space: nowrap; }
.tagline-prefix { color: var(--text-muted); }
.tagline-typed {
    font-family: var(--mono);
    font-size: 0.92em;
    color: var(--accent);
    font-weight: 500;
}
.tagline-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}
.header-text .location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.social-links a:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow), 0 0 15px var(--accent-glow);
}
.social-links a:active { transform: translateY(0); }
.social-links a:focus-visible,
.card:focus-visible,
.blog-card:focus-visible,
.page-nav a:focus-visible,
.open-to-cta a:focus-visible,
.now-item-text a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.social-links a svg { width: 16px; height: 16px; flex-shrink: 0; }

main { padding: var(--section-gap) 0; }
main > section {
    margin-bottom: var(--section-gap);
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}
main > section:last-child { margin-bottom: 0; }

.page-nav {
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.65rem clamp(1.25rem, 4vw, 2rem);
    margin: 0 calc(-1 * clamp(1.25rem, 4vw, 2rem));
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a {
    flex-shrink: 0;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.page-nav a:hover { color: var(--text-secondary); background: var(--surface); }
.page-nav a.is-active {
    color: var(--accent);
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--accent-glow);
}

.bio {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 700px;
}
.bio strong { color: var(--text); font-weight: 600; }

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    max-width: 120px;
}

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-badge,
.open-to-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.tech-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.tech-badge:hover {
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--text);
    background: var(--surface-hover);
}
.tech-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.open-to-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}
.availability-status {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}
.availability-dot,
.now-section h2::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}
.availability-status strong { color: var(--text); font-weight: 600; }
.open-to-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.open-to-badge {
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text-secondary);
}
.open-to-badge:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: var(--text);
    background: rgba(59, 130, 246, 0.18);
}
.open-to-badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
.open-to-cta { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.open-to-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.open-to-cta a:hover { color: var(--accent-hover); text-decoration: underline; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
}

.card,
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.card { padding: 1.75rem; isolation: isolate; }
.card::before,
.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.card::before { background: linear-gradient(135deg, var(--accent-glow), transparent 60%); z-index: 0; }
.blog-card::before { background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.04) 50%, transparent); }
.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s;
    z-index: -1;
    pointer-events: none;
}
.card:hover,
.card:focus-visible,
.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-strong), 0 0 25px var(--accent-glow);
}
.blog-card:hover,
.blog-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 30px var(--shadow-strong), 0 0 20px var(--accent-glow); }
.card:hover,
.card:focus-visible { border-color: transparent; }
.blog-card:hover,
.blog-card:focus-visible { border-color: rgba(59, 130, 246, 0.45); }
.card:hover::before,
.card:focus-visible::before,
.blog-card:hover::before,
.blog-card:focus-visible::before { opacity: 1; }
.card:hover::after,
.card:focus-visible::after { opacity: 1; }
.card > *,
.blog-card > * { position: relative; z-index: 1; }

.card-icon,
.now-item-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s;
}
.card-icon { margin-bottom: 0.85rem; }
.now-item-icon { flex-shrink: 0; border-radius: 10px; width: 2.25rem; height: 2.25rem; }
.card-icon svg,
.now-item-icon svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; }
.now-item-icon svg { width: 1.15rem; height: 1.15rem; }
.card:hover .card-icon,
.card:focus-visible .card-icon,
.now-item:hover .now-item-icon {
    transform: scale(1.08);
    background: rgba(59, 130, 246, 0.22);
    color: var(--accent-hover);
}
.now-item:hover .now-item-icon { transform: scale(1.1); }

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.card p,
.blog-excerpt,
.now-item-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.card .tag,
.blog-badge {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.card .tag {
    display: inline-block;
    margin-top: 0.85rem;
    background: var(--accent-glow);
    color: var(--accent);
    transition: background 0.3s, color 0.3s;
}
.card:hover .tag,
.card:focus-visible .tag {
    background: rgba(59, 130, 246, 0.25);
    color: var(--accent-hover);
}

.blog-card { padding: 1.5rem 1.75rem; }
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}
.blog-badge {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.blog-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    min-height: 1em;
}
.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.blog-card.loading h3 { min-height: 2.7em; }
.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s, gap 0.2s;
}
.blog-card:hover .blog-cta,
.blog-card:focus-visible .blog-cta { color: var(--accent-hover); gap: 0.55rem; }
.blog-card.loading .blog-excerpt {
    background: linear-gradient(90deg, var(--border) 25%, var(--surface-hover) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
    border-radius: 4px;
    min-height: 2.8em;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.blog-card-mini {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.blog-card-mini:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.blog-card-mini h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.blog-card-mini p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.blog-more {
    margin-top: 1rem;
    font-size: 0.85rem;
}
.blog-more a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.blog-more a:hover { color: var(--accent-hover); }

.now-section h2 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}
.now-section h2::before { content: ''; }

.now-timeline {
    position: relative;
    display: grid;
    gap: 0.85rem;
    padding-left: 1.75rem;
}
.now-timeline::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--gradient-2), var(--gradient-3), var(--border));
    border-radius: 2px;
    opacity: 0.5;
}

.now-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    transition: border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.now-item::before {
    content: '';
    position: absolute;
    left: -1.55rem;
    top: 1.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    z-index: 1;
}
.now-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateX(6px);
    box-shadow: 0 8px 30px var(--shadow), 0 0 20px var(--accent-glow);
}
.now-item:hover::before {
    transform: scale(1.25);
    border-color: var(--gradient-2);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.now-item-body { flex: 1; min-width: 0; }
.now-item-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.now-item-text { font-size: 0.925rem; line-height: 1.55; }
.now-item-text strong { color: var(--text); font-weight: 600; }
.now-item-text a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.now-item-text a:hover { color: var(--accent-hover); text-decoration: underline; }

.easter-egg-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
    box-shadow: 0 12px 40px var(--shadow-strong), 0 0 30px var(--accent-glow);
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}
.easter-egg-toast.show { transform: translateX(-50%) translateY(0); }

body.ultra-mode .gradient-blob { opacity: 0.14; animation-duration: 6s; }
body.ultra-mode .blob-1 { background: var(--status); }
body.ultra-mode .blob-2 { background: #f59e0b; }
body.ultra-mode .cursor-glow {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(245, 158, 11, 0.06) 35%, transparent 70%);
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0 clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}
footer p { font-family: var(--mono); font-size: 0.75rem; }
footer .footer-hint {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.75;
    transition: opacity 0.3s;
}
footer:hover .footer-hint { opacity: 0.9; }

@media (max-width: 320px) {
    .page-nav a { font-size: 0.65rem; padding: 0.35rem 0.7rem; }
    .tech-badge { font-size: 0.65rem; padding: 0.4rem 0.65rem; }
    .card { padding: 1.35rem; }
    .header-text h1 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
    .header-top { flex-direction: column-reverse; align-items: flex-end; }
    .header-content { flex-direction: column; text-align: center; width: 100%; }
    .tagline {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 0.25rem;
        min-height: 2.8em;
    }
    .tagline-ghost,
    .tagline-live { white-space: normal; max-width: min(100%, 18rem); }
    .social-links { justify-content: center; }
    .social-links a { padding: 0.65rem 1.1rem; min-height: 44px; }
    .section-label::after { display: none; }
    .bio { text-align: center; margin-left: auto; margin-right: auto; }
    .open-to-panel { padding: 1.1rem 1.15rem; }
    .open-to-badge { font-size: 0.75rem; padding: 0.5rem 0.85rem; min-height: 36px; }
    .availability-dot { margin-top: 0.35rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .now-item:hover { transform: none; }
}

@media (max-width: 480px) {
    .page-nav { gap: 0.25rem; }
    .page-nav a { font-size: 0.68rem; padding: 0.5rem 0.75rem; }
    .header-text h1 { word-break: break-word; hyphens: auto; }
    .open-to-cta { font-size: 0.78rem; line-height: 1.5; }
}

@media (min-width: 768px) {
    .page-nav {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 0.5rem;
    }
    .page-nav a { font-size: 0.72rem; padding: 0.45rem 1rem; }
    .cards-grid { gap: 1.15rem; }
    .open-to-items { gap: 0.65rem; }
}

@media (min-width: 1440px) {
    .container { max-width: 960px; }
    .bio { max-width: 720px; }
    .section-label { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-in,
    .section-reveal,
    .reveal-child { opacity: 1; transform: none; }
    .gradient-blob { animation: none; }
    .tagline-cursor,
    .cursor-glow { display: none; }
    .avatar.is-waving { animation: none; }
    .card:hover,
    .card:focus-visible,
    .blog-card:hover,
    .blog-card:focus-visible,
    .now-item:hover,
    .social-links a:hover { transform: none; }
    .blog-card.loading .blog-excerpt { animation: none; background: var(--border); }
    .now-section h2::before,
    .availability-dot { animation: none; }
}
