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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover,
a:focus {
  opacity: 0.6;
}

a:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-btn:first-child {
  border-right: 1px solid #e0e0e0;
}

.nav-btn:hover,
.nav-btn:focus {
  background: #f5f5f5;
  opacity: 1;
}

.nav-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.nav-btn.active {
  background: #111;
  color: #fff;
}

.hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.logo-img {
  max-width: 160px;
  margin: 0 auto 2rem;
}

.hero-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  filter: grayscale(100%);
}

.hero-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #666;
}

.hero-links a:hover {
  color: #111;
}

.hashtags {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

.section {
  scroll-margin-top: 60px;
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #111;
}

.section-content p {
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.project-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.subnav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.subnav-link:hover,
.subnav-link:focus {
  color: #111;
  opacity: 1;
}

.subnav-link.active {
  color: #111;
  border-bottom-color: #111;
}

.project-item {
  scroll-margin-top: 120px;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5rem;
}

.category-line {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
}

.external-link {
  margin-bottom: 1.5rem;
}

.external-link a {
  font-size: 0.875rem;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.external-link a:hover {
  opacity: 0.6;
}

.note {
  font-size: 0.8125rem;
  font-style: italic;
  color: #666;
  margin-top: 1rem;
}

.interest-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.interest-btn:hover,
.interest-btn:focus {
  background: #fff;
  color: #111;
  opacity: 1;
}

.video-container {
  margin-bottom: 2rem;
}

.video-container video {
  width: 100%;
  border-radius: 4px;
  background: #000;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trailer-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  padding: 0.75rem 1.25rem;
  border: 1px solid #111;
  transition: background 0.2s ease, color 0.2s ease;
}

.trailer-link:hover,
.trailer-link:focus {
  background: #111;
  color: #fff;
  opacity: 1;
}

.tech-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tech-links .trailer-link {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
}

.gallery-hero {
  margin-bottom: 1rem;
}

.gallery-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.gallery-hero img:hover {
  filter: grayscale(0%);
}

.gallery {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.gallery img:hover {
  filter: grayscale(0%);
}

.gallery-masonry {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-masonry img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.gallery-masonry img:hover {
  filter: grayscale(0%);
}

@media (min-width: 600px) {
  .gallery-masonry {
    grid-template-columns: 1fr 1fr;
  }
}

.project-block {
  margin-bottom: 2rem;
}

.project-block h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #111;
}

.project-block p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

.project-block p:last-child {
  margin-bottom: 0;
}

.facts-list {
  list-style: none;
  font-size: 0.9375rem;
}

.facts-list > li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.facts-list > li:first-child {
  border-top: 1px solid #e0e0e0;
}

.facts-list ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.facts-list ul li {
  padding: 0.25rem 0;
}

.collapsible {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.collapsible summary {
  padding: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.collapsible summary:hover {
  background: #f5f5f5;
}

.collapsible summary:focus-visible {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.collapsible[open] summary {
  border-bottom: 1px solid #e0e0e0;
}

.details-content {
  padding: 1.5rem 1rem;
}

.details-content p {
  margin-bottom: 0.75rem;
}

.details-content h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.details-content h5:first-child {
  margin-top: 0;
}

.credits-list p {
  margin-bottom: 1rem;
}

.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #666;
  border-top: 1px solid #e0e0e0;
  margin-top: 2rem;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: #111;
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 2rem 3rem;
  }

  .logo-img {
    max-width: 200px;
  }

  .hero-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
  }

  .section {
    padding: 4rem 2rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .nav-btn {
    padding: 1.5rem 2rem;
    font-size: 1rem;
  }

  .project-subnav {
    gap: 1.5rem;
  }

  .subnav-link {
    font-size: 0.8125rem;
  }

  .project-title {
    font-size: 1.75rem;
  }
}
