:root {
  --bg: #f4f4f4;
  --fg: #0f0f10;
  --muted: #6d6d74;
  --line: rgba(15, 15, 16, 0.14);
  --line-strong: rgba(15, 15, 16, 0.3);
  --card: rgba(15, 15, 16, 0.045);
  --card-hover: rgba(15, 15, 16, 0.08);
  --nav-bg: rgba(244, 244, 244, 0.72);
  --graph-0: #e3e3e4;
  --graph-1: #b7e4c7;
  --graph-2: #74c69d;
  --graph-3: #40916c;
  --graph-4: #1b4332;
  --green: #16a34a;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark {
  --bg: #0f0f10;
  --fg: #f3f3f3;
  --muted: #9b9ba3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --card: rgba(255, 255, 255, 0.055);
  --card-hover: rgba(255, 255, 255, 0.09);
  --nav-bg: rgba(15, 15, 16, 0.72);
  --graph-0: #242428;
  --graph-1: #0e4429;
  --graph-2: #1f6f43;
  --graph-3: #3aa35f;
  --graph-4: #8ee6a4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body,
button,
a {
  font-family: var(--font);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.display {
  margin-bottom: clamp(2rem, 4vw, 4rem);
  font-size: clamp(3.4rem, 12.5vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.has-motion [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: clamp(1.25rem, 2.6vw, 2.5rem);
  transition: padding 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-nav.is-scrolled {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-name {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-name:hover {
  opacity: 0.5;
}

.nav-links {
  display: flex;
  flex: 0 1 62%;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
}

.nav-links a {
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.5;
}

.nav-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  margin-left: clamp(0.75rem, 2vw, 2rem);
}

.theme-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--card);
}

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

.icon-moon {
  display: none;
}

html.dark .icon-sun {
  display: none;
}

html.dark .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(8rem, 15vw, 14rem);
  padding-bottom: 0;
}

.hero-glow {
  position: absolute;
  top: 26%;
  left: 50%;
  width: min(62vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 15, 16, 0.07) 0%, rgba(15, 15, 16, 0) 68%);
  filter: blur(24px);
  transform: translateX(-50%);
  pointer-events: none;
}

html.dark .hero-glow {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  display: flex;
  justify-content: center;
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title .char-wrap {
  display: inline-block;
  overflow: hidden;
  margin-block: -0.08em;
  padding-block: 0.08em;
}

.hero-title .char {
  display: inline-block;
  transform: translateY(112%) rotate(4deg);
  animation: hero-rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.028s + 0.1s);
}

@keyframes hero-rise {
  to {
    transform: translateY(0) rotate(0);
  }
}

.hero-meta {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(1.5rem, 3vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-meta div:nth-child(2) {
  align-items: center;
  text-align: center;
}

.hero-meta div:nth-child(3) {
  align-items: flex-end;
  text-align: right;
}

.hero-intro {
  max-width: 56rem;
  margin-top: clamp(4rem, 8vw, 8rem);
  font-size: clamp(1.25rem, 2.55vw, 2.55rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.3;
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.text-link {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  opacity: 0.5;
}

.hero-portrait {
  width: clamp(210px, 30vw, 440px);
  aspect-ratio: 4 / 5;
  margin-top: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 2px;
  background: var(--card);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.02) saturate(0.95);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter 0.6s ease;
}

.hero-portrait:hover img {
  filter: contrast(1.02) saturate(1.04);
  transform: scale(1.05);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.filter {
  flex: none;
  padding: 0 0 0.25rem;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter:hover {
  color: var(--fg);
}

.filter.is-active {
  color: var(--fg);
  border-color: var(--fg);
}

.project-count {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.project-card {
  min-width: 0;
}

.project-card--featured {
  grid-column: 1 / -1;
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
}

.project-card--featured .project-media,
.project-grid.is-single .project-media {
  aspect-ratio: 16 / 8.4;
}

.project-grid.is-single .project-card,
.project-grid .project-card.is-wide {
  grid-column: 1 / -1;
}

.project-grid .project-card.is-wide .project-media {
  aspect-ratio: 16 / 8.4;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8, 8, 9, 0.74);
  opacity: 0;
  transition: opacity 0.45s ease;
  color: #f4f4f4;
  text-align: center;
}

.project-card:hover .project-overlay,
.project-media:focus-visible .project-overlay {
  opacity: 1;
}

.project-overlay-inner {
  display: flex;
  max-width: 38rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: translateY(10px);
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-overlay-inner,
.project-media:focus-visible .project-overlay-inner {
  transform: translateY(0);
}

.project-kicker {
  color: rgba(244, 244, 244, 0.6);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.project-tech span {
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(244, 244, 244, 0.25);
  border-radius: 999px;
  color: rgba(244, 244, 244, 0.85);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-cta {
  margin-top: 0.4rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(244, 244, 244, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 1.25rem;
}

.project-caption-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.project-caption h3 {
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-summary {
  max-width: 56ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.project-link {
  flex: none;
  margin-top: 0.15rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.experience-lead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
}

.experience-lead h3 {
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.experience-lead p {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.6;
  text-align: right;
}

.experience-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: stretch;
}

.experience-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
}

.experience-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 14, 0.6), transparent 58%);
  pointer-events: none;
}

.experience-media-copy {
  position: absolute;
  inset: auto 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 8, 14, 0.38);
  color: #ffffff;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(8, 8, 14, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.experience-media-copy span:nth-child(2) {
  opacity: 0.78;
}

.experience-media-copy span:nth-child(3) {
  opacity: 0.62;
}

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

.experience-item {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.experience-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: calc(100% - clamp(3rem, 5vw, 5rem));
  background: var(--fg);
  opacity: 0.55;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease);
}

.experience-item-head,
.experience-role,
.experience-desc {
  transition: transform 0.5s var(--ease);
}

.experience-role {
  transition-delay: 0.05s;
}

.experience-desc {
  transition-delay: 0.1s;
}

@media (hover: hover) {
  .experience-item:hover .experience-item-head {
    transform: translateX(14px);
  }

  .experience-item:hover .experience-role {
    transform: translateX(14px);
  }

  .experience-item:hover .experience-desc {
    transform: translateX(14px);
  }

  .experience-item:hover::before {
    transform: translateY(-50%) scaleY(1);
  }
}

.experience-item:focus-within .experience-item-head,
.experience-item:focus-within .experience-role,
.experience-item:focus-within .experience-desc {
  transform: translateX(14px);
}

.experience-item:focus-within::before {
  transform: translateY(-50%) scaleY(1);
}

.experience-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.experience-item-head h4 {
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.experience-item-head span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.experience-item:hover .experience-item-head span,
.experience-item:focus-within .experience-item-head span {
  color: var(--fg);
}

.experience-role {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-desc {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.65;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 0.9rem);
}

@media (min-width: 700px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--card);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.skill-card:hover {
  background: var(--card-hover);
  transform: translateY(-1px);
}

.skill-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 5px;
  background: var(--brand);
  color: var(--ink);
}

.skill-icon svg {
  width: 18px;
  height: 18px;
}

.skill-glyph {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.skill-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.skill-cat {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.github-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.github-stats {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
}

.github-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.github-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.github-stats strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.github-link {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.github-link:hover {
  opacity: 0.5;
}

.github-graph {
  overflow-x: auto;
  scrollbar-width: none;
}

.github-graph::-webkit-scrollbar {
  display: none;
}

.github-scroll {
  width: max-content;
  min-width: 100%;
}

.github-months {
  display: grid;
  grid-template-columns: repeat(53, 12px);
  gap: 4px;
  margin-left: 38px;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
}

.github-months span {
  white-space: nowrap;
  overflow: visible;
}

.github-body {
  display: flex;
  gap: 8px;
}

.github-days {
  display: grid;
  width: 30px;
  flex: none;
  grid-template-rows: repeat(7, 12px);
  gap: 4px;
  padding-top: 1px;
}

.github-days span {
  color: var(--muted);
  font-size: 9px;
  line-height: 12px;
  text-align: right;
}

.github-grid {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
}

.github-grid i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--graph-0);
}

.github-grid i.level-1,
.github-legend .level-1 {
  background: var(--graph-1);
}

.github-grid i.level-2,
.github-legend .level-2 {
  background: var(--graph-2);
}

.github-grid i.level-3,
.github-legend .level-3 {
  background: var(--graph-3);
}

.github-grid i.level-4,
.github-legend .level-4 {
  background: var(--graph-4);
}

.github-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.github-status {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.github-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.github-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--graph-0);
}

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

.contact-top .display {
  margin-bottom: 0;
  font-size: clamp(4rem, 15vw, 14rem);
}

.contact-place {
  width: clamp(180px, 22vw, 320px);
  flex: none;
  margin-top: 0.5rem;
}

.contact-map {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: #101b16;
}

.contact-map svg {
  width: 100%;
  height: 100%;
}

.contact-place p {
  margin-top: 0.8rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-body {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.contact-card {
  display: flex;
  width: min(100%, 30rem);
  flex-direction: column;
  gap: 1.25rem;
}

.contact-label,
.contact-detail span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-label {
  color: var(--fg);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail a {
  width: fit-content;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease;
}

.contact-detail a:hover {
  border-color: var(--fg);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.25rem, 2vw, 2rem);
  margin-top: 0.75rem;
}

.contact-socials a {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 0.2s ease;
}

.contact-socials a:hover {
  border-color: var(--fg);
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-inner a {
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

@media (max-width: 1024px) {
  .nav-links {
    flex-basis: 58%;
  }

  .experience-grid {
    grid-template-columns: 4fr 7fr;
  }

  .github-months,
  .github-grid {
    grid-template-columns: repeat(53, 11px);
    grid-auto-columns: 11px;
  }

  .github-grid {
    grid-template-rows: repeat(7, 11px);
  }

  .github-grid i {
    width: 11px;
    height: 11px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: clamp(1rem, 2.5vw, 2.5rem);
    display: flex;
    width: 13rem;
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-menu a {
    padding: 0.9rem 1.2rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
  }

  .mobile-menu a:hover {
    background: var(--card);
  }

  .project-grid {
    gap: 2.5rem clamp(1rem, 2vw, 1.5rem);
  }

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

  .experience-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .experience-lead {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-lead p {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(1.9rem, 8.2vw, 5rem);
  }

  .hero-meta {
    font-size: 9px;
  }

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

  .project-card--featured .project-media,
  .project-grid.is-single .project-media,
  .project-grid .project-card.is-wide .project-media,
  .project-media {
    aspect-ratio: 16 / 11;
  }

  .github-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .github-stats {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .github-months {
    grid-template-columns: repeat(53, 5px);
    gap: 1px;
    margin-left: 28px;
    margin-bottom: 5px;
    font-size: 7px;
  }

  .github-days {
    width: 20px;
    grid-template-rows: repeat(7, 5px);
    gap: 1px;
  }

  .github-days span {
    font-size: 7px;
    line-height: 5px;
  }

  .github-grid {
    grid-template-columns: repeat(53, 5px);
    grid-template-rows: repeat(7, 5px);
    grid-auto-columns: 5px;
    gap: 1px;
  }

  .github-grid i {
    width: 5px;
    height: 5px;
    border-radius: 1px;
  }

  .contact-top {
    flex-direction: column;
  }

  .contact-place {
    width: min(100%, 20rem);
    margin-top: 0;
  }

  .contact-map {
    aspect-ratio: 16 / 10;
  }

  .contact-body {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.65rem, 8vw, 3rem);
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    text-align: left;
  }

  .hero-meta div,
  .hero-meta div:nth-child(2),
  .hero-meta div:nth-child(3) {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.35rem;
    text-align: left;
  }

  .hero-meta div span:first-child::after {
    content: ":";
  }

  .hero-intro {
    font-size: 1.18rem;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .project-caption {
    gap: 0.55rem;
  }

  .experience-item-head {
    flex-direction: column;
    gap: 0.35rem;
  }

}

@media (hover: none) {
  .project-overlay {
    display: none;
  }

  .project-card:hover .project-media img {
    transform: none;
  }

  .experience-item::before {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-title .char {
    transform: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
