:root {
  --bg: #0b0b0d;
  --bg-alt: #111114;
  --surface: #17171b;
  --surface-2: #1e1e23;
  --border: #2a2a30;
  --text: #f4f3ef;
  --text-dim: #a8a7ae;
  --text-faint: #6f6e76;
  --accent: #fd4f0d;
  --accent-dim: #c53e08;
  --radius: 14px;
  --max-width: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand-dot { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 64px;
  position: relative;
  z-index: 2;
}
.hero-inner { max-width: 760px; }

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

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
}
.hero-title-accent { color: var(--text-dim); }

.hero-lede {
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #0b0b0d;
}
.btn-primary:hover { background: #ff6a2e; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.hero-tags {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-tags span {
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.section-alt { background: var(--bg-alt); }
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  max-width: 640px;
  margin-bottom: 44px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
}
.about-text p {
  color: var(--text-dim);
  margin: 0 0 18px;
}
.about-text p:first-of-type { color: var(--text); font-size: 1.05rem; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.fact-value { font-size: 0.95rem; font-weight: 500; }

/* ---------- Projects ---------- */
.project-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
}
.project-media {
  background: #000;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-video { width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.project-body { padding: 32px 36px 32px 0; }
.project-feature .project-body { padding: 32px; }

.project-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.project-desc {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0 0 16px;
}
.project-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-meta li {
  font-size: 0.85rem;
  color: var(--text-faint);
  padding-left: 16px;
  position: relative;
}
.project-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.project-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.project-links a:hover { text-decoration: underline; }

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.project-card-wide { grid-column: span 2; }

.project-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Figma gallery */
.figma-gallery {
  margin: 18px 0;
  border-radius: 10px;
  overflow: hidden;
}
.figma-placeholder {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  color: var(--text-faint);
}
.figma-placeholder p { margin: 4px 0; font-size: 0.88rem; }
.figma-placeholder-sub code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Poster gallery */
.poster-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.poster-gallery-tall { grid-template-columns: repeat(2, 1fr); }
.poster-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  aspect-ratio: 3 / 4.3;
}
.poster-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.poster-item:hover img { transform: scale(1.05); }

/* Video embed placeholder */
.video-embed {
  margin: 18px 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
}
.video-placeholder span { font-size: 1.6rem; color: var(--accent); }
.video-placeholder p { font-size: 0.82rem; margin: 0; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.skill-group h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.skill-group ul { list-style: none; margin: 0; padding: 0; }
.skill-group li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.skill-group li:first-child { border-top: none; }

/* ---------- Kontakt ---------- */
.kontakt-inner { text-align: center; }
.kontakt-inner .section-title { margin: 0 auto 12px; }
.kontakt-lede {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 36px;
}
.kontakt-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.kontakt-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  transition: border-color 0.2s ease;
}
.kontakt-link:hover { border-color: var(--accent); }
.kontakt-link-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.kontakt-link-value { font-size: 1.02rem; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 24px 48px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .project-body { padding: 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-wide { grid-column: span 1; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 20px 48px; }
  .section { padding: 56px 0; }
  .poster-gallery { grid-template-columns: repeat(2, 1fr); }
  .poster-gallery-tall { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .kontakt-link { min-width: 0; width: 100%; }
}
