:root {
  --bg: #0a0f17;
  --bg-2: #101722;
  --panel: rgba(18, 24, 36, 0.9);
  --panel-soft: rgba(14, 19, 30, 0.84);
  --line: rgba(122, 255, 180, 0.1);
  --text: #f4f8ff;
  --muted: #9ca8bb;
  --accent: #79ffb3;
  --accent-2: #39d98a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 22%, rgba(73, 179, 255, 0.13), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(121, 255, 179, 0.08), transparent 18%),
    radial-gradient(circle at 86% 70%, rgba(121, 255, 179, 0.09), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a,
button {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(121, 255, 179, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 255, 179, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(17, 20, 28, 0.82);
  border-bottom: 1px solid rgba(121, 255, 179, 0.06);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

.brand-mark {
  color: var(--accent);
}

.nav-toggle,
.mobile-menu,
.nav-toggle-bar {
  display: none !important;
}

.nav-toggle {
  appearance: none;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.nav-toggle-bar {
  display: none;
}

.mobile-menu {
  margin-top: 0.9rem;
  padding: 0.6rem;
  border: 1px solid rgba(121, 255, 179, 0.08);
  border-radius: 20px;
  background: rgba(13, 18, 28, 0.96);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.5rem;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
}

.mobile-menu-link {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.mobile-menu-resume {
  color: #06110c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(57, 217, 138, 0.18);
}

nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid rgba(121, 255, 179, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
}

.nav-links a,
.resume-btn,
.btn,
.see-more-btn,
.project-links a {
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a {
  display: inline-flex;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  background: rgba(121, 255, 179, 0.08);
  color: var(--text);
}

.resume-btn,
.btn,
.see-more-btn,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.resume-btn,
.btn-primary,
.see-more-btn,
.project-links a {
  color: #06110c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(57, 217, 138, 0.2);
}

.resume-btn {
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
}

.resume-btn:hover,
.btn:hover,
.see-more-btn:hover,
.project-links a:hover {
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 7rem;
}

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

.project-card,
.info-card,
.resume-panel,
.contact-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.project-card::before,
.info-card::before,
.resume-panel::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(121, 255, 179, 0.025);
}

.section-tag,
.mini-label,
.panel-title {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.3rem, 9vw, 6.4rem);
  max-width: 10ch;
}

.hero-terminal {
  margin: 0 0 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-right: 2px solid rgba(121, 255, 179, 0.85);
  padding-right: 0.2rem;
  min-height: 1.4em;
  animation: blink 0.8s step-end infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.btn,
.see-more-btn,
.project-links a {
  padding: 0.92rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  border: 1px solid rgba(121, 255, 179, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid rgba(121, 255, 179, 0.08);
  font-family: "IBM Plex Mono", monospace;
}

.terminal-block p {
  margin: 0;
  color: #dbf7e7;
}

.terminal-block p + p {
  margin-top: 0.7rem;
}

.terminal-block span {
  color: var(--accent);
  margin-right: 0.5rem;
}

.section {
  padding: 3.6rem 0 1.4rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-card h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
}

.projects-grid,
.about-grid,
.resume-grid {
  display: grid;
  gap: 1.35rem;
}

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

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

.project-card,
.info-card,
.resume-panel {
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card-inner {
  padding: 1.3rem;
}

.project-cover {
  margin: -1.3rem -1.3rem 1.2rem;
  min-height: 210px;
  border-bottom: 1px solid rgba(121, 255, 179, 0.08);
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

.project-card:hover,
.info-card:hover,
.resume-panel:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 255, 179, 0.2);
}

.project-card.featured {
  box-shadow: 0 0 0 1px rgba(121, 255, 179, 0.05), 0 28px 70px rgba(0, 0, 0, 0.34);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.project-number,
.project-type {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.project-number {
  color: var(--accent);
}

.project-type {
  color: var(--muted);
}

.project-card h3,
.resume-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.project-card p,
.info-card p,
.resume-panel p,
.bullet-list,
.project-detail,
.preview-content p {
  margin: 0;
  color: var(--muted);
}

.project-tags,
.skill-pills,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-tags {
  margin-top: 1rem;
}

.project-tags span,
.skill-pills span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: #e7fff2;
  border: 1px solid rgba(121, 255, 179, 0.1);
  background: rgba(121, 255, 179, 0.05);
}

.project-preview {
  margin-top: 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(121, 255, 179, 0.08);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.preview-window {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem;
  background: rgba(8, 10, 16, 0.65);
  border-bottom: 1px solid rgba(121, 255, 179, 0.06);
}

.preview-window span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(121, 255, 179, 0.26);
}

.preview-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.3rem;
}

.preview-content strong {
  font-size: 1rem;
}

.preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 2.8rem 1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 16, 0.3) 30%, rgba(7, 10, 16, 0.92) 100%);
}

.project-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.preview-drone { background: linear-gradient(135deg, rgba(92, 187, 255, 0.28), transparent), linear-gradient(180deg, #162334, #0e121a); }
.preview-ledgefy { background: linear-gradient(135deg, rgba(121, 255, 179, 0.24), transparent), linear-gradient(180deg, #15251e, #10131b); }
.preview-fitz { background: linear-gradient(135deg, rgba(92, 187, 255, 0.26), transparent), linear-gradient(180deg, #182638, #10131b); }
.preview-unreal { background: linear-gradient(135deg, rgba(121, 255, 179, 0.24), transparent), linear-gradient(180deg, #14271f, #10131b); }
.preview-fitness { background: linear-gradient(135deg, rgba(121, 255, 179, 0.24), transparent), linear-gradient(180deg, #16251d, #10131b); }
.preview-urban { background: #10131b; }
.preview-froggy { background: linear-gradient(135deg, rgba(121, 255, 179, 0.24), transparent), linear-gradient(180deg, #132419, #10131b); }
.preview-doom { background: linear-gradient(135deg, rgba(92, 187, 255, 0.22), transparent), linear-gradient(180deg, #142030, #10131b); }
.preview-snake { background: linear-gradient(135deg, rgba(121, 255, 179, 0.22), transparent), linear-gradient(180deg, #14261e, #10131b); }
.preview-client { background: linear-gradient(135deg, rgba(92, 187, 255, 0.24), transparent), linear-gradient(180deg, #142132, #10131b); }
.preview-csv { background: linear-gradient(135deg, rgba(121, 255, 179, 0.24), transparent), linear-gradient(180deg, #142227, #10131b); }

.project-detail {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.project-links {
  margin-top: 1rem;
}

.project-open-link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: #06110c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(57, 217, 138, 0.18);
}

.project-open-link:hover {
  transform: translateY(-1px);
}

.project-page {
  min-height: calc(100vh - 78px);
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.project-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 1.5rem;
  align-items: stretch;
}

.project-page-copy {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.project-page-layout > * {
  min-width: 0;
}

.project-page-copy h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.project-page-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.project-page .project-preview {
  min-height: min(60vh, 560px);
  margin-top: 0;
}

.project-gallery {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.project-slider {
  align-self: start;
}

.project-shot {
  margin: 0;
  border: 1px solid rgba(121, 255, 179, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.96) 0%, rgba(10, 14, 22, 0.98) 100%);
  box-shadow: var(--shadow);
}

.project-shot-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  background: #0b1018;
}

.project-slider-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  max-height: 560px;
  background: #0b1018;
  overflow: hidden;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(121, 255, 179, 0.18);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.82);
  color: var(--text);
  cursor: pointer;
  z-index: 1;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slider-arrow:hover {
  background: rgba(121, 255, 179, 0.12);
  border-color: rgba(121, 255, 179, 0.35);
}

.slider-arrow span {
  display: block;
  color: #f4f8ff;
  transform: translateY(-1px);
}

.slider-arrow-left {
  left: 1rem;
}

.slider-arrow-right {
  right: 1rem;
}

.project-shot figcaption {
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid rgba(121, 255, 179, 0.08);
}

.project-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-shot figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.project-slider-meta strong {
  margin-bottom: 0;
}

.project-slider-meta span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

.project-shot figcaption p {
  margin: 0;
  color: var(--muted);
}

.see-more-btn {
  margin: 1.8rem auto 0;
}

.bullet-list {
  padding-left: 1.15rem;
}

.bullet-list li + li {
  margin-top: 0.35rem;
}

.info-card,
.resume-panel,
.contact-card {
  padding: 1.3rem;
}

.timeline-item + .timeline-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(121, 255, 179, 0.06);
}

.contact-section {
  padding-top: 4.2rem;
  padding-bottom: 5rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 2rem;
  min-height: 260px;
}

.contact-copy {
  max-width: 34rem;
}

.contact-copy h2 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.contact-copy p:last-child {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.1rem 1.2rem;
  min-width: 280px;
  border: 1px solid rgba(121, 255, 179, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
}

.contact-details span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(121, 255, 179, 0.08);
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

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

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media (max-width: 920px) {
  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .nav,
  .projects-grid,
  .about-grid,
  .resume-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hero-name {
    width: 100%;
  }

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

  .project-page {
    padding-top: 3rem;
  }

  .project-page-copy {
    padding: 1.35rem;
  }

  .project-page .project-preview,
  .project-gallery {
    margin-top: 0;
  }

  nav {
    width: 100%;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-details {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    gap: 0.8rem;
    grid-template-columns: 1fr auto;
    position: relative;
    padding: 0.85rem 0 1rem;
  }

  .brand {
    justify-content: flex-start;
    width: auto;
  }

  nav,
  .resume-btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    margin: 0;
    overflow: visible;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
  }

  .nav-toggle-bar {
    display: block !important;
    width: 24px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: var(--accent);
  }

  .nav-toggle:hover {
    transform: translateY(-1px);
    opacity: 0.9;
  }

  .nav-toggle[aria-expanded="true"] {
    opacity: 0.9;
  }

  .mobile-menu {
    position: absolute;
    display: none !important;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 60;
  }

  .hero h1 {
    font-size: 2.7rem;
    max-width: 100%;
  }

  .hero-terminal {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 1.4rem;
    padding-bottom: 2.4rem;
  }

  .hero-name {
    align-items: stretch;
    text-align: left;
  }

  .hero-terminal {
    align-self: flex-start;
  }

  .hero-actions {
    margin-top: 1.15rem;
    width: 100%;
    justify-content: stretch;
  }

  .section {
    padding: 2.8rem 0 1rem;
  }

  .section-heading {
    margin-bottom: 1.4rem;
  }

  .project-card-inner,
  .info-card,
  .resume-panel,
  .contact-card,
  .project-page-copy {
    padding: 1.05rem;
  }

  .project-cover {
    margin: -1.05rem -1.05rem 1rem;
    min-height: 180px;
  }

  .project-cover-image {
    min-height: 180px;
  }

  .project-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .project-card h3,
  .resume-panel h3 {
    font-size: 1.05rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .project-open-link {
    width: 100%;
    margin-top: 1rem;
    min-height: 48px;
  }

  .project-page {
    padding-top: 2.2rem;
    padding-bottom: 1.25rem;
  }

  .project-page-copy h2 {
    font-size: 2.4rem;
  }

  .project-page-copy p,
  .project-detail {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .project-tags,
  .skill-pills,
  .project-links {
    gap: 0.5rem;
  }

  .btn,
  .see-more-btn,
  .project-links a {
    width: 100%;
  }

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

  .project-links a,
  .btn,
  .see-more-btn {
    min-height: 48px;
  }

  .see-more-btn {
    margin-top: 1.4rem;
  }

  .project-shot figcaption {
    padding: 0.9rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  .project-slider-frame {
    min-height: 220px;
  }

  .slider-arrow-left {
    left: 0.65rem;
  }

  .slider-arrow-right {
    right: 0.65rem;
  }

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

  .contact-copy h2 {
    font-size: 2.5rem;
  }

  .contact-copy p:last-child {
    font-size: 1rem;
    line-height: 1.7;
  }

  .contact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .contact-card {
    gap: 1.2rem;
    min-height: 0;
  }

  .contact-details {
    padding: 1rem;
  }

  .inventory-drone-page .drone-project-page {
    padding-top: 1.6rem;
    padding-bottom: 1rem;
  }

  .inventory-drone-page .back-link {
    margin-bottom: 1rem;
    font-size: 0.84rem;
  }

  .inventory-drone-page .project-page-layout {
    gap: 1rem;
  }

  .inventory-drone-page .project-page-copy {
    padding: 1rem;
  }

  .inventory-drone-page .project-page-copy h2 {
    font-size: 2.1rem;
    line-height: 1.02;
    margin: 0.65rem 0 0.9rem;
  }

  .inventory-drone-page .project-tags {
    margin-top: 0.85rem;
  }

  .inventory-drone-page .project-detail {
    margin-top: 0.85rem;
  }

  .inventory-drone-page .project-links {
    margin-top: 0.9rem;
  }

  .inventory-drone-page .project-gallery {
    gap: 0.8rem;
  }

  .inventory-drone-page .project-shot {
    border-radius: 16px;
  }

  .inventory-drone-page .project-slider-frame {
    min-height: 200px;
    border-bottom: 1px solid rgba(121, 255, 179, 0.08);
  }

  .inventory-drone-page .slider-arrow {
    width: 2.4rem;
    height: 2.4rem;
    top: auto;
    bottom: 0.8rem;
    transform: none;
    background: rgba(10, 14, 22, 0.92);
  }

  .inventory-drone-page .slider-arrow-left {
    left: 0.8rem;
  }

  .inventory-drone-page .slider-arrow-right {
    right: 0.8rem;
  }

  .inventory-drone-page .project-shot figcaption {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .inventory-drone-page .project-slider-meta {
    gap: 0.45rem;
  }

  .inventory-drone-page .project-slider-meta strong {
    font-size: 0.95rem;
  }

  .inventory-drone-page .project-shot figcaption p {
    font-size: 0.92rem;
    line-height: 1.6;
    padding-right: 0.2rem;
  }

  .home-page .hero {
    padding-top: 1.8rem;
    padding-bottom: 3.2rem;
    min-height: auto;
  }

  .home-page .hero-name {
    padding: 0.55rem 0 0;
    align-items: center;
    text-align: center;
  }

  .home-page .hero-terminal {
    margin-bottom: 0.95rem;
    font-size: 0.9rem;
    align-self: center;
  }

  .home-page .hero h1 {
    font-size: 2.8rem;
    line-height: 0.96;
    max-width: 9.5ch;
  }

  .home-page .hero-actions {
    gap: 0.7rem;
    margin-top: 1.35rem;
  }

  .home-page .section {
    padding-top: 3.1rem;
    padding-bottom: 0.9rem;
  }

  .home-page .section-heading h2 {
    font-size: 1.7rem;
  }

  .home-page .projects-grid,
  .home-page .about-grid,
  .home-page .resume-grid {
    gap: 0.9rem;
  }

  .home-page .project-card-inner {
    padding: 0.95rem;
  }

  .home-page .project-cover {
    margin: -0.95rem -0.95rem 0.9rem;
    min-height: 172px;
  }

  .home-page .project-cover-image {
    min-height: 172px;
  }

  .home-page .preview-overlay {
    padding: 2.2rem 0.9rem 0.85rem;
  }

  .home-page .project-card h3 {
    font-size: 1rem;
  }

  .home-page .project-card p {
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .home-page .project-tags {
    margin-top: 0.8rem;
  }

  .home-page .project-open-link {
    margin-top: 0.9rem;
  }

  .home-page .info-card,
  .home-page .resume-panel {
    padding: 1rem;
  }

  .home-page .contact-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .home-page .contact-card {
    padding: 1.1rem;
    gap: 1rem;
  }

  .home-page .contact-copy h2 {
    font-size: 2.1rem;
  }

  .home-page .contact-details a,
  .home-page .contact-details span {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .nav {
    padding: 0.75rem 0;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero-terminal {
    font-size: 0.78rem;
  }

  .section-tag,
  .mini-label,
  .panel-title {
    font-size: 0.72rem;
  }

  .project-page-copy h2 {
    font-size: 2rem;
  }

  .section-heading h2,
  .contact-card h2 {
    font-size: 1.75rem;
  }

  .project-card-inner,
  .info-card,
  .resume-panel,
  .contact-card,
  .project-page-copy {
    padding: 0.9rem;
  }

  .project-cover {
    margin: -0.9rem -0.9rem 0.9rem;
    min-height: 165px;
  }

  .project-cover-image {
    min-height: 165px;
  }

  .project-slider-frame {
    min-height: 180px;
  }

  .slider-arrow {
    width: 2.35rem;
    height: 2.35rem;
  }

  .project-tags span,
  .skill-pills span {
    font-size: 0.74rem;
  }

  .footer-links {
    gap: 0.75rem;
  }

  .inventory-drone-page .drone-project-page {
    padding-top: 1.1rem;
  }

  .inventory-drone-page .project-page-copy {
    padding: 0.9rem;
  }

  .inventory-drone-page .project-page-copy h2 {
    font-size: 1.85rem;
  }

  .inventory-drone-page .project-page-copy p,
  .inventory-drone-page .project-detail {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .inventory-drone-page .project-slider-frame {
    min-height: 176px;
  }

  .inventory-drone-page .slider-arrow {
    width: 2.15rem;
    height: 2.15rem;
    bottom: 0.65rem;
  }

  .inventory-drone-page .project-shot figcaption {
    padding: 0.8rem 0.85rem 0.9rem;
  }

  .home-page .hero {
    padding-top: 1.4rem;
    padding-bottom: 2.5rem;
  }

  .home-page .hero h1 {
    font-size: 2.35rem;
    max-width: 8.75ch;
  }

  .home-page .hero-terminal {
    font-size: 0.82rem;
  }

  .home-page .section {
    padding-top: 2.7rem;
  }

  .home-page .section-heading h2 {
    font-size: 1.5rem;
  }

  .home-page .project-card-inner,
  .home-page .info-card,
  .home-page .resume-panel,
  .home-page .contact-card {
    padding: 0.85rem;
  }

  .home-page .project-cover {
    margin: -0.85rem -0.85rem 0.8rem;
    min-height: 160px;
  }

  .home-page .project-cover-image {
    min-height: 160px;
  }

  .home-page .preview-overlay {
    padding: 2rem 0.8rem 0.75rem;
  }

  .home-page .project-card p,
  .home-page .contact-copy p:last-child {
    font-size: 0.9rem;
  }

  .home-page .contact-copy h2 {
    font-size: 1.85rem;
  }

  .home-page .contact-details {
    padding: 0.85rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
  .mobile-menu.is-open {
    display: grid !important;
  }
