html,
body {
  margin: 0;
  background: #ffffff;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  font-family: "Geist Mono", monospace;
  font-weight: 200;
  font-size: 14px;
}

.stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}

body.carousel-open .stage {
  filter: blur(10px);
}

.image-layer {
  position: absolute;
  inset: 0;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.22,.61,.36,1), filter 320ms ease;
}

body.info-open .image-layer {
  opacity: 0.72;
  pointer-events: none;
  transform: scale(1.015);
  filter: blur(5px);
}

.center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  font-size: clamp(1.1rem, 4.2vw, 3.2rem);
  font-family: "Bowlby One", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #111111;
  text-align: center;
  text-transform: none;
  transition: color 280ms ease, transform 420ms cubic-bezier(.22,.61,.36,1), opacity 280ms ease;
}

body.info-open .center-title {
  color: #111111;
  transform: translate(-50%, -50%) scale(1.03);
}

.info-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 0;
  width: 34px;
  height: 34px;
  z-index: 9999;
  border: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: #d8ff00;
  color: transparent;
  cursor: pointer;
  font-family: "Bowlby One", sans-serif;
  font-size: 1rem;
  line-height: 1;
  display: block;
  overflow: hidden;
  animation: info-flash 1.4s ease-in-out infinite;
}

.info-btn::before {
  content: "i";
  position: absolute;
  top: 50%;
  left: 50%;
  color: #111;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

body.info-open .info-btn::before {
  content: "x";
  transform: translate(-50%, -50%);
}

.info-layer {
  position: absolute;
  inset: 0;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  background: rgba(216, 255, 0, 0.12);
  transform: scale(0.985);
  filter: blur(4px);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(.22,.61,.36,1), filter 320ms ease;
}

body.info-open .info-layer {
  opacity: 1;
  pointer-events: auto;
  background: rgba(216, 255, 0, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transform: scale(1);
  filter: blur(0);
}

.info-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  width: min(60vw, 980px);
  max-width: calc(100vw - 20px);
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

.info-panel .info-text,
.info-panel .info-links {
  font-family: "Geist Mono", monospace;
  font-weight: 200;
  color: #111;
}

.info-panel .info-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.42;
}

.info-panel .info-text a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
}

.info-panel .info-text a:hover {
  color: #ff4fb3;
  border-bottom-color: #ff4fb3;
}

.info-panel .info-links {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
  display: block;
}

.info-source {
  display: none;
}

@keyframes info-flash {
  0%,
  100% {
    background: #d8ff00;
  }
  50% {
    background: #ffffff;
  }
}

.info-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  display: none;
}

body.info-open .info-close {
  opacity: 1;
  pointer-events: auto;
}

.info-fragment {
  position: absolute;
  margin: 0;
  padding: 18px 20px;
  background: var(--fragment-bg, #d8ff00);
  color: #111;
  font-family: "Geist Mono", monospace;
  font-weight: 200;
  box-sizing: border-box;
  will-change: transform;
  transition: opacity 320ms ease, filter 320ms ease;
}

.info-fragment a {
  pointer-events: auto;
}

.info-fragment .info-text,
.info-fragment .info-links {
  font-size: 0.95rem;
}

.info-fragment .info-links {
  margin: 0;
  display: block;
}

.info-text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
  mix-blend-mode: normal;
}

.info-text:last-of-type {
  margin-bottom: 0;
}

.info-links {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  display: flex;
  gap: 10px;
  align-items: center;
}

.info-links a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
}

.info-links span {
  color: #777;
}

.media-item {
  position: absolute;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
}

.media-item img,
.media-item video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.scroll-space {
  position: relative;
  height: 0;
  z-index: 1;
}

.carousel {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  transform: translate3d(0, 26px, -80px) rotateX(8deg) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 220ms ease,
    transform 360ms cubic-bezier(.22,.61,.36,1);
  perspective: 1300px;
}

.carousel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.carousel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  z-index: 2;
  font-family: "Geist Mono", monospace;
  font-weight: 200;
}

.project-overlay {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 64px 24px 18px;
  box-sizing: border-box;
  gap: 14px;
  opacity: 0;
  transform: translate3d(0, 26px, -60px) rotateX(10deg) scale(0.98);
  transform-origin: top center;
  transition: transform 360ms cubic-bezier(.22,.61,.36,1), opacity 240ms ease;
}

.carousel.is-open .project-overlay {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

.project-title {
  font-family: "Bowlby One", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 8px;
  color: #111;
  letter-spacing: 0.03em;
  text-transform: none;
}

.project-desc {
  font-family: "Geist Mono", monospace;
  font-weight: 200;
  font-size: 14px;
  color: #222;
  margin: 0;
  max-width: 980px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.project-track {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  padding: 6px 2vw 6px;
  scrollbar-width: none;
  cursor: grab;
  scroll-snap-type: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.project-track::-webkit-scrollbar {
  display: none;
}

.project-track.is-dragging {
  cursor: grabbing;
}

.project-slide {
  flex: 0 0 auto;
  height: clamp(220px, 48vh, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slide-media {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.track-nav {
  position: absolute;
  right: 24px;
  bottom: 74px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.track-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #111;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  font-family: "Geist Mono", monospace;
  font-weight: 200;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.track-arrow:hover {
  background: #d8ff00;
}

.project-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 2vw 6px;
}

@media (min-width: 768px) {
  .project-overlay {
    padding: 70px 26px 22px;
  }

  .project-track {
    padding: 8px 2.5vw 6px;
  }

  .project-slide {
    height: clamp(260px, 52vh, 560px);
  }

  .project-meta {
    padding: 10px 2.5vw 6px;
  }
}

@media (max-width: 767px) {
  .info-btn {
    top: 14px;
    right: 14px;
  }

  .info-close {
    top: 14px;
    right: 14px;
  }

  .info-panel {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    max-width: none;
    padding: 0;
  }

  .project-overlay {
    padding: 52px 10px 12px;
    gap: 10px;
  }

  .project-track {
    padding: 2px 4vw 6px;
  }

  .project-slide {
    height: clamp(180px, 40vh, 300px);
  }

  .project-meta {
    padding: 8px 4vw 2px;
  }

  .track-nav {
    right: 14px;
    bottom: 64px;
  }

  .track-arrow {
    width: 36px;
    height: 36px;
  }
}

