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

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

body {
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 120px;
  padding: 40px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  z-index: 10;
}

.sidebar .logo {
  width: 60px;
  height: auto;
  margin-bottom: 36px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.sidebar nav a {
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  transition: color 200ms ease;
}

.sidebar nav a:hover,
.sidebar nav a.is-current {
  color: #888;
}

.sidebar .logo path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dash 1s linear forwards;
}

.sidebar .logo .top path { animation-delay: 1s; }

.sidebar .logo .mid-1 path:nth-child(1) { animation-delay: 1.1s; }
.sidebar .logo .mid-1 path:nth-child(2) { animation-delay: 1.2s; }
.sidebar .logo .mid-1 path:nth-child(3) { animation-delay: 1.3s; }
.sidebar .logo .mid-1 path:nth-child(4) { animation-delay: 1.4s; }
.sidebar .logo .mid-1 path:nth-child(5) { animation-delay: 1.5s; }
.sidebar .logo .mid-1 path:nth-child(6) { animation-delay: 1.6s; }
.sidebar .logo .mid-1 path:nth-child(7) { animation-delay: 1.7s; }
.sidebar .logo .mid-1 path:nth-child(8) { animation-delay: 1.8s; }

.sidebar .logo .mid-2 path:nth-child(1) { animation-delay: 1.3s; }
.sidebar .logo .mid-2 path:nth-child(2) { animation-delay: 1.4s; }
.sidebar .logo .mid-2 path:nth-child(3) { animation-delay: 1.5s; }
.sidebar .logo .mid-2 path:nth-child(4) { animation-delay: 1.6s; }
.sidebar .logo .mid-2 path:nth-child(5) { animation-delay: 1.7s; }
.sidebar .logo .mid-2 path:nth-child(6) { animation-delay: 1.8s; }
.sidebar .logo .mid-2 path:nth-child(7) { animation-delay: 1.9s; }
.sidebar .logo .mid-2 path:nth-child(8) { animation-delay: 2s; }

.sidebar .logo .bottom path { animation-delay: 2s; }

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

.main {
  margin-left: 120px;
  padding: 56px 48px 80px;
  min-height: 100vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f3f3;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 400ms ease;
}

.card:hover .card-image-wrap img,
.card:focus-visible .card-image-wrap img {
  filter: grayscale(0);
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  background: #111;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}

.video-page {
  max-width: 1200px;
}

.back-link {
  display: block;
  font-family: 'Special Elite', 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 28px;
  transition: color 200ms ease;
}

.back-link:hover {
  color: #111;
}

.video-page .tag {
  margin-bottom: 14px;
}

.video-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 28px;
  max-width: 900px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.contact-page {
  max-width: 640px;
}

.contact-page h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 24px;
}

.contact-page p {
  font-size: 16px;
  margin: 0 0 10px;
}

.contact-page a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
  }

  .sidebar .logo {
    width: 40px;
    margin-bottom: 0;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 24px;
  }

  .main {
    margin-left: 0;
    padding: 32px 24px 64px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .video-title {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
