*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #09090b;
  --bg1: #0f1015;
  --bg2: #13141a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --accent: #6366f1;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --text: #f4f4f5;
  --text2: #a1a1aa;
  --text3: #52525b;
  --ff-display: 'Syne', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
  --ff-body: 'Instrument Sans', sans-serif;
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none
}

/* ─── CURSOR ─── */
#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s, background .3s;
  mix-blend-mode: screen
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%)
}

body:has(a:hover) #cursor {
  width: 20px;
  height: 20px;
  background: var(--teal)
}

body:has(a:hover) #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(20, 184, 166, .4)
}

/* ─── PROGRESS ─── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 500;
  transition: width .08s linear
}

/* ─── CANVAS ─── */
#neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .65
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border)
}

.nav-brand {
  font-family: var(--ff-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-brand::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: blink 2.4s ease-in-out infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none
}

.nav-links a {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s
}

.nav-links a:hover {
  color: var(--text)
}

.nav-cta {
  font-family: var(--ff-mono);
  font-size: .72rem;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  color: var(--text2);
  text-decoration: none;
  transition: all .25s;
  letter-spacing: .08em
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* ─── LAYOUT ─── */
section {
  position: relative;
  z-index: 10
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 48px 100px
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  margin-bottom: 60px
}

.hero-kicker {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--teal);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px
}

.hero-kicker span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--teal);
  opacity: .6
}

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  margin-bottom: 32px
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 44px
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-decoration: none;
  transition: all .3s;
  border: none;
  cursor: none
}

.btn-fill {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .3)
}

.btn-fill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(99, 102, 241, .45)
}

.btn-outline {
  border: 1px solid var(--border2);
  color: var(--text2);
  background: var(--surface)
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal)
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0
}

.hero-photo {
  width: 260px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  position: relative
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(160deg, var(--accent), var(--teal), transparent 60%);
  border-radius: 17px;
  z-index: -1
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: contrast(1.05) saturate(.9)
}

.hero-photo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent)
}

.avail-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px)
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e
}

.avail-text {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--text2);
  line-height: 1.4
}

.avail-text strong {
  display: block;
  color: var(--text);
  font-size: .7rem
}

/* Latency card */
.latency-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap
}

.latency-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal))
}

.lat-from {
  font-family: var(--ff-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text3);
  text-decoration: line-through;
  text-decoration-color: var(--rose)
}

.lat-arrow {
  font-size: 2rem;
  color: var(--text3)
}

.lat-to {
  font-family: var(--ff-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--teal), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.lat-lbl {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--text3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 5px
}

.lat-tech {
  font-family: var(--ff-mono);
  font-size: .63rem;
  color: var(--text3);
  line-height: 1.9;
  margin-left: auto
}

.lat-x {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text)
}

/* ─── TICKER ─── */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden
}

.stat-track {
  display: flex;
  animation: ticker 26s linear infinite;
  width: max-content
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 44px;
  border-right: 1px solid var(--border);
  white-space: nowrap
}

.stat-val {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em
}

.stat-val.hi {
  color: var(--teal)
}

.stat-lbl {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .09em;
  line-height: 1.45
}

.stat-lbl strong {
  display: block;
  color: var(--text2);
  font-size: .67rem
}

@keyframes ticker {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ─── SECTION LABELS ─── */
.sec-label {
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.sec-label::before {
  content: attr(data-n);
  color: var(--text3)
}

.sec-h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 16px
}

.sec-sub {
  font-size: .95rem;
  color: var(--text2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 52px
}

/* ─── EXPERIENCE ─── */
#experience {
  padding: 120px 0
}

.exp-list {
  display: flex;
  flex-direction: column
}

.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden
}

.exp-row::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--teal));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1)
}

.exp-row:hover::after {
  transform: scaleY(1)
}

.exp-left {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--border)
}

.exp-period {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--text3);
  letter-spacing: .06em;
  margin-bottom: 12px
}

.exp-co {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 5px;
  display: inline-block;
  letter-spacing: .06em
}

.co-teal {
  background: rgba(20, 184, 166, .12);
  color: var(--teal);
  border: 1px solid rgba(20, 184, 166, .2)
}

.co-indigo {
  background: rgba(99, 102, 241, .12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, .2)
}

.co-amber {
  background: rgba(245, 158, 11, .12);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .2)
}

.exp-right {
  padding: 40px 0 40px 48px
}

.exp-role {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px
}

.exp-tagline {
  font-size: .85rem;
  color: var(--text3);
  font-style: italic;
  margin-bottom: 22px
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px
}

.exp-bullets li {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.65;
  padding-left: 20px;
  position: relative
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 1px;
  background: var(--teal)
}

.exp-bullets li strong {
  color: var(--text);
  font-weight: 500
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.chip {
  font-family: var(--ff-mono);
  font-size: .62rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  color: var(--text3);
  transition: all .2s
}

.chip.ccard {
  font-size: .75rem !important;
  padding: 10px 18px !important;
  border-radius: 6px;
}

.chip:hover {
  color: var(--text2);
  border-color: var(--border2)
}

/* ─── SKILLS ─── */
#skills {
  padding: 120px 0;
  background: var(--bg1)
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden
}

.sk-cell {
  background: var(--bg1);
  padding: 32px;
  transition: background .25s
}

.sk-cell:hover {
  background: rgba(99, 102, 241, .04)
}

.sk-head {
  font-family: var(--ff-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px
}

.sk-ico {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.pill {
  font-family: var(--ff-mono);
  font-size: .68rem;
  padding: 5px 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--text2);
  transition: all .2s
}

.pill:hover {
  background: rgba(20, 184, 166, .08);
  border-color: rgba(20, 184, 166, .2);
  color: var(--teal)
}

/* ─── RESEARCH ─── */
#research {
  padding: 120px 0
}

.r-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.r-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s
}

.r-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2)
}

.r-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px
}

.r-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center
}

.r-num {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--text3);
  letter-spacing: .1em;
  margin-bottom: 16px
}

.r-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px
}

.r-desc {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 20px
}

.r-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--ff-mono);
  font-size: .62rem;
  font-weight: 500
}

.badge-green {
  background: rgba(34, 197, 94, .1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .2)
}

.badge-amber {
  background: rgba(245, 158, 11, .1);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, .2)
}

.r-stats {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.r-stat-v {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.r-stat-l {
  font-size: .8rem;
  color: var(--text2);
  margin-top: 4px
}

/* ─── EDUCATION ─── */
#education {
  padding: 120px 0;
}

.edu-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border)
}

.edu-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  border-radius: 0
}

.edu-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0
}

.edu-degree {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px
}

.edu-inst {
  font-size: .85rem;
  color: var(--text2)
}

.edu-meta {
  text-align: right;
  flex-shrink: 0
}

.edu-period {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--text3);
  letter-spacing: .05em;
  margin-bottom: 5px
}

.edu-gpa {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--teal);
  font-weight: 500
}

/* ─── CONTACT ─── */
#contact {
  padding: 160px 48px;
  min-height: 80vh;
  display: flex;
  align-items: center
}

.contact-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center
}

.contact-h {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 24px
}

.contact-h em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.contact-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 48px
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap
}

.c-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all .3s
}

.c-link:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px)
}

/* ─── FOOTER ─── */
footer {
  position: relative;
  z-index: 10;
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(9, 9, 11, .95)
}

footer p {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--text3);
  letter-spacing: .06em
}

/* ─── REVEAL ─── */
.r {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s cubic-bezier(.4, 0, .2, 1), transform .75s cubic-bezier(.4, 0, .2, 1)
}

.r.in {
  opacity: 1;
  transform: none
}

.d1 {
  transition-delay: .1s
}

.d2 {
  transition-delay: .2s
}

.d3 {
  transition-delay: .3s
}

.d4 {
  transition-delay: .4s
}

.d5 {
  transition-delay: .5s
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-family: var(--ff-mono);
  font-size: .6rem;
  letter-spacing: .1em;
  animation: float 2.5s ease-in-out infinite
}

@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(-8px)
  }
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--text3);
  border-bottom: 1.5px solid var(--text3);
  transform: rotate(45deg)
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
  .nav {
    padding: 18px 24px
  }

  .nav-links,
  .nav-cta {
    display: none
  }

  .wrap {
    padding: 0 24px
  }

  #hero {
    padding: 140px 24px 80px
  }

  .hero-top {
    grid-template-columns: 1fr
  }

  .hero-photo-wrap {
    display: none
  }

  .exp-row {
    grid-template-columns: 1fr
  }

  .exp-left {
    border-right: none;
    padding: 24px 0 12px
  }

  .exp-right {
    padding: 0 0 32px
  }

  .skills-grid {
    grid-template-columns: 1fr
  }

  .r-grid {
    grid-template-columns: 1fr
  }

  .r-card.wide {
    grid-column: span 1;
    grid-template-columns: 1fr
  }

  .edu-row {
    grid-template-columns: auto 1fr;
    gap: 16px
  }

  .edu-meta {
    display: none
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }

  .latency-card {
    gap: 24px
  }
}

/* ── PROJECT CARDS ── */
.proj-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px
}

.pf-btn {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: transparent;
  color: #52525b;
  cursor: pointer;
  transition: all .2s
}

.pf-btn:hover {
  color: #a1a1aa;
  border-color: rgba(255, 255, 255, .13)
}

.pf-active,
.pf-btn.pf-active {
  background: rgba(255, 255, 255, .06);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, .13)
}

.pf-btn[data-filter="alethia"].pf-active {
  background: rgba(20, 184, 166, .08);
  color: #14b8a6;
  border-color: rgba(20, 184, 166, .25)
}

.pf-btn[data-filter="dressme"].pf-active {
  background: rgba(129, 140, 248, .08);
  color: #818cf8;
  border-color: rgba(129, 140, 248, .25)
}

.pf-btn[data-filter="personal"].pf-active {
  background: rgba(245, 158, 11, .08);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, .25)
}

.pf-btn[data-filter="independent"].pf-active {
  background: rgba(192, 132, 252, .08);
  color: #c084fc;
  border-color: rgba(192, 132, 252, .25)
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px
}

.pcard {
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.pcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px
}

.pcard[data-company="alethia"]::before {
  background: linear-gradient(90deg, #14b8a6, transparent)
}

.pcard[data-company="dressme"]::before {
  background: linear-gradient(90deg, #818cf8, transparent)
}



.pcard[data-company="independent"]::before {
  background: linear-gradient(90deg, #c084fc, transparent)
}

.pcard:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg1);
  border-color: var(--border2);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .8);
  z-index: 5
}

.pcard[data-company="alethia"]:hover {
  border-color: rgba(20, 184, 166, .4);
  box-shadow: 0 20px 48px -12px rgba(20, 184, 166, .15)
}

.pcard[data-company="dressme"]:hover {
  border-color: rgba(129, 140, 248, .4);
  box-shadow: 0 20px 48px -12px rgba(129, 140, 248, .15)
}



.pcard[data-company="independent"]:hover {
  border-color: rgba(192, 132, 252, .4);
  box-shadow: 0 20px 48px -12px rgba(192, 132, 252, .15)
}

.pcard.ph {
  display: none
}

.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.pctag {
  font-family: var(--ff-mono);
  font-size: .6rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .06em
}

.pct-alethia {
  background: rgba(20, 184, 166, .1);
  color: #14b8a6;
  border: 1px solid rgba(20, 184, 166, .2)
}

.pct-dressme {
  background: rgba(129, 140, 248, .1);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, .2)
}



.pct-independent {
  background: rgba(192, 132, 252, .1);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, .2)
}

.pcard-ico {
  font-size: 1.3rem;
  line-height: 1
}

.pcard-title {
  font-family: var(--ff-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25
}

.pcard-desc {
  font-size: .8rem;
  color: #a1a1aa;
  line-height: 1.6;
  flex: 1
}

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px
}

.pcard-period {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: #52525b;
  letter-spacing: .04em
}

.pcard-arr {
  font-size: .75rem;
  color: #52525b;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.pcard:hover .pcard-arr {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  transform: translateX(6px);
  box-shadow: 0 0 10px rgba(255,255,255,0.1)
}

/* ── PROJECT MODAL ── */
.pmodal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.pmodal-backdrop.open {
  opacity: 1;
  pointer-events: all
}

.pmodal {
  background: #13141a;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .07) transparent
}

.pmodal-backdrop.open .pmodal {
  transform: none
}

.pmodal-accent {
  height: 3px;
  border-radius: 20px 20px 0 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0
}

.pmodal-hd {
  padding: 32px 32px 0;
  position: relative
}

.pmodal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: none;
  color: #a1a1aa;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.pmodal-close:hover {
  background: rgba(255, 255, 255, .12);
  color: #f4f4f5
}

.pmodal-title {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 14px 0 6px;
  color: #f4f4f5
}

.pmodal-period {
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: #52525b;
  letter-spacing: .06em
}

.pmodal-bd {
  padding: 22px 32px 32px
}

.pm-lbl {
  font-family: var(--ff-mono);
  font-size: .63rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 20px 0 8px
}

.pm-lbl:first-child {
  margin-top: 0
}

.pm-desc {
  font-size: .88rem;
  color: #a1a1aa;
  line-height: 1.75
}

.pm-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.pm-stat {
  flex: 1;
  min-width: 80px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 14px
}

.pm-stat-v {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 3px
}

.pm-stat-l {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: .08em
}

.pm-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.pm-bullets li {
  font-size: .85rem;
  color: #a1a1aa;
  line-height: 1.65;
  padding-left: 18px;
  position: relative
}

.pm-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 1px;
  background: currentColor
}

.pm-bullets li strong {
  color: #f4f4f5;
  font-weight: 500
}

.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.pm-tag {
  font-family: var(--ff-mono);
  font-size: .63rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #52525b
}

.pm-links {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.pm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  text-decoration: none;
  color: #a1a1aa;
  transition: all .25s
}

.pm-link:hover {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .03);
  color: #f4f4f5
}

.pm-link.ph {
  opacity: .3;
  cursor: default;
  pointer-events: none
}

.pm-link-ico {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0
}

.pm-link-meta {
  flex: 1
}

.pm-link-type {
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: #52525b;
  letter-spacing: .08em;
  text-transform: uppercase
}

.pm-link-label {
  font-size: .8rem
}

/* ─── BLOGS ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 12px 32px -12px rgba(20, 184, 166, 0.2);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-card.research-card {
  border-color: rgba(99, 102, 241, 0.2);
}

.blog-card.research-card:hover {
  border-color: #818cf8;
  box-shadow: 0 12px 32px -12px rgba(99, 102, 241, 0.25);
}

.blog-card.research-card::before {
  background: linear-gradient(90deg, #818cf8, transparent);
  opacity: 1;
}

.blog-card.research-card .bc-date {
  color: #818cf8;
}

.blog-card:hover::before {
  opacity: 1;
}

.bc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bc-date {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bc-ico {
  color: var(--text3);
  font-size: 1rem;
  transition: color 0.3s;
}

.blog-card:hover .bc-ico {
  color: var(--text);
}

.bc-title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.bc-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
}