* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Trochut', serif;
  background: #FFFDF5;
  color: #9f0b0b;
  line-height: 1.55;
}

.layout {
  display: block;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  padding: 1.25rem;
  padding-top: 60px;
  background: #FFFDF5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  font-family: 'Trochut', serif;
  font-size: 1.9rem;
  line-height: 1.4;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar-footer {
  margin-top: auto;
  font-family: 'Lancelot', serif;
  font-size: 0.95rem;
  color: #9f0b0b;
  opacity: 0.7;
  text-align: center;
  padding-top: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand a {
  text-decoration: none;
  display: inline-block;
}

.brand a:hover {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.brand img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}

nav a {
  color: #7a0000;
  text-decoration: none;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  display: inline-block;
}

.sidebar nav a {
  display: inline-block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #9f0b0b;
  font-family: 'Trochut', serif;
  transition: transform 0.25s ease, color 0.25s ease;
  transform-origin: center;
}

.sidebar nav a:hover {
  transform: scale(1.25);
  color: #7a0000;
}

/* Social buttons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Main content */
main {
  margin-left: 300px;
  position: relative;
  padding: 4rem 7rem 0 7rem;
}

main h1,
main h2,
main h3 {
  font-family: 'Trochut', serif;
}

main h1 {
  margin-top: 0;
}

main p {
  font-family: 'Lancelot', serif;
  font-size: 1.5rem;
  line-height: 1.7;
}

/* Top line */
.page-topline {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 300px);
  text-align: center;
  font-family: 'Trochut', serif;
  font-size: 1.2rem;
  color: #9f0b0b;
  background: transparent;
  padding: 0.75rem 0;
  z-index: 5;
}

/* Decorative corners */
.decor-top-right {
  position: absolute;
  top: 15px;
  right: 40px;
  width: 180px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.decor-bottom-left {
  position: absolute;
  bottom: 110px;
  left: 40px;
  width: 180px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Bottom image */
.bottom-centered {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding-bottom: 2rem;
}

.bottom-centered img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Full-screen landing page */
.landing-page-body {
  margin: 0;
  padding: 0;
  background: #FFFDF5;
}

.landing-page {
  margin-left: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #FFFDF5;
}

.landing-background {
  position: absolute;
  inset: 0;
  background: #FFFDF5;
  z-index: 0;
}

/* Replace later with video:
.landing-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
*/

.landing-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.landing-logo {
  width: 280px;
  max-width: 75%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.landing-subtitle {
  margin: 0 0 1rem;
  font-family: 'Trochut', serif;
  font-size: 1.1rem;
  color: #9f0b0b;
  letter-spacing: 0.03em;
}

.landing-text {
  margin: 0 0 2rem;
  max-width: 620px;
  font-family: 'Lancelot', serif;
  font-size: 1.7rem;
  line-height: 1.5;
  color: #9f0b0b;
}

.landing-actions {
  display: flex;
  justify-content: center;
}

.landing-btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid #9f0b0b;
  border-radius: 999px;
  text-decoration: none;
  color: #9f0b0b;
  font-family: 'Trochut', serif;
  font-size: 1rem;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.landing-btn:hover {
  transform: scale(1.04);
  opacity: 0.85;
}

.landing-decor-top-right {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 180px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.landing-decor-bottom-left {
  position: absolute;
  bottom: 20px;
  left: 30px;
  width: 180px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* About image */
.about-photo {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 250px;
  width: 40%;
  height: auto;
}

/* Film reel */
.film-reel-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0 3rem;
}

.film-reel-container iframe {
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

/* Contact */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  margin-top: -3rem;
  margin-bottom: -3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-graphic {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto 0.75rem;
}

.contact-header {
  margin: 0 0 0.75rem;
  text-align: center;
}

.contact-line {
  margin: 0.8rem 0;
  text-align: center;
}

.contact-line a {
  color: #9f0b0b;
  text-decoration: none;
}

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

/* Film grid */
.film-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.film-item {
  text-align: center;
}

.film-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.film-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.film-item img:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.film-title {
  margin-top: 0.6rem;
  font-family: 'Trochut', serif;
  font-size: 2rem;
}

/* Individual film page */
.film-page {
  max-width: 1100px;
  margin: 0 auto;
}

.film-meta {
  font-family: 'Lancelot', serif;
  font-size: 1.4rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.film-hero {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 2rem;
}

.film-details p,
.film-description p {
  font-family: 'Lancelot', serif;
  font-size: 1.4rem;
  line-height: 1.7;
}

.film-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.film-nav a {
  text-decoration: none;
  color: #9f0b0b;
  font-family: 'Trochut', serif;
  font-size: 1.2rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.film-nav a:hover {
  transform: scale(1.04);
  opacity: 0.8;
}

/* Embedded film video */
.film-video {
  width: 100%;
  max-width: 1100px;
  margin: 0 0 2.5rem 0;
}

.film-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  display: block;
}

/* Film stills */
.film-stills {
  margin-top: 2rem;
}

.film-stills h2 {
  font-family: 'Trochut', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 260px));
  gap: 1rem;
  justify-content: center;
}

.stills-grid img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.stills-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.2rem;
  color: #9f0b0b;
  cursor: pointer;
  font-family: 'Trochut', serif;
  font-weight: 400;
  line-height: 1;
  z-index: 6001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: auto;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
  cursor: pointer;
  z-index: 6001;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.12);
  opacity: 0.8;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 1300;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: #7a0000;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile */
@media (max-width: 800px) {
  main {
    margin-left: 0;
    padding: 0 1rem 3rem 1rem;
    position: relative;
    overflow-x: hidden;
  }

  main p {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 0.8rem;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5rem;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0 0;
  }

  .hamburger {
    display: block;
    position: static;
    padding: 8px;
    z-index: 1200;
  }

  .page-topline {
    position: static;
    text-align: left;
    white-space: nowrap;
    font-size: 1.2rem;
    color: #9f0b0b;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: 'Trochut', serif;
  }

  .decor-top-right,
  .decor-bottom-left {
    display: none;
  }

  .bottom-centered img {
    max-width: 130px;
  }

  .sidebar {
    transform: translateX(-100%);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .landing-overlay {
    padding: 1.5rem;
  }

  .landing-logo {
    width: 220px;
    max-width: 80%;
  }

  .landing-subtitle {
    font-size: 1rem;
  }

  .landing-text {
    font-size: 1.35rem;
    max-width: 90%;
  }

  .landing-decor-top-right,
  .landing-decor-bottom-left {
    width: 110px;
  }

  .about-photo {
    float: none;
    display: block;
    margin: 1.5rem auto;
    width: 50%;
    max-width: 320px;
  }

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

  .stills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stills-grid img {
    height: 140px;
  }

  .contact-section {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 0.25rem;
    padding-top: 0;
  }

  .contact-header {
    margin: 0 0 0.6rem;
  }

  .contact-line {
    margin: 0.35rem 0 0.8rem;
    padding: 0;
  }
}
