:root {
  --bg: #0a0a0c;
  --surface: #15151a;
  --card: #141419;
  --text: #f5f5f7;
  --muted: #8a8a94;
  --line: #232329;
  --accent: #93a5e0;   /* periwinkle — role, meta, subtitles */
  --accent2: #a78bfa;  /* violet — dots, highlights */
  --pill: #ffffff;
  --pill-text: #0a0a0c;
}
[data-theme="light"] {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #16161a;
  --muted: #5e5e6a;
  --line: #e3e3e9;
  --accent: #5b6fb5;
  --accent2: #7c5cd6;
  --pill: #16161a;
  --pill-text: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

/* ===== ambient layers ===== */
#aurora { position: fixed; inset: 0; z-index: 0; opacity: 0.8; transition: opacity 0.35s ease; }
[data-theme="light"] #aurora { opacity: 0.25; }
#cursorGlow {
  position: fixed;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147,165,224,0.10) 0%, rgba(167,139,250,0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.04'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .grain { opacity: 0.25; }

/* ===== top-right controls (theme + menu) ===== */
.controls {
  position: fixed;
  top: 22px; right: 22px;
  display: flex;
  gap: 12px;
  z-index: 20;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease both;
}
.icon-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s ease, background 0.35s ease;
}
.icon-btn:hover { transform: scale(1.08); border-color: var(--accent); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 19px; height: 19px; }

/* ===== menu panel ===== */
.menu-panel {
  position: fixed;
  top: 82px; right: 22px;
  width: 300px;
  max-width: calc(100vw - 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  z-index: 18;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), visibility 0.35s, background 0.35s ease;
}
[data-theme="light"] .menu-panel { box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.menu-panel.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.menu-panel a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  transform: translateX(10px);
  opacity: 0;
}
.menu-panel.open a { transform: translateX(0); opacity: 1; transition: background 0.2s ease, color 0.2s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease; transition-delay: calc(0.03s + var(--m) * 0.05s); }
.menu-panel a svg { width: 20px; height: 20px; opacity: 0.85; flex-shrink: 0; }
.menu-panel a:hover { background: rgba(147,165,224,0.1); }
.menu-panel a.active { background: var(--pill); color: var(--pill-text); }
.menu-panel a.active::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: auto;
}

main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 32px;
  max-width: 680px;
  width: 100%;
}

/* ===== avatar: soft glow halo, float ===== */
.avatar-wrap { position: relative; margin-bottom: 30px; animation: float 5.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147,165,224,0.16) 0%, rgba(167,139,250,0.07) 45%, transparent 70%);
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.bubble {
  position: absolute;
  top: -12px; left: 50%;
  transform: translate(52px, -50%) rotate(6deg) scale(0);
  transform-origin: bottom left;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 12px 12px 12px 3px;
  white-space: nowrap;
  z-index: 2;
  animation: bubblePop 0.5s 1.4s cubic-bezier(0.34,1.56,0.64,1) both, bubbleWiggle 4s 2.2s ease-in-out infinite;
}
@keyframes bubblePop { to { transform: translate(52px, -50%) rotate(6deg) scale(1); } }
@keyframes bubbleWiggle { 0%,100% { rotate: 0deg; } 3% { rotate: 3deg; } 6% { rotate: -3deg; } 9% { rotate: 0deg; } }
.avatar {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 38px;
  color: var(--accent);
  letter-spacing: 1px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.avatar:hover { transform: scale(1.07) rotate(-3deg); }
.avatar img { width: 100%; height: 100%; object-fit: contain; }

/* ===== name + role ===== */
h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: -0.025em;
  display: flex; flex-wrap: wrap; justify-content: center;
  overflow: hidden;
  line-height: 1.15;
}
h1 .ch {
  display: inline-block;
  transform: translateY(110%);
  animation: chRise 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: calc(0.35s + var(--i) * 0.035s);
}
h1 .ch.space { width: 0.32em; }
@keyframes chRise { to { transform: translateY(0); } }
.role {
  margin-top: 12px;
  font-size: 17px;
  color: var(--accent);
  min-height: 26px;
}
.role .caret {
  display: inline-block;
  width: 9px; height: 17px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== meta with icons ===== */
.meta {
  margin-top: 18px;
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 12px;
  font-size: 14.5px;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 0.7s 1.1s ease both;
}
.meta .item { display: inline-flex; align-items: center; gap: 6px; }
.meta .item svg { width: 15px; height: 15px; opacity: 0.85; }
.meta .dot { opacity: 0.45; }

/* ===== greeting ===== */
.greeting {
  margin-top: 18px;
  font-size: 15px;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 0.7s 1.2s ease both;
}

/* ===== buttons ===== */
.actions {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s 1.35s ease both;
}
.btn {
  position: relative;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  will-change: transform;
  overflow: hidden;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--pill); color: var(--pill-text); border-color: var(--pill); }
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(160,160,160,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-ghost { background: transparent; color: var(--text); border-color: #3a3a44; }
[data-theme="light"] .btn-ghost { border-color: #c9c9d4; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== socials ===== */
.socials {
  margin-top: 36px;
  display: flex; gap: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 1.5s ease both;
}
.socials a {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  display: flex;
  padding: 6px;
}
.socials a:hover { color: var(--accent); transform: translateY(-4px) scale(1.12); }
.socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.socials svg { width: 21px; height: 21px; }

/* ===== ticker ===== */
.ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  padding: 16px 0 6px;
  opacity: 0;
  animation: fadeUp 0.8s 1.65s ease both;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.ticker-track { display: flex; gap: 34px; width: max-content; animation: scroll 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.ticker span::before { content: '◆ '; color: var(--accent2); font-size: 8px; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

footer {
  position: relative;
  z-index: 2;
  padding: 16px 24px 26px;
  font-size: 13.5px;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s 1.75s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== heart like button (homepage) ===== */
.like-btn {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pill);
  color: var(--pill-text);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fadeUp 0.6s 1.9s ease both;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.like-btn:hover { transform: scale(1.1); }
.like-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.like-btn svg { width: 22px; height: 22px; transition: transform 0.2s ease; }
.like-btn.liked svg { fill: #f43f5e; stroke: #f43f5e; animation: heartbeat 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes heartbeat { 0% { transform: scale(0.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent2);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* ===== hire-me floating pill (about page) ===== */
.hire-pill {
  position: fixed;
  bottom: 26px; right: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pill);
  color: var(--pill-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 22px;
  border-radius: 999px;
  z-index: 20;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fadeUp 0.6s 1.6s ease both;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.hire-pill:hover { transform: scale(1.04); }
.hire-pill:hover .hp-arrow { transform: translateX(4px); }
.hire-pill .hp-arrow { transition: transform 0.25s ease; }
.hire-pill #hireText { transition: opacity 0.25s ease; }
.hire-pill.swapping #hireText { opacity: 0; }

/* ============================================== */
/* ===== ABOUT PAGE ===== */
/* ============================================== */
.about-main {
  justify-content: flex-start;
  text-align: left;
  align-items: stretch;
  max-width: 760px;
  padding-top: 48px;
}
.about-header { margin-bottom: 38px; }
.about-header h1 {
  display: block;
  overflow: visible;
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1.08;
  justify-content: flex-start;
}
.about-header h1 .ch { animation-delay: calc(0.15s + var(--i) * 0.05s); }
.about-header .subtitle {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  animation: fadeUp 0.6s 0.5s ease both;
}
.about-header .rule {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  margin-top: 26px;
  transform-origin: left;
  transform: scaleX(0);
  animation: ruleGrow 0.7s 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ruleGrow { to { transform: scaleX(1); } }

.bio { display: flex; flex-direction: column; gap: 26px; margin-bottom: 64px; }
.bio p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.7s ease both;
}
[data-theme="light"] .bio p { color: #4c4c58; }
.bio p:nth-child(1) { animation-delay: 0.8s; }
.bio p:nth-child(2) { animation-delay: 0.95s; }
.bio p:nth-child(3) { animation-delay: 1.1s; }
.bio strong { color: var(--text); font-weight: 600; }

/* ===== skills card grid ===== */
.skills-section { margin-bottom: 24px; }
.skills-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 700;
  opacity: 0;
  animation: fadeUp 0.7s 1.2s ease both;
}
.skills-section .hint {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.7s 1.3s ease both;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .skill-grid { grid-template-columns: 1fr; } }
.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.7s ease both;
  animation-delay: calc(1.35s + var(--d) * 0.07s);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.35s ease;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-card.open { border-color: var(--accent2); }
.skill-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name chev" ". count .";
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 20px 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.skill-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.skill-head .num { grid-area: num; font-size: 13px; color: var(--muted); }
.skill-head .cat-name { grid-area: name; font-family: 'Sora', sans-serif; font-size: 16.5px; font-weight: 700; }
.skill-head .count { grid-area: count; font-size: 14px; color: var(--muted); }
.skill-head .chev {
  grid-area: chev;
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), color 0.25s ease;
}
.skill-card.open .chev { transform: rotate(180deg); color: var(--accent2); }
.skill-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.22,1,0.36,1); }
.skill-card.open .skill-body { grid-template-rows: 1fr; }
.skill-body > div { overflow: hidden; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 18px 20px; }
.skill-chips .tag {
  font-size: 13px;
  color: var(--text);
  background: rgba(167,139,250,0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  transform: translateY(6px);
  opacity: 0;
}
.skill-card.open .skill-chips .tag { transform: translateY(0); opacity: 1; transition-delay: calc(var(--j) * 0.04s); }
.skill-chips .tag:hover { border-color: var(--accent2); transform: translateY(-2px); }

.skills-totals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.7s 2s ease both;
}
.skills-totals .stat { display: inline-flex; align-items: center; gap: 10px; }
.skills-totals .stat .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.skills-totals .stat .n { color: var(--text); font-weight: 600; }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .ch { transform: none; }
  .meta, .greeting, .actions, .socials, .ticker, footer,
  .controls, .like-btn, .hire-pill,
  .about-header .subtitle, .bio p,
  .skills-section h2, .skills-section .hint,
  .skill-card, .skills-totals { opacity: 1; }
  .about-header .rule { transform: scaleX(1); }
  .skill-chips .tag { opacity: 1; transform: none; }
  .bubble { transform: translate(52px, -50%) rotate(6deg) scale(1); }
  .menu-panel.open a { opacity: 1; transform: none; }
  #cursorGlow { display: none; }
}

/* ============================================== */
/* ===== PROJECTS PAGE ===== */
/* ============================================== */
.projects-main { max-width: 1080px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 44px;
}
@media (max-width: 900px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.7s ease both;
  animation-delay: calc(0.7s + var(--d) * 0.08s);
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.35s ease;
}
.proj-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.proj-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  padding-right: 30px;
  position: relative;
}
.proj-card .flip-hint {
  position: absolute;
  top: 2px; right: 0;
  width: 22px; height: 22px;
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), color 0.25s ease;
}
.proj-card:hover .flip-hint { color: var(--accent2); }
.proj-card.show-stack .flip-hint { transform: rotate(180deg); }
.proj-views { position: relative; flex: 1; }
.proj-desc, .proj-stack {
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.proj-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}
[data-theme="light"] .proj-desc { color: #4c4c58; }
.proj-stack {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.proj-card.show-stack .proj-desc { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.proj-card.show-stack .proj-stack { opacity: 1; transform: translateY(0); pointer-events: auto; }
.proj-stack .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.proj-stack .chips { display: flex; flex-wrap: wrap; gap: 9px; }
.proj-stack .tag {
  font-size: 13px;
  color: var(--accent2);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 999px;
  padding: 7px 14px;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  transform: translateY(6px);
  opacity: 0;
}
.proj-card.show-stack .proj-stack .tag { transform: translateY(0); opacity: 1; transition-delay: calc(var(--j) * 0.04s); }
.proj-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.pbtn:hover { transform: translateY(-2px); }
.pbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbtn svg { width: 16px; height: 16px; }
.pbtn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.pbtn-ghost:hover { border-color: var(--accent); }
.pbtn-visit { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.3); color: var(--accent2); }
.pbtn-visit:hover { background: rgba(167,139,250,0.2); }
.pbtn-demo { background: var(--pill); color: var(--pill-text); border: 1px solid var(--pill); }

@media (prefers-reduced-motion: reduce) {
  .proj-card { opacity: 1; }
  .proj-stack .tag { opacity: 1; transform: none; }
}
