:root {
  --maxw: 1100px;
}

body::before {
  transform: scale(1.02);
}

.logo {
  width: clamp(64px,8vw,120px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
}

a:hover .logo {
  opacity: .85;
}

nav {
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: .12em;
}

nav a {
  transition: opacity .15s ease,transform .15s ease;
}

nav a:hover {
  transform: translateY(-1px);
}

main {
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 140px 18px 100px;
}

.content {
  width: min(var(--maxw),100%);
}

.contact {
  line-height: 1.6;
}

.contact a {
  opacity: .85;
}

.contact a:hover {
  opacity: 1;
}

.page-title {
  font-size: clamp(28px,4vw,44px);
  margin: 0 0 28px;
  letter-spacing: .02em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.30);
  display: block;
  text-decoration: none;
  color: inherit;
}

.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover img {
    transform: scale(1.05);
  }
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s ease;
}

.project-title {
  color: #fff;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 12px;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover .project-overlay {
    opacity: 1;
  }
}

.project:focus-visible .project-overlay {
  opacity: 1;
}

@media(max-width:740px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media(max-width:740px) {
  nav {
    top: 18px;
    right: 14px;
    gap: 14px;
  }
}

@media(max-width:740px) {
  .logo {
    top: 14px;
    left: 14px;
  }
}

@media(max-width:740px) {
  .contact {
    right: 14px;
    bottom: 14px;
  }
}

@media(max-width:740px) {
  main {
    padding-top: 120px;
  }
}

@media(max-width:740px) {
  .project-overlay {
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-start;
    background: linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,0));
  }
}

@media(max-width:740px) {
  .project-title {
    font-size: 13px;
    letter-spacing: .16em;
    margin: 0;
    padding: 12px 12px 10px;
  }
}
