@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── ROOT ───────────────────────────────────────────────────────── */
:root {
  --bg-deep:    #09090c;
  --bg-base:    #0d0e12;
  --bg-raised:  #12141a;
  --bg-float:   #181b24;
  --bg-hover:   #1e2230;

  --chrome:     #c2c8d6;
  --chrome-dim: #7e8799;
  --chrome-muted: #3d4459;

  --electric:   #4f8ef7;
  --electric-glow: rgba(79,142,247,0.18);

  --gold:       #c9a96e;
  --gold-dim:   rgba(201,169,110,0.15);

  --text:       #e8eaf0;
  --text-2:     #9aa0b8;
  --text-3:     #545c76;

  --border:     rgba(255,255,255,0.06);
  --border-2:   rgba(255,255,255,0.12);
  --border-3:   rgba(255,255,255,0.18);

  --metallic: linear-gradient(135deg, #c2c8d6 0%, #f0f2f8 35%, #9aa3ba 60%, #dde1ec 100%);
  --metallic-gold: linear-gradient(135deg, #b8924a 0%, #e8c97a 35%, #9a7535 60%, #d4ac5c 100%);
  --metallic-blue: linear-gradient(135deg, #3a6fd8 0%, #7ab0ff 40%, #2a5abf 70%, #5890ef 100%);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── MESH BACKGROUND ─────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(79,142,247,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(201,169,110,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #09090c 0%, #0d0e14 100%);
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(9,9,12,0.82);
  backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled {
  background: rgba(9,9,12,0.96);
  border-color: var(--border-2);
}

.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--border-3);
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.nav-logo-mark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(79,142,247,0.12) 100%);
}
.nav-logo-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
  letter-spacing: -0.02em;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand-name em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 400;
}

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg-hover); }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.btn-nav {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--chrome);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 0.4rem; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text-2); transition: all 0.3s; }

/* ── HERO ─────────────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8rem 2.5rem 6rem;
  position: relative; z-index: 1;
  text-align: center;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-2);
  background: var(--bg-raised);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
}
.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  position: relative;
}
.hero-title-line1 { display: block; color: var(--text); }
.hero-title-line2 {
  display: block;
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 auto 3rem;
  font-weight: 400;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 5rem; }

.btn-primary {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg-deep);
  background: var(--chrome);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-outline {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--border-3); color: var(--text); background: var(--bg-raised); }

/* Stats bar */
.hero-stats {
  display: flex; gap: 0; border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-raised);
  width: 100%; max-width: 720px; margin: 0 auto;
}
.hero-stat {
  flex: 1; padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 0.3rem;
  display: block;
}

/* scroll indicator */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border-3), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── SECTION COMMONS ─────────────────────────────────────────────── */
.section-wrap { max-width: 1120px; margin: 0 auto; padding: 7rem 2.5rem; position: relative; z-index: 1; }
.section-wrap.no-pad-top { padding-top: 2rem; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--electric); display: block; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}
.section-title .metal {
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 20%, var(--border-2) 80%, transparent);
  position: relative; z-index: 1;
}

/* ── ABOUT ────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 5rem; align-items: start;
}
.about-body p {
  font-size: 0.97rem; color: var(--text-2); line-height: 1.9; margin-bottom: 1.25rem;
}
.about-body p strong { color: var(--text); font-weight: 600; }
.about-body p:first-child { font-size: 1.05rem; color: var(--text); }

.patent-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.3);
  background: rgba(201,169,110,0.06);
  padding: 0.5rem 1rem; border-radius: 100px;
  margin-top: 1.5rem;
}
.patent-pill::before { content: '◈'; }

/* Profile card */
.profile-card {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  overflow: hidden;
  position: sticky; top: 90px;
}
.profile-card-top {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-float) 0%, var(--bg-raised) 100%);
  position: relative;
}
.profile-card-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--electric), var(--chrome), var(--gold));
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  background: linear-gradient(135deg, var(--bg-float), var(--bg-hover));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.profile-avatar span {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 0.25rem;
}
.profile-role {
  font-size: 0.78rem; color: var(--text-3);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.profile-links {
  padding: 1.25rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.profile-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem; color: var(--text-2);
  text-decoration: none; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.profile-link:hover { background: var(--bg-hover); color: var(--text); }
.profile-link-icon {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--bg-float); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--chrome-dim); flex-shrink: 0;
}
.profile-tags { padding: 0 2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ptag {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--border);
  padding: 0.2rem 0.55rem; border-radius: 100px;
  background: var(--bg-float);
}

/* ── EXPERIENCE TIMELINE ─────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--electric), var(--border), transparent);
}
.tl-item { position: relative; padding-bottom: 3.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -1.875rem; top: 0.35rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--electric);
  box-shadow: 0 0 12px rgba(79,142,247,0.4);
}
.tl-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--electric); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 0.15rem;
}
.tl-company {
  font-size: 0.85rem; color: var(--text-3); margin-bottom: 1rem;
}
.tl-points { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.tl-points li {
  display: flex; gap: 0.75rem; align-items: baseline;
  font-size: 0.87rem; color: var(--text-2); line-height: 1.65;
}
.tl-points li::before {
  content: '›'; color: var(--chrome-dim); flex-shrink: 0;
  font-size: 1rem; margin-top: -0.1rem;
}

/* ── PROJECT CARDS ───────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}
.proj-card {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  cursor: default;
}
.proj-card:hover {
  border-color: var(--border-3);
  background: var(--bg-float);
  transform: translateY(-3px);
}
.proj-card-glow {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,142,247,0.1), transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.proj-card:hover .proj-card-glow { opacity: 1; }

.proj-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.proj-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--chrome-dim);
}
.proj-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 100px;
}
.badge-patent { color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(201,169,110,0.2); }
.badge-research { color: var(--electric); background: var(--electric-glow); border: 1px solid rgba(79,142,247,0.2); }
.badge-platform { color: var(--chrome-dim); background: rgba(194,200,214,0.08); border: 1px solid var(--border-2); }
.badge-article { color: #a87fb0; background: rgba(168,127,176,0.1); border: 1px solid rgba(168,127,176,0.2); }

.proj-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 0.75rem;
}
.proj-desc {
  font-size: 0.83rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.25rem;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); background: var(--bg-hover);
  border: 1px solid var(--border); padding: 0.22rem 0.55rem; border-radius: 4px;
}

/* ── PAPERS ──────────────────────────────────────────────────────── */
.papers-table { display: flex; flex-direction: column; gap: 0; }
.paper-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.5rem; align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.paper-row:first-child { padding-top: 0; }
.paper-row:last-child { border-bottom: none; }
.paper-row:hover { background: rgba(255,255,255,0.015); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; border-radius: var(--radius-md); }
.paper-year {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3);
  letter-spacing: 0.04em; padding-top: 0.3rem;
}
.paper-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em; line-height: 1.35;
  margin-bottom: 0.4rem;
}
.paper-venue {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--electric); margin-bottom: 0.3rem;
}
.paper-authors { font-size: 0.8rem; color: var(--text-3); font-style: italic; }
.paper-status-pill {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px; white-space: nowrap;
  border: 1px solid;
  align-self: flex-start; margin-top: 0.3rem;
}
.st-review { color: var(--electric); border-color: rgba(79,142,247,0.3); background: var(--electric-glow); }
.st-patent { color: var(--gold); border-color: rgba(201,169,110,0.3); background: var(--gold-dim); }
.st-wip    { color: var(--text-3); border-color: var(--border-2); background: var(--bg-float); }
.st-pub    { color: #7dbf9e; border-color: rgba(125,191,158,0.3); background: rgba(125,191,158,0.08); }

/* ── BOOKS ───────────────────────────────────────────────────────── */
.books-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.book-card {
  border: 1px solid var(--border-2); border-radius: var(--radius-xl);
  background: var(--bg-raised); overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.book-card:hover { border-color: var(--border-3); transform: translateY(-3px); }

.book-cover {
  height: 180px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.book-cover-1 { background: linear-gradient(135deg, #0f1520 0%, #1a2240 40%, #0d1830 100%); }
.book-cover-2 { background: linear-gradient(135deg, #0f1a15 0%, #12261e 40%, #0a1510 100%); }
.book-cover-3 { background: linear-gradient(135deg, #1a100a 0%, #2a1810 40%, #1a0d08 100%); }
.book-cover-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900; text-align: center;
  line-height: 1.1; padding: 1.5rem;
  position: relative; z-index: 1;
}
.bc1 { background: var(--metallic-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bc2 { color: #7dbf9e; }
.bc3 { background: var(--metallic-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.book-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.book-body { padding: 1.5rem; }
.book-genre {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 0.65rem;
}
.book-title-text {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
  color: var(--text); line-height: 1.2; margin-bottom: 0.3rem;
}
.book-subtitle-text {
  font-size: 0.8rem; color: var(--text-3); font-style: italic;
  margin-bottom: 0.85rem; line-height: 1.5;
}
.book-desc {
  font-size: 0.82rem; color: var(--text-2); line-height: 1.72; margin-bottom: 1rem;
}
.book-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px; border: 1px solid;
}
.chip-soon  { color: var(--electric); border-color: rgba(79,142,247,0.3); background: var(--electric-glow); }
.chip-wip   { color: var(--gold); border-color: rgba(201,169,110,0.25); background: var(--gold-dim); }
.chip-field { color: var(--chrome-dim); border-color: var(--border-2); background: rgba(194,200,214,0.07); }

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-lead {
  font-size: 1rem; color: var(--text-2); line-height: 1.85; margin-bottom: 2rem;
}
.contact-items { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.87rem; color: var(--text-2);
  text-decoration: none; padding: 0.85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-raised);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.contact-item:hover { border-color: var(--border-3); background: var(--bg-float); color: var(--text); }
.contact-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-hover); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--chrome-dim); flex-shrink: 0;
}

.avail-card {
  border: 1px solid var(--border-2); border-radius: var(--radius-xl);
  background: var(--bg-raised); overflow: hidden;
}
.avail-card-head {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-float);
  position: relative;
}
.avail-card-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--electric) 0%, var(--chrome) 50%, var(--gold) 100%);
}
.avail-head-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.25rem;
}
.avail-head-sub { font-size: 0.8rem; color: var(--text-3); }
.avail-items { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.avail-item { display: flex; gap: 1rem; align-items: flex-start; }
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--electric); flex-shrink: 0; margin-top: 0.4rem;
}
.avail-item-title {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.2rem;
}
.avail-item-desc { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); position: relative; z-index: 1;
  padding: 2.5rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  max-width: 1120px; margin: 0 auto;
}
.footer-left { display: flex; align-items: center; gap: 1.5rem; }
.footer-logo {
  font-family: var(--font-display); font-weight: 800;
  background: var(--metallic);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem; text-decoration: none;
}
.footer-copy { font-size: 0.75rem; color: var(--text-3); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--chrome); }

/* ── REVEAL ANIMATIONS ────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.up { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeSlideUp 0.7s ease 0.1s both; }
.anim-2 { animation: fadeSlideUp 0.7s ease 0.25s both; }
.anim-3 { animation: fadeSlideUp 0.7s ease 0.4s both; }
.anim-4 { animation: fadeSlideUp 0.7s ease 0.55s both; }
.anim-5 { animation: fadeSlideUp 0.7s ease 0.7s both; }

/* ── BACK TO TOP ──────────────────────────────────────────────────── */
#btt {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--bg-float); border: 1px solid var(--border-2);
  color: var(--text-2); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
}
#btt.show { opacity: 1; pointer-events: all; }
#btt:hover { border-color: var(--chrome-dim); color: var(--chrome); }

/* ── MOBILE ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  #nav .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg-base); border-bottom: 1px solid var(--border-2);
    padding: 0.75rem 0;
  }
  .nav-links.open li a { padding: 0.75rem 2rem; border-radius: 0; }
  .btn-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 45%; }
  .section-wrap { padding: 5rem 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .paper-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .paper-year { display: none; }
}
