* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Haas';
  src: local('Helvetica Neue'), local('Helvetica');
  font-weight: 400;
}

:root {
  --page-gutter: 80px;
  --header-height: 72px;
}

body {
  background: #0a0a0a;
  color: #F9F9F7;
  font-family: 'Haas', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grid */
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}
.page-grid::before,
.page-grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(249, 249, 247, 0.02);
}
.page-grid::before { left: var(--page-gutter); }
.page-grid::after { right: var(--page-gutter); }

/* Header */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(249, 249, 247, 0.06);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 48px;
  align-items: center;
  height: 100%;
}
nav img {
  height: 28px;
  margin-right: 14px;
  display: block;
}
nav a {
  color: #F9F9F7;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
nav a.active::after,
nav a:hover::after {
  width: 100%;
}

main {
  position: relative;
  z-index: 2;
}

.page-standard main {
  padding: 180px var(--page-gutter) 160px;
}

/* ===== HOME (index) ===== */
.page-home .hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.page-home .hero-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}
.page-home .hero-tile {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.page-home .hero-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.page-home .hero-link:focus-visible {
  outline: 1px solid rgba(249, 249, 247, 0.45);
  outline-offset: -1px;
}
.page-home .hero-tile img,
.page-home .hero-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}
@media (hover: hover) and (pointer: fine) {
  .page-home .hero-tile img { transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .page-home .hero-tile:hover img { transform: scale(1.015); }
}

.page-home .poster-rail { padding: 28px var(--page-gutter) 0; }
.page-home .poster-rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-home .poster-rail-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
  font-weight: 500;
}
.page-home .poster-rail-hint {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.22);
  font-weight: 500;
}
.page-home .poster-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.page-home .poster-track::-webkit-scrollbar { height: 6px; }
.page-home .poster-track::-webkit-scrollbar-track { background: rgba(249, 249, 247, 0.04); }
.page-home .poster-track::-webkit-scrollbar-thumb { background: rgba(249, 249, 247, 0.12); }

.page-home .poster {
  flex: 0 0 auto;
  width: clamp(180px, 16vw, 260px);
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(249, 249, 247, 0.03);
  scroll-snap-align: start;
}
.page-home .poster a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.page-home .poster a:focus-visible {
  outline: 1px solid rgba(249, 249, 247, 0.45);
  outline-offset: -1px;
}
.page-home .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .films-index { padding: 96px var(--page-gutter) 140px; }
.page-home .films-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
  margin-bottom: 24px;
  font-weight: 500;
}
.page-home .films-list { border-top: 1px solid rgba(249, 249, 247, 0.06); }
.page-home .film-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.8fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(249, 249, 247, 0.06);
  align-items: baseline;
}
.page-home .film-title {
  font-size: 16px;
  letter-spacing: -0.01em;
  color: rgba(249, 249, 247, 0.92);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.page-home .film-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(249, 249, 247, 0.65);
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-home .film-title:hover::after { width: 100%; }
.page-home .film-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
}

/* ===== STUDIO ===== */
.page-studio .studio-container {
  max-width: 1200px;
  margin: 0 auto;
}
.page-studio .studio-section {
  margin-bottom: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(249, 249, 247, 0.06);
}
.page-studio .studio-section:last-child { border-bottom: none; }
.page-studio .section-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
  margin-bottom: 32px;
  font-weight: 500;
}
.page-studio .section-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}
.page-studio .content-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: rgba(249, 249, 247, 0.85);
}
.page-studio .content-text p:first-child {
  font-size: 19px;
  color: #F9F9F7;
  line-height: 1.65;
}
.page-studio .info-grid { display: grid; gap: 40px; }
.page-studio .info-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}
.page-studio .info-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
  font-weight: 500;
  padding-top: 2px;
}
.page-studio .info-value {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(249, 249, 247, 0.85);
}
.page-studio .note {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(249, 249, 247, 0.5);
  margin-top: 14px;
  max-width: 720px;
}
.page-studio a.inline-link {
  color: rgba(249, 249, 247, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 249, 247, 0.18);
  padding-bottom: 2px;
}
.page-studio a.inline-link:hover {
  border-bottom-color: rgba(249, 249, 247, 0.45);
}

/* ===== CONTACT ===== */
.page-contact .contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 80px;
}
.page-contact .contact-content {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(249, 249, 247, 0.06);
}
.page-contact .contact-email {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.3;
}
.page-contact .contact-email a {
  color: #F9F9F7;
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 249, 247, 0.2);
  transition: border-color 0.3s ease;
}
.page-contact .contact-email a:hover { border-color: #F9F9F7; }
.page-contact .contact-notice {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(249, 249, 247, 0.5);
  max-width: 520px;
}

/* ===== 404 ===== */
.page-404 main {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.page-404 .container { max-width: 720px; }
.page-404 .label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.35);
  margin-bottom: 24px;
  font-weight: 500;
}
.page-404 .message {
  font-size: 19px;
  line-height: 1.65;
  color: #F9F9F7;
  margin-bottom: 24px;
}
.page-404 .note {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(249, 249, 247, 0.5);
}
.page-404 .links {
  margin-top: 40px;
  display: flex;
  gap: 32px;
}
.page-404 .links a {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 249, 247, 0.75);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.page-404 .links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.page-404 .links a:hover::after { width: 100%; }

@media (max-width: 1200px) {
  :root {
    --page-gutter: 48px;
    --header-height: 68px;
  }

  .page-standard main {
    padding: 160px var(--page-gutter) 120px;
  }

  .page-home .poster-rail { padding-top: 24px; }
  .page-home .films-index { padding: 72px var(--page-gutter) 120px; }
  .page-home .film-row { grid-template-columns: 1fr; gap: 6px; }

  .page-studio .section-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 24px;
    --header-height: 64px;
  }

  nav ul { gap: 32px; }

  .page-standard main {
    padding: 140px var(--page-gutter) 80px;
  }

  .page-home .poster-rail { padding-top: 20px; }
  .page-home .films-index { padding: 56px var(--page-gutter) 88px; }

  .page-studio .studio-section { margin-bottom: 80px; padding-bottom: 60px; }
  .page-studio .info-item { grid-template-columns: 1fr; gap: 8px; }
  .page-studio .content-text p { font-size: 15px; }
  .page-studio .content-text p:first-child { font-size: 17px; }

  .page-contact .contact-email { font-size: 24px; }

  .page-404 .links { gap: 24px; }
}

