.folder-home {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: clip;
  background: #f5f1ea;
  color: #1d1f21;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

.folder-home-stage {
  position: relative;
  width: min(100vw, 1440px, calc(100vh * 1.6));
  aspect-ratio: 1440 / 900;
  overflow: visible;
}

.folder-home-button {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.folder-home-button > img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.folder-home-button:focus-visible {
  outline: 2px solid #52636d;
  outline-offset: 4px;
}

.folder-home-tab {
  position: absolute;
  display: block;
}

.folder-home-preview {
  position: absolute;
  width: 66.6667%;
  height: 0;
  pointer-events: none;
  container-type: inline-size;
}

.folder-home-preview-card {
  position: absolute;
  top: 0;
  width: 19%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

.folder-home-preview-card img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.folder-home-hello {
  position: absolute;
  left: 67%;
  top: -13cqw;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: #1d3f6e;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(23px, min(1.9vw, 3vh), 32px);
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 26px rgba(31, 34, 36, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.folder-home-hello::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 32%;
  width: 14px;
  height: 16px;
  background: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

.folder-home-tooltip {
  position: absolute;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: clamp(10px, min(0.9vw, 1.4vh), 12px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(29, 31, 33, 0.1);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.folder-home-wordmark {
  position: absolute;
  z-index: 16;
  display: block;
  left: 50%;
  top: 70%;
  width: min(70vw, 760px);
  color: #B5651D;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.folder-home-wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.long-surface {
  position: relative;
  z-index: 20;
  background: #fff;
}

body.home-active {
  height: 100vh;
  overflow: hidden;
  background: #f5f1ea;
}

body.home-active .long-surface {
  transform: translateY(100vh);
}
