@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-regular.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-medium.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-semibold.woff") format("woff");
}

@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-display-semibold.woff") format("woff");
}

:root {
  --bg: #08090a;
  --surface: #0f1012;
  --surface-raised: #141518;
  --surface-hover: #181a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f7f8f8;
  --text-soft: #c4c8cf;
  --text-muted: #8b9098;
  --accent: #6152fe;
  --accent-bright: #857bff;
  --accent-soft: rgba(97, 82, 254, 0.14);
  --accent-line: rgba(97, 82, 254, 0.35);
  --radius-small: 8px;
  --radius: 12px;
  --radius-large: 20px;
  --container: 1120px;
  --header-height: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  outline: none;
}

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

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}

::selection {
  background: rgba(97, 82, 254, 0.45);
  color: #fff;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-small);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  background: rgba(8, 9, 10, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  width: 22px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-small);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.primary-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.primary-nav .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-button span:first-child {
  top: 15px;
}

.menu-button span:last-child {
  top: 23px;
}

.site-header[data-open="true"] .menu-button span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .menu-button span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.button .icon {
  transition: transform 0.25s var(--ease);
}

.button:hover .icon:not(.icon-fill) {
  transform: translateX(3px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
}

.button-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button-row-center {
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.text-link .icon {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--accent-bright);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.hero {
  position: relative;
  padding: calc(var(--header-height) + 6rem) 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, 140%);
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 0%, rgba(97, 82, 254, 0.26), rgba(97, 82, 254, 0) 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-title {
  max-width: 16ch;
  margin: 1.75rem auto 0;
  text-wrap: balance;
  font-size: clamp(2.875rem, 1.2rem + 6.4vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, #a9adb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--text);
}

.hero-copy {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

.hero .button-row {
  justify-content: center;
}

.window {
  position: relative;
  max-width: 860px;
  margin: 5rem auto 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #141518 0%, #0d0e10 100%);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  text-align: left;
  overflow: hidden;
}

.window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.window-bar {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.window-title {
  flex: 1;
  margin-right: 41px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li:hover {
  background: rgba(255, 255, 255, 0.02);
}

.checklist-number,
.steps-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.checklist h3 {
  font-size: 0.9375rem;
  font-weight: 500;
}

.checklist p {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.section {
  padding: 6.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}

.split > h2 {
  max-width: 12ch;
}

.split-body > * + * {
  margin-top: 1.25rem;
}

.split-body > .button-row {
  margin-top: 2rem;
}

.split-body p:not(.lead):not(.notice) {
  color: var(--text-muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
}

.section-head .lead {
  max-width: 28rem;
  color: var(--text-muted);
}

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

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

.card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
}

.card h3 {
  margin-top: 1.5rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.card-icon .icon {
  width: 20px;
  height: 20px;
}

.card-number {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
}

.card-number + h3 {
  margin-top: 1.25rem;
}

.panel {
  position: relative;
  padding: 5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  text-align: center;
  overflow: hidden;
}

.panel-accent {
  border-color: var(--accent-line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(97, 82, 254, 0.22), rgba(97, 82, 254, 0) 70%),
    linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.panel h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.panel .lead {
  max-width: 36rem;
  margin: 1.5rem auto 0;
}

.panel p:not(.lead) {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

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

.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.pillar p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.page-hero {
  padding: calc(var(--header-height) + 5.5rem) 0 4.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 100% at 50% 0%, rgba(97, 82, 254, 0.12), rgba(97, 82, 254, 0) 70%);
}

.page-title {
  font-size: clamp(2.5rem, 1.2rem + 4.8vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
}

.page-copy {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.page-lead + .page-copy {
  margin-top: 1.5rem;
}

.page-action {
  margin-top: 3.5rem;
}

.notice {
  max-width: 38rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.split-body .notice {
  margin-top: 1.5rem;
}

.steps {
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
}

.steps p {
  color: var(--text-soft);
}

.steps a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.steps a:hover {
  text-decoration-color: var(--accent-bright);
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 190px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.project-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
}

.project-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.project-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.project-name::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.project-name:focus-visible {
  outline: none;
}

.project-card:has(.project-name:focus-visible) {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.project-tag {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-description {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.project-site {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

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

.project-card.is-loading {
  gap: 1rem;
}

.skeleton {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.skeleton-title {
  width: 55%;
  height: 16px;
}

.skeleton-line {
  width: 100%;
}

.skeleton-line-short {
  width: 70%;
}

.project-status {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
}

.project-status h3 {
  font-size: 1.125rem;
}

.project-status p {
  max-width: 28rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.project-status .button-row {
  margin-top: 1.5rem;
}

.error-page {
  position: relative;
  padding: calc(var(--header-height) + 5rem) 0 7rem;
  text-align: center;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1000px, 140%);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 0%, rgba(97, 82, 254, 0.24), rgba(97, 82, 254, 0) 70%);
  pointer-events: none;
}

.error-page .container {
  position: relative;
}

.error-code {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.04em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 3rem + 16vw, 12rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #ffffff 25%, rgba(255, 255, 255, 0.12) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.error-dot {
  width: 0.13em;
  height: 0.13em;
  margin-bottom: 0.06em;
  border-radius: 0.02em;
  background: var(--accent);
  box-shadow: 0 0 0 0.04em var(--accent-soft);
}

.error-title {
  margin-top: 1.5rem;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.error-copy {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: var(--text-muted);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 4.5rem auto 0;
  text-align: left;
}

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.quick-link:hover {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-hover), var(--surface-raised));
}

.quick-link-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.quick-link-title .icon {
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.quick-link:hover .quick-link-title .icon {
  color: var(--accent-bright);
  transform: translateX(3px);
}

.quick-link-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-column h2 {
  margin-bottom: 0.35rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}

.footer-column a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-flush {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  cursor: pointer;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.intro img {
  width: 84px;
  height: auto;
  animation: intro-mark 1.1s var(--ease) both;
}

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.card-grid > .reveal:nth-child(2n),
.pillars > .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.card-grid-three > .reveal:nth-child(3n + 2) {
  transition-delay: 0.07s;
}

.card-grid-three > .reveal:nth-child(3n) {
  transition-delay: 0.14s;
}

.pillars > .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.pillars > .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

@keyframes intro-mark {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 960px) {
  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split > h2 {
    max-width: none;
  }

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

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

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem 2rem;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .site-header[data-open="true"] {
    border-bottom-color: var(--line);
    background: var(--bg);
  }

  .site-header[data-open="true"]::before {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header[data-open="true"] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .primary-nav .nav-github {
    margin: 1rem 0 0;
    padding: 0.9rem 1rem;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: calc(var(--header-height) + 3.5rem) 0 4rem;
  }

  .window {
    margin-top: 3.5rem;
  }

  .checklist li {
    padding: 1rem 1.15rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .page-hero {
    padding: calc(var(--header-height) + 3.5rem) 0 3rem;
  }

  .card-grid,
  .card-grid-three,
  .project-grid,
  .pillars,
  .quick-links {
    grid-template-columns: 1fr;
  }

  .error-page {
    padding: calc(var(--header-height) + 3rem) 0 4.5rem;
  }

  .quick-links {
    margin-top: 3rem;
  }

  .card {
    padding: 1.5rem;
  }

  .panel {
    padding: 3.5rem 1.5rem;
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
