/* ─── Fonts ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Pixelify+Sans:wght@400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:         #080808;
  --bg-sec:     #0f0f0f;
  --bg-card:    #111111;
  --fg:         #ffffff;
  --fg-muted:   rgba(255,255,255,0.35);
  --fg-subtle:  rgba(255,255,255,0.15);
  --accent:     #C8FF00;
  --border:     rgba(255,255,255,0.07);
  --border-hov: rgba(255,255,255,0.15);
  --f-display:  'Manrope', sans-serif;
  --f-pixel:    'Pixelify Sans', monospace;
  --f-body:     'DM Sans', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
button { background: none; border: none; cursor: none; font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ─── Custom Cursor ──────────────────────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
}
.cursor-ring {
  position: absolute;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .35s cubic-bezier(.16,1,.3,1), height .35s cubic-bezier(.16,1,.3,1), border-color .35s;
}
body.cursor-hover .cursor-dot { width: 6px; height: 6px; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; border-color: rgba(200,255,0,.6); background: rgba(200,255,0,.05); }
@media (max-width: 768px) { body { cursor: auto; } .cursor { display: none; } }

/* ─── Noise overlay ──────────────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 20px 48px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .5s;
}
nav.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(8,8,8,.85);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 28px; height: 28px; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 900; font-size: 15px; color: #000;
  transition: transform .3s;
}
.nav-logo-icon:hover { transform: rotate(12deg); }
.nav-logo-text {
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  letter-spacing: -.02em; color: #fff;
}
.nav-logo-text span { color: rgba(255,255,255,.3); }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links button {
  font-family: var(--f-display); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  transition: color .3s;
}
.nav-links button:hover { color: rgba(255,255,255,.9); }
.nav-contact { display: flex; align-items: center; gap: 12px; }
.nav-contact span { font-family: var(--f-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.6); transition: color .3s; }
.nav-contact .line { width: 32px; height: 1px; background: rgba(255,255,255,.3); transition: width .4s, background .3s; }
.nav-contact:hover span { color: #fff; }
.nav-contact:hover .line { width: 48px; background: #fff; }
@media (max-width: 640px) { nav { padding: 20px 24px; } .nav-links button { display: none; } }

/* ─── Reveal animation ───────────────────────────────────────────────────── */
.reveal-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal-up.visible { opacity: 1; transform: none; }

/* ─── Section shared ─────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--f-display); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .25em; color: var(--fg-muted);
  display: block; margin-bottom: 20px;
}
.section-heading {
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -.04em; line-height: .95;
}
.section-heading .ghost { color: rgba(255,255,255,.2); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: .045;
  animation: grainShift .5s steps(1) infinite;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 50%, rgba(200,255,0,.04) 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 128px 80px 112px;
  display: flex; align-items: center; gap: 0;
}
.hero-left { flex: 1; display: flex; flex-direction: column; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 40px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s, transform .7s;
}
.hero-eyebrow.visible { opacity: 1; transform: none; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-eyebrow span {
  font-family: var(--f-display); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .25em; color: var(--fg-muted);
}
.hero-name {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
  transition-delay: .2s;
}
.hero-name.visible { opacity: 1; transform: none; }
.hero-name h1 {
  font-family: var(--f-pixel);
  font-size: clamp(2.8rem, 7.5vw, 7.2rem);
  letter-spacing: .02em; line-height: 1.05;
  background: linear-gradient(170deg, #fff 0%, rgba(255,255,255,.75) 40%, rgba(255,255,255,.12) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-name .accent-dot {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-top: 12px;
}
.hero-rule {
  height: 1px; margin: 40px 0 32px;
  background: linear-gradient(90deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 60%, transparent 100%);
  opacity: 0; transition: opacity 1s; transition-delay: .35s;
}
.hero-rule.visible { opacity: 1; }
.hero-role {
  display: flex; align-items: center; gap: 12px; min-height: 2rem; margin-bottom: 32px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s, transform .7s; transition-delay: .4s;
}
.hero-role.visible { opacity: 1; transform: none; }
.hero-role span {
  font-family: var(--f-display); font-size: 14px; font-weight: 500;
  letter-spacing: .04em; color: var(--fg-muted);
}
.hero-role .slash { color: var(--accent); }
.hero-cursor {
  display: inline-block; width: 2px; height: 1.1em;
  background: var(--accent); margin-left: 2px; vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
.hero-desc {
  max-width: 420px; font-family: var(--f-body); font-size: 15px;
  line-height: 1.75; color: var(--fg-muted); margin-bottom: 40px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s, transform 1s; transition-delay: .5s;
}
.hero-desc.visible { opacity: 1; transform: none; }
.hero-desc .hl { color: var(--accent); }
.hero-cta {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px);
  transition: opacity 1s, transform 1s; transition-delay: .62s;
}
.hero-cta.visible { opacity: 1; transform: none; }
.hero-cta a {
  display: flex; align-items: center; gap: 12px;
}
.hero-cta a span {
  font-family: var(--f-display); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--fg-muted);
  transition: color .3s;
}
.hero-cta a .cta-line { height: 1px; width: 24px; background: var(--fg-muted); transition: width .5s, background .3s; }
.hero-cta a:hover span { color: #fff; }
.hero-cta a:hover .cta-line { width: 48px; }
.hero-cta .resume-arrow { transition: transform .3s; }
.hero-cta a:hover .resume-arrow { transform: translateY(2px); }

/* Hero right — portrait */
.hero-right {
  width: 420px; flex-shrink: 0; display: flex; justify-content: flex-end;
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s, transform 1s; transition-delay: .55s;
}
.hero-right.visible { opacity: 1; transform: none; }
.tilt-wrap { perspective: 900px; cursor: none; }
.tilt-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .08s linear;
  will-change: transform;
}
.tilt-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse, rgba(200,255,0,.12), transparent 70%);
  border-radius: 24px; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .5s;
}
.tilt-wrap:hover .tilt-glow { opacity: 1; }
.portrait-frame {
  position: relative; width: 320px; height: 400px; border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  transition: box-shadow .4s; z-index: 1;
}
.tilt-wrap:hover .portrait-frame {
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(200,255,0,.15), inset 0 1px 0 rgba(255,255,255,.1);
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  image-rendering: pixelated;
  filter: grayscale(60%) contrast(1.1) brightness(.8);
  transition: filter .5s;
}
.tilt-wrap:hover .portrait-frame img { filter: grayscale(20%) contrast(1.1) brightness(.95); }
.portrait-scanlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.12) 4px);
  opacity: .7; transition: opacity .4s;
}
.tilt-wrap:hover .portrait-scanlines { opacity: .4; }
.portrait-shimmer {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, rgba(200,255,0,.06) 0%, transparent 40%, rgba(100,200,255,.04) 70%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.tilt-wrap:hover .portrait-shimmer { opacity: 1; }
.portrait-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%; z-index: 2;
  background: linear-gradient(to top, rgba(8,8,8,.8), transparent);
  pointer-events: none;
}
.portrait-label {
  position: absolute; bottom: -14px; right: -14px; z-index: 4;
  background: rgba(8,8,8,.9); border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 8px 14px; backdrop-filter: blur(12px);
  transform: translateZ(20px);
  opacity: 0; transition: opacity .3s;
}
.tilt-wrap:hover .portrait-label { opacity: 1; }
.portrait-label span {
  font-family: var(--f-display); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em; color: var(--accent);
}

/* Scroll indicator */
.scroll-ind {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2; opacity: 0; transition: opacity 1s; transition-delay: 1s;
}
.scroll-ind.visible { opacity: 1; }
.scroll-line-wrap { width: 1px; height: 56px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.scroll-line-fill { position: absolute; top: 0; left: 0; width: 100%; height: 45%; background: rgba(200,255,0,.5); animation: scrollLine 2s ease-in-out infinite; }
.scroll-ind span { font-family: var(--f-display); font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .25em; color: var(--fg-subtle); }

@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; padding: 128px 32px 80px; gap: 64px; }
  .hero-right { width: 100%; justify-content: center; }
  .portrait-frame { width: 280px; height: 350px; }
}
@media (max-width: 640px) {
  .hero-inner { padding: 100px 24px 80px; }
  .nav-links { display: none; }
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
#about { padding: 96px 48px 64px; }
.about-inner { max-width: 1200px; margin: 0 auto; }
.about-header { display: flex; align-items: center; gap: 16px; margin-bottom: 80px; }
.about-header-line { height: 1px; background: var(--border); width: 0; max-width: 48px; transition: width .8s cubic-bezier(.77,0,.175,1); }
.about-header-line.visible { width: 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; margin-bottom: 80px; }
.about-bio-head {
  font-family: var(--f-display); font-weight: 800; color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 32px;
}
.about-bio-head .ghost { color: rgba(255,255,255,.3); }
.about-bio p { font-family: var(--f-body); font-size: 15px; line-height: 1.75; color: var(--fg-muted); margin-bottom: 20px; }
.edu-label { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: var(--fg-muted); display: block; margin-bottom: 24px; }
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  transition: border-color .4s;
}
.edu-card:hover { border-color: var(--border-hov); }
.edu-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.edu-institution { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; color: #fff; }
.edu-degree { font-family: var(--f-body); font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.edu-period { font-family: var(--f-body); font-size: 10px; color: var(--fg-subtle); text-align: right; white-space: nowrap; }
.edu-location { font-family: var(--f-display); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-subtle); }
.resume-dl {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
}
.resume-dl span { font-family: var(--f-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); transition: opacity .3s; }
.resume-dl .line { height: 1px; width: 24px; background: var(--accent); transition: width .4s; }
.resume-dl:hover .line { width: 48px; }

/* Tech stack marquee */
.tech-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.tech-hint { font-family: var(--f-display); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: var(--fg-subtle); }
.marquee-rows { margin: 0 -48px; display: flex; flex-direction: column; gap: 12px; }
.marquee-row { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.marquee-track { display: flex; gap: 12px; width: max-content; }
.marquee-track.left  { animation: marqueeLeft  35s linear infinite; }
.marquee-track.left2 { animation: marqueeLeft  28s linear infinite; }
.marquee-track.left3 { animation: marqueeLeft  32s linear infinite; }
.marquee-track.right { animation: marqueeRight 38s linear infinite; }
.tech-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 20px; border-radius: 12px; min-width: 90px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: background .3s, border-color .3s, transform .3s;
}
.tech-card:hover { background: rgba(255,255,255,.07); border-color: rgba(200,255,0,.2); transform: scale(1.08); }
.tech-card img { width: 36px; height: 36px; object-fit: contain; filter: grayscale(100%) brightness(.7); transition: filter .35s, transform .35s; }
.tech-card:hover img { filter: grayscale(0%) brightness(1); transform: scale(1.1); }
.tech-card span { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); white-space: nowrap; transition: color .35s; }
.tech-card:hover span { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  #about { padding: 80px 24px 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .marquee-rows { margin: 0 -24px; }
}

/* ─── WORK ───────────────────────────────────────────────────────────────── */
#work { padding: 64px 48px 120px; }
.work-inner { max-width: 1200px; margin: 0 auto; }
.work-hdr { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.roles-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 100px; padding: 10px 18px;
}
.roles-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.roles-badge span { font-family: var(--f-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--fg-muted); }

/* Accordion */
.accordion-item { border-top: 1px solid var(--border); transition: border-color .4s; }
.accordion-item.open { border-color: rgba(200,255,0,.3); }
.accordion-item:last-child + .accordion-end { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%; text-align: left; padding: 36px 0;
  display: flex; align-items: center; gap: 40px;
}
.acc-idx { font-family: var(--f-display); font-size: 11px; font-weight: 300; letter-spacing: .12em; color: var(--fg-subtle); min-width: 28px; transition: color .3s; }
.accordion-item.open .acc-idx { color: var(--accent); }
.acc-main { flex: 1; min-width: 0; }
.acc-role { font-family: var(--f-display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.45rem); letter-spacing: -.025em; color: #fff; }
.acc-company { font-family: var(--f-body); font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.acc-meta { text-align: right; flex-shrink: 0; }
.acc-period { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-muted); display: block; transition: color .3s; }
.accordion-item.open .acc-period { color: var(--accent); }
.acc-location { font-family: var(--f-body); font-size: 10px; color: var(--fg-subtle); display: block; margin-top: 2px; }
.acc-toggle {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.accordion-item.open .acc-toggle { border-color: rgba(200,255,0,.4); background: rgba(200,255,0,.08); }
.acc-toggle svg { transition: transform .4s cubic-bezier(.16,1,.3,1), color .3s; color: rgba(255,255,255,.4); }
.accordion-item.open .acc-toggle svg { transform: rotate(45deg); color: var(--accent); }

.accordion-body { max-height: 0; overflow: hidden; transition: max-height .6s cubic-bezier(.16,1,.3,1); }
.accordion-body.open { max-height: 900px; }
.acc-content { padding: 0 0 40px 68px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.metric-card { background: rgba(200,255,0,.04); border: 1px solid rgba(200,255,0,.1); border-radius: 12px; padding: 16px; }
.metric-val { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem,3vw,2rem); color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.metric-lbl { font-family: var(--f-display); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-subtle); margin-top: 6px; }

.proj-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.proj-link span { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--fg-muted); transition: color .3s; }
.proj-link:hover span { color: #fff; }
.proj-link svg { color: var(--fg-muted); transition: transform .3s; }
.proj-link:hover svg { transform: translate(2px,-2px); }

.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 28px; }
.bullet-list li { display: flex; align-items: flex-start; gap: 16px; }
.bullet-bar { width: 3px; height: 14px; border-radius: 2px; background: rgba(200,255,0,.45); flex-shrink: 0; margin-top: 5px; }
.bullet-list p { font-family: var(--f-body); font-size: 14px; line-height: 1.75; color: var(--fg-muted); }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-display); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; padding: 4px 12px; border-radius: 100px; }
.tag-muted { background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.08); }
.tag-accent { background: rgba(200,255,0,.07); color: var(--accent); border: 1px solid rgba(200,255,0,.15); }

/* Projects sub-section */
.proj-section { margin-top: 80px; }
.proj-hdr { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.github-link { display: flex; align-items: center; gap: 12px; }
.github-link span { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--fg-muted); transition: color .3s; }
.github-link .line { height: 1px; width: 32px; background: var(--fg-muted); transition: width .5s; }
.github-link:hover span { color: #fff; }
.github-link:hover .line { width: 56px; }

/* Project tracklist cards */
.project-cards { border-bottom: 1px solid var(--border); }
.project-card {
  position: relative; overflow: hidden; border-top: 1px solid var(--border);
  transition: border-color .4s;
}
.project-card:hover { border-color: rgba(255,255,255,.12); }
.card-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,0,.04), transparent 70%);
  transform: translate(-50%,-50%); pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .3s;
}
.project-card:hover .card-glow { opacity: 1; }
.card-accent-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .5s cubic-bezier(.16,1,.3,1); z-index: 1;
}
.project-card:hover .card-accent-bar { transform: scaleY(1); }
.card-main {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 40px;
  padding: 32px 24px 32px 32px;
}
.card-logo {
  width: 100px; height: 100px; border-radius: 18px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .4s, transform .5s cubic-bezier(.16,1,.3,1);
}
.project-card:hover .card-logo { border-color: rgba(255,255,255,.14); transform: scale(1.06); }
.card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; filter: brightness(.75) grayscale(20%); transition: filter .5s; }
.project-card:hover .card-logo img { filter: brightness(1) grayscale(0%); }
.card-info { flex: 1; min-width: 0; }
.card-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem,2.5vw,1.55rem); letter-spacing: -.03em; color: #fff; }
.card-subtitle { font-family: var(--f-body); font-size: 14px; color: var(--fg-muted); margin-left: 0; }
.card-url { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.card-url svg { color: rgba(255,255,255,.2); flex-shrink: 0; }
.card-url span { font-family: var(--f-body); font-size: 11px; color: rgba(255,255,255,.2); transition: color .3s; }
.project-card:hover .card-url span { color: rgba(255,255,255,.5); }
.card-stack-hover { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s cubic-bezier(.16,1,.3,1), opacity .3s; margin-top: 0; }
.project-card:hover .card-stack-hover { max-height: 60px; opacity: 1; margin-top: 12px; }
.card-stack-hover .stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.card-period { font-family: var(--f-display); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--fg-subtle); }
.card-expand-btn {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.card-expand-btn.active { border-color: rgba(200,255,0,.4); background: rgba(200,255,0,.07); }
.card-expand-btn svg { transition: transform .35s cubic-bezier(.16,1,.3,1), color .3s; color: rgba(255,255,255,.4); }
.card-expand-btn.active svg { transform: rotate(45deg); color: var(--accent); }
.card-visit {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.project-card:hover .card-visit { background: rgba(255,255,255,.07); }
.card-visit svg { color: rgba(255,255,255,.5); transition: transform .3s; }
.project-card:hover .card-visit svg { transform: translate(1px,-1px); }

.card-detail { max-height: 0; overflow: hidden; transition: max-height .55s cubic-bezier(.16,1,.3,1); position: relative; z-index: 2; }
.card-detail.open { max-height: 400px; }
.card-detail-inner { padding: 24px 24px 32px 32px; border-top: 1px solid rgba(255,255,255,.05); }

@media (max-width: 768px) {
  #work { padding: 48px 24px 80px; }
  .acc-meta { display: none; }
  .acc-content { padding: 0 0 32px 0; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .card-main { gap: 20px; padding: 24px 16px 24px 20px; }
  .card-period { display: none; }
}

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
#contact { padding: 80px 48px 120px; border-top: 1px solid var(--border); }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.contact-cta-head { font-family: var(--f-display); font-weight: 800; color: #fff; font-size: clamp(2.2rem,6vw,5rem); letter-spacing: -.04em; line-height: .92; }
.contact-cta-head .ghost { color: rgba(255,255,255,.2); }
.contact-desc { font-family: var(--f-body); font-size: 15px; line-height: 1.75; color: var(--fg-muted); margin-top: 32px; max-width: 340px; }
.avail-badge { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.avail-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.avail-badge span { font-family: var(--f-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .4s, background .4s;
}
.contact-link-card:hover { border-color: var(--border-hov); background: #161616; }
.cl-label { font-family: var(--f-display); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--fg-muted); margin-bottom: 8px; }
.cl-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(.9rem,2vw,1.25rem); letter-spacing: -.02em; color: #fff; }
.cl-sub { font-family: var(--f-body); font-size: 11px; color: var(--fg-muted); margin-top: 4px; }
.cl-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s; }
.contact-link-card:hover .cl-icon { transform: scale(1.1); }
.cl-icon svg { color: rgba(255,255,255,.4); transition: color .3s; }
.contact-link-card:hover .cl-icon svg { color: #fff; }

@media (max-width: 900px) {
  #contact { padding: 64px 24px 80px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 32px 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { width: 22px; height: 22px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 900; font-size: 12px; color: #000; }
.footer-copy { font-family: var(--f-display); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.25); }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { font-family: var(--f-display); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.25); transition: color .3s; }
.footer-links a:hover { color: rgba(255,255,255,.6); }
@media (max-width: 640px) { footer { padding: 32px 24px; } }

/* ─── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes blink { 0%,100% { opacity:1 } 50% { opacity:0 } }
@keyframes scrollLine { 0% { transform:translateY(-100%) } 100% { transform:translateY(300%) } }
@keyframes grainShift {
  0%,100% { transform:translate(0,0) }   10% { transform:translate(-1%,-1%) }
  20% { transform:translate(1%,0) }      30% { transform:translate(0,1%) }
  40% { transform:translate(-1%,1%) }    50% { transform:translate(1%,-1%) }
  60% { transform:translate(0,0) }       70% { transform:translate(-1%,0) }
  80% { transform:translate(1%,1%) }     90% { transform:translate(0,-1%) }
}
@keyframes marqueeLeft  { 0% { transform:translateX(0) } 100% { transform:translateX(-33.333%) } }
@keyframes marqueeRight { 0% { transform:translateX(-33.333%) } 100% { transform:translateX(0) } }
