:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #141414;
  --muted: rgba(20, 20, 20, 0.65);
  --line: rgba(20, 20, 20, 0.12);
  --shadow: 0 18px 45px rgba(20, 20, 20, 0.08);
  --max: 1200px;
  --header-h: 64px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--ink);
  position: relative;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(20, 20, 20, 0.06), transparent 55%),
    radial-gradient(900px 360px at 10% 10%, rgba(20, 20, 20, 0.035), transparent 60%),
    radial-gradient(900px 360px at 90% 20%, rgba(20, 20, 20, 0.03), transparent 60%),
    var(--bg);
}

/* Loading screen */
body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
}

.loading-screen::before {
  content: none;
}

.loading-screen__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
}

.loading-screen__logo {
  width: min(420px, 80vw);
  height: auto;
  animation: loader-heartbeat 1.25s ease-in-out infinite;
  filter: drop-shadow(0 14px 26px rgba(20, 20, 20, 0.12));
  transform-origin: center;
}

@keyframes loader-heartbeat {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  22% {
    opacity: 0.55;
    transform: scale(0.985);
  }
  42% {
    opacity: 1;
    transform: scale(1.02);
  }
  60% {
    opacity: 0.72;
    transform: scale(0.995);
  }
  100% {
    opacity: 0.95;
    transform: scale(1);
  }
}

.loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

/* Page entrance (slide in from left after loader) */
.js .header-inner,
.js .hero-inner,
.js .social-sidebar {
  transition: transform 650ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 650ms ease;
}

.js body.is-loading .header-inner,
.js body.is-loading .hero-inner,
.js body.is-loading .social-sidebar {
  opacity: 0;
  transform: translateX(-34px);
}

.js body.is-loaded .header-inner,
.js body.is-loaded .hero-inner,
.js body.is-loaded .social-sidebar {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    display: none;
  }

  .js .header-inner,
  .js .hero-inner,
  .js .social-sidebar {
    transition: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -48px;
  z-index: 0;
  pointer-events: none;
  background: url("images/techdoodle.jpg") center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.50;
  transform: scale(1.04);
}

main {
  position: relative;
  z-index: 1;
}

/* Cursor glow (fine-pointer devices only) */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transform: translate3d(-999px, -999px, 0);
  will-change: transform, opacity;
  transition: opacity 180ms ease;
  background: radial-gradient(
    circle,
    rgba(20, 20, 20, 0.22) 0%,
    rgba(20, 20, 20, 0.14) 22%,
    rgba(20, 20, 20, 0.08) 42%,
    rgba(20, 20, 20, 0.04) 58%,
    rgba(20, 20, 20, 0) 74%
  );
  filter: blur(18px);
  mix-blend-mode: multiply;
}

.cursor-glow.is-visible {
  opacity: 1;
}

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

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-sidebar {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: rgba(20, 20, 20, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.social-btn:hover {
  text-decoration: none;
  transform: translateX(-2px) scale(1.03);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.22);
}

.social-btn:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
}

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

.social-btn::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px);
  transition: opacity 160ms ease, filter 160ms ease;
}

.social-btn:hover::after,
.social-btn:focus-visible::after {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .social-btn {
    transition: none;
  }

  .social-btn:hover {
    transform: none;
  }
}

@media (max-height: 520px) {
  .social-sidebar {
    display: none;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-right a {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  padding: 6px 2px;
}

.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.75;
  transition: transform 160ms ease;
}

.nav-right a.is-active,
.nav-right a[aria-current="page"] {
  text-decoration: none;
}

.nav-right a.is-active::after,
.nav-right a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-right .nav-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-right .nav-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.download-btn {
  margin-left: 18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(20, 20, 20, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  white-space: nowrap;
  display: inline-grid;
  place-items: center;
}

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

.download-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.16);
}

.download-btn:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
}

.nav-pill {
  padding: 6px 10px;
}

.icon-link {
  font-size: 16px;
  line-height: 1;
}

.brand {
  text-align: center;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.mobile-menu {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px 14px;
  display: grid;
  grid-auto-rows: min-content;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mobile-menu a.is-active,
.mobile-menu a[aria-current="page"] {
  border-color: rgba(20, 20, 20, 0.28);
  background: rgba(20, 20, 20, 0.05);
  font-weight: 700;
}

.mobile-menu-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
}

body.panel-open {
  overflow: hidden;
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 220;
}

body.panel-open .social-sidebar {
  opacity: 0;
  pointer-events: none;
}

.contact-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.contact-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  padding: 18px 18px 22px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: -22px 0 60px rgba(20, 20, 20, 0.18);
  backdrop-filter: blur(14px);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  overflow: auto;
}

.contact-panel.is-open .contact-panel__overlay {
  opacity: 1;
}

.contact-panel.is-open .contact-panel__drawer {
  transform: translateX(0);
  opacity: 1;
}

.contact-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contact-panel__title {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-panel__close {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.contact-panel__close:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.contact-panel__close:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
}

.contact-panel__subtitle {
  margin: 10px 0 0;
}

.contact-panel__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.contact-panel__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-panel__item:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.09);
}

.contact-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
}

.contact-panel__icon svg {
  width: 18px;
  height: 18px;
}

.contact-panel__label {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-panel__value {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel__overlay,
  .contact-panel__drawer,
  .contact-panel__item,
  .contact-panel__close {
    transition: none;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 18px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.05), rgba(20, 20, 20, 0.02)),
    radial-gradient(1000px 400px at 50% 10%, rgba(20, 20, 20, 0.06), transparent 60%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto -80px;
  height: 520px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(20, 20, 20, 0.08), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(20, 20, 20, 0.06), transparent 75%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.4;
  font-weight: 700;
  text-wrap: balance;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: center;
  hyphens: auto;
}

.typewriter {
  display: inline;
}

.typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: -0.12em;
  animation: caret-blink 900ms steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

.hero-actions {
  margin-top: 22px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(20, 20, 20, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.16);
}

.btn:focus-visible,
.menu-btn:focus-visible,
.nav-left a:focus-visible,
.nav-right a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.section {
  min-height: 100vh;
  padding: calc(52px + var(--header-h)) 18px 52px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Fade-in-on-scroll text reveal (JS adds .js to <html> and toggles .is-visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 520ms ease, transform 520ms ease, filter 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

#skills .section-inner {
  min-height: calc(100vh - (52px + var(--header-h)) - 52px);
  display: flex;
  flex-direction: column;
}

#skills .skill-list {
  flex: 1 1 auto;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.subhead {
  margin: 18px 0 10px;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.skill-item {
  display: grid;
  gap: 6px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(20, 20, 20, 0);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.skill-item > * {
  position: relative;
  z-index: 1;
}

.skill-item::before,
.skill-item::after {
  content: "";
  position: absolute;
  inset: -60px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.skill-item:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 20, 20, 0.22);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(20, 20, 20, 0.10);
}

.skill-item:hover::before,
.skill-item:hover::after {
  opacity: 1;
}

/* Individual skill hover themes */

/* Full-Stack: rotating "system" glow + faint grid */
.skill--fullstack::before {
  background: conic-gradient(
    from 90deg,
    rgba(20, 20, 20, 0) 0deg,
    rgba(20, 20, 20, 0.18) 60deg,
    rgba(20, 20, 20, 0) 140deg,
    rgba(20, 20, 20, 0.10) 220deg,
    rgba(20, 20, 20, 0) 360deg
  );
  filter: blur(18px);
  transform: rotate(0deg);
}

.skill--fullstack::after {
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(transparent 0 0),
    linear-gradient(to right, rgba(20, 20, 20, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  mask: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%);
}

.skill--fullstack:hover::before {
  animation: skill-rotate 1.2s linear infinite;
}

.skill--fullstack:hover::after {
  opacity: 1;
}

/* Programming: scanning "code" lines */
.skill--programming::before {
  inset: -30px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.00) 0px,
    rgba(20, 20, 20, 0.00) 10px,
    rgba(20, 20, 20, 0.07) 10px,
    rgba(20, 20, 20, 0.07) 11px
  );
  filter: blur(0.4px);
  transform: translateY(-14px);
}

.skill--programming:hover::before {
  animation: skill-scan 900ms linear infinite;
}

/* Web Dev: diagonal shine sweep */
.skill--webdev::before {
  background: linear-gradient(
    115deg,
    rgba(20, 20, 20, 0) 0%,
    rgba(20, 20, 20, 0.10) 35%,
    rgba(20, 20, 20, 0) 70%
  );
  transform: translateX(-60%);
  filter: blur(10px);
}

.skill--webdev:hover::before {
  animation: skill-sweep 780ms ease-out 1;
}

/* Databases: pulsing ring */
.skill--databases::before {
  inset: -12px;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(20, 20, 20, 0.22) 0%,
    rgba(20, 20, 20, 0.12) 28%,
    rgba(20, 20, 20, 0.00) 58%
  );
  filter: blur(10px);
  transform: scale(0.94);
}

.skill--databases:hover::before {
  animation: skill-pulse 920ms ease-in-out infinite;
}

.skill--databases::after {
  inset: -6px;
  background: radial-gradient(
    circle,
    rgba(20, 20, 20, 0) 58%,
    rgba(20, 20, 20, 0.22) 60%,
    rgba(20, 20, 20, 0) 63%
  );
  filter: blur(0.6px);
  transform: scale(0.86);
}

.skill--databases:hover::after {
  opacity: 1;
  animation: skill-ripple 1.15s ease-out infinite;
}

/* UI & Styling: subtle color wash + soft jitter */
.skill--ui::before {
  background: linear-gradient(
    45deg,
    rgba(20, 20, 20, 0.18) 0%,
    rgba(20, 20, 20, 0.06) 40%,
    rgba(20, 20, 20, 0.14) 70%,
    rgba(20, 20, 20, 0) 100%
  );
  background-size: 220% 220%;
  filter: blur(8px);
}

.skill--ui:hover::before {
  animation: skill-gradient 1.1s ease-in-out infinite;
}

.skill--ui::after {
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 20, 20, 0) 0%,
    rgba(20, 20, 20, 0.10) 45%,
    rgba(20, 20, 20, 0) 70%
  );
  transform: translateX(-70%);
  filter: blur(12px);
}

.skill--ui:hover::after {
  opacity: 1;
  animation: skill-uiShimmer 820ms ease-out infinite;
}

/* Deployment & APIs: flowing "signal" dots */
.skill--apis::before {
  inset: -24px;
  background: radial-gradient(circle at 80% 35%, rgba(20, 20, 20, 0.16), rgba(20, 20, 20, 0) 55%);
  filter: blur(14px);
}

.skill--apis::after {
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(20, 20, 20, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(20, 20, 20, 0.18) 0 2px, transparent 3px);
  background-size: 46px 46px, 58px 58px;
  background-position: 0 0, 18px 12px;
}

.skill--apis:hover::after {
  opacity: 1;
  animation: skill-dots 900ms linear infinite;
}

/* Networking: drifting nodes */
.skill--networking::before {
  inset: -18px;
  background:
    radial-gradient(circle at 20% 30%, rgba(20, 20, 20, 0.18) 0 10px, transparent 12px),
    radial-gradient(circle at 75% 25%, rgba(20, 20, 20, 0.10) 0 8px, transparent 10px),
    radial-gradient(circle at 55% 70%, rgba(20, 20, 20, 0.12) 0 9px, transparent 11px),
    radial-gradient(circle at 30% 80%, rgba(20, 20, 20, 0.08) 0 7px, transparent 9px);
  filter: blur(6px);
  transform: translate3d(0, 0, 0);
}

.skill--networking:hover::before {
  animation: skill-float 1.2s ease-in-out infinite;
}

/* Productivity: animated stripes like "organizing" */
.skill--productivity::before {
  inset: -28px;
  background: repeating-linear-gradient(
    135deg,
    rgba(20, 20, 20, 0.00) 0px,
    rgba(20, 20, 20, 0.00) 8px,
    rgba(20, 20, 20, 0.12) 8px,
    rgba(20, 20, 20, 0.12) 16px
  );
  background-size: 64px 64px;
  background-position: 0 0;
  filter: blur(6px);
}

.skill--productivity:hover::before {
  animation: skill-stripes 780ms linear infinite;
}

/* Creative: sparkly noise */
.skill--creative::before {
  inset: -18px;
  background:
    radial-gradient(circle at 18% 40%, rgba(20, 20, 20, 0.22) 0 2px, transparent 4px),
    radial-gradient(circle at 70% 35%, rgba(20, 20, 20, 0.18) 0 2px, transparent 4px),
    radial-gradient(circle at 35% 72%, rgba(20, 20, 20, 0.16) 0 2px, transparent 4px),
    radial-gradient(circle at 82% 78%, rgba(20, 20, 20, 0.14) 0 2px, transparent 4px),
    radial-gradient(circle at 52% 18%, rgba(20, 20, 20, 0.14) 0 2px, transparent 4px);
  filter: blur(2px);
  transform: translate3d(0, 0, 0);
}

.skill--creative:hover::before {
  animation: skill-sparkle 900ms steps(2, end) infinite;
}

.skill--creative::after {
  inset: -18px;
  background: radial-gradient(circle at 60% 30%, rgba(20, 20, 20, 0.14), rgba(20, 20, 20, 0) 60%);
  filter: blur(14px);
  transform: translate3d(-6px, 6px, 0);
}

.skill--creative:hover::after {
  opacity: 1;
  animation: skill-creativeDrift 1.1s ease-in-out infinite;
}

@keyframes skill-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes skill-scan {
  to {
    transform: translateY(14px);
  }
}

@keyframes skill-sweep {
  from {
    transform: translateX(-70%) rotate(0deg);
  }
  to {
    transform: translateX(70%) rotate(0deg);
  }
}

@keyframes skill-pulse {
  0%,
  100% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes skill-ripple {
  0% {
    opacity: 0.0;
    transform: scale(0.82);
  }
  20% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.0;
    transform: scale(1.06);
  }
}

@keyframes skill-gradient {
  0% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
  100% {
    background-position: 0% 40%;
  }
}

@keyframes skill-uiShimmer {
  from {
    transform: translateX(-70%);
  }
  to {
    transform: translateX(70%);
  }
}

@keyframes skill-dots {
  to {
    background-position: 46px 46px, 76px 58px;
  }
}

@keyframes skill-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -8px, 0);
  }
}

@keyframes skill-stripes {
  to {
    background-position: 64px 64px;
  }
}

@keyframes skill-sparkle {
  0% {
    opacity: 0.55;
    transform: translate3d(-4px, 0, 0);
  }
  50% {
    opacity: 1;
    transform: translate3d(6px, -2px, 0);
  }
  100% {
    opacity: 0.7;
    transform: translate3d(-2px, 2px, 0);
  }
}

@keyframes skill-creativeDrift {
  0%,
  100% {
    transform: translate3d(-6px, 6px, 0);
  }
  50% {
    transform: translate3d(8px, -6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-item,
  .skill-item:hover {
    transition: none;
    transform: none;
  }

  .skill-item::before,
  .skill-item::after {
    animation: none !important;
  }
}

@media (min-width: 860px) {
  .skill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1120px) {
  .skill-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skill-label {
  font-weight: 700;
}

.skill-value {
  color: var(--muted);
}

.contact-list {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.contact-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 18px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(900px 160px at 10% 0%, rgba(20, 20, 20, 0.04), transparent 55%),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.22);
}

.contact-row dt {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.75);
}

.contact-row dd {
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.22);
  padding-bottom: 2px;
}

.contact-link:hover {
  text-decoration: none;
  border-bottom-color: rgba(20, 20, 20, 0.4);
}

.contact-value {
  font-size: 16px;
  font-weight: 650;
  color: rgba(20, 20, 20, 0.82);
}

.contact-note {
  font-size: 13px;
  color: var(--muted);
}

.contact-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(20, 20, 20, 0.09);
  border-color: rgba(20, 20, 20, 0.2);
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-row {
    transition: none;
  }

  .contact-row:hover {
    transform: none;
  }
}

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

.section-divider {
  height: 1px;
  width: 100%;
  background: var(--line);
  margin: 14px 0 18px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
  gap: 18px 28px;
  align-items: start;
}

.about-title {
  margin: 0;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: 0.02em;
}

.about-description {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 45px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(10px);
  padding: 18px 18px;
}

.about-description p.muted {
  margin: 0;
  font-family: "Courier New", Courier, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

#about .section-inner {
  display: flex;
  flex-direction: column;
}

@media (max-width: 820px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

#about p.muted {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#projects .card .card-front > p.muted {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

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

.card {
  position: relative;
  cursor: pointer;
  perspective: 1200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 0 rgba(20, 20, 20, 0);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 3px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  position: relative;
  inset: auto;
  height: 100%;
  padding: 16px;
}

.card-front .card-links {
  margin-top: auto;
  padding-top: 14px;
}

.card-back {
  padding: 16px;
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.88);
  justify-content: center;
  gap: 10px;
}

.project-preview {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.card-back-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-back-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.card-hint {
  display: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  mix-blend-mode: overlay;
}

.card:hover,
.card:focus-within,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 20, 20, 0.18);
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
  animation: sword-shine 1250ms ease-out 1;
}

@keyframes sword-shine {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(120%) skewX(-20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card-inner {
    transition: none;
  }

  .card:hover,
  .card:focus-within {
    transform: none;
  }

  .card:hover::after,
  .card:focus-within::after {
    animation: none;
    opacity: 0;
  }
}

.card h3 {
  margin: 0 0 8px;
}

.card-meta {
  margin: 10px 0 6px;
}

.meta-label {
  color: var(--muted);
  font-size: 13px;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.card-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 14px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(20, 20, 20, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.link-btn::after {
  content: "\2192";
  font-weight: 700;
}

.link-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.16);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 16px 0 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 980px) {
  .nav-right {
    gap: 12px;
    font-size: 13px;
  }

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

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

  .download-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .header-inner {
    justify-content: space-between;
  }

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