:root {
  --maxw: 1200px;
  --strip-height: clamp(160px,26vh,320px);
  --tile-gap: 18px;
}

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

.logo {
  width: clamp(86px,10vw,150px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

main {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  place-items: center;
  padding: 90px 18px 80px;
}

.wrap {
  width: min(var(--maxw),100%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 22px;
  align-items: center;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  width: clamp(260px,44vw,560px);
  max-width: 100%;
  flex: 0 1 auto;
  line-height: 0;
}

.name-wordmark {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  letter-spacing: .10em;
  transform: translateY(-2px);
}

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

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

.home-gallery {
  width: 100%;
  min-width: 0;
}

.strip-frame {
  width: 100%;
  height: var(--strip-height);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  position: relative;
}

.strip-frame::-webkit-scrollbar {
  display: none;
}

[data-mounted="true"] .strip-frame {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

[data-mounted="true"] .strip-frame.is-dragging {
  cursor: grabbing;
}

.strip {
  height: 100%;
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.strip-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--tile-gap);
  padding-right: var(--tile-gap);
  flex: 0 0 auto;
}

.tile {
  height: calc(100% - 12px);
  aspect-ratio: var(--image-ratio);
  max-width: 42vw;
  flex: 0 0 auto;
  display: block;
  color: inherit;
  text-decoration: none;
}

.tile:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.tile img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.contact {
  line-height: 1.6;
}

.contact a {
  opacity: .85;
}

.contact a:hover {
  opacity: 1;
}

@media(max-width:820px) {
  header {
    gap: 14px;
  }
}

@media(max-width:820px) {
  nav {
    transform: none;
  }
}

@media(max-width:640px) {
  main {
    padding-top: 98px;
  }
}

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

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

@media(max-width:640px) {
  h1 {
    width: min(100%,420px);
  }
}

@media(max-width:640px) {
  .tile {
    max-width: 72vw;
  }
}
