:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b36;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #f59e3b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6vw;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; color: var(--accent); }
.nav nav { display: flex; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }
main { max-width: 980px; margin: 0 auto; padding: 0 6vw; }
.hero { padding: 12vh 0 8vh; }
.eyebrow { color: var(--accent); margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin: 4px 0; line-height: 1.05; }
.role { font-size: 1.4rem; color: var(--muted); margin: 0 0 18px; }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); font-weight: 600;
  transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #1a1205; border-color: var(--accent); }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 8px; font-size: 1.8rem; }
.hint { color: var(--muted); margin: 0 0 18px; font-size: 0.92rem; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.facts { list-style: none; margin: 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts span:first-child { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.9rem;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #1a1205; font-weight: 600; }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.skill { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-level { color: var(--muted); font-size: 0.85rem; }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 6px; width: 0; transition: width .6s ease; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-title { margin: 0; font-size: 1.15rem; }
.card-desc { margin: 0; color: var(--muted); flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-size: 0.78rem; padding: 3px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.card-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.empty { color: var(--muted); }

/* Gallery (CMS repeater with arrows) */
.viewer {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; max-height: 560px; width: 100%;
}
.viewer-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.viewer-caption strong { display: block; font-size: 1.1rem; }
.viewer-caption span { color: #d3d7df; font-size: 0.92rem; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 17, 21, 0.7); color: var(--text); font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.arrow:hover { background: var(--accent); color: #1a1205; border-color: var(--accent); }
.arrow.prev { left: 14px; }
.arrow.next { right: 14px; }
.counter {
  position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px;
  background: rgba(15, 17, 21, 0.7); font-size: 0.82rem; color: var(--muted);
}
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: 0 0 auto; width: 96px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--panel); cursor: pointer; opacity: 0.6;
  transition: opacity .15s, border-color .15s;
}
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--accent); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.footer { text-align: center; padding: 32px 6vw 48px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 0.85rem; }
  .arrow { width: 40px; height: 40px; }
}