/* ----- reset & base ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: hsl(201 100% 13%);
  --bg-alt: hsl(201 85% 17%);
  --bg-card: hsl(0 0% 10%);
  --bg-card-hover: hsl(0 0% 14%);
  --text: hsl(0 0% 100%);
  --text-secondary: hsl(0 0% 78%);
  --text-muted: hsl(240 4% 66%);
  --accent: hsl(0 0% 100%);
  --accent-foreground: hsl(0 0% 4%);
  --accent-soft: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(255, 255, 255, 0.18);
  --accent-line: rgba(255, 255, 255, 0.14);
  --border: hsl(0 0% 18%);
  --radius: 12px;
  --radius-lg: 24px;
  --space-sm: .75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;
  --max-w: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

::selection {
  background: var(--accent);
  color: #fff;
}

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

/* ----- utility ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ----- ambient bg ----- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
}
.bg-glow::before {
  width: 700px;
  height: 700px;
  background: rgba(255, 255, 255, 0.05);
  top: -20%;
  right: -15%;
  animation: aura 18s ease-in-out infinite alternate;
}
.bg-glow::after {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  bottom: -15%;
  left: -10%;
  animation: aura 22s ease-in-out infinite alternate-reverse;
}
@keyframes aura {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(70px,50px) scale(1.15); }
}

/* ----- nav ----- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(11, 11, 15, .75);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  color: var(--text);
}
.nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  font-size: .8125rem;
  color: var(--accent-foreground);
  transition: transform .25s;
}
.nav-brand:hover .nav-mark {
  transform: rotate(-8deg) scale(1.05);
}
.nav-label {
  font-family: 'Instrument Serif', serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
.nav-label span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.875rem;
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}

/* ----- section base ----- */
section { padding: var(--space-2xl) 0; }
.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-sm);
}
.section-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ----- about / intro ----- */
.intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.intro-portrait {
  position: sticky;
  top: 96px;
}
.intro-portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  transition: all .35s;
}
.intro-portrait img:hover {
  border-color: var(--accent-line);
  transform: scale(1.02);
}
.intro-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}
.intro-text p + p { margin-top: var(--space-md); }
.intro-text .emph { color: var(--text); font-weight: 500; }
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  transition: all .3s;
}
.stat-box:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: var(--accent-line);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1.15;
}
.stat-num-suffix {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  opacity: .6;
}
.stat-label {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ----- work / services ----- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-md);
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.work-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .3s;
}
.work-card:hover::after { opacity: 1; }
.work-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.work-icon { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.work-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.work-card p {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}
.work-tags span {
  font-size: .6875rem;
  font-weight: 500;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.work-tags span:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* ----- projects ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all .35s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.5);
}
.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.project-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background .25s;
}
.project-card:hover .project-icon-box { background: rgba(109, 109, 240, .16); }
.project-year {
  font-family: 'DM Mono', monospace;
  font-size: .6875rem;
  color: var(--text-muted);
}
.project-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -.01em;
}
.project-card p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: var(--space-sm);
}
.project-tags span {
  font-size: .6875rem;
  font-weight: 500;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: var(--space-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap .25s;
}
.project-link:hover { gap: .75rem; }

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-md);
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.5);
}
.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.blog-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card-hover) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}
.blog-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}
.blog-category {
  font-family: 'DM Mono', monospace;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.blog-date {
  font-family: 'DM Mono', monospace;
  font-size: .6875rem;
  color: var(--text-muted);
}
.blog-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -.01em;
  line-height: 1.35;
}
.blog-body p {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: var(--space-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap .25s;
}
.blog-card:hover .blog-readmore { gap: .75rem; }

/* ----- blog modal ----- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-lg) var(--space-md);
  overflow-y: auto;
}
.modal-overlay.open { display: block; }
.modal-content {
  max-width: 720px;
  margin: var(--space-xl) auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  animation: modalIn .35s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}
.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--accent-line);
}

/* ----- manage modal ----- */
.manage-modal {
  max-width: 600px;
}
.manage-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}
.manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}
.manage-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
}
.manage-item-info {
  flex: 1;
  min-width: 0;
}
.manage-item-info strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-item-id {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.manage-item-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.btn-sm {
  padding: .375rem .75rem;
  font-size: .8125rem;
}

/* ----- edit modal ----- */
.edit-modal {
  max-width: 600px;
}
.edit-modal .form-group {
  margin-bottom: var(--space-md);
}
.edit-modal label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .5rem;
}
.edit-modal input[type="text"],
.edit-modal textarea,
.edit-modal select {
  width: 100%;
  padding: .75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.edit-modal input[type="text"]:focus,
.edit-modal textarea:focus,
.edit-modal select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.edit-modal textarea {
  resize: vertical;
  min-height: 80px;
}
.edit-modal input[type="checkbox"] {
  margin-right: .5rem;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  background: var(--bg-alt);
}
.modal-category {
  font-family: 'DM Mono', monospace;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.modal-date {
  font-family: 'DM Mono', monospace;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.modal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.modal-body {
  color: var(--text-secondary);
  font-size: .9375rem;
  line-height: 1.85;
}
.modal-body p { margin-bottom: 1rem; }
.modal-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}
.modal-body code {
  background: var(--bg);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .8125rem;
  font-family: 'DM Mono', monospace;
  color: var(--text);
  border: 1px solid var(--border);
}
.modal-body pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  overflow-x: auto;
  font-family: 'DM Mono', monospace;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ========== PHOTO GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .35s;
  position: relative;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  padding: var(--space-sm);
  text-align: center;
  font-size: .8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.gallery-item.tall img { height: 320px; }

/* ----- contact ----- */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
}
.contact-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .125rem;
}
.contact-card p {
  font-size: .8125rem;
  color: var(--text-muted);
}

/* ----- footer ----- */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
footer p { font-size: .8125rem; color: var(--text-muted); }
.footer-links {
  display: flex;
  gap: var(--space-sm);
}
.footer-links a {
  font-size: .8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

/* ----- scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  width: 320px;
  max-height: calc(100vh - 64px);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: var(--space-md);
  overflow-y: auto;
  z-index: 90;
}
.admin-panel.open { display: block; }
.admin-toggle {
  position: fixed;
  top: 80px;
  right: var(--space-md);
  background: var(--accent);
  color: var(--accent-foreground);
  border: none;
  padding: .5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 95;
  font-weight: 600;
  font-size: .8125rem;
}
.admin-panel h3 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--accent);
}
.admin-section {
  margin-bottom: var(--space-lg);
}
.admin-section h4 {
  font-size: .875rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}
.form-group {
  margin-bottom: var(--space-sm);
}
.form-group label {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .5rem;
  color: var(--text);
  font-size: .8125rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  padding: .5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .75rem;
  color: var(--accent);
}
.tag-badge button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-size: .875rem;
}
.tag-input {
  background: none;
  border: none;
  color: var(--text);
  font-size: .8125rem;
  flex: 1;
  min-width: 80px;
}
.tag-input:focus { outline: none; }

/* ===== SEARCH & FILTER ===== */
.search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.search-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .875rem;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: var(--space-lg);
}
.filter-tag {
  padding: .375rem .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.filter-tag:hover, .filter-tag.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== AI BLOG GENERATOR ===== */
.ai-generator {
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}
.ai-generator h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ai-generator .ai-badge {
  background: linear-gradient(135deg, hsl(0 0% 100%), hsl(0 0% 70%));
  color: var(--accent-foreground);
  padding: .125rem .5rem;
  border-radius: 4px;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ----- responsive ----- */
@media (max-width: 860px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .intro-portrait {
    position: static;
    max-width: 180px;
    margin: 0 auto;
  }
  section { padding: var(--space-xl) 0; }
}
@media (max-width: 768px) {
  nav .container { height: 56px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm);
    background: rgba(11, 11, 15, .97);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .75rem .875rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .modal-content { padding: var(--space-md); margin: var(--space-md) auto; }
  .admin-panel { width: 100%; top: 56px; }
}
@media (max-width: 480px) {
  .intro-stats { grid-template-columns: 1fr; }
}
