
:root {
  --bg: #050506;
  --text: #f5f5f6;
  --muted: #9ca3af;
  --line: #202127;
  --line-strong: #30323a;
  --panel: #0b0c0f;
  --panel-soft: #15161a;
  --accent: #0ea5ff;
  --green: #22c55e;
  --max: 960px;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --text: #0c0c0d;
  --muted: #737373;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --panel: #ffffff;
  --panel-soft: #f5f5f4;
  --accent: #2563eb;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", Arial, sans-serif;
  letter-spacing: 0;
  /* Momentum scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent elastic bounce at edges from feeling janky */
  overscroll-behavior-y: none;
  /* Hint GPU layer for smooth paints */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle vertical guide lines ON THE BODY — only visible outside the frame */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 0;
}
body::before { left: max(64px, calc(50% - var(--max) / 2 - 1px)); }
body::after  { right: max(64px, calc(50% - var(--max) / 2 - 1px)); }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============================================================
   SITE FRAME
   ============================================================ */
.site-frame {
  position: relative;
  width: min(100%, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  z-index: 1;
}

/* ============================================================
   HEADER — shared across all pages
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Promote to own compositor layer for jank-free sticky */
  will-change: transform;
  transform: translateZ(0);
}

.logo {
  justify-self: start;
  font-family: "Geist Mono", monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav,
.header-actions,
.more-menu,
.entry-head,
.inline-links,
.pill-list,
.link-grid {
  display: flex;
  align-items: center;
}

.nav { gap: 18px; color: var(--muted); }
.nav a, .more-button, .more-menu a {
  text-transform: uppercase;
}
.nav a, .more-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
}
.nav a:hover, .nav a.active,
.more-button:hover, .more-button.active { color: var(--text); }

.more-wrap { position: relative; }

.more-menu {
  position: absolute;
  top: 32px;
  right: 0;
  display: none;
  min-width: 132px;
  flex-direction: column;
  align-items: stretch;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,0.32);
}
.more-menu.is-open { display: flex; }
.more-menu a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}
.more-menu a:hover, .more-menu a.active { background: var(--panel-soft); }

.header-actions { justify-self: end; gap: 14px; }

.search-trigger {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}
.search-trigger span {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--panel-soft);
  font-size: 11px;
}


/* Avatar toggle — small inline circle beside name */
.avatar-wrap {
  position: relative;
}
/* ============================================================
   FOOTER — shared
   ============================================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   COMMAND PALETTE — shared
   ============================================================ */
.command {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
}
.command::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.command-box { padding: 10px; }
.command input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.command-results {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.command-results a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
}
.command-results a:hover { background: var(--panel-soft); }
.command-results span {
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}

/* ============================================================
   DIVIDER — shared decorative stripe
   ============================================================ */
.divider {
  height: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 7px,
    color-mix(in srgb, var(--line) 70%, transparent) 7px,
    color-mix(in srgb, var(--line) 70%, transparent) 9px
  );
}

/* ============================================================
   HOME PAGE SPECIFIC
   ============================================================ */
[data-page="home"] .hero-band {
  position: relative;
  min-height: 188px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

[data-page="home"] .hero-band::before,
[data-page="home"] .hero-band::after {
  content: "+";
  position: absolute;
  bottom: -13px;
  color: var(--muted);
  font: 24px "Geist Mono", monospace;
  z-index: 2;
}
[data-page="home"] .hero-band::before { left: -9px; }
[data-page="home"] .hero-band::after  { right: -9px; }

/* Mesh gradient behind hero */
.hero-band .mesh-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 60%, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.dot-field {
  width: min(720px, calc(100% - 52px));
  height: 130px;
  margin: 28px auto 0;
  opacity: 0.45;
  background-image: radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.profile-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.avatar-frame {
  width: 120px;
  height: 120px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--panel);
  flex-shrink: 0;
}
.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.profile-copy { min-width: 0; }

.profile-copy h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}
.profile-copy p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

/* verified moved to bottom section */

/* Sound button */
.sound-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
}
.sound-button span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: var(--muted);
  transition: background 0.2s;
}
.sound-button span:nth-child(1) { height: 9px; }
.sound-button span:nth-child(2) { height: 15px; }
.sound-button span:nth-child(3) { height: 21px; }
.sound-button:hover, .sound-button.is-playing {
  border-color: var(--line);
  background: var(--panel-soft);
}
.sound-button.is-playing span { background: var(--accent); }
.sound-button.is-playing span:nth-child(1) { animation: bar1 0.5s ease-in-out infinite alternate; }
.sound-button.is-playing span:nth-child(2) { animation: bar2 0.5s ease-in-out 0.12s infinite alternate; }
.sound-button.is-playing span:nth-child(3) { animation: bar3 0.5s ease-in-out 0.24s infinite alternate; }
@keyframes bar1 { from { height: 4px; } to { height: 14px; } }
@keyframes bar2 { from { height: 8px; } to { height: 20px; } }
@keyframes bar3 { from { height: 5px; } to { height: 12px; } }

/* ============================================================
   LIVE STATUS PILL — dynamic Gist-based status
   ============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  margin-top: 6px;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 8px #666;
  flex-shrink: 0;
}

.status-pill.active .dot { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.status-pill.idle .dot { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; }
.status-pill.sleep .dot { background: #8a8aff; box-shadow: 0 0 10px #8a8aff; }

#liveStatusText {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  animation: statusBlink 0.8s step-end infinite;
}

@keyframes statusBlink {
  50% { border-color: var(--muted); }
}

.views {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  align-items: center;
  padding-top: 4px;
}

/* Content sections (about, connect, experience, stack) */
.content-section {
  padding: 0 28px 18px;
  border-bottom: 1px solid var(--line);
}
.content-section h2,
.page-intro h1 {
  margin: 0 0 22px;
  padding-top: 24px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 500;
}

/* Status badge — "Open for work" */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-family: "Geist Mono", monospace;
  margin-bottom: 10px;
}

/* Role text */
.role-text {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
}

/* Location badge */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}
.location-badge svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* See all link */
.see-all-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.see-all-link:hover {
  color: var(--text);
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

/* Home page project/blog grids */
.home-projects,
.home-blogs {
  padding: 0;
}

.about-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 28px;
}
.about-list li, .text-entry li {
  color: var(--text);
  line-height: 1.65;
}
.about-list li::marker, .text-entry li::marker { color: var(--muted); }

/* Spotify widget */
.spotify-widget {
  display: grid;
  grid-template-columns: 74px 1fr 28px;
  align-items: center;
  gap: 14px;
  width: min(480px, 100%);
  min-height: 114px;
  margin: 24px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #171717;
  color: white;
}
.spotify-widget img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
}
.track-copy { min-width: 0; }
.track-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #a1a1aa;
}
.track-status span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b7280;
}
.track-copy strong, .track-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-copy > span { color: #a1a1aa; }
.spotify-icon { fill: #a1a1aa; }

/* Link grid */
.link-grid { flex-wrap: wrap; gap: 10px; }
.link-grid a, .inline-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 14px;
}
.link-grid a:hover, .inline-links a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

/* Experience entries */
.entry-list { display: grid; gap: 20px; }
.text-entry {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.text-entry:last-child { border-bottom: 0; }
.entry-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.entry-head h2, .entry-head h3 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
}
.entry-head p,
.entry-head span,
.page-intro p,
.project-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.text-entry ul { margin: 0; padding-left: 22px; }

/* Pills (tech stack) */
.pill-list { flex-wrap: wrap; gap: 8px; }
.pill-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
}

/* ============================================================
   PROJECTS PAGE SPECIFIC
   ============================================================ */
[data-page="projects"] .page-intro {
  padding: 36px 28px 30px;
  border-bottom: 1px solid var(--line);
  /* Subtle top accent line */
  border-top: 3px solid var(--accent);
}

[data-page="projects"] .page-list { display: block; }

/* Project card grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 28px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  border-color: var(--line-strong);
}
.project-card-img {
  width: calc(100% - 20px);
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--panel);
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 14px;
  display: grid;
  gap: 6px;
}
.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.project-card-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-live .status-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.status-live { color: #22c55e; }
.status-building .status-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.status-building { color: #f59e0b; }
.project-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.project-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.project-card-links {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.project-link-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.2s;
}
.project-link-btn:hover {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--line-strong);
}

.project-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.project-entry:hover { background: color-mix(in srgb, var(--panel-soft) 40%, transparent); }

.project-entry img {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel);
}
.project-entry > div {
  display: grid;
  align-content: start;
  gap: 12px;
}
.inline-links { flex-wrap: wrap; gap: 10px; }

/* ============================================================
   BLOG PAGE SPECIFIC
   ============================================================ */
[data-page="blog"] .page-intro {
  padding: 36px 28px 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 60%, transparent), transparent);
}

[data-page="blog"] .page-list { display: grid; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.page-intro {
  padding: 36px 28px 30px;
  border-bottom: 1px solid var(--line);
}
.page-intro h1 {
  padding-top: 0;
}
.page-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }
.page-search {
  width: 100%;
  max-width: 320px;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: "Geist", sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 15px;
}
.page-search::placeholder { color: var(--muted); }
.page-search:focus { border-color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  body::before, body::after { display: none; }

  .site-frame {
    border-left: 0;
    border-right: 0;
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding: 0 12px;
    min-height: 56px;
  }

  .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav a, .more-button {
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav a:last-child, .more-button:last-child { border-bottom: 0; }

  .more-wrap { width: 100%; }
  .more-menu {
    position: static;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .more-menu.is-open { display: flex; }
  .more-menu a {
    padding: 12px 16px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .header-actions { gap: 8px; }

  .search-trigger {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
  }
  .search-trigger span { display: none; }

  .profile-row,
  .project-entry { grid-template-columns: 1fr; }

  .profile-row { grid-template-columns: auto 1fr; }
  .views {
    grid-column: 1 / -1;
    justify-self: end;
    padding: 0;
    margin-top: -20px;
    font-size: 12px;
  }

  .profile-row,
  .content-section,
  .page-intro,
  .project-entry,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .avatar-frame { width: 96px; height: 96px; }

  .spotify-widget {
    grid-template-columns: 58px 1fr 24px;
  }
  .spotify-widget img { width: 58px; height: 58px; }

  .site-footer { flex-direction: column; }

  /* Hide preview cards on touch devices */
  .social-card  { display: none !important; }
}

@media (max-width: 480px) {
  body { min-width: 0; }

  .site-header {
    min-height: 56px;
    padding: 0 10px;
  }

  .logo { font-size: 22px; }

  .nav { gap: 10px; font-size: 14px; }
  .nav a, .more-button { font-size: 14px; }

  .profile-row,
  .content-section,
  .page-intro,
  .project-entry,
  .site-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-row { gap: 14px; padding-top: 18px; padding-bottom: 18px; }

  .avatar-frame { width: 72px; height: 72px; }

  .profile-copy h1 { font-size: clamp(22px, 6vw, 28px); }
  .profile-copy p { font-size: 14px; }

  .content-section h2,
  .page-intro h1 { font-size: clamp(26px, 7vw, 32px); }

  .spotify-widget {
    grid-template-columns: 48px 1fr 20px;
    gap: 10px;
    padding: 12px;
    min-height: 90px;
  }
  .spotify-widget img { width: 48px; height: 48px; }

  .blog-card-body { padding: 12px 14px; }
  .blog-card-body strong { font-size: 15px; }

  .entry-head h2, .entry-head h3 { font-size: 18px; }

  .quote-band { padding: 32px 14px; }
  .quote-band blockquote { font-size: clamp(14px, 4vw, 18px); }

  .site-footer { gap: 10px; font-size: 12px; padding: 14px; }
  .footer-cat img { width: 36px; height: 36px; }

  .command { width: calc(100vw - 16px); }
  .command-box input { font-size: 14px; }

  .sound-button { width: 26px; height: 26px; }

  .acc-head { padding: 10px 14px; gap: 8px; }
  .acc-body { padding: 0 14px 0 50px; }
  .acc-meta strong { font-size: 14px; }
  .acc-meta span { font-size: 12px; }
  .acc-icon { width: 28px; height: 28px; }
  .exp-org { padding: 10px 14px 6px; font-size: 14px; }

  .about-list { padding-left: 20px; }

  .social-btn { padding: 7px 10px; font-size: 13px; }

  .entry-list { gap: 14px; }
  .text-entry { padding-bottom: 14px; }

  .link-grid { gap: 8px; }
  .link-grid a, .inline-links a { padding: 7px 10px; font-size: 13px; }

  .stack-pill { padding: 5px 10px; font-size: 11px; }

  .project-entry { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .project-entry img { aspect-ratio: 16/9; }

  .hero-band { min-height: 120px; }
  .dot-field { height: 80px; margin-top: 18px; }

  .views { font-size: 11px; margin-top: -16px; }

  .gh-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   SOCIAL LINK HOVER CARD — PNG image card
   ============================================================ */
.social-card {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.16s ease, transform 0.16s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  line-height: 0;
  /* Prevent card from ever causing page scroll */
  max-width: min(300px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}
.social-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.social-card .sc-png {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

/* ============================================================
   SOCIAL BUTTONS WITH ICONS
   ============================================================ */
.link-grid { flex-wrap: wrap; gap: 10px; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-family: "Geist", sans-serif;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  text-decoration: none;
}
.social-btn:hover {
  background: var(--panel-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.social-icon {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.social-icon svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   GITHUB CONTRIBUTION GRAPH — no horizontal scroll
   ============================================================ */
.gh-graph {
  padding: 4px 0 12px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.gh-wrap { width: 100%; }

.gh-months {
  display: flex;
  margin-bottom: 4px;
  padding-left: 32px;
}
.gh-months span {
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}

.gh-body {
  display: flex;
  gap: 4px;
}

.gh-days {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 2px 0 2px;
  gap: 0;
  font-size: 10px;
  color: var(--muted);
  min-width: 28px;
  flex-shrink: 0;
}

.gh-grid {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.gh-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.gh-cell {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.1s;
  min-height: 8px;
  max-height: 14px;
}
.gh-cell:hover { opacity: 0.7; outline: 1px solid var(--accent); }

.gh-cell[data-level="0"] { background: var(--panel-soft); }
.gh-cell[data-level="1"] { background: #0e4429; }
.gh-cell[data-level="2"] { background: #006d32; }
.gh-cell[data-level="3"] { background: #26a641; }
.gh-cell[data-level="4"] { background: #39d353; }

[data-theme="light"] .gh-cell[data-level="0"] { background: #ebedf0; }
[data-theme="light"] .gh-cell[data-level="1"] { background: #9be9a8; }
[data-theme="light"] .gh-cell[data-level="2"] { background: #40c463; }
[data-theme="light"] .gh-cell[data-level="3"] { background: #30a14e; }
[data-theme="light"] .gh-cell[data-level="4"] { background: #216e39; }

.gh-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.gh-legend { display: flex; align-items: center; gap: 3px; }
.gh-legend span[data-level] {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}
.gh-legend span[data-level="0"] { background: var(--panel-soft); }
.gh-legend span[data-level="1"] { background: #0e4429; }
.gh-legend span[data-level="2"] { background: #006d32; }
.gh-legend span[data-level="3"] { background: #26a641; }
.gh-legend span[data-level="4"] { background: #39d353; }

.gh-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid var(--line-strong);
  color: #f5f5f6;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
  transition: opacity 0.1s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gh-tip--visible { opacity: 1; }
[data-theme="light"] .gh-tip { background: #111; }

/* ============================================================
   BLOG CARD GRID
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 28px;
}
.blog-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  border-color: var(--line-strong);
}

.blog-card-img {
  width: calc(100% - 20px);
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.blog-card-placeholder { font-size: 32px; opacity: 0.4; }

.blog-card-body {
  padding: 4px 16px 16px;
  display: grid;
  gap: 8px;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.blog-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.blog-card-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.blog-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}
.blog-read-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
/* Verified badge — just the SVG, no extra circle */
img.verified {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  background: none !important;
  border-radius: 0 !important;
}

/* Views eye icon */
.views-icon { font-size: 14px; line-height: 1; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { border-right: 0; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .blog-grid { padding: 16px 14px; gap: 14px; }
  .project-grid { padding: 16px 14px; gap: 14px; }
}

/* ============================================================
   BOOKMARKS PAGE
   ============================================================ */
.bookmarks-search-wrap {
  margin-top: 18px;
}
.bookmarks-search {
  width: 100%;
  max-width: 400px;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: "Geist", sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
.bookmarks-search::placeholder { color: var(--muted); }
.bookmarks-search:focus { border-color: var(--accent); }

.bookmarks-list {
  padding: 0 28px 28px;
}

.bookmarks-loading,
.bookmarks-error {
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.bookmark-category {
  margin-bottom: 36px;
}
.bookmark-category-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.bookmark-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.bookmark-row:hover {
  background: color-mix(in srgb, var(--panel-soft) 50%, transparent);
}

.bookmark-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.bookmark-info {
  flex: 1;
  min-width: 0;
}
.bookmark-info strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 1px;
}
.bookmark-info small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.bookmark-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.bookmark-row:hover .bookmark-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

@media (max-width: 760px) {
  .bookmarks-list { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 480px) {
  .bookmarks-list { padding-left: 14px; padding-right: 14px; }
  .bookmark-row { padding: 10px 10px; gap: 10px; }
  .bookmark-info strong { font-size: 14px; }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) var(--bg); }

/* ============================================================
   COMMAND PALETTE — rich redesign
   ============================================================ */
.command {
  width: min(560px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.command::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }

.command-box { display: flex; flex-direction: column; }

.command-box input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px;
}
.command-box input::placeholder { color: var(--muted); }

.command-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmd-group-label {
  padding: 6px 10px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: "Geist", sans-serif;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.1s;
}
.cmd-item:hover, .cmd-item.is-selected { background: var(--panel-soft); }

.cmd-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.cmd-item-icon svg { width: 16px; height: 16px; }
.cmd-item-label { flex: 1; font-weight: 500; }
.cmd-item-hint { font-size: 12px; color: var(--muted); }
.cmd-item-key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}
.cmd-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* Command palette footer */
.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.cmd-footer-logo { font-family: "Geist Mono", monospace; font-weight: 700; font-size: 14px; color: var(--text); }
.cmd-footer-actions { display: flex; gap: 10px; align-items: center; }
.cmd-footer-actions span { display: flex; align-items: center; gap: 4px; }
.cmd-footer-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-soft);
}

/* ============================================================
   TECH STACK GRID WITH ICONS
   ============================================================ */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  transition: border-color 0.15s, color 0.15s;
}
.stack-pill:hover { border-color: var(--line-strong); color: var(--text); }
.stack-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}
.stack-icon svg { width: 16px; height: 16px; }

/* ============================================================
   EXPERIENCE / EDUCATION ACCORDION
   ============================================================ */
.exp-list { display: grid; }

.exp-org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 8px;
  font-size: 15px;
  font-weight: 600;
}
.exp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.acc-item {
  border-top: 1px solid var(--line);
  margin: 0 0 4px;
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 28px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.acc-head:hover { background: color-mix(in srgb, var(--panel-soft) 50%, transparent); }

/* Education head — not clickable, no arrow */
.edu-head {
  cursor: default;
  pointer-events: none;
}
.edu-head:hover { background: transparent; }

.acc-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  flex-shrink: 0;
}
.acc-icon svg { width: 15px; height: 15px; }

.acc-meta { flex: 1; min-width: 0; }
.acc-meta strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.acc-meta span { font-size: 13px; color: var(--muted); }

.acc-arrow {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.acc-arrow svg {
  width: 16px;
  height: 16px;
}
.acc-head:hover .acc-arrow { color: var(--text); }
.acc-head.is-open .acc-arrow { transform: rotate(180deg); color: var(--text); }

.acc-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  padding: 0 28px 0 72px;
}
.acc-body ul { margin: 0 0 12px; padding-left: 18px; }
.acc-body li { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 4px; }

.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 16px; }
.exp-tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.quote-band {
  padding: 56px 28px;
  text-align: center;
  background: var(--panel);
}
.quote-mark {
  font-size: 60px;
  color: var(--muted);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.quote-band blockquote {
  margin: 0 auto 20px;
  max-width: 680px;
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}
.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
}
.quote-author span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--muted);
}

/* ============================================================
   FOOTER — new style
   ============================================================ */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  color: var(--muted);
  font-size: 13px;
  border-top: 0;
}
.site-footer div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-cat img { width: 48px; height: 48px; object-fit: contain; }

/* ============================================================
   SMOOTH SCROLL & PAGE FEEL
   ============================================================ */

/* Smooth page-load fade in */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#pageRoot {
  animation: pageFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Smooth transitions on interactive elements */
a, button {
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

/* GSAP handles all scroll animations now — no CSS opacity:0 fallback needed */
.content-section,
.profile-row,
.page-intro,
.blog-grid,
.exp-list,
.quote-band {
  scroll-margin-top: 72px;
}

/* ============================================================
   CTA SECTION — Book a Call
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 48px 28px;
}
.cta-section h2 {
  font-family: "Geist Mono", monospace;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 500;
  margin: 0 0 12px;
}
.cta-text {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cta-button:hover {
  background: var(--panel);
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cta-emoji {
  font-size: 18px;
}

/* ============================================================
   NOISE LAYER — filled by JS canvas
   ============================================================ */
.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* Panel noise on boxes — simple grain via pseudo repeating pattern */
.content-section::after,
.profile-row::after,
.project-entry::after,
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.06;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92ZBKLseWPksd4rqj9+QAGBbQNE/G51o=");
  background-size: 128px 128px;
}

/* Fix child stacking over noise */
.content-section > *,
.profile-row > *,
.project-entry > *,
.blog-card > * {
  position: relative;
  z-index: 1;
}

.content-section,
.profile-row,
.project-entry,
.blog-card {
  position: relative;
  isolation: isolate;
}

/* ============================================================
   EXPERIENCE ICON — live SVG sources
   ============================================================ */
.acc-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ============================================================
   EXTRA SMOOTH — reduce motion respected
   ============================================================ */
/* Stack icon noise overlay */
.stack-pill {
  position: relative;
  overflow: hidden;
}
.stack-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.04;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4t5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92ZBKLseWPksd4rqj9+QAGBbQNE/G51o=");
  background-size: 96px 96px;
}

/* ============================================================
   REDESIGNED HOVER ANIMATIONS — clean & subtle
   ============================================================ */

/* --- Blog cards --- */
.blog-card {
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.blog-card:hover {
  background: var(--panel-soft);
}

/* --- Project cards --- */
.project-card {
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-card:hover {
  background: var(--panel-soft);
}

/* --- Project entries (legacy) --- */
.project-entry {
  transition: background 0.2s ease, border-left 0.2s ease;
  border-left: 2px solid transparent;
}
.project-entry:hover {
  background: color-mix(in srgb, var(--panel-soft) 40%, transparent);
  border-left: 2px solid var(--accent);
}

/* --- Sound button --- */
.sound-button {
  transition: color 0.2s ease, background 0.2s ease;
}
.sound-button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* --- Social buttons --- */
.social-btn {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* --- Stack pills --- */
.stack-pill {
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stack-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Avatar frame --- */
.avatar-frame {
  transition: box-shadow 0.3s ease;
}
.avatar-frame:hover {
  box-shadow: 0 0 0 3px var(--accent);
}

/* --- Accordion heads --- */
.acc-head {
  transition: background 0.2s ease;
}

/* --- Inline links --- */
.inline-links a {
  transition: color 0.2s ease;
}
.inline-links a:hover {
  color: var(--accent);
}

/* --- Entry head period --- */
.entry-head span {
  transition: color 0.3s ease;
}
.text-entry:hover .entry-head span,
.project-entry:hover .entry-head span {
  color: var(--accent);
}

/* --- Nav active pulse --- */
.nav a.active::after, .more-button.active::after {
  animation: pulseWidth 2s ease-in-out infinite;
}
@keyframes pulseWidth {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Typing cursor --- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Spotlight widget --- */
.spotify-widget {
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.spotify-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* --- Nav underline slide --- */
.nav a, .more-button {
  position: relative;
}
.nav a::after, .more-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav a:hover::after, .nav a.active::after,
.more-button:hover::after, .more-button.active::after {
  width: 100%;
}

/* --- Dot field float --- */
@keyframes dotDrift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.dot-field {
  animation: dotDrift 4s ease-in-out infinite;
}

/* --- Views --- */
.views {
  transition: opacity 0.3s ease;
}

/* ============================================================
   SMOOTH THEME TRANSITION — buttery fade on all color props
   ============================================================ */
html.is-theming,
html.is-theming *,
html.is-theming *::before,
html.is-theming *::after {
  transition:
    color 0.5s ease,
    background-color 0.5s ease,
    background 0.5s ease,
    border-color 0.5s ease,
    border-top-color 0.5s ease,
    border-bottom-color 0.5s ease,
    border-left-color 0.5s ease,
    border-right-color 0.5s ease,
    fill 0.5s ease,
    stroke 0.5s ease,
    box-shadow 0.5s ease,
    text-shadow 0.5s ease,
    opacity 0.5s ease !important;
}

/* Reduce motion override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}