.artwork {
  position: relative;
  display: block;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #eee2cd;
}

.artwork-frame {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--artwork-offset, 0px), 0);
}

.artwork-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-next {
  position: absolute;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #faf7f2;
  background: rgb(31 27 22 / .7);
  border-radius: 50%;
}

.artwork ~ .hd {
  position: fixed;
  inset: 0 0 auto;
  opacity: 1;
  pointer-events: auto;
}

.artwork ~ .hd:not(.is-on, .artwork-header-solid) {
  background: linear-gradient(rgb(250 247 242 / .8), transparent);
}

.artwork ~ .hd:is(.is-on, .artwork-header-solid) {
  box-shadow: 0 1px 0 var(--line);
}

.artwork ~ main #mission {
  scroll-margin-top: 72px;
}

.artwork-switch {
  min-height: 44px;
  border: 0;
  border-radius: 20px;
  padding: 0 12px;
  color: var(--ink);
  background: rgb(250 247 242 / .9);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.artwork-switch:hover {
  background: #fffaf4;
}

.artwork-switch:focus-visible,
.artwork-next:focus-visible {
  outline: 2px solid #c2410c;
  outline-offset: 3px;
}

.artwork-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .artwork ~ .hd .w {
    width: calc(100% - 24px);
  }

  .artwork ~ .hd .nav {
    gap: 10px;
  }

  .artwork-switch {
    padding-inline: 9px;
  }
}

@media (max-width: 760px) {
  .artwork ~ main #mission {
    scroll-margin-top: 64px;
  }

  :is(#mission, #what, #benefit).page {
    height: auto;
    padding: 36px 0 32px;
  }

  :is(#mission, #what, #benefit) .spread {
    display: flex;
    width: min(36rem, calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    min-height: 0;
    padding: 0;
  }

  :is(#mission, #what, #benefit) .viz {
    order: 1;
    display: flex;
    align-self: center;
    align-items: center;
    max-width: 374px;
    height: clamp(108px, 34vw, 134px);
    overflow: hidden;
  }

  :is(#mission, #what, #benefit) .viz svg {
    flex: 0 0 100%;
  }

  :is(#mission, #what, #benefit) h1 {
    margin-bottom: 10px;
  }

  :is(#mission, #what, #benefit) p {
    line-height: 1.72;
  }

  :is(#mission, #what, #benefit) + .page {
    border-top: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .artwork-frame {
    transform: none;
  }
}

@media (min-aspect-ratio: 19/10), (orientation: landscape) and (max-aspect-ratio: 4/3) {
  .artwork-frame:first-child img {
    object-fit: contain;
  }
}
