﻿:root {
  --dark: #341c1c;
  --surface: #2a1a1f;
  --light: #f3f7f0;
  --muted: #6b8f71;
  --line: rgba(118, 65, 52, 0.34);
  --line-soft: rgba(118, 65, 52, 0.16);
  --accent: #764134;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

html {
  background: var(--dark);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(52, 28, 28, 0.72), transparent 42%),
    radial-gradient(ellipse at 50% 58%, rgba(42, 26, 31, 0.54), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.86)),
    var(--dark);
  color: var(--light);
  font-family: "Poppins", system-ui, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: 19vw 100%;
  opacity: 0.5;
  transform: translate3d(0, var(--grid-shift, 0px), 0);
}

body::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 49%, rgba(42, 26, 31, 0.34) 0 1.5px, transparent 2.2px),
    radial-gradient(ellipse at 50% 49%, transparent 0 13px, rgba(118, 65, 52, 0.2) 13.4px 14.4px, transparent 14.8px),
    linear-gradient(128deg, transparent 0 48.7%, rgba(118, 65, 52, 0.26) 48.86% 49.02%, transparent 49.18%),
    linear-gradient(128deg, transparent 0 46.5%, rgba(118, 65, 52, 0.22) 46.66% 46.82%, transparent 46.98%),
    linear-gradient(128deg, transparent 0 44.3%, rgba(118, 65, 52, 0.18) 44.46% 44.62%, transparent 44.78%),
    linear-gradient(232deg, transparent 0 48.7%, rgba(118, 65, 52, 0.26) 48.86% 49.02%, transparent 49.18%),
    linear-gradient(232deg, transparent 0 46.5%, rgba(118, 65, 52, 0.22) 46.66% 46.82%, transparent 46.98%),
    linear-gradient(232deg, transparent 0 44.3%, rgba(118, 65, 52, 0.18) 44.46% 44.62%, transparent 44.78%),
    linear-gradient(64deg, transparent 0 52.2%, rgba(118, 65, 52, 0.18) 52.34% 52.5%, transparent 52.66%),
    linear-gradient(296deg, transparent 0 52.2%, rgba(118, 65, 52, 0.18) 52.34% 52.5%, transparent 52.66%),
    linear-gradient(118deg, transparent 0 55%, rgba(107, 143, 113, 0.11) 55.14% 55.3%, transparent 55.46%),
    linear-gradient(242deg, transparent 0 55%, rgba(107, 143, 113, 0.11) 55.14% 55.3%, transparent 55.46%),
    linear-gradient(to right, transparent 0 49.95%, rgba(118, 65, 52, 0.12) 49.98% 50.02%, transparent 50.05%);
  background-position:
    50% 56vh,
    50% 56vh,
    calc(50% - 168px) 56vh,
    calc(50% - 132px) 56vh,
    calc(50% - 96px) 56vh,
    calc(50% + 168px) 56vh,
    calc(50% + 132px) 56vh,
    calc(50% + 96px) 56vh,
    calc(50% - 410px) 56vh,
    calc(50% + 410px) 56vh,
    calc(50% - 620px) 56vh,
    calc(50% + 620px) 56vh,
    50% 56vh;
  background-repeat: repeat-y;
  background-size:
    80px 760px,
    80px 760px,
    190px 760px,
    170px 760px,
    150px 760px,
    190px 760px,
    170px 760px,
    150px 760px,
    420px 760px,
    420px 760px,
    520px 760px,
    520px 760px,
    760px 760px;
  opacity: 0.62;
  transform: translate3d(0, var(--line-shift, 0px), 0);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.falling-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-star {
  position: absolute;
  top: -18px;
  left: var(--star-left, 50%);
  width: var(--star-length, 76px);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(243, 247, 240, 0.72), rgba(107, 143, 113, 0.1));
  filter: drop-shadow(0 0 8px rgba(243, 247, 240, 0.28));
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(var(--star-angle, 132deg));
  animation: falling-star var(--star-duration, 1500ms) linear forwards;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px max(20px, calc((100vw - var(--max)) / 2 + 18px));
  background: linear-gradient(180deg, rgba(10, 9, 16, 0), rgba(10, 9, 16, 0));
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0);
  transition:
    background 320ms ease,
    backdrop-filter 320ms ease,
    box-shadow 320ms ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(10, 9, 16, 0.6), rgba(10, 9, 16, 0.44) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.brand {
  font-family: "Khula", system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.phonetic-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  outline: 0;
}

.phonetic-name::after {
  content: attr(data-phonetic);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: min(220px, 80vw);
  padding: 6px 9px 5px;
  border: 1px solid rgba(243, 247, 240, 0.2);
  border-radius: 4px;
  background: rgba(13, 15, 14, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  color: var(--light);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.phonetic-name:hover::after,
.phonetic-name:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-links {
  display: flex;
  gap: 34px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--light);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--light);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(52, 28, 28, 0.72), rgba(42, 26, 31, 0.24) 46%, transparent 74%);
  opacity: 1;
}

.hero-lines {
  position: absolute;
  bottom: -70px;
  left: 50%;
  width: min(460px, 70vw);
  height: 240px;
  transform: translateX(-50%) perspective(460px) rotateX(58deg);
  border: 1px solid var(--line);
  border-top: 0;
}

.hero-lines::before,
.hero-lines::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid var(--line);
  border-top: 0;
}

.hero-lines::after {
  inset: 76px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(4rem, 9vw, 7.4rem);
  font-weight: 800;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-word {
  display: inline-block;
}

.hero-line {
  display: block;
  font-size: 0.72em;
  white-space: nowrap;
}

.hero-accent {
  width: fit-content;
  margin: 0.04em 0.04em 0 0;
  padding: 0.08em 0.03em 0;
  background: linear-gradient(90deg, #5f7f64 0%, var(--muted) 52%, #8eae93 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.02;
  text-shadow:
    0 0 18px rgba(107, 143, 113, 0.34),
    0 0 42px rgba(107, 143, 113, 0.18);
}

.hero-accent .hero-letter {
  display: inline-block;
  background: linear-gradient(90deg, #5f7f64 0%, var(--muted) 52%, #8eae93 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transform: translateY(0);
  animation: letter-bounce 3.8s ease-in-out infinite;
  animation-delay: var(--letter-delay, 0ms);
  will-change: transform;
}

.hero p {
  max-width: 520px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
}

.scroll-cue {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: absolute;
  bottom: 34px;
  left: 50%;
  width: 28px;
  height: 44px;
  translate: var(--magnetic-x) var(--magnetic-y);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 220ms ease, translate 180ms ease;
}

.scroll-cue span {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--light);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

.section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 54px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.about {
  min-height: 100vh;
  border-top: 0;
  align-content: center;
}

.section-label {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-content h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
}

.section-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-list {
  display: grid;
  border-top: 1px solid rgba(243, 247, 240, 0.12);
}

.projects-content {
  grid-column: 1 / -1;
  min-width: 0;
}

.projects .section-label {
  grid-column: 1 / -1;
}

.project-item {
  --category-color: var(--muted);
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(190px, 260px) 28px;
  gap: 38px;
  align-items: center;
  padding: clamp(42px, 6vw, 68px) 0;
  border-bottom: 1px solid rgba(243, 247, 240, 0.12);
  color: inherit;
  cursor: pointer;
  transition: border-color 240ms ease;
}

.project-item[data-category="personal"] {
  --category-color: #9d6dff;
}

.project-item[data-category="university"] {
  --category-color: #6f9eff;
}

.project-item[data-category="hackathon"] {
  --category-color: #ff9a5f;
}

.project-item[data-category="professional"] {
  --category-color: #79c995;
}

.project-number,
.project-tech {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

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

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--category-color) 76%, var(--muted));
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 240ms ease;
}

.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--category-color);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.project-badge {
  display: none;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--muted) 52%, transparent);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.project-item h2 {
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(2.55rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.92;
  transition: color 240ms ease, transform 240ms ease;
}

.project-tech {
  justify-self: end;
  max-width: 260px;
  text-align: right;
  line-height: 1.55;
}

.project-arrow {
  color: var(--category-color);
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transform: translate(-6px, 4px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.project-item:hover,
.project-item:focus-visible {
  border-bottom-color: rgba(243, 247, 240, 0.24);
  outline: 0;
}

.project-item:hover h2,
.project-item:focus-visible h2 {
  transform: translateX(8px);
}

.project-item:hover .project-category,
.project-item:focus-visible .project-category {
  color: var(--category-color);
}

.project-item:hover .category-dot,
.project-item:focus-visible .category-dot {
  box-shadow: 0 0 18px color-mix(in srgb, var(--category-color) 60%, transparent);
  transform: scale(1.22);
}

.project-item:hover .project-arrow,
.project-item:focus-visible .project-arrow {
  opacity: 1;
  transform: translate(0, 4px);
}

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

.project-item.is-extra {
  animation: project-fade-up 280ms ease both;
  animation-delay: var(--row-delay, 0ms);
}

.project-toggle {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 34px auto 0;
  padding: 0 24px;
  border: 1px solid color-mix(in srgb, var(--muted) 58%, var(--light));
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(243, 247, 240, 0.08), rgba(107, 143, 113, 0.12)),
    rgba(42, 26, 31, 0.76);
  color: color-mix(in srgb, var(--light) 28%, var(--muted));
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(243, 247, 240, 0.04) inset;
  translate: var(--magnetic-x) var(--magnetic-y);
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    color 240ms ease,
    transform 240ms ease,
    translate 180ms ease;
}

.project-toggle:hover,
.project-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--muted) 54%, var(--light));
  color: var(--light);
  outline: 0;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(107, 143, 113, 0.18),
    0 0 0 1px rgba(243, 247, 240, 0.08) inset;
  transform: translateY(-2px);
}

.project-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 22;
  width: clamp(280px, 28vw, 420px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(118, 65, 52, 0.28);
  border-radius: 10px;
  background: var(--dark);
  box-shadow:
    0 18px 60px rgba(42, 26, 31, 0.18),
    0 0 36px rgba(107, 143, 113, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0) scale(0.96);
  transition: opacity 220ms ease, box-shadow 220ms ease;
}

.project-preview.is-visible {
  opacity: 1;
}

.project-preview img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 220ms ease, transform 260ms ease;
}

.project-preview img.is-entering {
  opacity: 0;
  transform: translate3d(14px, 0, 0) scale(0.985);
}

.project-preview-image-exit {
  opacity: 0;
  transform: translate3d(-14px, 0, 0) scale(0.985);
}

.project-modal {
  --modal-color: var(--muted);
  --modal-text: var(--dark);
  --modal-soft-text: color-mix(in srgb, var(--surface) 76%, var(--muted));
  --modal-line: rgba(42, 26, 31, 0.16);
  --modal-reveal-origin: 50% 112%;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(107, 143, 113, 0.18), rgba(107, 143, 113, 0.06) 34%, transparent 62%),
    radial-gradient(ellipse at 78% 22%, rgba(118, 65, 52, 0.1), transparent 42%),
    var(--light);
  clip-path: circle(0% at var(--modal-reveal-origin));
  opacity: 1;
  pointer-events: none;
  visibility: hidden;
}

.project-modal.is-opening,
.project-modal.is-closing,
.project-modal.is-open {
  visibility: visible;
}

.project-modal.is-opening {
  animation: project-modal-circle-open 1650ms cubic-bezier(0.42, 0, 0.18, 1) forwards;
}

.project-modal.is-open {
  clip-path: circle(150vmax at var(--modal-reveal-origin));
  pointer-events: auto;
}

.project-modal.is-closing {
  animation: project-modal-circle-close 820ms cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.project-modal-scroll {
  overflow-y: auto;
  padding: 0;
}

.project-modal-content {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(96px, 10vh, 128px) max(24px, calc((100vw - var(--max)) / 2)) 72px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(to right, rgba(42, 26, 31, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 8%, rgba(107, 143, 113, 0.16), rgba(107, 143, 113, 0.045) 38%, transparent 64%),
    var(--light);
  background-size: 19vw 100%, auto;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.project-modal-close {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 42;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(42, 26, 31, 0.22);
  border-radius: 3px;
  background: var(--light);
  color: var(--dark);
  cursor: pointer;
  opacity: 0;
  translate: var(--magnetic-x) var(--magnetic-y);
  transition: border-color 220ms ease, translate 180ms ease, transform 220ms ease;
}

.project-modal:not(.is-open) .project-modal-close {
  visibility: hidden;
}

.project-modal.is-open .project-modal-close {
  opacity: 1;
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  border-color: var(--modal-color);
  outline: 0;
  transform: translateY(-1px);
}

.project-modal-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.project-modal-close span:first-child {
  transform: rotate(45deg);
}

.project-modal-close span:last-child {
  transform: rotate(-45deg);
}

@keyframes project-modal-circle-open {
  0% {
    clip-path: circle(0% at var(--modal-reveal-origin));
  }
  12% {
    clip-path: circle(9vmax at var(--modal-reveal-origin));
  }
  38% {
    clip-path: circle(34vmax at var(--modal-reveal-origin));
  }
  72% {
    clip-path: circle(92vmax at var(--modal-reveal-origin));
  }
  100% {
    clip-path: circle(150vmax at var(--modal-reveal-origin));
  }
}

@keyframes project-modal-circle-close {
  0% {
    clip-path: circle(150vmax at var(--modal-reveal-origin));
  }
  100% {
    clip-path: circle(0% at var(--modal-reveal-origin));
  }
}

.project-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-bottom: clamp(34px, 6vw, 62px);
  border-bottom: 1px solid var(--modal-line);
}

.project-modal-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--modal-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.project-modal-header h2 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  text-wrap: balance;
  color: var(--modal-text);
}

.project-modal-header p {
  max-width: 720px;
  margin: 0;
  color: var(--modal-soft-text);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  min-width: 180px;
}

.project-action,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--modal-color) 36%, transparent);
  border-radius: 3px;
  color: var(--modal-text);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.project-action {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  translate: var(--magnetic-x) var(--magnetic-y);
  transition: border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, translate 180ms ease;
}

.project-action:hover,
.project-action:focus-visible {
  border-color: var(--modal-color);
  color: var(--modal-color);
  outline: 0;
  box-shadow: 0 0 26px color-mix(in srgb, var(--modal-color) 20%, transparent);
}

.project-status {
  color: var(--modal-soft-text);
  background: rgba(107, 143, 113, 0.08);
}

.project-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) 0;
}

.project-modal-label {
  margin: 0 0 14px;
  color: var(--modal-color);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-modal-grid section > p:not(.project-modal-label) {
  margin: 0;
  color: var(--modal-soft-text);
  line-height: 1.85;
}

.project-about {
  color: var(--modal-soft-text);
  line-height: 1.85;
}

.project-about p {
  margin: 0;
}

.project-about p + p {
  margin-top: 16px;
}

.project-about strong {
  color: var(--modal-text);
  font-weight: 800;
}

.project-read-more {
  display: inline-flex;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--modal-color);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

.project-read-more:hover,
.project-read-more:focus-visible {
  color: var(--modal-text);
  opacity: 0.9;
  outline: 0;
}

.project-about-more {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--modal-line);
  overflow: hidden;
  animation: project-about-expand 260ms ease both;
}

.project-about-more h3,
.project-about-more h4 {
  margin: 0;
  color: var(--modal-text);
  font-family: "Khula", system-ui, sans-serif;
  font-weight: 800;
}

.project-about-more h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.project-about-more h4 {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-about-more h3 + p,
.project-about-more h4 + ul {
  margin-top: 14px;
}

.project-feature-list,
.project-stack-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-feature-list li {
  position: relative;
  padding-left: 18px;
}

.project-feature-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--modal-color);
}

.project-stack-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--modal-line);
}

.project-modal-tech {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--modal-line);
}

.project-modal-tech li {
  padding: 12px 0;
  border-bottom: 1px solid var(--modal-line);
  border-radius: 0;
  color: var(--modal-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.project-modal-image {
  width: min(var(--max), 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(42, 26, 31, 0.16);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 18px 70px rgba(42, 26, 31, 0.18);
}

.project-modal-image-large {
  aspect-ratio: 16 / 9;
}

.project-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-image-expand {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-image-expand:focus-visible {
  outline: 2px solid var(--modal-color);
  outline-offset: -2px;
}

.project-image-expand img {
  pointer-events: none;
}

.project-modal-image video,
.project-carousel-slide video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #090605;
}

.project-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--max), 100%);
  margin-top: 16px;
  margin-right: auto;
  margin-left: auto;
}

.project-modal-image-small {
  aspect-ratio: 16 / 10;
}

.project-carousel {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.project-carousel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(42, 26, 31, 0.16);
  border-radius: 4px;
  background: #090605;
  box-shadow: 0 18px 70px rgba(42, 26, 31, 0.18);
}

.project-carousel-clean .project-carousel-frame {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 18px 54px rgba(42, 26, 31, 0.12);
}

.project-carousel-track {
  display: flex;
  height: 100%;
  transform: translateX(var(--carousel-offset, 0%));
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-carousel.is-jumping .project-carousel-track {
  transition: none;
}

.project-carousel.is-wrapping .project-carousel-frame {
  animation: carousel-wrap-pulse 360ms ease;
}

.project-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

.project-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(9, 6, 5, 0.92);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.image-lightbox-stage {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  cursor: grab;
}

.image-lightbox.is-panning .image-lightbox-stage {
  cursor: grabbing;
}

.image-lightbox-stage img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 120ms ease;
  user-select: none;
}

.image-lightbox.is-panning .image-lightbox-stage img {
  transition: none;
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(243, 247, 240, 0.26);
  border-radius: 3px;
  background: rgba(243, 247, 240, 0.09);
  color: var(--light);
  cursor: pointer;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible,
.image-lightbox-controls button:hover,
.image-lightbox-controls button:focus-visible {
  border-color: var(--modal-color);
  outline: 0;
}

.image-lightbox-close span {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.image-lightbox-close span:first-child {
  transform: rotate(45deg);
}

.image-lightbox-close span:last-child {
  transform: rotate(-45deg);
}

.image-lightbox-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(243, 247, 240, 0.24);
  border-radius: 4px;
  background: rgba(13, 15, 14, 0.86);
  transform: translateX(-50%);
}

.image-lightbox-controls button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(243, 247, 240, 0.16);
  background: transparent;
  color: var(--light);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.image-lightbox-controls button:last-child {
  border-right: 0;
}

.project-carousel-clean .project-carousel-slide img,
.project-carousel-clean .project-carousel-slide video {
  border-radius: 0;
}

.project-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(243, 247, 240, 0.24);
  border-radius: 999px;
  background: rgba(243, 247, 240, 0.88);
  color: var(--dark);
  cursor: pointer;
  font: inherit;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.78;
  transform: translateY(-50%);
  transition:
    opacity 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.project-carousel-button:hover,
.project-carousel-button:focus-visible {
  border-color: color-mix(in srgb, var(--modal-color) 54%, rgba(42, 26, 31, 0.18));
  background: var(--light);
  opacity: 1;
  outline: 0;
  transform: translateY(-50%) scale(1.05);
}

.project-carousel-button-prev {
  left: 18px;
}

.project-carousel-button-next {
  right: 18px;
}

.project-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: var(--modal-soft-text);
}

.project-carousel-count {
  font-size: 0.78rem;
  font-weight: 800;
}

.project-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-carousel-dot {
  width: 28px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(42, 26, 31, 0.2);
  cursor: pointer;
  padding: 0;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.project-carousel-dot:hover,
.project-carousel-dot:focus-visible,
.project-carousel-dot.is-active {
  background: var(--modal-color);
  outline: 0;
  transform: scaleX(1.12);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.section-label.scroll-reveal {
  transform: translateY(14px);
}

.project-item.scroll-reveal {
  transform: translateY(34px);
}

.project-item.scroll-reveal.is-visible {
  transform: translateY(0);
}

.skills {
  overflow: hidden;
}

.skills .section-label,
.skills-content {
  grid-column: 1 / -1;
}

.skills-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(42px, 6vw, 70px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.skills-intro {
  max-width: 920px;
  opacity: 0;
  transform: translateY(16px);
}

.skills-intro h2 {
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  text-wrap: balance;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 78px) clamp(46px, 6vw, 82px);
}

.skill-color-legend {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 8;
  width: min(250px, calc(100vw - 40px));
  padding: 14px 15px 15px;
  border: 1px solid rgba(243, 247, 240, 0.2);
  border-top: 4px solid color-mix(in srgb, var(--muted) 72%, var(--light));
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(rgba(243, 247, 240, 0.05) 1px, transparent 1px) 0 40px / 100% 24px,
    color-mix(in srgb, var(--surface) 88%, rgba(0, 0, 0, 0.72));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(10px, -8px, 0) rotate(0.4deg);
  transition: opacity 260ms ease, transform 260ms ease;
}

.skill-color-legend.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate(0.4deg);
}

.skill-color-legend h3 {
  margin: 0 0 11px;
  color: var(--light);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.skill-color-legend ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-color-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: color-mix(in srgb, var(--light) 80%, var(--muted));
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.skill-color-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--swatch-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--swatch-color) 44%, transparent);
}

.skill-group {
  --skill-color: var(--muted);
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--skill-color) 18%, rgba(243, 247, 240, 0.12));
  opacity: 0;
  transform: translateY(18px);
}

.skill-group:nth-child(2) {
  margin-top: 34px;
}

.skill-group:nth-child(3) {
  margin-top: -10px;
}

.skill-group:nth-child(4) {
  margin-top: 24px;
}

.skill-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--skill-color);
  opacity: 0.9;
  box-shadow: 0 0 16px color-mix(in srgb, var(--skill-color) 28%, transparent);
}

.skill-group h3 {
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 0.95;
}

.skill-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 32px;
}

.skill-button {
  --brand-color: var(--muted);
  --usage-strip: linear-gradient(90deg, rgba(107, 143, 113, 0.38), rgba(107, 143, 113, 0.38));
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 72px;
  place-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(243, 247, 240, 0.018);
  color: color-mix(in srgb, var(--light) 58%, var(--muted));
  font: inherit;
  cursor: pointer;
  opacity: 0;
  translate: var(--magnetic-x) var(--magnetic-y);
  transform: translateY(10px) scale(1);
  transition:
    background 230ms ease,
    border-color 230ms ease,
    box-shadow 230ms ease,
    color 230ms ease,
    opacity 230ms ease,
    transform 230ms ease,
    translate 180ms ease;
}

.skill-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--usage-strip);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.skill-icon-frame {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: currentColor;
  z-index: 1;
}

.skill-icon-mask {
  display: block;
  width: 38px;
  height: 38px;
  background: currentColor;
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
}

.skill-symbol {
  color: currentColor;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.skill-name {
  position: absolute;
  left: 50%;
  bottom: -29px;
  z-index: 3;
  max-width: 140px;
  padding: 5px 8px;
  border: 1px solid rgba(107, 143, 113, 0.42);
  border-radius: 999px;
  background: var(--dark);
  color: var(--light);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-shadow: none;
  transform: translate(-50%, -4px);
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.skill-button:hover,
.skill-button:focus-visible,
.skill-button.is-active {
  border-color: color-mix(in srgb, var(--brand-color) 26%, rgba(243, 247, 240, 0.14));
  background: color-mix(in srgb, var(--brand-color) 8%, rgba(243, 247, 240, 0.02));
  color: color-mix(in srgb, var(--brand-color) 52%, var(--light));
  outline: 0;
  box-shadow: 0 0 28px color-mix(in srgb, var(--brand-color) 13%, transparent);
  transform: translateY(-2px) scale(1.07);
}

.skill-button:hover::before,
.skill-button:focus-visible::before,
.skill-button.is-active::before {
  opacity: 1;
}

.skill-button:hover .skill-name,
.skill-button:focus-visible .skill-name,
.skill-button.is-active .skill-name {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skill-group.has-active-skill .skill-button:not(.is-active) {
  opacity: 0.42;
  transform: scale(0.96);
}

.skills.is-visible .skills-intro {
  animation: skills-fade-up 520ms ease forwards;
  animation-delay: 70ms;
}

.skills.is-visible .skill-group {
  animation: skills-fade-up 500ms ease forwards;
  animation-delay: var(--group-delay, 120ms);
}

.skills.is-visible .skill-button {
  animation: skill-icon-in 380ms ease forwards;
  animation-delay: var(--icon-delay, 260ms);
}

.contact {
  display: grid;
  position: relative;
  min-height: 100vh;
  place-items: center;
  text-align: center;
}

.contact .section-label {
  position: absolute;
  top: 110px;
  left: 0;
}

.contact-content {
  grid-column: 1 / -1;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.contact-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}

.contact h2 {
  margin: 0;
  font-family: "Khula", system-ui, sans-serif;
  font-size: clamp(4rem, 7.2vw, 6.7rem);
  font-weight: 800;
  line-height: 0.92;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(70px, 12vh, 118px);
  color: var(--light);
  font-weight: 700;
  flex-wrap: wrap;
}

.contact-links a {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid color-mix(in srgb, var(--light) 84%, transparent);
  border-radius: 999px;
  background: rgba(243, 247, 240, 0.34);
  color: var(--light);
  translate: var(--magnetic-x) var(--magnetic-y);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease, translate 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--muted);
  color: var(--muted);
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(107, 143, 113, 0.18);
}

.contact-links svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links .contact-brand-icon {
  fill: currentColor;
  stroke: none;
}

.contact-signature {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin-top: clamp(56px, 9vh, 86px);
}

.contact-signature strong {
  color: var(--light);
  font-family: "Khula", system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.contact-signature span,
.contact-note {
  color: color-mix(in srgb, var(--light) 62%, var(--muted));
}

.contact-signature span {
  font-size: 1.35rem;
}

.contact-note {
  max-width: 620px;
  margin: clamp(54px, 8vh, 78px) auto 0;
  line-height: 1.65;
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}

@keyframes letter-bounce {
  0%,
  72%,
  100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-0.09em);
  }
  84% {
    transform: translateY(0.035em);
  }
  90% {
    transform: translateY(0);
  }
}

@keyframes falling-star {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--star-angle, 132deg));
  }
  12% {
    opacity: 0.76;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--star-drift-x, -190px), var(--star-drift-y, 320px), 0)
      rotate(var(--star-angle, 132deg));
  }
}

@keyframes project-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skills-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skill-icon-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(1);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes carousel-wrap-pulse {
  0%,
  100% {
    box-shadow: 0 18px 70px rgba(42, 26, 31, 0.18);
  }
  48% {
    box-shadow:
      0 18px 70px rgba(42, 26, 31, 0.2),
      0 0 26px color-mix(in srgb, var(--modal-color) 18%, transparent);
  }
}

@keyframes project-about-expand {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 11px 14px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 14px;
    left: auto;
    display: grid;
    width: min(178px, calc(100vw - 28px));
    gap: 4px;
    padding: 8px;
    border: 1px solid color-mix(in srgb, var(--muted) 42%, var(--line));
    border-radius: 8px;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--light)), var(--surface));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.44),
      0 0 0 1px color-mix(in srgb, var(--light) 5%, transparent) inset;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -8px, 0) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .nav-links a {
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: color-mix(in srgb, var(--light) 90%, var(--muted));
    background: color-mix(in srgb, var(--dark) 68%, var(--surface));
    font-size: 0.9rem;
    text-align: left;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    border-color: color-mix(in srgb, var(--muted) 48%, var(--light));
    background: color-mix(in srgb, var(--muted) 18%, var(--dark));
    color: var(--light);
  }

  .hero {
    min-height: 92vh;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 11.5vw, 3.25rem);
    line-height: 0.92;
  }

  .hero-word {
    display: block;
  }

  .hero-line {
    font-size: 0.48em;
    white-space: nowrap;
  }

  .hero-line .hero-word {
    display: inline-block;
  }

  .hero-line .hero-accent {
    margin-right: 0.12em;
  }

  .hero-content {
    width: 100%;
  }

  .hero p {
    max-width: 310px;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 26px;
    width: calc(100% - 28px);
    padding: 78px 0;
  }

  .project-item {
    grid-template-columns: 42px 1fr 22px;
    gap: 14px;
    padding: 38px 0;
    align-items: start;
  }

  .project-category {
    margin-bottom: 9px;
  }

  .project-item h2 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .project-tech {
    grid-column: 2;
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .project-arrow {
    grid-column: 3;
    grid-row: 1;
    transform: translate(-6px, 2px);
  }

  .project-preview {
    display: none;
  }

  .project-modal-scroll {
    padding: 0;
  }

  .project-modal-content {
    padding: 82px 18px 34px;
  }

  .project-modal-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

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

  .project-modal-header {
    gap: 24px;
  }

  .project-modal-header h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .project-modal-actions {
    justify-content: flex-start;
  }

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

  .project-stack-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .project-carousel-button {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }

  .project-carousel-button-prev {
    left: 10px;
  }

  .project-carousel-button-next {
    right: 10px;
  }

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

  .project-carousel-dots {
    justify-content: flex-start;
  }

  .skills-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .skill-color-legend {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: min(230px, calc(100vw - 36px));
  }

  .skills-intro h2 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .skill-groups {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .skill-group {
    margin-top: 0;
    padding-top: 24px;
  }

  .skill-group:nth-child(2),
  .skill-group:nth-child(3),
  .skill-group:nth-child(4) {
    margin-top: 0;
  }

  .skill-group-heading {
    min-height: auto;
  }

  .skill-group h3 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  .skill-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
  }

  .skill-button {
    min-height: 72px;
    padding: 10px;
  }

  .skill-icon-frame {
    width: 42px;
    height: 42px;
  }

  .skill-icon-mask {
    width: 34px;
    height: 34px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .contact {
    align-content: center;
    place-items: initial;
  }

  .contact .section-label {
    position: static;
    justify-self: start;
  }

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

  .contact-links a {
    justify-content: center;
    min-width: 150px;
  }

  .contact h2 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }
}

@media (hover: none), (pointer: coarse) {
  .project-preview {
    display: none;
  }

  .skill-color-legend {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .skills-intro,
  .skill-group,
  .skill-button,
  .scroll-reveal,
  .hero-accent .hero-letter {
    opacity: 1;
    transform: none;
  }

  .falling-star {
    display: none;
  }
}
