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

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-400: #999;
    --gray-600: #555;
    --gray-800: #222;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --max-w: 1100px;
    --pad: clamp(24px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ============================================
   REVEAL ANIMATIONS
============================================ */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROGRESS BAR
============================================ */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--white);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   HIGHLIGHTS
============================================ */
.hl {
    color: var(--white);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
}
.hl-dim { color: var(--gray-400); font-weight: 400; }

/* ============================================
   SECTION NUMBERS
============================================ */
.section-num {
    font-family: var(--font-serif);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    position: absolute;
    top: 40px; right: var(--pad);
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
}
.section-num.light-num {
    color: rgba(0,0,0,0.05);
}

/* ============================================
   NAV
============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--pad);
}
.nav-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
    color: var(--white);
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--white);
}

/* ============================================
   HERO
============================================ */
.hero {
    background:
        radial-gradient(ellipse 55% 75% at 78% 50%, rgba(255,140,40,0.42) 0%, rgba(180,90,30,0.22) 28%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 78% 50%, rgba(255,181,71,0.25) 0%, transparent 50%),
        linear-gradient(105deg, #0a0a0a 0%, #120a06 45%, #1a0d05 70%, #2a1408 100%);
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 45%, rgba(255,160,55,0.18), transparent 35%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 140px 0 80px;
}
.hero-inner.hero-split {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 72px;
    align-items: center;
}
.hero-left { min-width: 0; }

/* ============================================
   HERO PHONE MOCKUP
============================================ */
.hero-phone {
    position: relative;
    width: 320px;
    justify-self: end;
    align-self: center;
}
.phone-glow {
    position: absolute;
    inset: -40px -30px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255,181,71,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(255,181,71,0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(10px);
}
.phone-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 9 / 19;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 30px 60px -20px rgba(0,0,0,0.6),
        inset 0 0 0 1.5px rgba(255,255,255,0.04),
        0 0 0 8px rgba(255,255,255,0.015);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 90px;
    left: -3px;
    width: 3px;
    height: 70px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px 0 0 2px;
}
.phone-frame::after {
    content: '';
    position: absolute;
    top: 130px;
    right: -3px;
    width: 3px;
    height: 50px;
    background: rgba(255,255,255,0.12);
    border-radius: 0 2px 2px 0;
}
.hero-phone:hover .phone-frame { transform: translateY(-4px) rotate(-1deg); }

.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 16px;
    z-index: 3;
}
.phone-notch::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%;
}

.phone-screen {
    background: #060606;
    border-radius: 32px;
    width: 100%;
    height: 100%;
    padding: 50px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    position: relative;
}
.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,181,71,0.06), transparent 60%);
    pointer-events: none;
}

/* Status row */
.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
    padding: 0 4px;
    margin-top: -4px;
}
.phone-status.no-time { justify-content: flex-end; }
.ps-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--white);
}
.ps-bar {
    display: inline-block;
    width: 2.5px;
    height: 5px;
    background: var(--white);
    border-radius: 1px;
}
.ps-bar.tall { height: 8px; }
.ps-batt {
    display: inline-block;
    width: 18px;
    height: 9px;
    border: 1px solid var(--white);
    border-radius: 2px;
    position: relative;
    margin-left: 2px;
}
.ps-batt::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 4px;
    background: var(--white);
    border-radius: 0 1px 1px 0;
}
.ps-batt-fill {
    display: block;
    width: 75%;
    height: 100%;
    background: var(--neon, #39ff14);
    border-radius: 1px;
}

/* Brand row */
.phone-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 0;
}
.pb-name {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--white);
}
.pb-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    border: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 0;
}

/* Photo */
.phone-photo {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 8px auto 2px;
}
.phone-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.4s, transform 0.4s;
}
.hero-phone:hover .phone-photo img { filter: grayscale(0) contrast(1.1); transform: scale(1.03); }
.photo-ring {
    position: absolute;
    inset: -6px;
    border: 1px dashed rgba(255,181,71,0.4);
    border-radius: 50%;
    animation: spinRing 18s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

/* Identity */
.phone-id { text-align: center; padding: 0 4px; }
.pi-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}
.pi-name em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.6); }
.pi-role {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.pi-dim { color: rgba(255,255,255,0.35); font-weight: 400; letter-spacing: 0.6px; }

/* Contact list */
.phone-contact {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.phone-contact li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.phone-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.2px;
    transition: color 0.2s, padding-left 0.25s;
}
.phone-contact a svg { color: rgba(255,255,255,0.55); transition: color 0.2s; flex-shrink: 0; }
.phone-contact a span:not(.pc-arrow) { flex: 1; }
.pc-arrow {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    transition: color 0.2s, transform 0.2s;
}
.phone-contact a:hover {
    color: var(--neon, #39ff14);
    padding-left: 8px;
}
.phone-contact a:hover svg { color: var(--neon, #39ff14); }
.phone-contact a:hover .pc-arrow { color: var(--neon, #39ff14); transform: translate(2px, -2px); }

/* Footer of phone */
.phone-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 8px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}
.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--neon, #39ff14);
}
.pf-pulse {
    width: 6px;
    height: 6px;
    background: var(--neon, #39ff14);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon, #39ff14);
    animation: pulseDot 1.8s ease-in-out infinite;
}
.hero-kicker {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 28px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(52px, 9vw, 104px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 32px;
    color: var(--white);
}
.hero-title em { font-weight: 400; color: var(--gray-400); }
.hero-sub {
    max-width: 600px;
    font-size: 18px;
    color: var(--gray-400);
    line-height: 1.9;
    margin-bottom: 44px;
    font-weight: 400;
}
.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}
.hero-stack span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 14px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule { width: 60px; height: 1px; background: rgba(255,255,255,0.2); margin-top: 80px; }

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--white); }

/* Buttons for dark sections */
.btn-primary-dark {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 32px;
    transition: opacity 0.2s;
}
.btn-primary-dark:hover { opacity: 0.85; }

.btn-ghost-dark {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: border-color 0.2s;
}
.btn-ghost-dark:hover { border-color: var(--white); }

/* ============================================
   SECTION BASE — ALTERNATING LIGHT / DARK
============================================ */
.section {
    position: relative;
    padding: 96px var(--pad);
}
.section.light {
    background: var(--white);
    color: var(--black);
}
.section.dark {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   NEON-GREEN GRADIENT — ABOUT + ACHIEVEMENTS
============================================ */
:root {
    --neon: #ffb547;
    --neon-soft: rgba(255,181,71,0.55);
    --neon-dim: rgba(255,181,71,0.25);
    --accent-tint-strong: rgba(255,181,71,0.22);
    --accent-tint-soft: rgba(255,181,71,0.10);
}

/* ABOUT — flows out of hero amber, deepens into warm brown */
#about.section.light {
    background:
        linear-gradient(180deg,
            #2a1408 0%,
            #1f0f06 20%,
            #160c05 55%,
            #120a06 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 140px;
}
#about.section.light::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 30%, rgba(255,181,71,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 90%, rgba(255,181,71,0.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
#about.section.light::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,181,71,0.025) 0,
            rgba(255,181,71,0.025) 1px,
            transparent 1px,
            transparent 60px
        );
    pointer-events: none;
    z-index: 0;
}

/* ACHIEVEMENTS — warmest section, flows back into work black */
#achievements.section.light {
    background:
        linear-gradient(180deg,
            #120a06 0%,
            #1a0d05 30%,
            #110806 70%,
            #0a0a0a 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 140px;
}
#achievements.section.light::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 80% 25%, rgba(255,181,71,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 10% 95%, rgba(255,181,71,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
#achievements.section.light::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,181,71,0.025) 0,
            rgba(255,181,71,0.025) 1px,
            transparent 1px,
            transparent 60px
        );
    pointer-events: none;
    z-index: 0;
}

#about.section.light > *,
#achievements.section.light > * { position: relative; z-index: 1; }

/* Bleed-out fade at section boundaries — kills hard flips between dark↔greenish↔dark */
#about::after,
#achievements::after {
    /* keep scanlines (defined above) — extra bleed handled by ::before stacking */
}
#about.section.light + section,
#achievements.section.light + section {
    position: relative;
}
#about.section.light + section::before,
#achievements.section.light + section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(29,25,22,0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
section.dark + #about.section.light,
section.dark + #achievements.section.light {
    margin-top: 0;
}
#about.section.light::before,
#achievements.section.light::before {
    /* extend bleed downward via a top inner gradient to blend incoming dark */
    background:
        linear-gradient(180deg, rgba(10,10,10,0.85) 0%, transparent 18%, transparent 82%, rgba(10,10,10,0.8) 100%),
        radial-gradient(ellipse 70% 50% at 15% 30%, rgba(255,181,71,0.20) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 90%, rgba(255,181,71,0.10) 0%, transparent 50%);
}

/* Section number ghost in neon tint */
#about .section-num.light-num,
#achievements .section-num.light-num { color: rgba(255,181,71,0.07); }

/* Section labels on the left */
#about .section-label-light,
#achievements .section-label-light { color: var(--neon); letter-spacing: 3px; }

/* ABOUT — copy + facts */
#about .about-lead {
    color: var(--white);
    text-shadow: 0 0 24px rgba(255,181,71,0.18);
}
#about .section-body p {
    color: rgba(255,255,255,0.82);
}
#about .section-body p .hl,
#about .section-body p strong { color: var(--white); font-weight: 600; }

#about .about-facts {
    border-top-color: rgba(255,181,71,0.25);
}
#about .fact-n,
#about .dark-n {
    color: var(--neon);
    text-shadow: 0 0 18px rgba(255,181,71,0.35);
}
#about .fact-l,
#about .dark-l { color: rgba(255,255,255,0.6); }

/* ACHIEVEMENTS — items */
#achievements .ach-item,
#achievements .light-ach {
    border-top-color: rgba(255,181,71,0.18);
}
#achievements .ach-item:last-child,
#achievements .light-ach:last-child {
    border-bottom-color: rgba(255,181,71,0.18);
}
#achievements .ach-year,
#achievements .dark-year {
    color: var(--neon);
    font-weight: 700;
}
#achievements .ach-content h3,
#achievements .dark-h {
    color: var(--white);
    text-shadow: 0 0 14px rgba(255,181,71,0.18);
}
#achievements .ach-content p,
#achievements .dark-p {
    color: rgba(255,255,255,0.72);
}

.section-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 64px;
    align-items: start;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-400);
    padding-top: 6px;
}
.section-label-light {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-600);
    padding-top: 6px;
}
.section-intro {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.7;
}

/* ============================================
   ABOUT
============================================ */
.about-lead {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--black);
}
.section-body p {
    margin-bottom: 22px;
    font-size: 18.5px;
    font-weight: 400;
    line-height: 1.85;
    font-family: var(--font-serif);
    letter-spacing: 0.1px;
    color: var(--gray-800);
}
.about-facts {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.fact { display: flex; flex-direction: column; }
.fact-n {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--black);
}
.fact-l { font-size: 12px; letter-spacing: 0.5px; color: var(--gray-600); }
.dark-n { color: var(--black); }
.dark-l { color: var(--gray-600); }

/* ============================================
   WORK SECTION — TWO COLUMNS
============================================ */
.work-section {
    padding: 80px var(--pad) 96px;
}

.work-header {
    max-width: var(--max-w);
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.work-col-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
}
.work-col-head:first-child { padding-left: 0; }
.work-col-head:last-child { padding-right: 0; }
.work-col-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--white);
    line-height: 1.1;
}
.work-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.work-divider-v {
    width: 1px;
    background: rgba(255,255,255,0.12);
    align-self: stretch;
    min-height: 60px;
}

.work-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
    align-items: start;
}
.work-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 40px;
}
.work-col:first-child { padding-left: 0; }
.work-col:last-child { padding-right: 0; }
.work-divider-v-full {
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: stretch;
}

/* ============================================
   WORK — SOLO (projects only) header & grid
============================================ */
.work-header.solo {
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 28px;
    margin: 0 auto 48px;
    text-align: left;
}
.work-header.solo .work-col-head {
    padding: 0;
    gap: 12px;
}
.work-header.solo .work-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon, #39ff14);
    letter-spacing: 2.5px;
}
.work-header.solo .work-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--neon, #39ff14);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon, #39ff14);
    animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.15); }
}
.work-header.solo h2 {
    font-size: clamp(52px, 8vw, 96px);
    letter-spacing: -3px;
    line-height: 0.95;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}
.work-header.solo h2::after {
    content: '/';
    color: var(--neon, #39ff14);
    font-style: italic;
    font-weight: 400;
    margin-left: 6px;
    text-shadow: 0 0 20px rgba(255,181,71,0.5);
    -webkit-background-clip: initial;
    background-clip: initial;
    background: none;
}
.work-sub {
    font-size: 15px;
    color: var(--gray-400);
    font-weight: 300;
    line-height: 1.6;
    max-width: 520px;
    margin-top: 4px;
}

/* 2-column projects grid */
.work-grid.solo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
    align-items: stretch;
}

/* ============================================
   PROJECTS — DARK CARDS
============================================ */
.proj-card, .dark-card {
    background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px;
    transition: border-color 0.25s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.proj-card::before, .dark-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon, #39ff14), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.proj-card:hover, .dark-card:hover {
    border-color: rgba(255,181,71,0.3);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -20px rgba(255,181,71,0.18);
}
.proj-card:hover::before, .dark-card:hover::before { opacity: 1; }

/* Spacer so impact + links pin to bottom regardless of feature list length */
.proj-card .proj-meta-row { margin-top: auto; }

.proj-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 12px;
}
.proj-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon, #39ff14);
    margin-bottom: 8px;
}
.proj-year::before {
    content: '';
    width: 14px;
    height: 1px;
    background: var(--neon, #39ff14);
    display: inline-block;
    box-shadow: 0 0 6px var(--neon, #39ff14);
}
.proj-name {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.0;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #b8b8b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background 0.4s;
}
.proj-card:hover .proj-name {
    background: linear-gradient(180deg, #ffffff 0%, var(--neon, #39ff14) 130%);
    -webkit-background-clip: text;
    background-clip: text;
}
.proj-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 11px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
}
.proj-badge.winner {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    font-weight: 800;
}
.proj-desc {
    font-size: 15.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin: 4px 0 18px;
    font-weight: 400;
    letter-spacing: 0.1px;
}
.proj-desc strong {
    color: var(--neon, #39ff14);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255,181,71,0.25);
}
.proj-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.proj-stack {
    font-size: 12.5px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.3px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.proj-view {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.proj-view:hover { opacity: 0.5; }

/* Stat boxes */
.proj-impact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.pi-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pi-stat b {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.8px;
    background: linear-gradient(180deg, #ffffff, rgba(255,181,71,0.85));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pi-stat span {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   PROJECT CARD — ICON, ROLE, FEATURES, LINKS
============================================ */
.proj-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.proj-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: var(--white);
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s, background 0.2s;
}
.proj-icon svg { width: 18px; height: 18px; }
.proj-card:hover .proj-icon {
    border-color: var(--neon, #39ff14);
    background: rgba(255,181,71,0.08);
    color: var(--neon, #39ff14);
    box-shadow: 0 0 18px rgba(255,181,71,0.25), inset 0 0 12px rgba(255,181,71,0.08);
}

.proj-role-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.proj-role {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 2px;
}
.proj-dot { color: rgba(255,255,255,0.25); font-size: 12px; }
.proj-client {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    letter-spacing: 0.2px;
    font-style: italic;
}

.proj-features {
    list-style: none;
    margin: 4px 0 16px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.025);
    border-left: 2px solid rgba(255,255,255,0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.proj-features li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: baseline;
}
.pf-key {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
    padding-top: 2px;
}
.pf-val {
    font-size: 13.5px;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    font-weight: 400;
}

.proj-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}
.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 7px 12px;
    border-radius: 3px;
    transition: border-color 0.2s, background 0.2s;
}
.proj-link svg { opacity: 0.85; }
.proj-link:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.06);
}

/* ============================================
   WRITING ARCHIVE — EDITORIAL LIST
============================================ */
.writing-archive {
    padding: 96px var(--pad) 112px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.writing-header {
    max-width: var(--max-w);
    margin: 0 auto 56px;
    text-align: left;
}
.writing-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.writing-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 820px;
}
.writing-title em { font-weight: 400; color: var(--gray-400); }
.writing-lede {
    font-size: 17.5px;
    color: var(--gray-400);
    font-weight: 400;
    line-height: 1.75;
    max-width: 640px;
}

.ed-list {
    max-width: var(--max-w);
    margin: 0 auto;
    list-style: none;
    padding: 0;
    counter-reset: ed;
}
.ed-row {
    display: grid;
    grid-template-columns: 56px 160px 1fr;
    gap: 32px;
    align-items: start;
    padding: 36px 0;
    border-top: 1px solid rgba(255,255,255,0.09);
    transition: padding-left 0.25s ease;
}
.ed-row:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
.ed-row:hover {
    padding-left: 12px;
}

.ed-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    line-height: 1;
    font-style: italic;
    padding-top: 4px;
}

.ed-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}
.ed-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    padding: 4px 9px;
    align-self: flex-start;
    border-radius: 1px;
}
.ed-year {
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
    color: var(--gray-400);
    font-weight: 400;
}
.ed-read {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ed-body { max-width: 620px; }
.ed-body h3 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
    margin-bottom: 12px;
}
.ed-body h3 a {
    color: var(--white);
    background-image: linear-gradient(var(--white), var(--white));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size 0.35s ease;
    padding-bottom: 2px;
}
.ed-body h3 a em { font-style: italic; font-weight: 400; color: var(--gray-400); }
.ed-body h3 a:hover { background-size: 100% 1px; }
.ed-body h3 a:hover em { color: var(--white); }

.ed-body p {
    font-size: 15.5px;
    color: var(--gray-400);
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 16px;
}
.ed-body p code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    padding: 1px 6px;
    border-radius: 2px;
}

.ed-cta {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 2px;
    display: inline-block;
    transition: border-color 0.2s, opacity 0.2s;
}
.ed-cta:hover { opacity: 0.7; border-color: var(--white); }

/* ============================================
   WRITING — ARTICLE ITEMS (right column)
============================================ */
.art-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.art-item:first-child { padding-top: 0; }
.art-item:last-child { border-bottom: none; }

.featured-art {
    background: #141414;
    border: 1px solid rgba(255,255,255,0.15);
    border-left: 3px solid var(--white);
    padding: 20px;
    margin-bottom: 0;
}
.featured-art.art-item { border-bottom: none; }

.art-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.art-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    background: var(--white);
    padding: 3px 9px;
    border-radius: 1px;
}
.art-time {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.art-item h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.3px;
    margin-bottom: 7px;
}
.art-item h3 a { color: var(--white); transition: opacity 0.2s; }
.art-item h3 a em { font-style: italic; color: var(--white); font-weight: 400; }
.art-item h3 a:hover { opacity: 0.6; }

.art-item p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 10px;
    font-weight: 300;
}
.art-item p strong {
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}
.art-cta {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
    display: inline-block;
    transition: opacity 0.2s;
}
.art-cta:hover { opacity: 0.5; }

/* ============================================
   ACHIEVEMENTS — LIGHT SECTION
============================================ */
.ach-list { display: flex; flex-direction: column; }

.ach-item, .light-ach {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    align-items: start;
}
.ach-item:last-child, .light-ach:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ach-year {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    padding-top: 5px;
    color: var(--gray-600);
}
.dark-year { color: var(--gray-600); }

.ach-content h3, .dark-h {
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    color: var(--black);
}
.ach-content p, .dark-p {
    font-size: 16.5px;
    color: var(--gray-600);
    line-height: 1.8;
    font-weight: 400;
}

/* ============================================
   CONTACT
============================================ */
.contact {
    position: relative;
}
.contact.dark {
    background: var(--black);
}
.contact-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 96px var(--pad);
}
.contact-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 20px;
}
.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 20px;
}
.contact-title em { font-weight: 400; color: var(--gray-400); }
.contact-sub {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.7;
}
.resume-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.contact-links { display: flex; gap: 36px; flex-wrap: wrap; }
.contact-links a {
    font-size: 15.5px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 3px;
    transition: border-color 0.2s;
}
.contact-links a:hover { border-color: var(--white); }

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px var(--pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-400);
}
.footer-top { color: var(--gray-400); transition: color 0.2s; }
.footer-top:hover { color: var(--white); }

/* ============================================
   CHARACTER
============================================ */
.guy {
    position: fixed;
    bottom: 0;
    right: 48px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: transform 0.12s ease;
    cursor: default;
}

/* Bubble — spring pop */
.guy-bubble {
    background: var(--white);
    color: var(--black);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px 20px 20px 4px;
    margin-bottom: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: opacity 0.12s ease, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    pointer-events: none;
}
.guy-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Head */
.guy-head {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    position: relative;
    transition: transform 0.12s ease;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}
.guy-eyes {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
}
.guy-eye {
    width: 5px;
    height: 5px;
    background: var(--black);
    border-radius: 50%;
    transition: all 0.1s ease;
}
.guy-mouth {
    width: 12px;
    height: 5px;
    border-bottom: 2px solid var(--black);
    border-radius: 0 0 6px 6px;
    margin: 4px auto 0;
    transition: all 0.1s ease;
}

/* Body */
.guy-body {
    width: 30px;
    height: 38px;
    background: var(--white);
    border-radius: 6px 6px 0 0;
    position: relative;
    margin-top: 3px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}
.guy-arm {
    position: absolute;
    width: 10px;
    height: 28px;
    background: var(--white);
    border-radius: 5px;
    top: 4px;
    transition: transform 0.12s ease;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.1);
}
.guy-arm.left  { left: -12px; transform: rotate(15deg); transform-origin: top center; }
.guy-arm.right { right: -12px; transform: rotate(-15deg); transform-origin: top center; }

/* Phone */
.guy-phone {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 14px;
    background: var(--black);
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 2px;
}
.guy-screen {
    width: 5px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 1px;
    margin: 2px auto;
    animation: screenGlow 1.8s ease-in-out infinite;
}
@keyframes screenGlow {
    0%,100% { background: rgba(255,255,255,0.08); }
    50%      { background: rgba(255,255,255,0.5); }
}

/* Legs */
.guy-legs {
    display: flex;
    gap: 6px;
    margin-top: 1px;
}
.guy-leg {
    width: 11px;
    height: 22px;
    background: var(--white);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.1);
}

/* ---- CHARACTER STATES ---- */

/* IDLE — deep in phone, eyes squinted, thumb tapping */
.guy.idle .guy-head      { transform: rotate(22deg) translateY(4px); }
.guy.idle .guy-arm.right { transform: rotate(-48deg); }
.guy.idle .guy-arm.left  { transform: rotate(28deg); }
.guy.idle .guy-eye       { height: 2px; border-radius: 2px; }
.guy.idle .guy-mouth     { width: 10px; border-radius: 0 0 4px 4px; }
.guy.idle                { animation: idleBob 2.4s ease-in-out infinite; }
.guy.idle .guy-screen    { animation: screenGlow 0.6s ease-in-out infinite; }

@keyframes idleBob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

/* SCROLLING — instant snap, wide eyes, lean in */
.guy.scrolling                { animation: readLean 0.55s ease-in-out infinite alternate; }
.guy.scrolling .guy-head      { transform: rotate(-4deg) translateY(-2px); }
.guy.scrolling .guy-arm.left  { transform: rotate(-42deg); }
.guy.scrolling .guy-arm.right { transform: rotate(-38deg); }
.guy.scrolling .guy-eye       { width: 6px; height: 6px; }
.guy.scrolling .guy-mouth     { width: 15px; }
.guy.scrolling .guy-screen    { animation: screenGlow 0.3s ease-in-out infinite; }

@keyframes readLean {
    from { transform: translateY(0) rotate(0deg); }
    to   { transform: translateY(-7px) rotate(-4deg); }
}

/* EXCITED — big bounce, big eyes */
.guy.excited                { animation: excitedBounce 0.35s ease infinite alternate; }
.guy.excited .guy-eye       { width: 7px; height: 7px; }
.guy.excited .guy-mouth     { width: 16px; }
@keyframes excitedBounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}

/* WAVE — arm waves, friendly eyes */
.guy.wave .guy-arm.left  { animation: waveArm 0.45s ease-in-out infinite alternate; }
.guy.wave .guy-head      { transform: rotate(5deg); }
.guy.wave .guy-mouth     { width: 16px; }
@keyframes waveArm {
    from { transform: rotate(-65deg); }
    to   { transform: rotate(-15deg); }
}

@media (max-width: 640px) { .guy { right: 16px; } }

/* ============================================
   ANIME CODER — HERO RIGHT SIDE
============================================ */
.hero-coder {
    flex-shrink: 0;
    width: 290px;
    height: 360px;
    position: relative;
    align-self: flex-end;
}

/* Monitor */
.cc-monitor {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 172px;
    height: 112px;
    background: #0c1018;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow:
        0 0 28px rgba(80,190,255,0.22),
        0 0 80px rgba(80,190,255,0.08),
        inset 0 0 20px rgba(80,190,255,0.05);
    animation: monGlow 4s ease-in-out infinite;
}
@keyframes monGlow {
    0%,100% { box-shadow: 0 0 28px rgba(80,190,255,0.22), 0 0 80px rgba(80,190,255,0.08); }
    50%      { box-shadow: 0 0 36px rgba(80,190,255,0.32), 0 0 100px rgba(80,190,255,0.12); }
}

.cc-screen {
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
    overflow: hidden;
}
.cc-cl {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    font-size: 0;
    opacity: 0.85;
}
.cc-cursor {
    display: block;
    width: 7px;
    height: 11px;
    background: rgba(255,255,255,0.9);
    border-radius: 1px;
    animation: ccBlink 1s step-end infinite;
}
@keyframes ccBlink { 0%,100%{opacity:1} 50%{opacity:0} }

.cc-mstand {
    position: absolute;
    top: 122px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 18px;
    background: rgba(255,255,255,0.18);
}
.cc-mbase {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 7px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

/* Desk */
.cc-desk {
    position: absolute;
    top: 147px;
    left: 0; right: 0;
    height: 13px;
    background: rgba(255,255,255,0.09);
    border-top: 1px solid rgba(255,255,255,0.22);
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    justify-content: space-between;
}

/* Keyboard */
.cc-keyboard {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: 72px;
}
.cc-key {
    display: block;
    width: 10px;
    height: 4px;
    background: rgba(255,255,255,0.28);
    border-radius: 1px;
}
.cc-key.w  { width: 18px; }
.cc-key.w2 { width: 30px; }

/* Coffee mug */
.cc-mug {
    width: 13px;
    height: 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 2px 2px 3px 3px;
    position: relative;
    top: -5px;
}
.cc-steam {
    position: absolute;
    width: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.35);
    animation: ccSteam 1.6s ease-out infinite;
}
.cc-steam.s1 { height: 8px; top: -9px; left: 2px; }
.cc-steam.s2 { height: 6px; top: -7px; left: 7px; animation-delay: 0.5s; }
@keyframes ccSteam {
    0%   { opacity: 0; transform: translateY(0) scaleX(1); }
    30%  { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-12px) scaleX(1.8); }
}

/* Character */
.cc-char {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ccBreathe 3.5s ease-in-out infinite;
}
@keyframes ccBreathe {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

/* Head */
.cc-head {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    position: relative;
    z-index: 3;
}

/* Anime hair */
.cc-hair {
    position: absolute;
    top: -14px; left: -6px; right: -6px;
    height: 28px;
    background: var(--white);
    border-radius: 50% 50% 0 0;
}
.cc-hair::before {
    content: '';
    position: absolute;
    top: -11px; left: 2px;
    width: 15px; height: 20px;
    background: var(--white);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.cc-hair::after {
    content: '';
    position: absolute;
    top: -9px; right: 3px;
    width: 13px; height: 17px;
    background: var(--white);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Glasses */
.cc-glasses {
    position: absolute;
    top: 21px; left: 7px; right: 7px;
    height: 13px;
    display: flex;
    gap: 4px;
    align-items: center;
}
.cc-glasses::before,
.cc-glasses::after {
    content: '';
    flex: 1;
    height: 11px;
    border: 1.5px solid rgba(0,0,0,0.55);
    border-radius: 4px;
}
/* nose bridge */
.cc-glasses::before { border-right: none; border-radius: 4px 0 0 4px; }
.cc-glasses::after  { border-left: none;  border-radius: 0 4px 4px 0; }

/* Eyes (squinting at screen) */
.cc-eyes {
    position: absolute;
    top: 27px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.cc-eye {
    width: 5px;
    height: 2px;
    background: var(--black);
    border-radius: 1px;
}

/* Blush */
.cc-blush {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 5px;
    background: rgba(255,150,150,0.25);
    border-radius: 50%;
}

/* Neck */
.cc-neck {
    width: 18px; height: 10px;
    background: var(--white);
    z-index: 2;
}

/* Body (hoodie/sweater) */
.cc-body {
    width: 48px; height: 56px;
    background: var(--white);
    border-radius: 10px 10px 0 0;
    position: relative;
    z-index: 2;
}
/* hoodie pocket line */
.cc-body::after {
    content: '';
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    width: 20px; height: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    border-top: none;
}

/* Arms — typing pose */
.cc-arm {
    position: absolute;
    width: 12px; height: 38px;
    background: var(--white);
    border-radius: 6px;
    top: 8px;
}
.cc-arm-l {
    left: -14px;
    transform: rotate(20deg);
    transform-origin: top center;
    animation: typeL 0.45s ease-in-out infinite alternate;
}
.cc-arm-r {
    right: -14px;
    transform: rotate(-20deg);
    transform-origin: top center;
    animation: typeR 0.45s ease-in-out infinite alternate;
}
@keyframes typeL {
    from { transform: rotate(20deg); }
    to   { transform: rotate(28deg); }
}
@keyframes typeR {
    from { transform: rotate(-20deg); }
    to   { transform: rotate(-28deg); }
}

/* Chair seat */
.cc-seat {
    width: 76px; height: 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin-top: 3px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 960px) {
    .hero-inner.hero-split {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-phone {
        width: 280px;
        justify-self: center;
    }
}

@media (max-width: 860px) {
    .section-grid { grid-template-columns: 1fr; gap: 24px; }
    .section-label-light { padding-top: 0; }
    .about-facts { gap: 32px; }
    .ach-item, .light-ach { grid-template-columns: 48px 1fr; gap: 20px; }

    /* Stack two columns vertically on tablet */
    .work-header,
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-grid.solo { grid-template-columns: 1fr; gap: 18px; }
    .work-header {
        border-bottom: none;
        gap: 0;
    }
    .work-col-head {
        padding: 0 0 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .work-col-head:last-child {
        padding-top: 24px;
        border-bottom: none;
    }
    .work-divider-v { display: none; }
    .work-divider-v-full { display: none; }
    .work-col { padding: 0; }
    .work-col + .work-col { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 640px) {
    .hero-phone { display: none; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--black);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 24px var(--pad);
        gap: 20px;
    }
    .nav-toggle { display: block; }
    .hero-title { letter-spacing: -1px; }
    .hero-stack { gap: 6px; }
    .hero-stack span { font-size: 11px; padding: 4px 10px; }
    .about-facts { flex-wrap: wrap; gap: 24px; }
    .contact-links { flex-direction: column; gap: 16px; }
    .resume-actions { flex-direction: column; gap: 12px; }
    .proj-card-top { flex-direction: column; }
    .proj-meta-row { flex-direction: column; align-items: flex-start; }
    .proj-impact { gap: 14px; }
    .pi-stat b { font-size: 18px; }
    .ach-item, .light-ach { grid-template-columns: 1fr; gap: 8px; }
    .art-item h3 { font-size: 15px; }
    .proj-name { font-size: 20px; }

    /* Project card extras stack on phones */
    .proj-card-head { gap: 12px; }
    .proj-icon { width: 32px; height: 32px; }
    .proj-icon svg { width: 16px; height: 16px; }
    .proj-features li { grid-template-columns: 1fr; gap: 4px; }
    .pf-key { padding-top: 0; }
    .proj-links { gap: 8px; }
    .proj-link { padding: 6px 10px; font-size: 10px; }
}

/* Editorial writing list — tablet + phone */
@media (max-width: 860px) {
    .ed-row {
        grid-template-columns: 44px 1fr;
        gap: 18px;
        padding: 28px 0;
    }
    .ed-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 4px;
        padding-top: 0;
    }
    .ed-body { grid-column: 2; max-width: 100%; }
    .ed-num { font-size: 22px; padding-top: 2px; }
    .writing-archive { padding: 72px var(--pad) 88px; }
    .writing-header { margin-bottom: 40px; }
}

@media (max-width: 640px) {
    .ed-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }
    .ed-meta { grid-column: 1; }
    .ed-body { grid-column: 1; }
    .ed-num { display: none; }
    .ed-body h3 { font-size: 19px; }
    .ed-body p { font-size: 13.5px; }
}
