:root {
  --bg: #0e1218;
  --panel: #141a22;
  --panel-soft: #1b2532;
  --border: #2a3645;
  --text: #eef2f7;
  --muted: #a8b2c2;
  --accent: #3ea6ff;
  --accent-strong: #2386da;
  --success: #2ec27e;
  --warning: #ffb347;
  --danger: #ff6b6b;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -15%, rgba(62, 166, 255, 0.2), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(255, 107, 107, 0.14), transparent 28%),
    linear-gradient(180deg, #0c1117 0%, #101824 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.site {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1rem 1.6rem;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}

.topbar-inner {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(16, 24, 36, 0.88);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  height: 2rem;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d8e0ec;
  font-size: 0.86rem;
  min-height: 2rem;
  padding: 0.36rem 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  border-color: #3e4c60;
  background: #1a2330;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  font-family: "IBM Plex Mono", monospace;
  color: #d4deec;
  padding: 0.28rem 0.58rem;
  background: rgba(20, 29, 42, 0.72);
}

.pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #43d389;
  box-shadow: 0 0 0 0 rgba(67, 211, 137, 0.75);
  animation: pulse 1.7s infinite;
}

.page {
  display: grid;
  gap: 0.95rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 36, 50, 0.86), rgba(18, 25, 35, 0.86));
  box-shadow: var(--shadow);
  padding: 1rem;
}

.card h1,
.card h2,
.card h3 {
  margin: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.52;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.95rem;
}

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

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: #88b9e8;
}

.hero h1 {
  margin-top: 0.56rem;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-signal .topbar {
  top: 6px;
  margin-bottom: 0.7rem;
}

.home-signal .topbar-inner {
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.home-signal .brand img {
  height: 1.4rem;
}

.home-signal .nav a {
  font-size: 0.79rem;
  padding: 0.28rem 0.52rem;
  border-radius: 8px;
}

.resume-signal .topbar {
  top: 6px;
  margin-bottom: 0.7rem;
}

.resume-signal .topbar-inner {
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.resume-signal .brand img {
  height: 1.4rem;
}

.resume-signal .nav a {
  font-size: 0.79rem;
  padding: 0.28rem 0.52rem;
  border-radius: 8px;
}

.resume-shell {
  gap: 0.8rem;
}

.resume-hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.75rem;
}

.resume-title-card h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.35rem, 3.1vw, 2.05rem);
}

.resume-pill-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.resume-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3b4b61;
  border-radius: 999px;
  background: rgba(33, 44, 60, 0.66);
  color: #ccdaea;
  padding: 0.22rem 0.5rem;
  font-size: 0.71rem;
  font-family: "IBM Plex Mono", monospace;
}

.resume-facts-card {
  display: grid;
  gap: 0.5rem;
}

.fact-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.fact-list li {
  display: grid;
  gap: 0.16rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #33445b;
  border-radius: 9px;
  background: rgba(20, 28, 39, 0.74);
}

.fact-list span {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93a9c2;
  font-family: "IBM Plex Mono", monospace;
}

.fact-list strong {
  font-size: 0.82rem;
  color: #e7edf6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3f4d61;
  border-radius: 999px;
  background: rgba(27, 36, 49, 0.6);
  color: #d8e3ef;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.24rem 0.52rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 120ms ease;
}

.social-link:hover {
  border-color: #587092;
  background: rgba(35, 46, 63, 0.88);
  transform: translateY(-1px);
}

.social-icon-links {
  margin-top: 0.4rem;
  gap: 0.48rem;
}

.social-icon-link {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3f4d61;
  border-radius: 10px;
  background: rgba(27, 36, 49, 0.62);
  transition: border-color 180ms ease, background-color 180ms ease, transform 120ms ease;
}

.social-icon-link:hover {
  border-color: #5e7390;
  background: rgba(35, 46, 63, 0.9);
  transform: translateY(-1px);
}

.social-icon-link img {
  width: 1rem;
  height: 1rem;
  display: block;
}

.social-word-link {
  width: auto;
  height: 2rem;
  padding: 0 0.6rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  color: #d8e3ef;
}

.resume-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.compact-list {
  margin-top: 0.55rem;
  gap: 0.38rem;
}

.compact-list li {
  font-size: 0.82rem;
}

.resume-final {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
}

.resume-final h2 {
  font-size: 1.02rem;
}

.resume-signal {
  background:
    radial-gradient(circle at 8% 0%, rgba(78, 156, 238, 0.14), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(62, 194, 160, 0.14), transparent 34%),
    linear-gradient(180deg, #0c1117 0%, #0f1a22 100%);
}

.resume-shell-v3 {
  gap: 0.9rem;
}

.li-profile-card {
  overflow: hidden;
  padding: 0;
}

.li-cover {
  height: 110px;
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(120deg, #13324a 0%, #184965 48%, #1a6d73 100%);
  border-bottom: 1px solid #3a566f;
}

.li-profile-body {
  margin-top: -42px;
  padding: 0 1rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.78rem;
  align-items: end;
}

.li-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #20384c;
  background: linear-gradient(180deg, #1f3346, #182736);
  color: #dbe8f5;
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  overflow: hidden;
}

.li-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.li-profile-meta h1 {
  margin-top: 0.3rem;
  font-size: clamp(1.36rem, 3vw, 2rem);
}

.li-headline {
  margin: 0.38rem 0 0;
  color: #d6e3f0;
  font-size: 0.95rem;
}

.li-subline {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #9eb3c8;
}

.resume-link-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.86fr;
  gap: 0.75rem;
}

.li-section {
  padding: 0.86rem;
}

.li-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.li-section-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.li-section-head svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #94afc6;
}

.li-about-copy {
  margin-top: 0.65rem;
  line-height: 1.55;
}

.li-top-skills-card {
  align-content: start;
}

.skills-rank-note {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #a8bfce;
}

.skills-rank-list {
  margin-top: 0.62rem;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.skills-rank-item {
  border: 1px solid #35506a;
  border-radius: 10px;
  background: rgba(18, 29, 41, 0.82);
  padding: 0.48rem 0.56rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.skills-rank-num {
  width: 1.38rem;
  height: 1.38rem;
  flex: 0 0 1.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #4b6d8c;
  background: linear-gradient(180deg, #1f3a53, #163246);
  color: #d2e8ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
}

.skills-rank-item h3 {
  margin: 0;
  font-size: 0.86rem;
}

.skills-rank-item p {
  margin: 0.22rem 0 0;
  color: #aac1d2;
  font-size: 0.78rem;
  line-height: 1.42;
}

.career-track-note {
  margin: 0;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  color: #95adc3;
}

.career-track-shell {
  margin-top: 0.9rem;
  position: relative;
  display: grid;
  gap: 0.72rem;
  padding-left: 1.5rem;
}

.career-track-shell::before {
  content: "";
  position: absolute;
  left: 0.58rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ea5e3 0%, #45c3ad 100%);
  opacity: 0.85;
}

.career-node {
  position: relative;
  border: 1px solid #344f68;
  border-radius: 12px;
  background: rgba(14, 22, 31, 0.92);
  padding: 0.7rem 0.82rem;
}

.career-node::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.95rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #0f1a26;
  background: #5ea5e3;
  box-shadow: 0 0 0 3px rgba(94, 165, 227, 0.28);
}

.career-node.node-systems::before {
  background: #45c3ad;
  box-shadow: 0 0 0 3px rgba(69, 195, 173, 0.24);
}

.career-node:hover {
  border-color: #6794bf;
}

.career-node h3 {
  font-size: 0.96rem;
  margin-top: 0;
}

.career-node p {
  margin: 0.32rem 0 0;
  font-size: 0.84rem;
}

.career-year {
  margin: 0;
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #4a5f75;
  padding: 0.15rem 0.46rem;
  color: #d3e6f8;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  background: rgba(23, 36, 49, 0.8);
}

.career-lane {
  margin-top: 0.28rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "IBM Plex Mono", monospace;
  border: 1px solid #3f5f7f;
  background: rgba(94, 165, 227, 0.18);
  color: #c4e1ff;
}

.career-node.node-systems .career-lane {
  border-color: #3a746b;
  background: rgba(69, 195, 173, 0.2);
  color: #b7f2e5;
}

.career-node .li-entry-top {
  margin-top: 0.45rem;
}

.li-entry-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: start;
}

.li-logo {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #3c5770;
  background: linear-gradient(180deg, #0f1d2b, #1d3448);
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  color: #d8e8f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.li-logo-muted {
  background: linear-gradient(180deg, #273140, #1f2632);
  border-color: #4b5f77;
}

.li-logo-code {
  background: linear-gradient(180deg, #1a2f3f, #14584d);
  border-color: #4b907f;
}

.li-role-meta {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #d3e1ef;
}

.li-entry-skills {
  margin-top: 0.46rem;
  display: flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.78rem;
  color: #9ec0de;
  font-family: "IBM Plex Mono", monospace;
}

.li-entry-skills svg {
  width: 0.82rem;
  height: 0.82rem;
}

.li-projects-card .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.74rem;
}

.li-project-list {
  margin-top: 0.7rem;
  display: grid;
}

.li-project-item {
  border-top: 1px solid #32485f;
  padding: 0.7rem 0;
}

.li-project-item:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.li-project-item h3 {
  font-size: 1.02rem;
}

.li-project-item p {
  margin: 0.36rem 0 0;
}

.skills-filter {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.44rem;
  flex-wrap: wrap;
}

.skills-filter-btn {
  border: 1px solid #3d5064;
  background: rgba(20, 30, 40, 0.82);
  color: #c6d8e9;
  border-radius: 999px;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.25rem 0.62rem;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.skills-filter-btn.is-active {
  border-color: rgba(69, 195, 173, 0.72);
  background: rgba(69, 195, 173, 0.2);
  color: #b7f2e5;
}

.skill-groups {
  margin-top: 0.75rem;
  display: grid;
}

.skill-group {
  border-top: 1px solid #32485f;
  padding: 0.65rem 0;
}

.skill-group:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.skill-group.is-hidden {
  display: none;
}

.skill-group h3 {
  font-size: 0.98rem;
}

.skill-group p {
  margin: 0.32rem 0 0;
  font-size: 0.84rem;
}

.resume-close-card {
  border-color: #355371;
  background: linear-gradient(180deg, rgba(20, 36, 51, 0.9), rgba(14, 24, 35, 0.92));
}

.resume-close-card h2 {
  margin-top: 0.42rem;
  font-size: clamp(1.04rem, 2.1vw, 1.36rem);
}

.signal-feed {
  gap: 0.9rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.metric-tile {
  padding: 0.72rem 0.8rem;
  background: linear-gradient(180deg, rgba(21, 30, 42, 0.92), rgba(15, 21, 31, 0.92));
}

.home-signal .metric-tile {
  display: grid;
  gap: 0.22rem;
  padding: 0.82rem 0.9rem;
}

.home-signal .stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.home-signal .stat-value {
  line-height: 1.12;
}

.home-signal .stat-sub {
  font-size: 0.76rem;
  line-height: 1.44;
}

.home-signal .stat-meta {
  margin-top: 0.2rem;
  padding-top: 0.34rem;
  border-top: 1px solid rgba(132, 112, 91, 0.34);
  font-size: 0.68rem;
}

.metric-tile .stat-value {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

.spotify-tile .stat-value {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.spotify-mini {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.55rem;
  align-items: center;
}

.spotify-mini-art {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #41556e;
  background: #141d2a;
}

.spotify-mini-meta {
  min-width: 0;
}

.spotify-mini-meta .stat-value,
.spotify-mini-meta .stat-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-masonry {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.signal-card {
  padding: 0.9rem;
}

.home-signal .signal-card {
  padding: 1.02rem 1.04rem;
}

.home-signal .signal-card p {
  font-size: 0.87rem;
  line-height: 1.6;
}

.signal-about {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.signal-socials {
  grid-column: 8 / span 5;
  grid-row: 2;
  align-content: start;
}

.signal-about h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-top: 0.45rem;
}

.home-signal .signal-about h1 {
  max-width: 20ch;
  line-height: 1.2;
}

.home-signal .signal-about p {
  margin-top: 0.62rem;
  max-width: 58ch;
}

.signal-projects {
  grid-column: 1 / span 7;
  grid-row: 2;
}

.signal-side-stack {
  grid-column: 8 / span 5;
  grid-row: 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(140px, auto));
  gap: 0.75rem;
  align-content: start;
}

.signal-side-stack .signal-card {
  display: grid;
  align-content: start;
}

.signal-current-project {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.home-signal .signal-current-project {
  gap: 0.5rem;
}

.signal-current-project h2 {
  font-size: 1.02rem;
  line-height: 1.24;
}

.home-signal .signal-current-project h2 {
  font-size: 1.08rem;
  line-height: 1.34;
}

.signal-current-project #current-project-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.36;
  color: #9fb2c8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.home-signal .signal-current-project #current-project-desc {
  font-size: 0.82rem;
  line-height: 1.48;
  -webkit-line-clamp: 3;
  min-height: 3.5em;
}

.signal-current-project .project-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.signal-current-project .btn {
  padding: 0.42rem 0.68rem;
  font-size: 0.78rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #3b4b61;
  background: rgba(33, 44, 60, 0.78);
  color: #d5deea;
  padding: 0.2rem 0.52rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.2;
}

.status-pill.status-live {
  border-color: rgba(46, 194, 126, 0.6);
  background: rgba(46, 194, 126, 0.18);
  color: #8be8bc;
}

.status-pill.status-build {
  border-color: rgba(255, 179, 71, 0.6);
  background: rgba(255, 179, 71, 0.2);
  color: #ffd8a3;
}

.status-pill.status-plan {
  border-color: rgba(111, 150, 190, 0.62);
  background: rgba(111, 150, 190, 0.2);
  color: #b7cfe9;
}

.status-pill.status-error {
  border-color: rgba(255, 107, 107, 0.62);
  background: rgba(255, 107, 107, 0.2);
  color: #ffc2c2;
}

.page-links-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.page-link-card {
  border: 1px solid #314155;
  border-radius: 10px;
  background: rgba(20, 28, 39, 0.74);
  padding: 0.7rem;
  display: grid;
  gap: 0.32rem;
  transition: border-color 180ms ease, transform 120ms ease, background-color 180ms ease;
}

.home-signal .page-link-card {
  padding: 0.8rem 0.78rem;
  gap: 0.3rem;
}

.page-link-card:hover {
  border-color: #4d6078;
  background: rgba(27, 37, 53, 0.88);
  transform: translateY(-1px);
}

.page-link-card h3 {
  font-size: 0.86rem;
}

.home-signal .page-link-card h3 {
  font-size: 0.9rem;
}

.page-link-card p {
  margin: 0;
  font-size: 0.78rem;
  color: #9fb2c8;
  line-height: 1.35;
}

.home-signal .page-link-card p {
  font-size: 0.75rem;
  line-height: 1.45;
}

.btn-disabled {
  border-color: #3f4d61;
  background: rgba(27, 36, 49, 0.45);
  color: #97a8be;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 2.15rem;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.53rem 0.8rem;
  transition: transform 120ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: #3f4d61;
  background: rgba(27, 36, 49, 0.6);
  color: #d8e3ef;
}

.btn-ghost:hover {
  background: rgba(35, 46, 63, 0.85);
}

.meta-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.meta-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #d3dbe6;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat {
  display: grid;
  gap: 0.35rem;
}

.stat-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "IBM Plex Mono", monospace;
  color: #9fb2c9;
}

.stat-value {
  margin: 0;
  color: #f5f8fc;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  font-weight: 700;
}

.stat-sub {
  margin: 0;
  font-size: 0.8rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.95rem;
}

.spotify {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.spotify img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #405167;
}

.spotify-song {
  margin: 0;
  color: #eff4fb;
  font-weight: 600;
}

.spotify-artist {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.84rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.resume-panel {
  border: 1px solid #334256;
  border-radius: 12px;
  background: rgba(22, 30, 42, 0.75);
  padding: 0.78rem;
}

.resume-panel h3 {
  font-size: 0.95rem;
}

.resume-panel ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.38rem;
  color: #ced7e3;
  font-size: 0.86rem;
}

.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.projects-hub-page {
  gap: 0.85rem;
}

.projects-hub-controls .projects-head {
  align-items: flex-start;
}

.projects-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.projects-summary-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6d5339;
  border-radius: 999px;
  background: rgba(49, 35, 24, 0.75);
  color: #ecd9c4;
  font-size: 0.69rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.22rem 0.5rem;
}

.projects-filter-row {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.projects-filter-btn {
  border: 1px solid #6a5138;
  border-radius: 999px;
  background: rgba(43, 31, 22, 0.74);
  color: #e6d5c0;
  padding: 0.24rem 0.58rem;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.projects-filter-btn.is-active {
  border-color: rgba(224, 140, 46, 0.72);
  background: rgba(224, 140, 46, 0.22);
  color: #ffd7ad;
}

.projects-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.projects-hub-page .projects-grid {
  margin-top: 0.78rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.project-card {
  border: 1px solid #314155;
  border-radius: 12px;
  background: rgba(20, 28, 39, 0.78);
  padding: 0.78rem;
  display: grid;
  gap: 0.5rem;
}

.projects-hub-page .project-card {
  padding: 0.9rem;
  gap: 0.58rem;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.projects-hub-page .project-top {
  align-items: flex-start;
}

.project-top h3 {
  font-size: 0.97rem;
}

.project-title-block {
  min-width: 0;
}

.projects-hub-page .project-title-block h3 {
  font-size: 1rem;
  line-height: 1.26;
}

.projects-hub-page .project-title-block .project-sub {
  margin-top: 0.24rem;
}

.badge {
  font-size: 0.67rem;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-live {
  background: rgba(46, 194, 126, 0.2);
  color: #7ce5b1;
}

.badge-build {
  background: rgba(255, 179, 71, 0.18);
  color: #ffd395;
}

.badge-plan {
  background: rgba(111, 150, 190, 0.2);
  color: #aac8e8;
}

.project-sub {
  margin: 0;
  font-size: 0.76rem;
  font-family: "IBM Plex Mono", monospace;
  color: #92a7be;
}

.project-desc {
  margin: 0;
  font-size: 0.86rem;
}

.projects-hub-page .project-desc {
  font-size: 0.84rem;
  line-height: 1.52;
  color: var(--muted);
  margin: 0.12rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-stack-list {
  margin: 0.12rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6a5138;
  border-radius: 999px;
  background: rgba(43, 31, 22, 0.72);
  color: #ead6c0;
  font-size: 0.68rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.18rem 0.44rem;
}

.project-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.projects-hub-page .project-actions {
  margin-top: 0.12rem;
}

.project-empty {
  grid-column: 1 / -1;
}

.note {
  margin: 0;
  font-size: 0.84rem;
}

.launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.launch-grid ol {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.42rem;
  color: #cfdae8;
  font-size: 0.87rem;
}

.snippet {
  margin-top: 0.7rem;
  border: 1px solid #304157;
  border-radius: 10px;
  background: #0f1722;
  padding: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #d2dceb;
  white-space: pre-wrap;
}

.section-title {
  margin-bottom: 0.35rem;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.travel-image {
  border-radius: 12px;
  border: 1px solid #334258;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.8rem;
  align-items: start;
}

.contact-hero h1 {
  margin-top: 0.48rem;
}

.contact-pill-row {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid #6f573e;
  border-radius: 999px;
  background: rgba(49, 35, 24, 0.76);
  color: #efdcc8;
  font-size: 0.67rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.22rem 0.5rem;
}

.contact-pill svg {
  width: 0.82rem;
  height: 0.82rem;
}

.contact-form-card {
  display: grid;
  gap: 0.62rem;
}

.contact-section-head {
  display: grid;
  gap: 0.22rem;
}

.contact-section-head h2 {
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.contact-side-stack {
  display: grid;
  gap: 0.8rem;
}

.contact-side-card {
  display: grid;
  gap: 0.62rem;
}

.contact-link-list {
  display: grid;
  gap: 0.5rem;
}

.contact-link-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  border: 1px solid #67503a;
  border-radius: 10px;
  background: rgba(36, 27, 20, 0.75);
  padding: 0.6rem 0.65rem;
  transition: border-color 180ms ease, transform 120ms ease, background-color 180ms ease;
}

.contact-link-item:hover {
  border-color: #87684a;
  background: rgba(45, 33, 24, 0.9);
  transform: translateY(-1px);
}

.contact-link-item svg {
  width: 1rem;
  height: 1rem;
  color: #e1af77;
  margin-top: 0.1rem;
}

.contact-link-item span {
  display: grid;
  gap: 0.14rem;
}

.contact-link-item strong {
  color: #f5e6d6;
  font-size: 0.83rem;
}

.contact-link-item small {
  color: #c9b39b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.contact-helper-list {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 0.72rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid label {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.82rem;
  color: #c4d2e4;
}

.input,
.textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #355071;
  background: #0f1723;
  color: var(--text);
  padding: 0.58rem 0.65rem;
  font-family: inherit;
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(62, 166, 255, 0.35);
  outline-offset: 1px;
}

.helper-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.helper-list li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: #d6e0ec;
  font-size: 0.87rem;
}

.form-status {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: #9dd1ff;
}

.form-status.is-pending {
  color: #e7b47d;
}

.form-status.is-success {
  color: #9bd8bd;
}

.form-status.is-error {
  color: #ef9d84;
}

.timeline {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.timeline-item {
  border-left: 2px solid #3b4b61;
  padding-left: 0.72rem;
}

.timeline-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.22rem;
}

.timeline-meta {
  margin: 0;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  color: #96abc4;
}

.travel-page {
  display: grid;
  gap: 0.9rem;
}

.travel-fade-in {
  animation: travelRise 360ms ease both;
}

.travel-hero h1 {
  margin-top: 0.42rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.travel-hero p {
  margin-top: 0.52rem;
  max-width: 66ch;
}

.travel-last-updated {
  margin-top: 0.72rem;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
  color: #c9b49c;
}

.travel-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.travel-overview-grid .stat {
  background: linear-gradient(180deg, rgba(45, 33, 24, 0.88), rgba(31, 23, 18, 0.84));
}

.travel-visited-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.72rem;
}

.travel-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.travel-toggle-row {
  display: inline-flex;
  gap: 0.34rem;
}

.travel-toggle-btn {
  border: 1px solid #6c5137;
  border-radius: 999px;
  background: rgba(47, 34, 24, 0.76);
  color: #e8d6c0;
  padding: 0.22rem 0.56rem;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
}

.travel-toggle-btn.is-active {
  border-color: rgba(222, 143, 54, 0.72);
  background: rgba(222, 143, 54, 0.2);
  color: #ffd8aa;
}

.map-canvas {
  width: 100%;
  min-height: 360px;
  border-radius: 12px;
  border: 1px solid #6f573f;
  overflow: hidden;
}

.travel-map-canvas {
  margin-top: 0.62rem;
}

.travel-visited-list-card {
  display: grid;
  gap: 0.5rem;
}

.travel-visited-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.travel-mini-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #68523a;
  border-radius: 999px;
  background: rgba(43, 31, 22, 0.74);
  color: #dfccb8;
  padding: 0.2rem 0.45rem;
  font-size: 0.64rem;
  font-family: "IBM Plex Mono", monospace;
}

.travel-visited-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.34rem;
  max-height: 360px;
  overflow: auto;
}

.travel-visited-list li {
  border: 1px solid #65503a;
  border-radius: 10px;
  background: rgba(39, 28, 20, 0.74);
  padding: 0.5rem 0.55rem;
  display: grid;
  gap: 0.16rem;
}

.travel-visited-list strong {
  color: #f1e3d2;
  font-size: 0.8rem;
}

.travel-visited-list span {
  color: #c3ae95;
  font-size: 0.67rem;
  font-family: "IBM Plex Mono", monospace;
}

.travel-chip-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.travel-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6d5339;
  border-radius: 999px;
  background: rgba(49, 35, 24, 0.75);
  color: #ecd9c4;
  font-size: 0.69rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.22rem 0.5rem;
}

.travel-flights-layout {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.72rem;
}

.travel-flight-table-wrap {
  border: 1px solid #68503a;
  border-radius: 12px;
  background: rgba(35, 25, 18, 0.78);
  overflow: hidden;
  min-height: 360px;
  display: grid;
  align-content: start;
}

.travel-flights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.travel-flights-table thead th {
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: #c7b39c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.54rem;
  border-bottom: 1px solid #69513a;
  background: rgba(42, 30, 22, 0.92);
}

.travel-flights-table tbody tr:nth-child(odd) {
  background: rgba(43, 31, 22, 0.45);
}

.travel-flights-table td {
  padding: 0.46rem 0.54rem;
  border-bottom: 1px solid rgba(104, 80, 58, 0.45);
  color: #ead9c4;
}

.travel-routes-block {
  margin-top: 0.62rem;
}

.travel-routes-block h3 {
  margin: 0;
  font-size: 0.84rem;
}

.travel-route-row {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.travel-route-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6c533d;
  border-radius: 999px;
  padding: 0.2rem 0.48rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: #e7d6c3;
  background: rgba(48, 35, 24, 0.74);
}

.travel-route-chip.is-muted {
  color: #c5b29a;
}

.travel-roadtrip-layout {
  margin-top: 0.66rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.72rem;
}

.roadtrip-segments {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
  max-height: 360px;
  overflow: auto;
}

.roadtrip-segments li {
  border: 1px solid #68503a;
  border-radius: 10px;
  background: rgba(37, 27, 20, 0.78);
  padding: 0.52rem 0.56rem;
}

.roadtrip-segments h3 {
  margin: 0;
  font-size: 0.79rem;
  color: #f3e6d7;
}

.roadtrip-segments span {
  display: block;
  margin-top: 0.18rem;
  color: #c8b39a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.roadtrip-segments p {
  margin: 0.26rem 0 0;
  color: #d5c2ab;
  font-size: 0.72rem;
}

.travel-empty,
.travel-list-empty {
  color: #c9b59e;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  margin: 0.6rem 0;
}

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

.media-gallery-page {
  gap: 0.85rem;
}

.media-gallery-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.42rem, 2.9vw, 2.15rem);
}

.media-gallery-hero p {
  margin-top: 0.58rem;
  max-width: 62ch;
}

.media-gallery-controls {
  gap: 0.65rem;
}

.media-featured {
  gap: 0.65rem;
}

.media-featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.media-featured-head h2 {
  margin: 0;
}

.media-featured-head p {
  margin: 0.12rem 0 0;
  color: #c3ad93;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.media-featured-head code {
  color: #ffe2c0;
  background: rgba(41, 30, 20, 0.68);
  border: 1px solid #6d5339;
  border-radius: 6px;
  padding: 0.03rem 0.24rem;
}

.media-featured-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.media-featured-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.media-featured-grid::-webkit-scrollbar-thumb {
  background: rgba(183, 131, 77, 0.65);
  border-radius: 999px;
}

.media-featured-tile {
  border: 1px solid #7e5d3f;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(53, 39, 28, 0.92), rgba(34, 25, 18, 0.88));
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, transform 160ms ease;
}

.media-featured-tile:hover {
  border-color: #bf8850;
  transform: translateY(-2px);
}

.media-featured-tile img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.media-featured-tile span {
  display: block;
  padding: 0.58rem 0.66rem 0.28rem;
  font-size: 0.8rem;
  color: #f4e4d1;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-featured-tile small {
  display: block;
  padding: 0 0.66rem 0.66rem;
  color: #c7b199;
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-featured-empty {
  min-width: 0;
}

.media-gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.media-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.media-summary-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #6d5339;
  border-radius: 999px;
  background: rgba(49, 35, 24, 0.75);
  color: #ecd9c4;
  font-size: 0.69rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.22rem 0.5rem;
}

.media-grid {
  margin-top: 0.78rem;
  column-count: 4;
  column-gap: 0.66rem;
}

.media-tile {
  width: 100%;
  border: 1px solid #66503c;
  border-radius: 12px;
  background: rgba(36, 27, 20, 0.78);
  overflow: hidden;
  margin: 0 0 0.66rem;
  padding: 0;
  text-align: left;
  cursor: pointer;
  break-inside: avoid;
  transition: border-color 180ms ease, transform 150ms ease;
}

.media-tile:hover {
  border-color: #87694a;
  transform: translateY(-1px);
}

.media-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.media-tile-meta {
  display: grid;
  gap: 0.18rem;
  padding: 0.44rem 0.52rem 0.52rem;
}

.media-tile-meta span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  color: #c3ad93;
}

.media-empty-card {
  break-inside: avoid;
  border: 1px dashed #6d5238;
  border-radius: 11px;
  background: rgba(38, 28, 20, 0.68);
  padding: 0.8rem;
}

.media-empty-card p {
  margin: 0;
  color: #cdbca8;
  font-size: 0.84rem;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(14, 10, 8, 0.92);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox-open {
  overflow: hidden;
}

.media-lightbox-close,
.media-lightbox-nav {
  border: 1px solid #73573c;
  border-radius: 10px;
  background: rgba(46, 34, 24, 0.86);
  color: #f1dfca;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.media-lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.media-lightbox-close svg,
.media-lightbox-nav svg {
  width: 1rem;
  height: 1rem;
}

.media-lightbox-figure {
  margin: 0;
  width: min(88vw, 1120px);
  justify-self: center;
  display: grid;
  gap: 0.45rem;
}

.media-lightbox-figure img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #6e5339;
  background: #1c150f;
}

.media-lightbox-title {
  margin: 0;
  color: #f6ebde;
  font-weight: 600;
}

.media-lightbox-meta {
  margin: 0.2rem 0 0;
  color: #c7b29a;
  font-size: 0.8rem;
}

.watch-mosaic-page {
  gap: 0.8rem;
}

.watch-mosaic-hero h1 {
  margin-top: 0.45rem;
  font-size: clamp(1.45rem, 3.1vw, 2.25rem);
}

.watch-mosaic-hero p {
  margin-top: 0.58rem;
  max-width: 64ch;
}

.watch-mosaic-summary {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.watch-mosaic-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #45566f;
  border-radius: 999px;
  background: rgba(28, 39, 55, 0.82);
  color: #dae7f8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.69rem;
  padding: 0.22rem 0.52rem;
}

.watch-mosaic-controls {
  display: grid;
  gap: 0.75rem;
}

.watch-mosaic-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.watch-mosaic-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.watch-tab {
  border: 1px solid #3d4d63;
  border-radius: 999px;
  background: rgba(31, 41, 56, 0.82);
  color: #d6e3f4;
  padding: 0.32rem 0.74rem;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 150ms ease;
}

.watch-tab:hover,
.watch-tab:focus-visible,
.watch-tab.is-active {
  border-color: #71a7e1;
  background: rgba(36, 66, 95, 0.92);
}

.watch-tab:focus-visible {
  outline: 2px solid #8ec2ff;
  outline-offset: 1px;
}

.watch-controls-hint {
  margin: 0;
  color: #a2b5cd;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.watch-mosaic-filter-row {
  display: grid;
  gap: 0.58rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.8fr);
}

.watch-input-wrap {
  display: grid;
  gap: 0.25rem;
}

.watch-input-wrap span {
  color: #9db1cb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.watch-input-wrap input,
.watch-input-wrap select {
  width: 100%;
  border: 1px solid #41536d;
  border-radius: 10px;
  background: rgba(23, 31, 44, 0.9);
  color: #e3edf9;
  min-height: 2.2rem;
  padding: 0.45rem 0.62rem;
}

.watch-input-wrap input::placeholder {
  color: #91a4be;
}

.watch-input-wrap input:focus-visible,
.watch-input-wrap select:focus-visible {
  outline: 2px solid #83b6ef;
  outline-offset: 1px;
}

.watch-mosaic-activity-card {
  display: grid;
  gap: 0.62rem;
}

.watch-mosaic-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.watch-mosaic-section-head h2 {
  margin: 0;
}

.watch-mosaic-section-head p {
  margin: 0;
  color: #9db1cb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.watch-mosaic-activity-strip {
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding-bottom: 0.18rem;
  scrollbar-width: thin;
}

.watch-activity-chip {
  flex: 0 0 auto;
  min-width: min(360px, 78vw);
  border: 1px solid #38495f;
  border-radius: 11px;
  background: rgba(22, 30, 42, 0.82);
  padding: 0.45rem 0.58rem;
  display: grid;
  gap: 0.16rem;
}

.watch-activity-title {
  color: #e6eef9;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-activity-date {
  color: #9ab1cc;
  font-size: 0.64rem;
  font-family: "IBM Plex Mono", monospace;
}

.watch-mosaic-grid-card {
  display: grid;
  gap: 0.62rem;
}

.watch-mosaic-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: -0.1rem;
}

.watch-mosaic-legend-label,
.watch-mosaic-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0;
  color: #9db1cb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.watch-mosaic-legend-label {
  color: #b6c9de;
}

.watch-mosaic-grid {
  margin-top: 0.12rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.watch-mosaic-tile {
  border: 1px solid rgba(148, 194, 248, 0.38);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 10% -10%, hsla(var(--watch-hue), var(--watch-sat), 58%, 0.2), transparent 44%),
    linear-gradient(160deg, rgba(18, 26, 38, 0.94), rgba(12, 18, 27, 0.94));
  box-shadow: 0 12px 28px rgba(3, 7, 12, 0.32);
  display: grid;
  grid-template-rows: auto auto 1fr;
  transition: transform 150ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.watch-mosaic-tile:hover,
.watch-mosaic-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(172, 212, 255, 0.82);
  box-shadow: 0 16px 36px rgba(5, 10, 18, 0.44);
}

.watch-mosaic-tile:focus-visible {
  outline: 2px solid #8fc4ff;
  outline-offset: 1px;
}

.watch-mosaic-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.34rem;
  padding: 0.48rem 0.62rem 0.14rem;
}

.watch-mosaic-type,
.watch-mosaic-count,
.watch-cover-link {
  margin: 0;
  font-size: 0.61rem;
  font-family: "IBM Plex Mono", monospace;
  color: #d5e6fb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.watch-mosaic-count {
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 0 0.62rem;
}

.watch-cover-link {
  color: #d5e6fb;
  border: 1px solid rgba(168, 198, 230, 0.55);
  border-radius: 999px;
  padding: 0.16rem 0.42rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.watch-cover-link:hover {
  border-color: rgba(206, 226, 246, 0.95);
}

.watch-cover-link.is-muted {
  opacity: 0.56;
}

.watch-mosaic-tile h3 {
  margin: 0.18rem 0.62rem 0.12rem;
  color: #f5f9ff;
  font-size: 0.9rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-mosaic-dates {
  padding: 0.2rem 0.62rem 0.46rem;
  display: grid;
  gap: 0.16rem;
}

.watch-mosaic-dates p {
  margin: 0;
  color: #dbe8f8;
  font-size: 0.66rem;
  line-height: 1.35;
}

.watch-mosaic-dates span {
  color: #acc1d9;
  font-family: "IBM Plex Mono", monospace;
}

.watch-mosaic-dates strong {
  color: #f4f9ff;
}

.watch-mosaic-year-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin: 0 0.62rem 0.62rem;
}

.watch-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: rgba(17, 26, 38, 0.92);
  overflow: hidden;
}

.watch-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% -5%, hsla(var(--watch-hue), var(--watch-sat), 58%, 0.45), transparent 48%),
    linear-gradient(145deg, rgba(20, 30, 44, 0.96), rgba(14, 20, 30, 0.96));
}

.watch-cover-fallback span {
  border: 1px solid rgba(220, 236, 253, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  color: #e7f1fd;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.watch-dot {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(227, 238, 252, 0.34);
  background: rgba(223, 235, 252, 0.16);
}

.watch-dot.is-active {
  background: rgba(235, 245, 255, 0.92);
  border-color: rgba(241, 248, 255, 0.95);
}

.watch-mosaic-empty-card {
  grid-column: 1 / -1;
  border: 1px dashed #4b607c;
  border-radius: 12px;
  background: rgba(25, 35, 50, 0.76);
  padding: 0.85rem;
}

.watch-mosaic-empty-card p {
  margin: 0;
  color: #c9d9ec;
}

.watch-mosaic-empty-line {
  margin: 0;
  color: #aec0d6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #355070;
}

.footer {
  margin-top: 0.55rem;
  text-align: center;
  color: #95a8be;
  font-size: 0.78rem;
}

.center-card {
  max-width: 640px;
  margin: 2rem auto;
  text-align: center;
}

.hide-mobile {
  display: inline;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 211, 137, 0.75);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(67, 211, 137, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 211, 137, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills-filter-btn,
  .career-node,
  .media-tile,
  .media-featured-tile,
  .watch-tab,
  .watch-mosaic-tile {
    transition: none;
  }
}

@media (max-width: 1020px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-masonry {
    grid-template-columns: 1fr;
  }

  .signal-about,
  .signal-socials,
  .signal-projects,
  .signal-side-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .signal-side-stack {
    grid-template-rows: none;
  }

  .signal-current-project .project-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .grid-two,
  .travel-grid,
  .contact-grid,
  .travel-visited-grid,
  .travel-flights-layout,
  .travel-roadtrip-layout,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .resume-hero,
  .resume-panels,
  .resume-final {
    grid-template-columns: 1fr;
  }

  .resume-link-grid {
    grid-template-columns: 1fr;
  }

  .resume-timeline-card .li-section-head,
  .li-projects-card .li-section-head,
  .li-skills-card .li-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .travel-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-hub-controls .projects-head {
    flex-direction: column;
  }

  .media-gallery-head {
    flex-direction: column;
  }

  .media-featured-head {
    flex-direction: column;
  }

  .media-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    column-count: 3;
  }

  .watch-mosaic-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .watch-mosaic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site {
    padding: 0.65rem 0.65rem 1rem;
  }

  .status-line {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.12rem;
  }

  .status-line::-webkit-scrollbar {
    display: none;
  }

  .chip {
    white-space: nowrap;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.65rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    font-size: 0.79rem;
    white-space: nowrap;
  }

  .projects-filter-row,
  .skills-filter,
  .travel-toggle-row {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.12rem;
  }

  .projects-filter-row::-webkit-scrollbar,
  .skills-filter::-webkit-scrollbar,
  .travel-toggle-row::-webkit-scrollbar {
    display: none;
  }

  .projects-filter-btn,
  .skills-filter-btn,
  .travel-toggle-btn {
    flex: 0 0 auto;
  }

  .watch-mosaic-controls-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .watch-mosaic-tabs {
    overflow-x: auto;
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 0.12rem;
    scrollbar-width: none;
  }

  .watch-mosaic-tabs::-webkit-scrollbar {
    display: none;
  }

  .card {
    padding: 0.82rem;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .resume-pill-row {
    gap: 0.3rem;
  }

  .resume-chip-row {
    gap: 0.3rem;
  }

  .li-profile-body {
    margin-top: -34px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .li-avatar {
    width: 74px;
    height: 74px;
    font-size: 1.35rem;
  }

  .li-section {
    padding: 0.75rem;
  }

  .career-track-shell {
    padding-left: 1.05rem;
  }

  .career-track-shell::before {
    left: 0.36rem;
  }

  .career-node::before {
    left: -0.72rem;
  }

  .li-entry-top {
    grid-template-columns: 1fr;
  }

  .li-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .skills-filter {
    gap: 0.34rem;
  }

  .skills-rank-item {
    gap: 0.44rem;
  }

  .projects-summary {
    gap: 0.3rem;
  }

  .projects-filter-row {
    margin-top: 0.6rem;
    gap: 0.3rem;
  }

  .travel-overview-grid {
    grid-template-columns: 1fr;
  }

  .travel-chip-row {
    gap: 0.3rem;
  }

  .travel-flight-table-wrap {
    min-height: 0;
    overflow: auto;
  }

  .travel-flights-table {
    min-width: 620px;
  }

  .roadtrip-segments {
    max-height: none;
  }

  .media-grid {
    column-count: 2;
    column-gap: 0.56rem;
  }

  .media-featured-grid {
    grid-template-columns: 1fr;
  }

  .media-tile {
    margin-bottom: 0.56rem;
  }

  .media-lightbox {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.65rem 0.9rem;
  }

  .media-lightbox-nav {
    position: absolute;
    bottom: 0.8rem;
    z-index: 2;
  }

  .media-lightbox-prev {
    left: 0.8rem;
  }

  .media-lightbox-next {
    right: 0.8rem;
  }

  .media-lightbox-figure {
    width: min(94vw, 1120px);
    padding-bottom: 2.8rem;
  }

  .watch-mosaic-filter-row {
    grid-template-columns: 1fr;
  }

  .watch-mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-activity-chip {
    min-width: min(320px, 92vw);
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .metric-tile {
    padding: 0.62rem 0.66rem;
  }

  .metric-optional {
    display: none;
  }

  .metric-tile .stat-value {
    font-size: clamp(1rem, 5vw, 1.2rem);
  }

  .signal-masonry {
    gap: 0.62rem;
  }

  .signal-card {
    padding: 0.78rem;
  }

  .signal-about p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .mobile-optional {
    display: none;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 420px) {
  .media-grid {
    column-count: 1;
  }

  .watch-mosaic-grid {
    grid-template-columns: 1fr;
  }

  .page-links-grid {
    grid-template-columns: 1fr;
  }
}

/* Global Colorway Override: Ember + Sage (non-blue) */
:root {
  --bg: #15110d;
  --panel: #231a14;
  --panel-soft: #2e2118;
  --border: #5f4a37;
  --text: #f8f1e9;
  --muted: #cfbfad;
  --accent: #e08c2e;
  --accent-strong: #bf6e17;
  --success: #46a37c;
  --warning: #f3b14d;
  --danger: #e27157;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

body {
  background:
    radial-gradient(circle at 16% -12%, rgba(224, 140, 46, 0.2), transparent 38%),
    radial-gradient(circle at 94% 0%, rgba(70, 163, 124, 0.16), transparent 33%),
    linear-gradient(180deg, #120f0c 0%, #1a1410 100%);
}

.topbar-inner {
  border-color: var(--border);
  background: rgba(29, 22, 17, 0.9);
}

.nav a {
  color: #f0e3d4;
}

.nav a:hover,
.nav a.is-active {
  border-color: #7a6148;
  background: #34261b;
}

.chip {
  color: #f1e4d3;
  background: rgba(44, 33, 24, 0.78);
}

.card {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(45, 33, 24, 0.88), rgba(29, 22, 16, 0.9));
}

.eyebrow {
  color: #e8c08e;
}

.stat-label,
.timeline-meta,
.project-sub,
.form-status {
  color: #bda78f;
}

.btn-primary {
  background: linear-gradient(135deg, #e79a3c, #c96e1a);
  color: #fff6ee;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0a84c, #d37922);
}

.btn-ghost {
  border-color: #715840;
  background: rgba(55, 40, 28, 0.64);
  color: #f0e1d0;
}

.btn-ghost:hover {
  background: rgba(70, 50, 34, 0.86);
}

.page-link-card,
.project-card,
.resume-panel,
.social-link,
.social-icon-link,
.fact-list li,
.timeline-item,
.career-node,
.skills-rank-item,
.skill-group,
.li-project-item,
.snippet {
  border-color: #67503a;
  background: rgba(35, 26, 19, 0.8);
}

.input,
.textarea,
.preview,
.travel-image,
.map-canvas {
  border-color: #6f563e;
  background: #1a130f;
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(224, 140, 46, 0.35);
}

.status-pill {
  border-color: #6c563f;
  background: rgba(52, 40, 29, 0.8);
  color: #efdfcc;
}

.status-pill.status-live {
  border-color: rgba(70, 163, 124, 0.62);
  background: rgba(70, 163, 124, 0.2);
  color: #c6f1df;
}

.status-pill.status-build {
  border-color: rgba(243, 177, 77, 0.62);
  background: rgba(243, 177, 77, 0.2);
  color: #ffe1ad;
}

.status-pill.status-plan {
  border-color: rgba(224, 140, 46, 0.62);
  background: rgba(224, 140, 46, 0.18);
  color: #ffd2a1;
}

.badge-live {
  background: rgba(70, 163, 124, 0.22);
  color: #c6f1df;
}

.badge-build {
  background: rgba(243, 177, 77, 0.2);
  color: #ffe2b3;
}

.badge-plan {
  background: rgba(224, 140, 46, 0.2);
  color: #ffd2a0;
}

.resume-signal {
  background:
    radial-gradient(circle at 8% 0%, rgba(224, 140, 46, 0.18), transparent 37%),
    radial-gradient(circle at 90% 0%, rgba(70, 163, 124, 0.14), transparent 33%),
    linear-gradient(180deg, #120f0c 0%, #1b1511 100%);
}

.li-cover {
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 240, 220, 0.12), transparent 40%),
    linear-gradient(120deg, #5a2f13 0%, #7a4a1f 55%, #3e5b41 100%);
  border-bottom-color: #725338;
}

.li-avatar {
  border-color: #654a31;
  background: linear-gradient(180deg, #3a2a1d, #2a1f16);
}

.li-logo {
  border-color: #6d5238;
  background: linear-gradient(180deg, #3d2d20, #2d2218);
  color: #f2dfca;
}

.li-logo-muted {
  background: linear-gradient(180deg, #3a3129, #2d251f);
  border-color: #6d5d4d;
}

.li-logo-code {
  background: linear-gradient(180deg, #32432f, #2a3224);
  border-color: #5f7b52;
}

.career-track-shell::before {
  background: linear-gradient(180deg, #e49a3d 0%, #4ba07b 100%);
}

.career-node::before {
  border-color: #231b14;
  background: #e49a3d;
  box-shadow: 0 0 0 3px rgba(228, 154, 61, 0.24);
}

.career-node.node-systems::before {
  background: #4ba07b;
  box-shadow: 0 0 0 3px rgba(75, 160, 123, 0.22);
}

.career-lane {
  border-color: #7a5b3d;
  background: rgba(228, 154, 61, 0.18);
  color: #ffe0b8;
}

.career-node.node-systems .career-lane {
  border-color: #567e69;
  background: rgba(75, 160, 123, 0.2);
  color: #d1f0e2;
}

.skills-rank-num {
  border-color: #7b5f3f;
  background: linear-gradient(180deg, #5a3f28, #3e2d1f);
  color: #f7e7d1;
}

.music-hub-page {
  gap: 0.8rem;
}

.music-hub-hero h1 {
  margin-top: 0.46rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.music-hub-hero p {
  margin-top: 0.55rem;
  max-width: 68ch;
}

.music-hub-window-note {
  margin: 0.72rem 0 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid #6f563d;
  border-radius: 999px;
  background: rgba(61, 43, 29, 0.65);
  color: #f0dec8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  padding: 0.24rem 0.54rem;
}

.music-hub-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
}

.music-hub-stat-card {
  display: grid;
  gap: 0.38rem;
}

.music-hub-track-name {
  margin: 0;
  color: #f8f0e5;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 600;
}

.music-hub-track-meta {
  margin: 0;
  color: #d1bea7;
  font-size: 0.76rem;
  line-height: 1.45;
}

.music-hub-inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #765b40;
  border-radius: 999px;
  color: #f3e4d2;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  text-decoration: none;
  padding: 0.16rem 0.5rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.music-hub-inline-link:hover {
  border-color: #a97a4a;
  background: rgba(77, 54, 36, 0.64);
}

.music-hub-inline-link:focus-visible,
.music-hub-preview-toggle:focus-visible,
.music-range-tab:focus-visible,
.music-hub-track-link:focus-visible {
  outline: 2px solid #e39b4a;
  outline-offset: 1px;
}

.music-hub-inline-link.is-disabled {
  opacity: 0.56;
  pointer-events: none;
}

.music-hub-recent-wrap {
  margin-top: 0.12rem;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.58rem;
  align-items: center;
}

.music-hub-recent-wrap img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #6f563c;
  background: #2a1d14;
}

.music-hub-tracks-card,
.music-hub-playlists-card {
  display: grid;
  gap: 0.68rem;
}

.music-hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.music-hub-section-head h2,
.music-hub-panel-head h3 {
  margin: 0;
}

.music-hub-section-head p {
  margin: 0;
  color: #ccb8a1;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.music-hub-track-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.music-hub-track-panel {
  border: 1px solid #664d36;
  border-radius: 12px;
  background: rgba(48, 35, 24, 0.6);
  padding: 0.64rem;
  display: grid;
  gap: 0.54rem;
}

.music-hub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.music-hub-range-tabs {
  display: inline-flex;
  border: 1px solid #755a3f;
  border-radius: 999px;
  background: rgba(52, 38, 27, 0.7);
  padding: 0.16rem;
  gap: 0.2rem;
}

.music-range-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #dec7ad;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  padding: 0.2rem 0.52rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.music-range-tab:hover,
.music-range-tab.is-active {
  background: rgba(196, 122, 38, 0.24);
  color: #fff1dd;
}

.music-hub-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.music-hub-track-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.52rem;
  align-items: center;
  border: 1px solid #6b5038;
  border-radius: 11px;
  background: rgba(42, 31, 22, 0.72);
  padding: 0.42rem 0.5rem;
}

.music-hub-track-rank {
  width: 1.42rem;
  height: 1.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7f6144;
  border-radius: 999px;
  background: rgba(62, 44, 30, 0.85);
  color: #f4e1cb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
}

.music-hub-track-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #70563c;
  background: #281d15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-hub-track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-hub-thumb-fallback {
  color: #f3dec5;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
}

.music-hub-track-copy {
  min-width: 0;
}

.music-hub-track-title,
.music-hub-track-detail {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-hub-track-title {
  color: #f8eddf;
  font-size: 0.78rem;
  font-weight: 600;
}

.music-hub-track-detail {
  color: #ccb89f;
  font-size: 0.67rem;
}

.music-hub-track-link {
  border: 1px solid #755a3f;
  border-radius: 999px;
  color: #f4e2cd;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-decoration: none;
  padding: 0.16rem 0.42rem;
}

.music-hub-track-link:hover {
  border-color: #a97a4a;
  background: rgba(77, 54, 36, 0.64);
}

.music-hub-list-empty {
  border: 1px dashed #7b6147;
  border-radius: 10px;
  color: #d7c4ad;
  font-size: 0.76rem;
  background: rgba(40, 30, 21, 0.68);
  padding: 0.62rem;
}

.music-hub-playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.music-hub-playlist-card {
  border: 1px solid #664c35;
  border-radius: 12px;
  background: rgba(46, 34, 24, 0.68);
  overflow: hidden;
  display: grid;
  transition: border-color 160ms ease, transform 140ms ease;
}

.music-hub-playlist-card:hover {
  border-color: #8f6a43;
  transform: translateY(-1px);
}

.music-hub-playlist-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #2d2016;
  overflow: hidden;
}

.music-hub-playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-hub-playlist-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2dfca;
  font-size: 1rem;
  font-family: "IBM Plex Mono", monospace;
  background: linear-gradient(140deg, #5f391c, #3f2f21);
}

.music-hub-playlist-body {
  padding: 0.6rem;
  display: grid;
  gap: 0.38rem;
}

.music-hub-playlist-body h3 {
  margin: 0;
  color: #f7ecde;
  font-size: 0.88rem;
}

.music-hub-playlist-meta {
  margin: 0;
  color: #ccb69d;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.music-hub-playlist-desc {
  margin: 0;
  color: #dfceba;
  font-size: 0.74rem;
  line-height: 1.4;
  min-height: 2.9em;
}

.music-hub-playlist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.music-hub-preview-toggle {
  border: 1px solid #765a40;
  border-radius: 999px;
  background: rgba(62, 45, 31, 0.75);
  color: #f2dfc8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  padding: 0.17rem 0.5rem;
  cursor: pointer;
}

.music-hub-preview-toggle:hover {
  border-color: #a97a4a;
  background: rgba(86, 61, 40, 0.74);
}

.music-hub-preview-panel {
  margin-top: 0.18rem;
  border: 1px solid #6f553c;
  border-radius: 10px;
  overflow: hidden;
}

.music-hub-preview-panel iframe {
  display: block;
}

.music-hub-empty-card {
  grid-column: 1 / -1;
  border: 1px dashed #7b6147;
  border-radius: 12px;
  background: rgba(40, 30, 21, 0.68);
  padding: 0.74rem;
}

.music-hub-empty-card p {
  margin: 0;
  color: #d7c4ad;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .music-hub-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .music-hub-playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .music-hub-track-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .music-hub-stats-grid {
    grid-template-columns: 1fr;
  }

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

  .music-hub-section-head,
  .music-hub-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-hub-inline-link,
  .music-hub-preview-toggle,
  .music-range-tab,
  .music-hub-playlist-card {
    transition: none !important;
  }
}

.games-hub-page {
  gap: 0.82rem;
}

.games-hub-hero h1 {
  margin-top: 0.48rem;
  font-size: clamp(1.4rem, 3vw, 2.08rem);
}

.games-hub-hero p {
  margin-top: 0.52rem;
  max-width: 72ch;
}

.games-hub-summary {
  margin-top: 0.74rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.games-hub-summary-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #655845;
  border-radius: 999px;
  background: rgba(33, 31, 28, 0.75);
  color: #eaddcb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.69rem;
  padding: 0.22rem 0.54rem;
}

.games-hub-controls {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0.64rem;
  align-items: end;
}

.games-hub-input-wrap {
  display: grid;
  gap: 0.34rem;
}

.games-hub-input-wrap span {
  color: #cfbea8;
  font-size: 0.72rem;
  font-family: "IBM Plex Mono", monospace;
}

.games-hub-input-wrap input,
.games-hub-input-wrap select {
  border: 1px solid #695943;
  border-radius: 10px;
  background: rgba(32, 28, 24, 0.72);
  color: #f2e8dc;
  min-height: 2.2rem;
  padding: 0.44rem 0.6rem;
}

.games-hub-input-wrap input::placeholder {
  color: #a89176;
}

.games-hub-input-wrap input:focus-visible,
.games-hub-input-wrap select:focus-visible,
.game-card-toggle:focus-visible {
  outline: 2px solid #d79344;
  outline-offset: 1px;
}

.games-hub-list-card {
  display: grid;
  gap: 0.68rem;
}

.games-hub-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.64rem;
}

.games-hub-section-head p {
  margin: 0;
  color: #cbbaa4;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.games-hub-list {
  display: grid;
  gap: 0.62rem;
}

.game-card {
  border: 1px solid #665441;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(31, 27, 23, 0.86), rgba(20, 18, 15, 0.86));
  padding: 0.64rem;
  display: grid;
  gap: 0.56rem;
}

.game-card-empty {
  border-style: dashed;
  border-color: #756149;
  padding: 0.8rem;
}

.game-card-empty p {
  margin: 0;
  color: #dbc9b3;
  font-size: 0.78rem;
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.game-card-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.58rem;
}

.game-card-cover {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #705b44;
  background: #241f1a;
}

.game-card-copy {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
}

.game-card-copy h3 {
  margin: 0;
  color: #f7efe5;
  font-size: 1.05rem;
  line-height: 1.3;
}

.game-card-meta {
  margin: 0;
  color: #bba994;
  font-size: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
}

.game-card-ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.game-card-ratios span {
  border: 1px solid #6a5741;
  border-radius: 999px;
  background: rgba(41, 35, 29, 0.78);
  color: #e7d5bf;
  font-size: 0.66rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.13rem 0.45rem;
}

.game-card-toggle {
  flex-shrink: 0;
  border: 1px solid #6f5a43;
  border-radius: 999px;
  background: rgba(43, 36, 30, 0.84);
  color: #f4e6d3;
  font-size: 0.67rem;
  font-family: "IBM Plex Mono", monospace;
  padding: 0.24rem 0.54rem;
  min-height: 1.95rem;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.game-card-toggle:hover {
  border-color: #a2784a;
  background: rgba(64, 53, 42, 0.82);
}

.game-card-details {
  border-top: 1px solid #5f4f3d;
  padding-top: 0.56rem;
}

.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.46rem;
}

.game-stat-item {
  border: 1px solid #655340;
  border-radius: 10px;
  background: rgba(36, 31, 26, 0.74);
  padding: 0.42rem 0.5rem;
  display: grid;
  gap: 0.2rem;
}

.game-stat-label {
  margin: 0;
  color: #f0e2d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.game-stat-value {
  margin: 0;
  color: #d5c3ad;
  font-size: 0.76rem;
  line-height: 1.42;
}

.game-stat-empty {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .games-hub-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .games-hub-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .game-card-main {
    grid-template-columns: 78px 1fr;
  }

  .game-card-cover {
    width: 78px;
    height: 78px;
  }

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

  .game-card-toggle {
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card-toggle {
    transition: none !important;
  }
}
