:root {
  --bg-deep: #060a12;
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --border: rgba(56, 189, 248, 0.12);
  --border-hover: rgba(56, 189, 248, 0.35);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --purple: #a78bfa;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 4.5rem;
  --container: min(72rem, 92vw);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@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;
  }
  .card,
  .project-card,
  .process__step,
  .stack__group {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 23, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo-bracket { color: var(--accent); }

.nav__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--accent);
}
.nav__menu a:hover::after,
.nav__menu a:focus-visible::after { width: 100%; }
.nav__menu a.is-active {
  color: var(--accent);
}
.nav__menu a.is-active::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  min-height: 1.5em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 2rem;
}
.hero__availability .status-dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 8px #22c55e;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 2rem;
}
.hero__subtitle strong { color: var(--text); font-weight: 500; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--large { padding: 1rem 2rem; font-size: 1rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero__stat dt {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.hero__stat dd {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  perspective: 800px;
}

.wireframe-cube {
  position: relative;
  width: 140px;
  height: 140px;
  transform-style: preserve-3d;
  animation: cube-spin 20s linear infinite;
}
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to { transform: rotateX(-18deg) rotateY(360deg); }
}

.wireframe-cube__face {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid var(--accent);
  background: rgba(56, 189, 248, 0.04);
  box-shadow: inset 0 0 30px var(--accent-glow);
}
.wireframe-cube__face--front  { transform: translateZ(70px); }
.wireframe-cube__face--back   { transform: rotateY(180deg) translateZ(70px); }
.wireframe-cube__face--right  { transform: rotateY(90deg) translateZ(70px); }
.wireframe-cube__face--left   { transform: rotateY(-90deg) translateZ(70px); }
.wireframe-cube__face--top    { transform: rotateX(90deg) translateZ(70px); }
.wireframe-cube__face--bottom { transform: rotateX(-90deg) translateZ(70px); }

.orbit-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: orbit-pulse 4s ease-in-out infinite;
}
.orbit-ring--1 {
  width: 280px;
  height: 280px;
  border-color: rgba(56, 189, 248, 0.2);
  animation-delay: 0s;
}
.orbit-ring--2 {
  width: 360px;
  height: 360px;
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.15);
  animation-delay: -2s;
}
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

.section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}
.section__header { margin-bottom: 3rem; }
.section__header--center { text-align: center; }
.section__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section__desc {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}
.section__desc--left {
  margin-inline: 0;
  max-width: 40rem;
}

.about { background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.4) 50%, transparent); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  max-width: 56rem;
}
.about__lead {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.7;
}
.about__aside p { color: var(--text-muted); margin-bottom: 1.25rem; }
.about__highlights {
  list-style: none;
  display: grid;
  gap: 0.625rem;
}
.about__highlights li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text);
}
.about__highlights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.work { background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.35) 40%, transparent); }
.work__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  list-style: none;
}
.work__note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  line-height: 1.6;
}
.work__note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.work__note a:hover,
.work__note a:focus-visible {
  color: var(--text);
}

.project-card__cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-card__soon {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.5s var(--ease-out), opacity 0.5s, border-color 0.3s, box-shadow 0.3s;
}
.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-card__media {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
}
.project-card__media--unreal {
  background:
    linear-gradient(160deg, rgba(10, 14, 23, 0.2), rgba(10, 14, 23, 0.85)),
    radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(167, 139, 250, 0.25), transparent 45%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.project-card__media--photo {
  background:
    linear-gradient(160deg, rgba(10, 14, 23, 0.2), rgba(10, 14, 23, 0.85)),
    repeating-linear-gradient(
      45deg,
      rgba(56, 189, 248, 0.06) 0,
      rgba(56, 189, 248, 0.06) 2px,
      transparent 2px,
      transparent 12px
    ),
    linear-gradient(135deg, #134e4a 0%, #0f172a 100%);
}
.project-card__media--dev {
  background:
    linear-gradient(160deg, rgba(10, 14, 23, 0.2), rgba(10, 14, 23, 0.85)),
    linear-gradient(90deg, transparent 49%, rgba(56, 189, 248, 0.15) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(56, 189, 248, 0.1) 50%, transparent 51%),
    linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  background-size: auto, 24px 24px, 24px 24px, auto;
}
.project-card__badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-hover);
  border-radius: 0.25rem;
  color: var(--accent);
  backdrop-filter: blur(4px);
}

.project-card__body { padding: 2rem; }
.project-card__title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.project-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.project-card__psr {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.project-card__psr dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 0.25rem;
}
.project-card__psr dd {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.project-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  color: var(--text-muted);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  counter-reset: process;
}
.process__step {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.45s var(--ease-out), opacity 0.45s, border-color 0.3s;
}
.process__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.process__step:hover { border-color: var(--border-hover); }
.process__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0.4;
  font-size: 1.25rem;
  pointer-events: none;
}
.process__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.process__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.process__step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.stack__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.stack__group {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.stack__group.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stack__group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.stack__group-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stack__group-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.stack__group-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
}
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--accent-glow);
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 0.5rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.stack__marquee {
  overflow: hidden;
  margin-bottom: 3rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.stack__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stack__tag {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2rem;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.stack__tag:hover {
  color: var(--accent);
  border-color: var(--border-hover);
}

.terminal {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red { background: #ef4444; }
.terminal__dot--yellow { background: #eab308; }
.terminal__dot--green { background: #22c55e; }
.terminal__title {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.terminal__body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 12rem;
  overflow-x: auto;
}
.terminal__body .cmd { color: var(--accent); }
.terminal__body .ok { color: #22c55e; }
.terminal__body .dim { color: #64748b; }
.terminal__body .cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.contact {
  text-align: center;
  padding-bottom: 8rem;
}
.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact__calendar-mount {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__fallback {
  margin: 0;
}

.contact__calendar-mount :is(button, [role="button"]),
.contact__fallback .btn {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  border-radius: 0.5rem !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  border: none !important;
  box-shadow: 0 0 24px var(--accent-glow) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.contact__calendar-mount :is(button, [role="button"]):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--accent-glow) !important;
}
.contact__social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.contact__social-link:hover,
.contact__social-link:focus-visible {
  color: var(--accent);
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.06);
}
.contact__social-link svg { opacity: 0.85; }

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.site-footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--accent);
}
.site-footer__mono {
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-h) + 2rem);
  }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { text-align: left; }
  .hero__visual { order: -1; min-height: 240px; }
  .about__grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__step:not(:last-child)::after { display: none; }
  .stack__groups { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 14, 23, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__menu li { border-bottom: 1px solid var(--border); }
  .nav__menu a {
    display: block;
    padding: 1rem;
  }
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .expertise__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
}
