:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --surface: #fffdf7;
  --surface-2: #ebe7dc;
  --ink: #181612;
  --muted: #6b665d;
  --line: #d7d0c4;
  --line-strong: #b8aea0;
  --accent: #d6422f;
  --accent-2: #247d83;
  --accent-3: #7d8730;
  --accent-4: #b36d25;
  --shadow: 0 24px 70px rgba(26, 21, 15, 0.12);
  --motion-fast: 160ms;
  --motion-base: 220ms;
  --motion-slow: 560ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --hover-lift: -2px;
  --reveal-distance: 16px;
  --max: 1200px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1113;
  --surface: #171a1d;
  --surface-2: #20252a;
  --ink: #f4efe6;
  --muted: #b3aa9d;
  --line: #30363c;
  --line-strong: #4a535b;
  --accent: #ff684f;
  --accent-2: #4db6bd;
  --accent-3: #afc75a;
  --accent-4: #f0a247;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@keyframes page-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-page-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes project-page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(214, 66, 47, 0.08), transparent 26%),
    linear-gradient(180deg, var(--surface-2), var(--bg) 360px);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  animation: page-enter var(--motion-slow) var(--motion-ease) both;
  transition:
    background-color var(--motion-base) ease,
    color var(--motion-base) ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 118, 110, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 118, 110, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  animation: grid-enter var(--motion-slow) var(--motion-ease-soft) both;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%);
  background: color-mix(in srgb, var(--surface), transparent 12%);
  backdrop-filter: blur(18px);
  animation: header-enter var(--motion-slow) var(--motion-ease) both;
  transition:
    border-color var(--motion-base) ease,
    background-color var(--motion-base) ease,
    backdrop-filter var(--motion-base) ease;
}

.brand,
.header-actions,
.site-nav,
.hero-actions,
.card-actions,
.contact-links,
.repo-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 820;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  transition:
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

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

.brand:hover .brand-avatar {
  border-color: var(--accent-2);
  transform: scale(1.04);
}

.header-actions {
  gap: 14px;
}

.site-nav {
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-nav a,
.text-link,
.card-footer a,
.contribution-card a,
.feedback-card a,
.button,
.hero-link,
.contact-link,
.project-pagination button {
  text-decoration: none;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.site-nav a:hover,
.text-link:hover,
.card-footer a:hover,
.contribution-card a:hover,
.feedback-card a:hover {
  color: var(--accent);
}

.site-nav a:hover,
.text-link:hover,
.card-footer a:hover,
.contribution-card a:hover,
.feedback-card a:hover,
.interest-links a:hover {
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
.site-nav a:focus-visible,
.text-link:focus-visible,
.profile-avatar-link:focus-visible,
.profile-handle:focus-visible,
.hero-link:focus-visible,
.button:focus-visible,
.contact-link:focus-visible,
.card-footer a:focus-visible,
.contribution-card a:focus-visible,
.feedback-card a:focus-visible,
.interest-links a:focus-visible,
.segmented button:focus-visible,
.project-pagination button:focus-visible,
.search-wrap input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.theme-toggle:hover,
.button:hover,
.hero-link:hover,
.contact-link:hover,
.segmented button:hover,
.project-pagination button:hover:not(:disabled) {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button:hover,
.hero-link:first-child:hover,
.segmented button.is-active:hover,
.project-pagination button.is-active:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.section-band {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 42px);
}

.section-band > * {
  max-width: var(--max);
  margin-inline: auto;
}

.hero {
  padding-top: clamp(42px, 6vw, 74px);
  padding-bottom: clamp(36px, 5vw, 58px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(280px, 360px);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 630px;
  margin: 18px 0 0;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.25;
  font-weight: 760;
}

.hero-bio {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 22px;
}

.button,
.contact-link,
.card-footer a,
.contribution-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  font-weight: 780;
}

.button {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}

.button:nth-child(n + 2),
.contact-link {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  color: var(--ink);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface), transparent 6%);
  color: var(--ink);
  font-weight: 780;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.hero-link:first-child {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.hero-link span {
  white-space: nowrap;
}

.theme-toggle i,
.button i,
.hero-link i,
.text-link i,
.card-footer i,
.contribution-card a i,
.contact-link i,
.interest-links i,
.search-wrap i,
.repo-meta i,
.card-actions i,
.segmented button i {
  width: 1.1em;
  text-align: center;
  flex: 0 0 auto;
}

.search-wrap i,
.text-link i,
.repo-meta i {
  color: var(--muted);
}

.profile-panel {
  position: relative;
  display: flex;
  width: min(100%, 390px);
  align-items: center;
  justify-self: end;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  box-shadow: var(--shadow);
  transition:
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    transform var(--motion-base) var(--motion-ease);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--accent-2);
  pointer-events: none;
}

.profile-panel img {
  width: clamp(88px, 10vw, 112px);
  height: clamp(88px, 10vw, 112px);
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  transition:
    border-color var(--motion-base) ease,
    transform var(--motion-base) var(--motion-ease);
}

.profile-panel:hover {
  border-color: var(--line-strong);
  transform: translateY(var(--hover-lift));
}

.profile-panel:hover img {
  border-color: var(--accent-2);
  transform: scale(1.02);
}

.profile-avatar-link {
  display: block;
  flex: 0 0 auto;
}

.profile-panel div {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-top: 0;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
}

.profile-panel .profile-handle,
.profile-panel .profile-location {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile-panel .profile-handle {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.profile-panel .profile-location {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-panel .profile-handle:hover {
  color: var(--accent);
}

.metric-strip,
.github-stats,
.commit-strip {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 42px);
}

.metric,
.github-stat,
.commit-item {
  position: relative;
  min-width: 0;
  background: var(--surface);
  padding: clamp(16px, 2vw, 20px);
  transition:
    background-color var(--motion-base) ease;
}

.card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2), transparent 16%);
  color: var(--accent-2);
  font-size: 0.92rem;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.metric:hover,
.github-stat:hover,
.commit-item:hover {
  background: color-mix(in srgb, var(--surface), var(--surface-2) 28%);
}

.metric:hover .card-icon,
.github-stat:hover .card-icon,
.commit-item:hover .card-icon {
  border-color: var(--line-strong);
  color: var(--accent);
  transform: translateY(-1px);
}

.metric strong,
.github-stat strong,
.commit-item strong {
  display: block;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.metric > span:not(.card-icon),
.github-stat > span:not(.card-icon),
.commit-item > span:not(.card-icon) {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.metric small,
.github-stat small,
.commit-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.focus-band,
.interest-band,
.github-band,
.feedback-band {
  background: color-mix(in srgb, var(--surface-2), var(--bg) 36%);
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 46px);
}

.section-heading.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 820;
  white-space: nowrap;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.source-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.section-heading.split .source-note {
  max-width: 460px;
  padding-top: 0.65rem;
  text-align: right;
}

.api-status {
  margin: -18px auto 28px;
}

.focus-grid,
.interest-grid,
.featured-grid,
.project-grid,
.contribution-grid,
.plan-grid,
.github-layout,
.feedback-grid {
  display: grid;
  gap: 16px;
}

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

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

.focus-item {
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
  transition:
    border-color var(--motion-base) ease,
    transform var(--motion-base) var(--motion-ease);
}

.item-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.item-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 12%);
  color: var(--accent-2);
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.focus-item:hover {
  border-color: var(--accent-2);
  transform: translateY(var(--hover-lift));
}

.focus-item:hover .item-icon {
  border-color: var(--line-strong);
  color: var(--accent);
  transform: translateY(-1px);
}

.focus-item p {
  margin: 14px 0 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 25%);
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 760;
  line-height: 1.1;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

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

.featured-card,
.project-card,
.contribution-card,
.plan-card,
.feedback-card,
.interest-card,
.language-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 3%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition:
    border-color var(--motion-base) ease,
    background-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    transform var(--motion-base) var(--motion-ease);
}

.featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.featured-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9;
  background: var(--surface-2);
}

.featured-media > img[data-preview-image] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition:
    filter var(--motion-slow) ease,
    transform var(--motion-slow) var(--motion-ease-soft);
}

.featured-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-bottom: 1px solid var(--line);
}

.repo-preview {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(77, 182, 189, 0.18), transparent 38%),
    linear-gradient(180deg, #ffffff, #f6f8fa);
  color: #24292f;
}

.featured-media.is-broken > img[data-preview-image] {
  display: none;
}

.repo-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.repo-preview-title {
  min-width: 0;
  color: #30363d;
  font-size: 1.14rem;
  line-height: 1.1;
}

.repo-preview-title span,
.repo-preview-title strong {
  overflow-wrap: anywhere;
}

.repo-preview-title span {
  display: block;
  margin-bottom: 2px;
  color: #57606a;
  font-size: 0.88rem;
  font-weight: 450;
}

.repo-preview-title strong {
  display: block;
  font-weight: 890;
}

.repo-preview-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid #d0d7de;
  background: #ffffff;
  object-fit: cover;
  transition:
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.repo-preview-summary {
  display: -webkit-box;
  overflow: hidden;
  color: #57606a;
  font-size: 0.76rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.repo-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: #57606a;
  font-size: 0.72rem;
  font-weight: 720;
}

.repo-preview-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.repo-preview-meta i {
  color: #6e7781;
}

.repo-preview-strip {
  display: grid;
  grid-template-columns: 64% 28% 8%;
  height: 8px;
  overflow: hidden;
  border: 1px solid #d0d7de;
  background: #d0d7de;
}

.repo-preview-strip span:nth-child(1) {
  background: #f34b7d;
}

.repo-preview-strip span:nth-child(2) {
  background: #3572a5;
}

.repo-preview-strip span:nth-child(3) {
  background: #f1e05a;
}

.featured-body,
.project-card,
.contribution-card,
.plan-card,
.feedback-card,
.interest-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
}

.featured-card:hover,
.project-card:hover,
.contribution-card:hover,
.plan-card:hover,
.feedback-card:hover,
.interest-card:hover,
.language-panel:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
  transform: translateY(var(--hover-lift));
}

.featured-card:hover .featured-media > img[data-preview-image],
.interest-card:hover .interest-media > img {
  transform: scale(1.035);
}

.featured-card:hover .repo-preview-avatar,
.project-card:hover .card-icon,
.contribution-card:hover .card-icon,
.plan-card:hover .card-icon,
.feedback-card:hover .quote-icon,
.interest-card:hover .item-icon {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.featured-card:hover .tag,
.project-card:hover .tag,
.contribution-card:hover .tag,
.plan-card:hover .tag,
.interest-card:hover .tag {
  border-color: color-mix(in srgb, var(--accent-2), var(--line) 54%);
}

.interest-card {
  padding: 0;
  overflow: hidden;
}

.interest-media {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(160px, 22vw, 220px);
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2), transparent 72%), transparent 40%),
    var(--surface-2);
}

.interest-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter var(--motion-slow) ease,
    transform var(--motion-slow) var(--motion-ease-soft);
}

.interest-media.is-broken img {
  display: none;
}

.interest-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.interest-credit {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: none;
}

.interest-credit:hover {
  color: var(--accent);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.card-topline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-topline span:last-child {
  justify-content: flex-end;
  text-align: right;
}

.card-topline i {
  color: var(--accent-2);
}

.featured-card p,
.project-card p,
.contribution-card p,
.plan-card p,
.feedback-card p,
.interest-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.interest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.interest-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.interest-links a:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.proof {
  border-left: 3px solid var(--accent-2);
  padding-left: 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-weight: 760;
}

.card-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-footer a {
  white-space: nowrap;
}

.project-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: clamp(28px, 5vw, 46px) auto 18px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 340px);
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.search-wrap:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2), transparent 82%);
}

.search-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 820;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.segmented button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.project-grid[data-transitioning="true"] {
  pointer-events: none;
}

.project-grid.project-page-exit {
  animation: project-page-exit var(--motion-base) var(--motion-ease-soft) both;
}

.project-grid.project-page-enter {
  animation: project-page-enter var(--motion-base) var(--motion-ease-soft) both;
}

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.project-pagination p {
  margin: 0;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.project-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 820;
}

.project-pagination button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.project-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  color: var(--muted);
}

.repo-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 790;
}

.repo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.github-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
}

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

.language-panel {
  padding: 22px;
}

.language-panel h3 {
  margin-bottom: 22px;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(120px, 1fr);
  gap: 18px;
  align-items: center;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}

.language-row:first-of-type {
  border-top: 0;
}

.language-row span {
  display: block;
}

.language-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-row strong i {
  color: var(--accent-2);
}

.language-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.language-bar {
  height: 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  overflow: hidden;
}

.language-bar span {
  display: block;
  height: 100%;
  background: var(--accent-2);
  transform-origin: left center;
  transition:
    background-color var(--motion-base) ease,
    transform var(--motion-slow) var(--motion-ease);
}

.language-row:nth-child(2n) .language-bar span {
  background: var(--accent);
}

.language-row:nth-child(3n) .language-bar span {
  background: var(--accent-3);
}

.language-row:nth-child(4n) .language-bar span {
  background: var(--accent-4);
}

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

.contribution-card time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.contribution-card a {
  margin-top: auto;
  padding-top: 20px;
}

.commit-strip {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}

.commit-item .commit-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.commit-count span:first-child {
  font-size: 2.25rem;
}

.commit-count span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
  text-transform: uppercase;
}

.commit-repo {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-decoration: none;
  text-underline-offset: 3px;
}

a.commit-repo:hover,
a.commit-repo:focus-visible {
  color: var(--accent);
}

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

.feedback-card blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.16;
  font-weight: 830;
}

.quote-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2), transparent 16%);
  color: var(--accent-2);
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.feedback-card .feedback-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 820;
}

.plan-band {
  background: color-mix(in srgb, var(--surface-2), var(--bg) 36%);
  color: var(--ink);
}

:root[data-theme="dark"] .plan-band {
  background: #101316;
  color: #f4efe6;
}

.plan-band .eyebrow {
  color: var(--accent);
}

:root[data-theme="dark"] .plan-band .eyebrow {
  color: #ff684f;
}

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

.plan-card {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface), transparent 3%);
}

:root[data-theme="dark"] .plan-card {
  border-color: rgba(244, 239, 230, 0.22);
  background: rgba(244, 239, 230, 0.04);
}

.plan-card .card-topline,
.plan-card p,
.plan-card li,
.milestone p,
.milestone span {
  color: var(--muted);
}

:root[data-theme="dark"] .plan-card .card-topline,
:root[data-theme="dark"] .plan-card p,
:root[data-theme="dark"] .plan-card li,
:root[data-theme="dark"] .milestone p,
:root[data-theme="dark"] .milestone span {
  color: rgba(244, 239, 230, 0.74);
}

.plan-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.plan-card li i,
.milestone span i {
  flex: 0 0 auto;
  margin-top: 0.22em;
  color: var(--accent);
}

:root[data-theme="dark"] .plan-card li i,
:root[data-theme="dark"] .milestone span i {
  color: #ff684f;
}

.milestone-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.milestone {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

:root[data-theme="dark"] .milestone {
  border-top-color: rgba(244, 239, 230, 0.18);
}

.milestone strong,
.milestone span {
  display: block;
}

.milestone span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.milestone strong {
  color: var(--ink);
}

:root[data-theme="dark"] .milestone strong {
  color: #f4efe6;
}

.milestone p {
  margin-top: 6px;
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.contact-heading {
  position: sticky;
  top: 92px;
}

.contact-intro {
  max-width: 310px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 680;
}

.contact-panel {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 8%);
  padding: clamp(18px, 3vw, 28px);
  transition:
    border-color var(--motion-base) ease,
    background-color var(--motion-base) ease;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, max-content));
  justify-content: center;
  gap: 10px;
}

.identity-note {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(18px, 3vw, 24px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.identity-note h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.identity-note h3 i {
  color: var(--accent-2);
}

.identity-note p {
  margin: 10px 0 0;
}

.identity-priority {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.identity-priority span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 18%);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 790;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--motion-ease);
}

.identity-priority span:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.contact-link {
  min-height: 48px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface-2), transparent 18%);
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  padding: 22px;
  color: var(--muted);
}

html.motion-ready .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.motion-ready .language-panel.reveal .language-bar span {
  transform: scaleX(0);
}

html.motion-ready .language-panel.reveal.is-visible .language-bar span {
  transform: scaleX(1);
}

html.motion-ready .site-footer,
html.motion-ready .site-footer * {
  opacity: 1;
  transform: none;
}

html.motion-ready .profile-panel.reveal.is-visible:hover {
  transform: translateY(var(--hover-lift));
}

html.motion-ready .focus-item.reveal.is-visible:hover {
  transform: translateY(var(--hover-lift));
}

html.motion-ready .hero-link.reveal.is-visible:hover,
html.motion-ready .button.reveal.is-visible:hover,
html.motion-ready .contact-link.reveal.is-visible:hover,
html.motion-ready .text-link.reveal.is-visible:hover,
html.motion-ready .identity-priority span.reveal.is-visible:hover {
  transform: translateY(-1px);
}

html.motion-ready .featured-card.reveal.is-visible:hover,
html.motion-ready .project-card.reveal.is-visible:hover,
html.motion-ready .contribution-card.reveal.is-visible:hover,
html.motion-ready .plan-card.reveal.is-visible:hover,
html.motion-ready .feedback-card.reveal.is-visible:hover,
html.motion-ready .interest-card.reveal.is-visible:hover,
html.motion-ready .language-panel.reveal.is-visible:hover {
  transform: translateY(var(--hover-lift));
}

@media (max-width: 1080px) {
  .featured-grid,
  .focus-grid,
  .interest-grid,
  .project-grid,
  .plan-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .github-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-heading {
    position: static;
  }

  .contact-links {
    justify-content: center;
  }
}

@media (max-width: 780px) {
  .site-header,
  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .site-nav {
    width: 100%;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .theme-toggle {
    align-self: flex-start;
  }

  .hero-grid,
  .section-heading.split,
  .project-tools {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .profile-panel {
    justify-self: stretch;
  }

  .project-tools {
    display: grid;
  }

  .project-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .segmented,
  .pagination-buttons {
    justify-content: flex-start;
  }

  .section-heading.split .source-note {
    max-width: none;
    padding-top: 0;
    text-align: left;
  }

  .source-links {
    justify-content: flex-start;
  }

  .featured-grid,
  .focus-grid,
  .interest-grid,
  .project-grid,
  .contribution-grid,
  .plan-grid,
  .feedback-grid,
  .metric-strip,
  .commit-strip,
  .github-stats {
    grid-template-columns: 1fr;
  }

  .language-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

@media (max-width: 500px) {
  .section-band {
    padding-inline: 14px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .hero-actions,
  .contact-links {
    display: grid;
  }

  .button,
  .contact-link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  html.motion-ready .reveal,
  html.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  html.motion-ready .language-panel.reveal .language-bar span {
    transform: none;
  }
}
