:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #16161a;
  --text-muted: #5a5a63;
  --accent: #d4542a;
  --border: #e5e3dd;
  --radius: 10px;
  --max-width: 1080px;
  color-scheme: light dark;
}

:root[data-theme="dark"] {
  --bg: #121214;
  --surface: #1a1a1d;
  --text: #f2f1ee;
  --text-muted: #a3a2a0;
  --accent: #e8734a;
  --border: #2c2c30;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  transition: background 0.2s ease, color 0.2s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 120px 0 90px;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
}

/* Sections */
section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 560px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.tab-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
}

.tab:hover {
  color: var(--text);
}

.tab-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Work grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-card-body {
  padding: 22px 24px;
}

.project-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card-clickable:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--text) 8%, transparent);
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.project-icon svg {
  width: 16px;
  height: 16px;
}

.project-card h3 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
}

.project-card p,
.project-desc {
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

.project-desc ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.project-desc li {
  margin: 2px 0;
}

.project-role {
  font-weight: 600;
  color: var(--text) !important;
}

.project-period {
  font-size: 0.85rem !important;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent) !important;
}

.project-link:hover {
  text-decoration: underline;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
}

.project-links .project-link-standalone {
  margin-top: 0;
  cursor: pointer;
}

/* Badges */
.badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-inval {
  background: color-mix(in srgb, var(--text-muted) 15%, transparent);
  color: var(--text-muted);
}

.badge-binnenkort {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.badge-award {
  background: #e8c547;
  color: #4a3b00;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
}

.skills {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
}

/* Contact */
.contact-tagline {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.contact-tagline .accent {
  color: var(--accent);
}

.contact-email {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 720px) {
  .nav { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { width: 140px; }
}
