:root {
  --bg: #f4f2ef;
  --text: #161616;
  --muted: #7a746f;
  --line: #ece7e1;
  --accent: #594c43;
  --max-width: 1360px;
  --header-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-bar,
.film-page,
.gallery-page {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.site-logo,
.site-nav a,
.section-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  letter-spacing: normal;
  text-transform: none;
}

.site-logo-names {
  font-family: "Cormorant Garamond", "Noto Serif KR", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.site-logo-sub {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--text);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif KR", serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.intro-meta,
.film-stage-title {
  color: var(--muted);
  line-height: 1.8;
}

.intro-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 0.86rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b6ada4;
}

.film-page {
  padding-top: calc(var(--header-height) + 18px);
  padding-bottom: 24px;
}

.film-stage {
  padding-top: 0;
}

.film-stage-frame {
  width: 100%;
  aspect-ratio: 16 / 7.1;
  background: #000000;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.film-stage-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.film-stage-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 6px;
}

.film-stage-title {
  font-size: 0.92rem;
}

.gallery-page {
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 44px;
}

.gallery-page-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.gallery-page-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-page-content {
  padding-top: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-rows: clamp(32px, 2.7vw, 42px);
  gap: 8px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: #f3f0eb;
  min-height: 0;
}

.gallery-card:nth-child(1) {
  grid-column: 1 / span 4;
  grid-row: 1 / span 4;
}

.gallery-card:nth-child(2) {
  grid-column: 5 / span 8;
  grid-row: 1 / span 5;
}

.gallery-card:nth-child(3) {
  grid-column: 1 / span 3;
  grid-row: 5 / span 3;
}

.gallery-card:nth-child(4) {
  grid-column: 4 / span 3;
  grid-row: 5 / span 3;
}

.gallery-card:nth-child(5) {
  grid-column: 7 / span 6;
  grid-row: 6 / span 4;
}

.gallery-card:nth-child(6) {
  grid-column: 1 / span 4;
  grid-row: 8 / span 3;
}

.gallery-card:nth-child(7) {
  grid-column: 5 / span 4;
  grid-row: 8 / span 3;
}

.gallery-card:nth-child(8) {
  grid-column: 9 / span 4;
  grid-row: 8 / span 3;
}

.gallery-card:nth-child(9) {
  grid-column: 1 / span 5;
  grid-row: 11 / span 3;
}

.gallery-card:nth-child(10) {
  grid-column: 6 / span 7;
  grid-row: 11 / span 4;
}

.gallery-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 600ms ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

@media (max-width: 960px) {
  .site-bar,
  .film-page,
  .gallery-page {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .film-page {
    padding-top: calc(var(--header-height) + 14px);
  }

  .film-stage-frame {
    aspect-ratio: 16 / 8.1;
  }

  .film-stage-meta,
  .gallery-page-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .gallery-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-card-square {
    aspect-ratio: 1 / 1;
  }

  .gallery-card-hero,
  .gallery-card-landscape {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .gallery-card-portrait {
    grid-row: span 2;
    aspect-ratio: 4 / 5.3;
  }
}

@media (max-width: 720px) {
  .site-bar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }

  .site-nav {
    gap: 12px;
  }

  .site-logo-names {
    font-size: 1.6rem;
  }

  .film-page {
    padding-top: calc(var(--header-height) + 36px);
  }

  .film-stage-frame {
    aspect-ratio: 16 / 9;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card-landscape,
  .gallery-card-hero,
  .gallery-card-portrait,
  .gallery-card-square {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

}
