/* RKD Creative — static portfolio (2026) */
:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-elevated: #0f0f18;
  --surface: #14141f;
  --surface-hover: #1c1c2a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-muted: #9898a8;
  --accent: #7c6cff;
  --neon: #a855f7;
  --neon-glow: rgba(168, 85, 247, 0.55);
  --accent-soft: rgba(124, 108, 255, 0.15);
  --accent-glow: rgba(124, 108, 255, 0.35);
  --glass-bg: rgba(14, 14, 24, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 4.25rem;
  --gutter: 1.25rem;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(124, 108, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 22%, rgba(168, 85, 247, 0.1), transparent 52%),
    radial-gradient(ellipse 70% 50% at 50% 95%, rgba(56, 189, 248, 0.06), transparent 58%);
  animation: ambient-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, -1%, 0) scale(1.04);
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding-inline: 0;
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 9999;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.header-inner > nav[aria-label="Primary"] {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.nav-desktop {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-hover);
}

.menu-toggle {
  display: inline-flex;
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  body.nav-open {
    overflow: auto;
  }
  .nav-desktop {
    display: flex;
  }

  .nav-desktop a {
    font-size: 0.9rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 0;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-shell {
  position: relative;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.hero + .section {
  position: relative;
  z-index: 1;
  padding-top: 3.25rem;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: -5rem;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% -15%, rgba(168, 85, 247, 0.18), transparent 52%),
    radial-gradient(ellipse 60% 50% at 92% 15%, rgba(56, 189, 248, 0.08), transparent 48%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(124, 108, 255, 0.1), transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.hero-layout {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 2.5rem;
  }
}

.icon-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-content {
  max-width: 38rem;
}

@media (min-width: 960px) {
  .hero-content {
    max-width: none;
  }
}

.hero-title {
  font-weight: 650;
  letter-spacing: -0.045em;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  line-height: 1.05;
}

.hero-title-line {
  display: block;
}

.hero-title-line:first-child {
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--text) 88%, var(--text-muted));
}

.hero-headline-accent {
  margin-top: 0.15em;
  font-weight: 750;
  letter-spacing: -0.035em;
  background: linear-gradient(105deg, #f5f3ff 0%, var(--neon) 42%, #c4b5fd 68%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.25);
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.15));
}

.hero-panel {
  width: 100%;
}

@media (min-width: 960px) {
  .hero-panel {
    justify-self: stretch;
  }
}

.hero-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}

.hero-stats-row {
  grid-column: 1 / -1;
  display: contents;
}

.hero-label-short {
  display: none;
}

.hero-tile-label--stacked > .hero-label-short {
  display: none;
}

.hero-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  min-height: 6.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.hero-tile:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.hero-tile--lead {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(
    145deg,
    rgba(168, 85, 247, 0.14),
    rgba(14, 14, 24, 0.35)
  );
  border-color: color-mix(in srgb, var(--neon) 45%, var(--glass-border));
  box-shadow:
    0 16px 48px rgba(168, 85, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-tile--lead:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.15),
    0 16px 48px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-tile--stack {
  grid-column: 1 / -1;
  min-height: 0;
  justify-content: center;
  gap: 0.65rem;
}

.hero-tile-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-tile-label {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}

.hero-tile--metric {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  min-height: 7.25rem;
  padding: 1.5rem;
  gap: 0.5rem;
}

.hero-tile--metric .hero-tile-value {
  flex-shrink: 0;
  line-height: 1;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.hero-tile-label--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 2.65em;
  justify-content: flex-end;
  line-height: 1.3;
}

.hero-tile-label-line {
  display: block;
}

.hero-stack-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.stack-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text-muted) 50%, var(--glass-border));
  background: rgba(255, 255, 255, 0.06);
}

.hero-bento .stack-chip {
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.hero-bento .stack-chip:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 var(--glass-highlight);
}

.stack-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  color: inherit;
}

.stack-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.stack-name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  white-space: normal;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.hero h1.hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-cta .btn-primary {
  background: var(--neon);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.42);
}

.hero-cta .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 36px rgba(168, 85, 247, 0.5);
}

.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--header-h) + 0.85rem) 0 1.5rem;
  }

  .hero + .section {
    padding-top: 2.25rem;
  }

  .hero-layout {
    gap: 1rem;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero h1.hero-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-headline-accent {
    margin-top: 0.08em;
  }

  .hero-lead {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .hero-cta .btn-primary {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .hero-cta .btn-ghost {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
  }

  .hero-bento {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .hero-stats-row .hero-tile--stat {
    min-height: 3.35rem;
    padding: 0.55rem 0.4rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    border-radius: var(--radius);
  }

  .hero-stats-row .hero-tile--metric {
    min-height: 3.35rem;
    height: auto;
    padding: 0.55rem 0.4rem;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
  }

  .hero-stats-row .hero-tile--metric .hero-tile-value {
    font-size: 1.2rem;
  }

  .hero-stats-row .hero-tile-label--stacked {
    min-height: 0;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .hero-stats-row .hero-tile-label-line {
    display: none;
  }

  .hero-stats-row .hero-tile--lead {
    grid-column: auto;
    min-height: 3.35rem;
    padding: 0.55rem 0.4rem;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 var(--glass-highlight);
  }

  .hero-stats-row .hero-tile-value {
    font-size: 1.2rem;
    line-height: 1;
  }

  .hero-stats-row .hero-tile-label {
    font-size: 0.58rem;
    line-height: 1.25;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-tile--stack {
    padding: 0.65rem 0.75rem;
    gap: 0.45rem;
  }

  .hero-stack-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .stack-chip {
    padding: 0.32rem 0.4rem 0.32rem 0.32rem;
  }

  .stack-name {
    font-size: 0.62rem;
  }

  .hero-label-full {
    display: none;
  }

  .hero-label-short {
    display: block;
  }

  .hero-tile-label--stacked > .hero-label-short {
    display: block;
  }

  .hero-tile-label--stacked > .hero-label-full.hero-tile-label-line {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.section-header-line {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.section-header--inline .section-header-line {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.section-header--inline .section-header-line h2 {
  margin: 0;
  flex-shrink: 0;
}

.section-header--inline .section-header-line p {
  margin: 0;
  max-width: none;
  font-size: 1.05rem;
  flex: 1 1 14rem;
  min-width: 0;
}

.section-header--inline .section-header-line h2::after {
  content: "—";
  margin-left: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .section-header--inline .section-header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .section-header--inline .section-header-line h2::after {
    content: none;
  }
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.facts > div {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.facts > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.facts dt {
  margin: 0;
  color: #a3a3a3;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.facts dd {
  margin: 0;
  color: #fff;
  font-weight: 500;
  line-height: 1.45;
}

.facts dd a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.facts dd a:hover {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Skills */
.skill-groups {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .skill-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-group {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.skill-group:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.skill-group h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.skill-group .exp {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 0.35rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.skill-group:hover .tag {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.skill-group .tag:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, var(--accent-soft));
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.service-card:hover .service-icon {
  color: var(--accent);
  transform: scale(1.08);
}

.service-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Work */
.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 0.2rem;
}

.filter-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    height 0.45s var(--ease),
    opacity 0.25s var(--ease);
}

.filters.is-ready .filter-glider {
  opacity: 1;
}

.filter-btn {
  position: relative;
  z-index: 1;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.filter-btn.is-active {
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  transition: opacity 0.25s var(--ease);
}

.work-grid.is-updating {
  opacity: 0.72;
}

.work-card {
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
  font-family: inherit;
  color: inherit;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

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

@keyframes work-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.work-card--mount {
  animation: work-card-in 0.5s var(--ease) backwards;
}

.work-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.work-card:hover .work-thumb img {
  transform: scale(1.06);
}

.work-card:hover .work-type {
  letter-spacing: 0.08em;
}

.work-body {
  padding: 1rem 1.1rem 1.15rem;
}

.work-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  transition: letter-spacing 0.35s var(--ease);
}

.work-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  animation: lightbox-in 0.28s var(--ease);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  width: 100%;
  animation: lightbox-pop 0.35s var(--ease);
}

.lightbox-inner img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  text-align: center;
  margin-top: 1rem;
  color: #e4e4e7;
}

.lightbox-caption h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.lightbox-caption p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
}

/* Contact */
.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
}

.contact-panel > .btn-primary {
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-panel > .btn-primary {
    width: auto;
  }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.contact-item span:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 3.5rem;
}

.contact-item--email {
  align-items: flex-start;
}

.contact-item--email > span:first-child {
  padding-top: 0.35rem;
}

.contact-email-block {
  min-width: 0;
}

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-email-address {
  font-size: clamp(1.125rem, 2.8vw, 1.35rem);
  font-weight: 500;
  color: #fff;
  word-break: break-all;
  line-height: 1.35;
}

.contact-email-address:hover {
  color: var(--neon);
}

.contact-copy-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.contact-copy {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.copy-feedback {
  position: absolute;
  left: calc(100% + 0.45rem);
  top: 50%;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
  background: rgba(20, 20, 31, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s var(--ease);
}

.copy-feedback.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.copy-feedback.is-fading {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(4px);
}

@media (max-width: 639px) {
  .contact-item--email {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .contact-item--email > span:first-child {
    padding-top: 0;
  }

  .contact-email-row {
    align-items: flex-start;
  }

  .copy-feedback {
    left: auto;
    right: 0;
    top: calc(100% + 0.4rem);
    transform: translateY(4px);
  }

  .copy-feedback.is-visible {
    transform: translateY(0);
  }

  .copy-feedback.is-fading {
    transform: translateY(6px);
  }
}

.contact-email-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before {
    animation: none;
    will-change: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .filter-glider {
    transition: none;
  }
  .work-card--mount,
  .lightbox,
  .lightbox-inner {
    animation: none;
  }
  .work-card:hover,
  .service-card:hover,
  .skill-group:hover {
    transform: none;
  }
  .skill-group .tag:hover {
    transform: none;
  }
  .service-card:hover .service-icon {
    transform: none;
  }
}
