﻿/* --- Fonts (self-hosted, DSGVO-konform) ----------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* â”€â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --bg:           #F8FAFC;
  --surface:      #FFFFFF;
  --text:         #0F172A;
  --text-muted:   #475569;
  --border:       #E2E8F0;
  --primary:      #2563EB;
  --primary-hover:#1D4ED8;
  --primary-soft: #DBEAFE;
  --radius:       12px;
  --radius-sm:    8px;
  --max-width:    1100px;
  --gap:          clamp(1.5rem, 4vw, 3rem);
}

/* â”€â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* â”€â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* â”€â”€â”€ Site Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 1px;
}
.brand .accent { color: var(--primary); }
.brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: none;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.site-nav a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--primary-soft); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.lang-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--text); border-color: var(--primary); background: var(--primary-soft); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* â”€â”€â”€ Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}
.hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 18ch;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 0.75rem;
}
.hero-sub--sm {
  font-size: 0.95rem;
  margin-bottom: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg); border-color: #CBD5E1; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

/* â”€â”€â”€ Section common â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-header { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-sub { font-size: 1rem; color: var(--text-muted); }

/* â”€â”€â”€ Competency Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.competencies {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.comp-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.comp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.comp-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* â”€â”€â”€ Featured Projects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.projects-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--border);
}
.projects-section .section-header { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.project-card {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.project-card:last-child { margin-bottom: 0; }
.project-card--reversed { flex-direction: row-reverse; }

/* Media Panel */
.project-media {
  flex: 0 0 55%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
  min-height: 280px;
  position: relative;
}
.project-media video,
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-media img { min-height: 280px; }

/* Screenshot Gallery */
.screenshot-gallery { background: #1e293b; cursor: default; }
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}
.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
  transition: background 0.2s;
}
.gallery-btn:hover { background: rgba(0,0,0,0.75); }
.gallery-btn--prev { left: 0.5rem; }
.gallery-btn--next { right: 0.5rem; }
.gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-dot.active { background: #fff; }
.screenshot-gallery--contain { background: #f1f5f9; }
[data-theme="dark"] .screenshot-gallery--contain { background: #1e293b; }
.screenshot-gallery--contain .gallery-track img {
  object-fit: contain;
  background: transparent;
}

/* Info Panel */
.project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
  gap: 1rem;
}
.project-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.project-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  max-width: 46ch;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
}
.tag--primary {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

/* --- Project details (collapsible nerd section) ----- */
.project-details {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.project-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-details > summary::before {
  content: '▶';
  font-size: 0.65rem;
  transition: transform 0.2s;
}
.project-details[open] > summary::before {
  transform: rotate(90deg);
}
.project-details > summary::-webkit-details-marker { display: none; }
.project-details__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface);
}
.project-details__body p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.project-details__body strong {
  color: var(--text);
}
.stl-downloads {
  position: relative;
}
.stl-downloads summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.stl-downloads summary::-webkit-details-marker { display: none; }
.stl-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15,23,42,0.1);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  z-index: 10;
  overflow: hidden;
}
.stl-list a {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  white-space: nowrap;
}
.stl-list a:last-child { border-bottom: none; }
.stl-list a:hover { background: var(--primary-soft); color: var(--primary); }

/* â”€â”€â”€ More Projects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.more-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.more-section .section-title { margin-bottom: 2rem; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.more-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.more-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}
.more-card__media .gallery-track {
  height: 100%;
}
.more-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.more-card:hover .more-card__media img { transform: scale(1.03); }
.more-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.more-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.more-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* â”€â”€â”€ Workflow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.workflow-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.workflow-section .section-header { text-align: center; }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.workflow-step { text-align: center; }
.step-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-soft);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 22ch;
  margin-inline: auto;
}

/* â”€â”€â”€ Skills â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.skills-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}
.skills-section .section-title { margin-bottom: 2rem; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.skills-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skills-ref-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.15s;
}
.skills-ref-link:hover { opacity: 0.75; text-decoration: underline; }

/* â”€â”€â”€ About â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.about-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.about-inner { max-width: 680px; }
.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 1rem;
}
.about-text--lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1.25rem;
}

/* â”€â”€â”€ Contact â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.contact-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  text-align: center;
}
.contact-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.contact-btn { font-size: 1rem; padding: 0.85rem 2rem; }

/* â”€â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-weight: 700; font-size: 0.95rem; }
.footer-brand .accent { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-legal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.footer-legal-btn:hover { color: var(--text); }

/* â”€â”€â”€ Legal panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.legal-panel {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  animation: fadeIn 0.2s ease;
}
.legal-panel__inner { max-width: 780px; }
.legal-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}
.legal-panel p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.legal-panel a { color: var(--primary); }
.legal-panel a:hover { text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* â”€â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.modal--open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.75); }
.modal-inner {
  position: relative;
  z-index: 1;
  margin: auto;
  width: min(960px, 96vw);
  height: min(600px, 90vh);
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: inherit;
}
.modal-close:hover { background: rgba(0,0,0,0.85); }
#game-frame { width: 100%; height: 100%; border: none; }


/* ─── Dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0F172A;
  --surface:      #1E293B;
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --border:       #334155;
  --primary:      #3B82F6;
  --primary-hover:#2563EB;
  --primary-soft: rgba(59, 130, 246, 0.12);
}
[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.92);
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-btn:hover { color: var(--text); border-color: var(--primary); background: var(--primary-soft); }

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .workflow-step { text-align: left; }
  .step-text { max-width: 100%; margin-inline: 0; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    z-index: 99;
  }
  .site-nav.nav--open { display: flex; }
  .site-nav a { padding: 0.6rem 0.75rem; }
  .nav-toggle { display: flex; }

  .project-card,
  .project-card--reversed { flex-direction: column; }
  .project-media { flex: none; min-height: 240px; width: 100%; }
  .project-desc { max-width: 100%; }

  .comp-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-actions { flex-direction: column; align-items: center; }
}
