
@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-5Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Paperlogy", "Malgun Gothic", "맑은 고딕", sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #222;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eee;
}

.topbar__logo img {
  height: 28px;
}

.lang {
  position: relative;
}

.lang__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 110px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  display: none;
}

.lang.open .lang__menu {
  display: block;
}

.lang__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
}

.lang__menu button:hover {
  background: #f5f5f5;
}

.lang__menu button.active {
  font-weight: 700;
}

.float-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.float-nav button:hover {
  background: #222;
  border-color: #222;
  color: #fff;
}

.profile {
  max-width: 900px;
  margin: 0 auto;
  padding: 110px 20px 40px;
}

.profile__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.profile__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile__name {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 14px;
}

.profile__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

.profile__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile__contact {
  margin-top: 14px;
  font-size: 17px;
  color: #444;
}

.profile__contact strong {
  font-weight: 700;
  color: #222;
}

.profile__link-icon {
  height: 18px;
  width: 18px;
  object-fit: contain;
}

.about {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 15px;
  color: #444;
  white-space: pre-line;
}

.works {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.works {
  overflow-x: hidden;
}

.works__tabs {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.works__mv {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-right: 0px;
}

.works__tab {
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s, font-size 0.25s;
}

.works__tab:hover {
  color: #555;
}

.works__tab.active {
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.works__tab-divider {
  color: #ccc;
  font-size: 17px;
}

.works__empty {
  text-align: center;
  color: #999;
  padding: 40px 0;
}

.works__list.slide-out-left {
  animation: works-out-left 0.25s ease forwards;
}

.works__list.slide-out-right {
  animation: works-out-right 0.25s ease forwards;
}

.works__list.slide-in-right {
  animation: works-in-right 0.35s ease;
}

.works__list.slide-in-left {
  animation: works-in-left 0.35s ease;
}

@keyframes works-out-left {
  to { opacity: 0; transform: translateX(-60px); }
}

@keyframes works-out-right {
  to { opacity: 0; transform: translateX(60px); }
}

@keyframes works-in-right {
  from { opacity: 0; transform: translateX(60px); }
}

@keyframes works-in-left {
  from { opacity: 0; transform: translateX(-60px); }
}

.work {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.work.visible {
  opacity: 1;
  transform: translateY(0);
}

.work__thumb {
  width: 45%;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.work__thumb:hover {
  transform: scale(1.03);
}

.work__thumb img,
.work__thumb video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.work__info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.work__info p {
  font-size: 14px;
  color: #555;
  white-space: pre-line;
}

.work__yt {
  margin-left: 8px;
}

.work__yt img {
  height: 18px;
  display: inline-block;
  vertical-align: -2px;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.viewer[hidden] {
  display: none;
}

.viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.viewer__window {
  position: relative;
  background: #fff;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 30px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: viewer-in 0.25s ease;
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.viewer__close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

.viewer__close:hover {
  color: #000;
}

.viewer__title {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.viewer__main img,
.viewer__main video {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #f4f4f4;
  display: block;
}

.viewer__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.viewer__thumbs img,
.viewer__thumbs video {
  width: 100px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}

.viewer__thumbs img:hover,
.viewer__thumbs video:hover {
  border-color: #999;
}

.viewer__thumbs img.active,
.viewer__thumbs video.active {
  border-color: #222;
}

body.viewer-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .profile {
    padding-top: 90px;
  }

  .topbar {
    padding: 8px 16px;
  }

  .float-nav {
    right: 12px;
    bottom: 12px;
  }

  .float-nav button {
    width: 38px;
    height: 38px;
  }

  .profile__inner {
    flex-direction: column;
    gap: 20px;
  }

  .profile__photo {
    width: 140px;
    height: 140px;
  }

  .profile__side {
    text-align: center;
  }

  .profile__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .work {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
  }

  .work__thumb {
    width: 100%;
  }

  .work__info {
    text-align: center;
  }

  .viewer__window {
    padding: 36px 16px 20px;
  }

  .viewer__thumbs img,
  .viewer__thumbs video {
    width: 80px;
  }
}
