:root {
  --text: #1a1a1a;
  --muted: #767676;
  --line: #e8e8e4;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 16px; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, .backlink a, footer a { border-bottom: 1px solid var(--line); }
p a:hover, .backlink a:hover, footer a:hover { border-color: var(--text); }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.name { font-size: 16px; letter-spacing: 0.01em; }
.comma { color: var(--muted); }
.top nav { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav a.lang { color: var(--text); border-bottom: 1px solid var(--line); }
.top nav a.lang:hover { border-color: var(--text); }

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

.intro { max-width: 620px; margin: 28px 0 56px; }
.intro p { font-size: 17px; line-height: 1.7; }

section h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 56px 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px 22px;
}
.card { display: block; }
.card img, .card-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f3f3f0;
  display: block;
}
.card-title { display: block; margin-top: 10px; font-weight: 500; font-size: 14px; }
.card-sub { display: block; font-size: 13px; color: var(--muted); }
.card:hover img { opacity: 0.92; }
.film-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  vertical-align: 1px;
}

.project { margin-top: 8px; }
.hero { width: 100%; max-height: 78vh; object-fit: contain; object-position: left; display: block; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 48px;
  margin: 36px 0 8px;
}
.project-text h1 { font-size: 24px; font-weight: 500; margin: 0 0 16px; }
.project-text p { margin: 0 0 14px; max-width: 60ch; }
.project-meta { border-left: 1px solid var(--line); padding-left: 24px; font-size: 13px; align-self: start; }
.meta-row { margin-bottom: 10px; display: block; }
.meta-label { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f3f3f0; }
.backlink { margin-top: 48px; font-size: 14px; }

.cv { max-width: 680px; margin-top: 16px; }
.cv h2 { font-size: 14px; font-weight: 500; margin: 36px 0 10px; letter-spacing: 0.04em; }
.cv p { margin: 0 0 6px; font-size: 14px; }

.contact-page { margin-top: 48px; }
.contact-page h1 { font-size: 24px; font-weight: 500; }
.portrait { width: 260px; max-width: 70vw; display: block; margin-bottom: 24px; }

a.zoom { display: block; }
a.zoom:hover img { opacity: 0.92; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: zoom-out;
}
.lightbox img { max-width: 96vw; max-height: 96vh; object-fit: contain; }

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .top { padding: 20px 18px; }
  main { padding: 0 18px 40px; }
}
