body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  background: #121216;
  color: #ececf1;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 1.5rem 1rem;
  list-style: none;
}
header nav ul a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project {
  --panel-color: #1e1e25;
  --panel-image: none;
  --panel-fade: to bottom;
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background-color: var(--panel-color);
}
.project::before,
.project .project__video {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  mask-image: linear-gradient(var(--panel-fade), #000, transparent);
}
.project::before {
  content: "";
  background: var(--panel-image) center/cover no-repeat;
  transition: opacity 0.6s;
}
.project:has(.project__video.is-playing)::before {
  opacity: 0;
}
.project h2 {
  margin-top: 0;
}
.project--hero-left {
  flex-direction: row-reverse;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project {
    transition: transform 0.3s ease;
  }
  .project:hover {
    transform: scale(1.02);
  }
}

.project__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.project__video.is-playing {
  opacity: 1;
}

.project__title-image {
  display: block;
  width: min(100%, 5rem * var(--w) / var(--h), var(--w) * 1px);
  height: auto;
}

.project__body {
  flex: 1;
  min-width: 0;
}

.project__hero {
  flex: none;
  align-self: flex-end;
  height: var(--hero-height, 22rem);
  width: auto;
  margin-block: -3rem;
}
.project--hero-right .project__hero {
  margin-right: -3rem;
}
.project--hero-left .project__hero {
  margin-left: -3rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  margin-bottom: 0.5rem;
}

.tag {
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.tag i {
  margin-right: 0.4em;
}

.links {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}
.links a {
  color: inherit;
}

.project--flipped h2 {
  text-align: right;
}
.project--flipped .project__title-image {
  margin-left: auto;
}
.project--flipped .tags,
.project--flipped .links {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .project,
  .project--hero-left {
    flex-direction: column-reverse;
  }
  .project__hero,
  .project--hero-left .project__hero,
  .project--hero-right .project__hero {
    align-self: center;
    height: calc(var(--hero-height, 22rem) * 0.7);
    max-width: 100%;
    object-fit: contain;
    margin: -3rem 0 0;
  }
}

/*# sourceMappingURL=main.css.map */