* {
  box-sizing: border-box;
}

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

body {
  font-family: "Roboto", sans-serif;
  background: #000;
  color: #111;
}

/* ================= HEADER ================= */

.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.site-header a,
.site-header .nav-item {
  pointer-events: auto;
}

.site-header--light .htitle,
.site-header--light .hero-subtitle,
.site-header--light .nav-item {
  color: #fff;
  mix-blend-mode: difference;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.htitle {
  display: block;
  margin: 0;
  font-weight: 700;
  font-size: 128px;
  line-height: 0.8;
  text-decoration: none;
}

.hero-subtitle {
  margin: 12px 0 0 0;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-item {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.nav-item.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ================= FILM HOME / VIDEO.HTML ================= */

.film-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  background: #f4f4f2;
  min-height: 100vh;
}

.film-category-card {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #111;
}

.film-category-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}

.film-category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.4s ease;
}

.film-category-meta {
  max-width: 800px;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.film-category-card:hover .film-category-meta {
  opacity: 1;
  transform: translateY(0);
}

.film-category-card:hover .film-category-overlay {
  background: rgba(255, 255, 255, 0.04);
}

.film-category-card:hover .film-category-video {
  transform: scale(1.04);
}

.film-category-meta h1 {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
}

.film-category-meta p {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ================= ARCHITECTURAL FILMS LIST ================= */

.film-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #f4f4f2;
}

.film-row {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #111;
  text-decoration: none;
  color: inherit;
}

.film-row-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.6s ease;
}

.film-row-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.4s ease;
}

.film-row-meta {
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.film-row:hover .film-row-meta {
  opacity: 1;
  transform: translateY(0);
}

.film-row:hover .film-row-overlay {
  background: rgba(255, 255, 255, 0.04);
}

.film-row:hover .film-row-video {
  transform: scale(1.04);
}

.film-row-meta h2 {
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
}

.film-row-meta p {
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ================= PROJECT PAGE ================= */

.film-project-page {
  width: 100%;
  background: #f4f4f2;
  padding-top: 0;
}

.film-project-content {
  padding: 0 10px 10px;
  background: #f4f4f2;
}

/* ================= LABELS ================= */

.film-section-label {
  padding: 20px 28px 12px;
}

.film-section-label span {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
}

/* ================= TOP STILLS ================= */

.film-project-stills-top {
  padding-top: 0;
  background: #f4f4f2;
}

.film-project-stills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
  background: #f4f4f2;
}

.film-still {
  position: relative;
  overflow: hidden;
  background: #fff;
  margin: 0;
}

.film-still.landscape {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.film-still.portrait {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}

.film-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

/* ================= TEXT ================= */

.film-project-text {
  width: 100%;
  max-width: none;
  margin: 44px 0 56px;
  padding: 0 28px;
}

.film-project-text p {
  max-width: 1180px;
  margin: 0 0 18px 0;
  font-size: 16px;
  line-height: 1.75;
  color: #111;
  text-align: left;
}

/* ================= YOUTUBE EMBED ================= */

.film-embed-wrap {
  padding: 10px;
  background: #fff;
}

.film-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.film-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================= INFO GRID ================= */

.film-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.film-info-block {
  background: #fff;
  padding: 18px;
}

.film-info-block h3 {
  margin: 0 0 8px 0;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.film-info-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

/* ================= BTS ================= */

.film-stills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.film-stills-grid figure {
  margin: 0;
  background: #fff;
  padding-bottom: 10px;
}

.film-stills-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.film-stills-grid.bts img {
  filter: brightness(0.98) contrast(0.96);
}

.film-stills-grid figcaption {
  margin-top: 8px;
  padding: 0 10px;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #777;
}

/* ================= MOBILE ================= */

@media (max-width: 992px) {
  .site-header {
    padding: 16px;
  }

  .htitle {
    font-size: 64px;
  }

  .hero-subtitle {
    white-space: normal;
    max-width: 260px;
    font-size: 12px;
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .nav-item {
    font-size: 12px;
  }

  /* video.html */
  .film-categories {
    gap: 6px;
    padding: 6px;
  }

  .film-category-card {
    min-height: 100svh;
  }

  .film-category-meta {
    opacity: 1;
    transform: none;
  }

  .film-category-overlay {
    background: rgba(0, 0, 0, 0.08);
    padding: 18px;
  }

  .film-category-meta h1 {
    font-size: clamp(18px, 5.8vw, 26px);
    margin-bottom: 10px;
  }

  .film-category-meta p {
    font-size: 10px;
    letter-spacing: 0.05em;
    max-width: 320px;
  }

  /* film-architecture.html */
  .film-vertical-list {
    gap: 6px;
    padding: 6px;
  }

  .film-row {
    height: 100svh;
  }

  .film-row-meta {
    opacity: 1;
    transform: none;
  }

  .film-row-overlay {
    background: rgba(0, 0, 0, 0.08);
    padding: 18px;
  }

  .film-row-meta h2 {
    font-size: 24px;
  }

  .film-row-meta p {
    font-size: 10px;
  }

  /* project page */
  .film-project-content {
    padding: 0 6px 6px;
  }

  .film-section-label {
    padding: 16px 16px 8px;
  }

  .film-project-stills-top {
    padding-top: 0;
  }

  .film-project-stills-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 6px 6px;
  }

  .film-still.landscape,
  .film-still.portrait {
    grid-column: span 1;
    aspect-ratio: auto;
  }

  .film-still img {
    width: 100%;
    height: auto;
  }

  .film-caption {
    left: 10px;
    bottom: 8px;
    font-size: 9px;
  }

  .film-project-text {
    margin: 28px 0 38px;
    padding: 0 16px;
  }

  .film-project-text p {
    max-width: none;
    font-size: 15px;
    line-height: 1.68;
  }

  .film-embed-wrap {
    padding: 6px;
  }

  .film-info-grid,
  .film-stills-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
  }

  .film-stills-grid figure {
    padding-bottom: 8px;
  }

  .film-stills-grid figcaption {
    padding: 0 8px;
  }
}