:root {
  --bg: #0b0c10;
  --card: #12141b;
  --text: #e8eaf0;
  --muted: #a7adbb;
  --line: rgba(255,255,255,0.10);
  --btn: rgba(255,255,255,0.14);
  --btn2: rgba(255,255,255,0.07);
  --radius: 18px;
  --max: 1040px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 20% 0%, rgba(120,160,255,0.10), transparent 60%),
              radial-gradient(900px 600px at 80% 10%, rgba(255,180,120,0.08), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
  background-size: 120% 120%, 115% 115%, auto;
  animation: ambient-pan 42s ease-in-out infinite alternate;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 26px; }

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
}

.brand h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: 0.2px; }
.brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.subtitle { margin: 0 0 8px; color: var(--muted); }
.meta { margin: 0; color: var(--muted); font-size: 14px; }
.dot { margin: 0 8px; opacity: 0.6; }

.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn.secondary { background: var(--btn2); box-shadow: none; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }

.hero {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.hero h2 { margin: 0 0 12px; font-size: 24px; }
.hero p { margin: 0 0 18px; color: var(--muted); max-width: 72ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hint { margin-top: 12px; font-size: 13px; opacity: 0.9; }
code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line); }

.section { margin-top: 44px; }
.section-title h3 { margin: 0 0 8px; font-size: 20px; }
.section-title p { margin: 0 0 20px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  grid-column: span 6;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card h4 { margin: 0; font-size: 16px; }
.project-media {
  display: block;
  margin: 14px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  aspect-ratio: 16 / 9;
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 220ms ease;
}
.project-media-wyst img { object-position: center 22%; }
.project-media-history img { object-position: center 12%; }
.project-media-nfc img { object-position: center 18%; }
.project-media:hover { text-decoration: none; }
.project-media:hover img { transform: scale(1.02); }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.desc { margin: 0 0 12px; color: var(--muted); }
.bullets { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.bullets li { margin-bottom: 6px; }
.links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.links a { text-decoration: underline; text-underline-offset: 3px; }
.links a[aria-disabled="true"] { opacity: 0.5; pointer-events: none; text-decoration: none; }

.stack { display: grid; gap: 16px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.row p { margin: 6px 0 0; }
.muted { color: var(--muted); margin: 0; }
.pill {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.skills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.skill {
  grid-column: span 6;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.skill h5 { margin: 0 0 6px; font-size: 14px; }
.skill p { margin: 0; color: var(--muted); }

.contact {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

.footer { margin: 36px 0 10px; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .wrap { padding: 22px 16px; }
  .header { flex-direction: column; }
  .brand-logo { width: 40px; height: 40px; }
  .hero { padding: 22px; }
  .section { margin-top: 34px; }
  .row { align-items: flex-start; flex-direction: column; }
  .card { grid-column: span 12; }
  .skill { grid-column: span 12; }
  .project-media { aspect-ratio: 4 / 3; }
}


@keyframes ambient-pan {
  from { background-position: 0% 0%, 100% 0%, 0 0; }
  to { background-position: 8% 6%, 92% 8%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
