/* --- Global styles --- */
* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #222;
  line-height: 1.7;
}

/* --- Header --- */
header {
  background: #fff;
  padding: 24px 40px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.2px;
}

/* --- Intro content --- */
.container {
  max-width: 880px;
  margin: 30px auto;
  padding: 0 24px;
}

h2 {
  font-size: 2.4em;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #111;
}

p {
  font-size: 1.05em;
  margin-bottom: 24px;
  color: #333;
}

/* --- Full-width Vimeo section --- */
.video-section {
  width: 100%;
  margin: 80px 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Film poster grid --- */
.projects-section {
  max-width: 880px;
  margin: 30px auto 90px;
  padding: 0 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 38px 22px;
}

.poster-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.poster-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #f0f0f0;
}

.poster-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 11px 0 2px;
  color: #222;
  transition: color 0.25s ease;
}

.poster-card p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  color: #777;
}

.poster-card:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.poster-card:hover h3 {
  color: #0073e6;
}

.poster-card:focus-visible {
  outline: 2px solid #0073e6;
  outline-offset: 5px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 50px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 0.95em;
}

footer p {
  margin: 0;
}

footer a {
  color: #0073e6;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #005bb5;
}

/* --- Responsive layout --- */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  h2 {
    font-size: 1.8em;
  }

  .video-section {
    margin: 50px 0;
  }

  .projects-section {
    padding: 0 18px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
  }
}
