/* ==========================================================================
   WoofyBark — developer portfolio
   Single stylesheet, no build step. Sections:
   01 tokens · 02 base · 03 backdrop · 04 nav · 05 hero · 06 identity card
   07 shared section/card · 08 presence · 09 feed · 10 contributions
   11 projects · 12 music · 13 footer · 14 utilities · 15 responsive
   ========================================================================== */

/* 01 ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --bg: #08090b;
  --bg-soft: #0c0e11;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f4f6;
  --muted: #9ba1ab;
  --faint: #6b7280;

  --accent: #f6b545;
  --accent-soft: rgba(246, 181, 69, 0.13);
  --accent-line: rgba(246, 181, 69, 0.34);
  --spotify: #1ed760;
  --blurple: #5865f2;
  --green: #3ddc84;
  --red: #ff5c5c;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.95);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1120px;

  --status: #6b7280;
}

[data-status="online"] {
  --status: #3ddc84;
}
[data-status="idle"] {
  --status: #f6b545;
}
[data-status="dnd"] {
  --status: #ff5c5c;
}
[data-status="offline"] {
  --status: #6b7280;
}

/* 02 ── base ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 68px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

::selection {
  background: rgba(246, 181, 69, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #17120a;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: none;
}

/* 03 ── backdrop ─────────────────────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.orb-a {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(246, 181, 69, 0.38), transparent 65%);
}

.orb-b {
  width: 700px;
  height: 700px;
  top: 38%;
  right: -280px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.24), transparent 68%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

main,
.footer,
.nav {
  position: relative;
  z-index: 1;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

/* 04 ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  height: 67px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15.5px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, #ffd27a, var(--accent) 55%, #d99324);
  color: #17120a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 18px -8px rgba(246, 181, 69, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13.5px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  right: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-links + .nav-right {
  margin-left: 0;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status) 18%, transparent);
  flex: none;
}

[data-status="online"] .status-dot,
.status-dot[data-status="online"] {
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(61, 220, 132, 0.05);
  }
}

/* 05 ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(160deg, #ffcf7d, var(--accent) 55%, #e6a02f);
  border-color: transparent;
  color: #17120a;
  font-weight: 600;
  box-shadow: 0 14px 30px -16px rgba(246, 181, 69, 0.9);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #ffd98f, #ffc061 60%, #eda733);
  border-color: transparent;
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn-quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn-sm {
  height: 32px;
  padding: 0 13px;
  font-size: 12.5px;
  border-radius: 9px;
}

.ext {
  font-size: 0.92em;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a:hover .ext {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* 06 ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.6;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.hero-name {
  margin-top: 18px;
  font-size: clamp(2.9rem, 6.4vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  background: linear-gradient(178deg, #ffffff 18%, #c9ccd4 62%, #8f949e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-handle {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.hero-handle #hero-username {
  color: var(--text);
}

.hero-role {
  color: var(--muted);
}

.sep {
  color: var(--faint);
}

.hero-bio {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.7;
  color: #b6bbc4;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.fact dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.fact dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock {
  font-family: var(--mono);
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* 07 ── identity card ────────────────────────────────────────────────────── */
.id-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.id-banner {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: radial-gradient(120% 170% at 18% 0%, rgba(246, 181, 69, 0.55), transparent 58%),
    radial-gradient(120% 170% at 95% 30%, rgba(88, 101, 242, 0.42), transparent 62%),
    linear-gradient(135deg, rgba(246, 181, 69, 0.16), rgba(12, 14, 17, 0.9));
}

.id-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 12px
  );
  opacity: 0.5;
}

.id-banner-mark {
  position: absolute;
  right: 16px;
  bottom: -26px;
  font-family: var(--display);
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: rgba(8, 9, 11, 0.28);
  user-select: none;
}

.id-body {
  position: relative;
  padding: 0 24px 22px;
  margin-top: -48px;
}

.avatar-wrap {
  position: relative;
  width: 102px;
  height: 102px;
  padding: 3px;
  border-radius: 50%;
  border: 2px solid var(--status);
  background: #0b0d10;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.9);
  transition: border-color 0.35s ease;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #14171b;
}

.status-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--status);
  border: 3px solid #0a0c0f;
  transition: background 0.35s ease;
}

.id-name {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.id-username {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.id-status {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.id-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.id-stats span {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.id-stats small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.id-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.id-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  transition: color 0.2s ease;
}
.id-links a:hover {
  color: var(--accent);
}

/* 08 ── shared section + cards ───────────────────────────────────────────── */
.section {
  padding-top: 84px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 9px;
  font-size: clamp(1.55rem, 2.9vw, 2.1rem);
  letter-spacing: -0.035em;
}

.section-aside {
  font-size: 12.5px;
  color: var(--faint);
  text-align: right;
  max-width: 32ch;
}

.section-aside.link {
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.section-aside.link:hover {
  color: var(--accent);
}

.section-aside a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.section-aside a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.017));
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  font-family: var(--sans);
}

.empty {
  font-size: 13px;
  color: var(--faint);
  line-height: 1.7;
}

.note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--faint);
}

.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}

/* 09 ── presence ─────────────────────────────────────────────────────────── */
.live-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: start;
}

.conn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.conn[data-state="live"] {
  color: var(--green);
}
.conn[data-state="live"] .conn-dot {
  background: var(--green);
  animation: breathe 2.6s ease-in-out infinite;
}
.conn[data-state="polling"] .conn-dot,
.conn[data-state="reconnecting"] .conn-dot {
  background: var(--accent);
  animation: blink 1.2s steps(2, end) infinite;
}
.conn[data-state="error"] {
  color: var(--red);
}
.conn[data-state="error"] .conn-dot {
  background: var(--red);
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.p-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid var(--status);
  background: #0b0d10;
  flex: none;
}

.p-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.p-avatar .status-badge {
  width: 14px;
  height: 14px;
  border-width: 2px;
  right: -1px;
  bottom: -1px;
}

.p-display {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.p-username {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}

.p-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.custom-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text);
}

.custom-status img {
  width: 18px;
  height: 18px;
  flex: none;
}

/* now playing */
.np {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 215, 96, 0.22);
  background: radial-gradient(120% 150% at 0% 0%, rgba(30, 215, 96, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.025);
  animation: np-glow 4s ease-in-out infinite;
}

@keyframes np-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(30, 215, 96, 0);
  }
  50% {
    box-shadow: 0 0 34px -14px rgba(30, 215, 96, 0.5);
  }
}

.np-art {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  background: #121418;
  flex: none;
}

.np-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.np-art:hover img {
  transform: scale(1.05);
}

.np-body {
  min-width: 0;
}

.np-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spotify);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
}

.eq i {
  width: 2px;
  background: var(--spotify);
  border-radius: 1px;
  animation: eq 1.05s ease-in-out infinite alternate;
}
.eq i:nth-child(1) {
  height: 40%;
}
.eq i:nth-child(2) {
  height: 90%;
  animation-delay: 0.18s;
}
.eq i:nth-child(3) {
  height: 60%;
  animation-delay: 0.36s;
}

@keyframes eq {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

.np-song {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-song:hover {
  color: var(--spotify);
}

.np-artist,
.np-album {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-album {
  color: var(--faint);
  font-size: 11.5px;
}

.np-progress {
  margin-top: 10px;
}

.np-bar {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.np-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #19b34c, var(--spotify));
}

.np-times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

/* activities */
.acts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.act {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.act-img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #121418;
  flex: none;
}

.act-fallback {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  flex: none;
}

.act-body {
  min-width: 0;
}

.act-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.act-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 2px 5px;
  white-space: nowrap;
}

.act-detail,
.act-state {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.act-state {
  color: var(--faint);
}

.act-time {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.presence-empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 13.5px;
}

/* setup / error notices */
.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.notice-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffd79a;
  margin-bottom: 4px;
}

.notice-text {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.notice code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #ffd79a;
  background: rgba(0, 0, 0, 0.25);
  padding: 1px 5px;
  border-radius: 5px;
}

.notice a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
}

/* skeleton */
.presence-skeleton {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
}

.sk {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 25%,
    rgba(255, 255, 255, 0.09) 37%,
    rgba(255, 255, 255, 0.045) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.sk-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}

.sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-line {
  height: 10px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* 10 ── live feed ────────────────────────────────────────────────────────── */
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.live-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: breathe 2.4s ease-in-out infinite;
}

.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-height: 292px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.feed-list::-webkit-scrollbar {
  width: 5px;
}
.feed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.feed-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12.8px;
  color: #c6cad1;
  animation: feed-in 0.35s ease;
}

.feed-item:last-child {
  border-bottom: 0;
}

@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.feed-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  align-self: center;
}

.feed-item[data-kind="music"] .feed-dot {
  background: var(--spotify);
}
.feed-item[data-kind="activity"] .feed-dot {
  background: var(--accent);
}
.feed-item[data-kind="status"] .feed-dot {
  background: var(--green);
}
.feed-item[data-kind="connection"] .feed-dot {
  background: var(--blurple);
}

.feed-text {
  min-width: 0;
}

.feed-time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.feed-item.is-fresh {
  background: linear-gradient(90deg, rgba(246, 181, 69, 0.1), transparent 78%);
}

#feed-empty {
  margin-top: 8px;
}

#feed-empty[hidden] {
  display: none;
}

/* 11 ── contributions ───────────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}

.heatmap-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.heatmap-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.heatmap-scroll::-webkit-scrollbar {
  height: 5px;
}
.heatmap-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.heatmap {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 2px;
}

.hm-months,
.hm-weeks {
  display: flex;
  gap: 4px;
}

.hm-month {
  flex: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
}

.hm-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 12px;
}

.hm-cell {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hm-cell:hover {
  transform: scale(1.22);
  box-shadow: 0 0 0 1px rgba(246, 181, 69, 0.55);
}

.hm-cell.l1 {
  background: rgba(246, 181, 69, 0.26);
  border-color: transparent;
}
.hm-cell.l2 {
  background: rgba(246, 181, 69, 0.48);
  border-color: transparent;
}
.hm-cell.l3 {
  background: rgba(246, 181, 69, 0.72);
  border-color: transparent;
}
.hm-cell.l4 {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 10px -3px rgba(246, 181, 69, 0.8);
}

.heatmap-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legend .hm-cell {
  width: 10px;
  height: 10px;
}

#heatmap-error {
  margin-top: 12px;
}

/* 12 ── projects ────────────────────────────────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(304px, 1fr));
  gap: 14px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: rgba(246, 181, 69, 0.055);
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-name {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project:hover .project-name {
  color: var(--accent);
}

.project-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  flex: none;
}

.project-desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.lang-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

.project-live {
  margin-left: auto;
  color: var(--accent);
}

.project-live:hover {
  text-decoration: underline;
}

/* 13 ── music ───────────────────────────────────────────────────────────── */
.music-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 18px;
  align-items: start;
}

.plays {
  list-style: none;
}

.play {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.play:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.play-art {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: #14171b;
  flex: none;
}

.play-body {
  min-width: 0;
}

.play-title {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.play-title:hover {
  color: var(--spotify);
}

.play-artist {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.now-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1px solid rgba(30, 215, 96, 0.4);
  color: var(--spotify);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.music-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.mstat {
  padding: 13px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  min-width: 0;
}

.mstat-value {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mstat-label {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.top-artists {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.artist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 7px 0;
  font-size: 12.5px;
}

.artist-name {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.artist-bar {
  display: block;
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.artist-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(246, 181, 69, 0.5), var(--accent));
}

.top-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

/* 14 ── footer ─────────────────────────────────────────────────────────── */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: 34px 0 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-note {
  font-size: 11.5px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links a {
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.noscript {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--accent-line);
  background: #15120b;
  color: #f4d9a8;
  font-size: 13px;
  text-align: center;
}

/* 15 ── utilities ───────────────────────────────────────────────────────── */
[hidden] {
  display: none !important;
}

/* 16 ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-bio {
    max-width: 60ch;
  }

  .id-card {
    max-width: 430px;
  }

  .live-grid,
  .music-grid {
    grid-template-columns: 1fr;
  }

  .feed-list {
    max-height: 240px;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 60px;
  }

  .nav-inner {
    height: 59px;
    padding: 0 18px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }

  .brand-text {
    display: none;
  }

  .conn-pill {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .shell {
    padding: 0 18px;
  }

  .section {
    padding-top: 60px;
  }

  .hero-name {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .hero-bio {
    font-size: 15px;
  }

  .facts {
    gap: 12px;
    margin-top: 30px;
  }

  .fact dd {
    font-size: 13px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 14px;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-aside {
    text-align: left;
  }

  .card {
    padding: 18px;
  }

  .heatmap-card {
    padding: 16px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .music-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    margin-top: 68px;
  }
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  #location-fact {
    grid-column: 1 / -1;
  }

  .np {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .np-art {
    width: 64px;
    height: 64px;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
