:root {
  --bg: #fff;
  --text: #000;
  --muted: #757575;
  --line: #e8e6e6;
  --dark: #000;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 15px/1.8 Poppins, sans-serif;
}

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; }

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: var(--bg);
}

.logo img { width: 150px; height: auto; }

.site-nav > ul {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li { position: relative; }

.site-nav a, .nav-label {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover, .site-nav a.active, .nav-label:hover { color: var(--muted); }

.site-nav .sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 270px;
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.site-nav .sub a { font-weight: 200; letter-spacing: 0.05em; }

.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; }

.nav-toggle, .nav-button { display: none; }

@media (max-width: 900px) {
  .nav-button {
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
  }
  .nav-button span, .nav-button span::before, .nav-button span::after {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2px;
    background: var(--text);
    content: "";
  }
  .nav-button span { top: 15px; }
  .nav-button span::before { left: 0; top: -8px; }
  .nav-button span::after { left: 0; top: 8px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; gap: 8px; }
  .site-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
}

/* Home */

.hero {
  position: relative;
  height: calc(100vh - 110px);
  min-height: 420px;
  overflow: hidden;
  background: #000 url(/media/site/hero.jpg) center / cover;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 49px);
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.hero p {
  margin: 12px 0 0;
  font: 400 16px/1.6 "Libre Caslon Text", serif;
  letter-spacing: 0.15em;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--gutter) 80px;
}

.about img { width: 100%; height: auto; }

.about .lead { font-size: 18px; font-weight: 400; line-height: 1.6; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

/* Video grid */

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
}

.video-card { text-decoration: none; }

.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }

.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }

.video-card:hover img { transform: scale(1.03); }

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.play::after {
  position: absolute;
  top: 21px;
  left: 26px;
  border: 11px solid transparent;
  border-left: 17px solid #fff;
  border-right: 0;
  content: "";
}

.video-card:hover .play { opacity: 1; }

.video-card h2 { margin: 16px 0 4px; font-size: 17px; font-weight: 600; line-height: 1.4; }

.video-card p { margin: 0 0 8px; font-size: 14px; }

.tags { color: var(--muted); font-size: 13px; }

@media (max-width: 800px) {
  .videos { grid-template-columns: 1fr; }
}

/* Photo gallery (masonry) */

.photos {
  columns: 3 320px;
  column-gap: 12px;
  padding: 24px var(--gutter) 80px;
}

.photos figure {
  position: relative;
  margin: 0 0 12px;
  break-inside: avoid;
}

.photos img { width: 100%; height: auto; }

.photos figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 16px 12px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.25s;
}

.photos figcaption strong { display: block; font-weight: 600; }

.photos figure:hover figcaption { opacity: 1; }

@media (hover: none) {
  .photos figcaption { opacity: 1; }
}

/* Project pages */

.page-project main { background: var(--dark); color: #fff; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}

.project h1 { margin: 0 0 16px; font-size: 32px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.2; }

.project p { margin: 0 0 12px; }

.project .place { font-style: italic; }

.project-meta { margin-top: 32px; font-size: 13px; }

.project-meta p { margin: 0; }

.project-meta .tags { margin-top: 16px; color: #b0b0b0; }

.embed { aspect-ratio: 16 / 9; }

.embed iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .embed { order: -1; }
}

/* 404 */

.not-found { padding: 120px var(--gutter); text-align: center; }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
  padding: 48px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }

.contact p { margin: 0; }

.contact-name { font-weight: 600; }

.contact a { text-decoration: none; }

.contact a:hover { text-decoration: underline; }

.social { display: flex; gap: 16px; }

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

.copy { flex-basis: 100%; margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
