:root {
  --page: #101311;
  --paper: #171c19;
  --paper-soft: #1d2420;
  --ink: #eef4ee;
  --ink-soft: #bcc8c0;
  --muted: #87958d;
  --line: rgba(238, 244, 238, 0.13);
  --line-strong: rgba(238, 244, 238, 0.24);
  --accent: #c87886;
  --accent-deep: #e2a1aa;
  --accent-soft: rgba(200, 120, 134, 0.12);
  --green: #81a894;
  --grid-x: rgba(238, 244, 238, 0.045);
  --grid-y: rgba(238, 244, 238, 0.035);
  --page-wash: linear-gradient(120deg, rgba(16, 19, 17, 0.94), rgba(16, 19, 17, 0.74) 45%, rgba(23, 28, 25, 0.9));
  --page-spot: radial-gradient(circle at 76% 12%, rgba(200, 120, 134, 0.14), transparent 30rem);
  --nav-bg: rgba(16, 19, 17, 0.72);
  --pill-bg: rgba(238, 244, 238, 0.055);
  --panel-bg: rgba(23, 28, 25, 0.72);
  --panel-top: rgba(238, 244, 238, 0.075);
  --panel-bottom: rgba(238, 244, 238, 0.035);
  --panel-line: rgba(238, 244, 238, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Aptos", "Outfit", "Satoshi", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="light"] {
  --page: #f4f6f3;
  --paper: #fbfcfa;
  --paper-soft: #eef2ed;
  --ink: #202523;
  --ink-soft: #4f5b56;
  --muted: #74807a;
  --line: rgba(32, 37, 35, 0.14);
  --line-strong: rgba(32, 37, 35, 0.24);
  --accent: #8f4657;
  --accent-deep: #6f3241;
  --accent-soft: rgba(143, 70, 87, 0.1);
  --green: #49665d;
  --grid-x: rgba(32, 37, 35, 0.045);
  --grid-y: rgba(32, 37, 35, 0.04);
  --page-wash: linear-gradient(120deg, rgba(251, 252, 250, 0.86), rgba(251, 252, 250, 0.5) 42%, rgba(244, 246, 243, 0.84));
  --page-spot: radial-gradient(circle at 74% 12%, rgba(143, 70, 87, 0.1), transparent 28rem);
  --nav-bg: rgba(244, 246, 243, 0.72);
  --pill-bg: rgba(251, 252, 250, 0.62);
  --panel-bg: rgba(251, 252, 250, 0.68);
  --panel-top: rgba(251, 252, 250, 0.78);
  --panel-bottom: rgba(251, 252, 250, 0.5);
  --panel-line: rgba(32, 37, 35, 0.13);
  --shadow: 0 22px 70px rgba(39, 46, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid-x) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-y) 1px, transparent 1px),
    var(--page);
  background-size: 68px 68px;
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    var(--page-wash),
    var(--page-spot);
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

:root[data-theme="light"] .grain {
  mix-blend-mode: multiply;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  width: min(1400px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  color: var(--ink);
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
}

.nav-links a,
.theme-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 760;
  transition: background-color 240ms cubic-bezier(0.16, 1, 0.3, 1), color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

main {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(58px, 9vw, 128px) 0 clamp(38px, 6vw, 86px);
}

.hero-copy {
  max-width: 880px;
}

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

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

h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 8.6vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 880;
}

.lead {
  max-width: 720px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 820;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button.primary {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-deep);
}

.button.secondary {
  background: var(--pill-bg);
}

.profile-stage {
  position: relative;
  display: grid;
  gap: 18px;
  align-self: center;
  min-height: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom)),
    var(--panel-bg);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.profile-stage::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -74px;
  top: -82px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(2px);
  pointer-events: none;
}

.profile-topline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.profile-topline a {
  color: var(--ink-soft);
  text-transform: none;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(86px, 10vw, 124px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  filter: saturate(0.92) contrast(1.02);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(129, 168, 148, 0.14);
  animation: breathe 2.6s ease-in-out infinite;
}

.profile-copy {
  position: relative;
  z-index: 1;
}

.profile-copy h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.1rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.profile-copy p {
  margin-top: 12px;
  color: var(--muted);
}

.profile-focus {
  position: relative;
  z-index: 1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pill-bg);
}

.profile-focus span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-focus p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.profile-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.profile-stats div {
  min-width: 0;
  padding: 16px 14px;
  background: var(--panel-bg);
}

.profile-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 850;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-number {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  font-weight: 860;
}

.signal-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.section {
  padding: clamp(72px, 9vw, 132px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.offset-heading {
  margin-left: clamp(0px, 12vw, 190px);
}

.section-heading h2 {
  font-size: clamp(2.3rem, 5.6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.featured-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom)),
    var(--panel-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:first-child {
  grid-row: span 2;
  min-height: 420px;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 70, 87, 0.34);
  box-shadow: 0 20px 52px rgba(39, 46, 42, 0.1);
}

.featured-card::after {
  content: attr(data-initial);
  position: absolute;
  right: -0.1em;
  bottom: -0.28em;
  color: rgba(143, 70, 87, 0.07);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.repo-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 760;
}

.repo-kicker span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
}

.featured-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  font-size: clamp(1.65rem, 3vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.featured-card p {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin-top: 18px;
  color: var(--ink-soft);
}

.repo-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 850;
}

.repo-link:hover {
  color: var(--accent-deep);
}

.inspect-button {
  width: fit-content;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 850;
}

.inspect-button:hover {
  color: var(--accent-deep);
}

.lanes {
  display: grid;
  grid-template-columns: 1.18fr 0.9fr 0.92fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.lanes article {
  min-height: 280px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel-bg);
}

.lane-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 850;
}

.lanes h3 {
  max-width: 360px;
  margin-top: 38px;
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  line-height: 1;
}

.lanes p {
  max-width: 390px;
  margin-top: 16px;
  color: var(--muted);
}

.index-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
}

.search-form {
  display: grid;
  gap: 9px;
}

.search-form label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 820;
}

.search-control {
  min-height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--pill-bg);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--pill-bg);
  font-weight: 780;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.filter:active {
  transform: translateY(1px) scale(0.98);
}

.filter.active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.repo-status {
  color: var(--muted);
  margin-bottom: 14px;
}

.repo-status:empty {
  display: none;
}

.repo-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.repo-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr) minmax(160px, 0.45fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  animation: rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--row-index, 0) * 36ms);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.repo-row:hover {
  transform: translateX(5px);
  background: var(--accent-soft);
}

.repo-row:active {
  transform: translateX(2px) scale(0.997);
}

.repo-row h3 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.repo-row h3 a:hover {
  color: var(--accent);
}

.repo-row p {
  color: var(--ink-soft);
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.repo-meta span,
.repo-side span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--pill-bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 760;
}

.repo-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.status-panel:empty {
  display: none;
}

.status-panel.loading span {
  height: 18px;
  max-width: 520px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pill-bg), var(--panel-top), var(--pill-bg));
  background-size: 240% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.status-panel.loading span:nth-child(2) {
  width: 72%;
}

.status-panel.loading span:nth-child(3) {
  width: 48%;
}

.empty-state,
.error-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--pill-bg);
}

.error-state {
  border-color: rgba(143, 70, 87, 0.42);
  color: var(--accent-deep);
}

.footer {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  font-weight: 820;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 9, 0.58);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--panel-top), var(--panel-bottom)),
    var(--paper);
  box-shadow:
    0 32px 90px rgba(20, 24, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: clamp(24px, 4vw, 42px);
  animation: modalIn 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--pill-bg);
}

.modal-close:hover {
  background: var(--accent-soft);
}

.modal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 46px;
}

.modal-kicker span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--pill-bg);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 780;
}

.modal-panel h2 {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.modal-description {
  max-width: 720px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.modal-grid div {
  padding: 16px;
  background: var(--panel-bg);
}

.modal-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.modal-grid dd {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-weight: 850;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.modal-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 850;
}

.modal-actions a:first-child {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

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

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .nav,
  main,
  .footer {
    width: min(100% - 32px, 760px);
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links {
    justify-self: stretch;
    overflow-x: auto;
  }

  .hero,
  .featured-grid,
  .lanes,
  .index-heading,
  .repo-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-stage {
    min-height: 0;
  }

  .offset-heading {
    margin-left: 0;
  }

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

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .featured-card:first-child {
    grid-row: span 1;
  }

  .repo-side {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .nav,
  main,
  .footer {
    width: calc(100% - 28px);
  }

  .nav-links a {
    padding: 0 11px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .profile-stats,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div,
  .signal-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .project-modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100dvh - 24px);
  }

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