:root {
  --bg: #f8f8f6;
  --text: #141414;
  --muted: #646464;
  --accent: #c7ff1a;
  --panel: #ffffff;
  --pad: clamp(28px, 5vw, 84px);
  --header-h: clamp(76px, 9vw, 102px);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  scrollbar-color: var(--accent) #e7e7e3;
  scrollbar-width: thin;
}

body [lang='ko'] {
  font-family: 'Barlow Condensed', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 0.84em;
  letter-spacing: -0.025em;
  font-stretch: 90%;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #e7e7e3;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid #e7e7e3;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

.site-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  padding: clamp(14px, 2vw, 22px) var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 80;
  pointer-events: none;
  background: var(--bg);
}

.site-header a {
  pointer-events: auto;
}

.logo {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.logo img {
  height: clamp(30px, 3vw, 44px);
  width: auto;
  display: block;
}

.logo:hover {
  color: #2d2d2d;
}

.top-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  max-width: none;
}

.top-nav a {
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.36rem 0.62rem;
  min-height: 2.05rem;
  border-radius: 999px;
  transition: color 0.24s ease, font-family 0.24s ease, letter-spacing 0.24s ease;
}

.top-nav a[data-nav='work'] {
  width: 86px;
}

.top-nav a[data-nav='characters'] {
  width: 136px;
}

.top-nav a[data-nav='about'] {
  width: 90px;
}

.top-nav a[data-nav='contact'] {
  width: 102px;
}

.top-nav a:hover {
  background: transparent;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  letter-spacing: 0.02em;
}

.top-nav a.active {
  background: transparent;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: normal;
  letter-spacing: 0.02em;
}

.top-nav a.active:hover {
  background: transparent;
}

main {
  flex: 1;
  padding-top: var(--header-h);
}

.site-footer {
  padding: 24px var(--pad) 30px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(0.94rem, 1.1vw, 1.06rem);
  letter-spacing: 0.02em;
}

.footer-copy {
  color: #1e1e1e;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 22px;
  height: 22px;
  color: #1d1d1d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s ease, transform 0.24s ease;
  opacity: 0.82;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.landing-scroll {
  min-height: calc(100svh - var(--header-h));
  padding: 0 var(--pad) clamp(16px, 2.5vw, 30px);
}

.landing-sticky {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-content: start;
  gap: 0;
}

.landing-stack {
  position: relative;
  width: min(90vw, calc((100svh - var(--header-h) - 28px) * 16 / 9), 1160px);
  aspect-ratio: 16 / 9;
  height: auto;
  perspective: 1400px;
  margin: 0 auto;
  border-radius: clamp(10px, 1.6vw, 16px);
  outline: none;
}

.landing-stack:hover {
  cursor: ns-resize;
}

.landing-card {
  position: absolute;
  inset: 0;
  border-radius: clamp(10px, 1.6vw, 16px);
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transform-origin: center center;
  will-change: transform;
}

.landing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-label {
  display: none;
}

.page-wrap {
  padding: calc(var(--header-h) + 18px) var(--pad) clamp(40px, 5vw, 64px);
}

.page-wrap-work {
  padding: var(--header-h) 0 0;
}

.work-grid {
  position: relative;
  width: 100%;
  min-height: 1px;
}

.work-card {
  position: absolute;
  display: block;
  width: 33.333333%;
  border: 0;
  background: #0000;
  padding: 0;
  text-align: left;
  cursor: pointer;
  margin: 0;
}

.work-thumb {
  position: relative;
  overflow: hidden;
  background: transparent;
  line-height: 0;
}

.work-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  transition: filter 0.36s ease;
}

.work-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-size: clamp(1.42rem, 2.3vw, 2.08rem);
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  letter-spacing: 0.03em;
  color: #fff;
  background: #0000008f;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.work-card:hover .work-thumb img {
  transform: none;
  filter: brightness(0.52);
}

.work-card:hover .work-hover {
  opacity: 1;
}

.about-layout {
  padding: calc(var(--header-h) + 40px) var(--pad) clamp(40px, 6vw, 84px);
  display: grid;
  gap: clamp(20px, 3.2vw, 40px);
  justify-items: center;
  align-content: start;
  max-width: 1080px;
  margin: 0 auto;
}

.about-logo {
  width: min(100%, 560px);
  margin: 0;
}

.about-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-copy {
  width: min(100%, 860px);
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  line-height: 1.38;
  display: grid;
  gap: 16px;
  text-align: center;
}

.about-copy p {
  margin: 0;
}

.section-title {
  margin: 0;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: 0.02em;
}

.about-recognition {
  margin-top: clamp(46px, 6vw, 76px);
  display: grid;
  gap: 10px;
}

.about-recognition .section-title {
  margin-bottom: 10px;
}

.recognition-split {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 36px);
  align-items: center;
  margin: 0 auto;
}

.recognition-media {
  margin: 0;
  width: clamp(180px, 24vw, 300px);
  justify-self: end;
}

.recognition-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.recognition-text {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 3px;
  align-self: center;
  justify-self: start;
}

.recognition-title {
  margin: 0;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.recognition-link {
  font-size: clamp(0.78rem, 0.92vw, 0.94rem);
  line-height: 1.1;
  transform: translateY(0.2em);
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.recognition-link:hover {
  opacity: 1;
}

.recognition-sub {
  margin: 0;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  color: #7a7a7a;
}

.recognition-note {
  margin: 0;
  font-size: clamp(1.12rem, 1.55vw, 1.32rem);
  color: #252525;
}

.about-credit {
  margin: 0;
  font-size: clamp(1.16rem, 1.62vw, 1.36rem);
  letter-spacing: 0.01em;
}

.contact-layout {
  --contact-section-gap: clamp(36px, 5vw, 62px);
  --contact-title-body-gap: 10px;
  padding: calc(var(--header-h) + clamp(50px, 8vh, 110px)) var(--pad) clamp(70px, 10vh, 120px);
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  min-height: calc(100svh - var(--header-h));
  gap: var(--contact-section-gap);
}

.contact-block {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.contact-main {
  gap: var(--contact-title-body-gap);
}

.contact-main-info {
  display: grid;
  justify-items: center;
  gap: var(--contact-section-gap);
}

.contact-line {
  margin: 0;
  font-size: clamp(1.12rem, 1.55vw, 1.36rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.contact-line a {
  background-image: linear-gradient(transparent 68%, var(--accent) 0);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.contact-line a:hover {
  background-size: 100% 100%;
}

.contact-links {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.contact-links a {
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  background-image: linear-gradient(transparent 70%, var(--accent) 0);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.contact-links a:hover {
  background-size: 100% 100%;
}

.characters-scroll {
  min-height: 0;
  padding: 0;
}

.characters-stage {
  position: relative;
  width: 100%;
  height: clamp(460px, calc(62svh + 40px), 740px);
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  perspective: 1420px;
  background: var(--bg);
  border-radius: 0;
}

.characters-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.character-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(190px, 25vw, 620px);
  aspect-ratio: var(--char-ratio, 0.62);
  border: 0;
  padding: 0;
  background: #0000;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: none;
  pointer-events: none;
}

.character-node.is-hover {
  filter: none;
}

.character-node .pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: none;
}

.character-node .pose-b {
  opacity: 0;
  transform: translateY(4px) scale(0.985);
}

.character-node.is-hover .pose-a {
  opacity: 0;
  transform: translateY(-5px) rotate(-0.7deg);
}

.character-node.is-hover .pose-b {
  opacity: 1;
  transform: translateY(-8px) rotate(0.7deg);
}

.character-label {
  display: none;
}

.characters-story {
  width: min(860px, calc(100% - (var(--pad) * 2)));
  padding: calc(clamp(8px, 1.4vw, 16px) + 10px) 0 clamp(56px, 8vw, 110px);
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: clamp(8px, 1.3vw, 14px);
  text-align: center;
  justify-items: center;
}

.characters-story-title {
  margin: 0;
}

.characters-copy {
  width: 100%;
}

.characters-copy p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: calc(var(--header-h) + 4px) clamp(14px, 3.4vw, 34px) 18px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: #00000063;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(100%, 920px);
  max-height: calc(100svh - var(--header-h) - 28px);
  overflow-y: auto;
  position: relative;
  border-radius: clamp(18px, 2.5vw, 30px);
  background: var(--bg);
  box-shadow: 0 16px 44px #0000002f;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-panel::-webkit-scrollbar {
  display: none;
}

.modal-head {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.modal-head-inner {
  display: grid;
  gap: 6px;
  padding: clamp(18px, 2.8vw, 28px) clamp(20px, 3.2vw, 40px) clamp(38px, 5vw, 70px);
  background: linear-gradient(180deg, #000000c9 0%, #0000008a 44%, #00000000 100%);
  text-align: center;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.modal-title {
  margin: 0;
  font-size: clamp(1.34rem, 2vw, 1.78rem);
  letter-spacing: 0.02em;
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-weight: 400;
  color: #fff;
}

.modal-desc {
  margin: 0;
  color: #fff;
  font-size: clamp(0.94rem, 1.12vw, 1.02rem);
}

.modal-gallery {
  display: grid;
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.modal-gallery figure {
  margin: 0;
  line-height: 0;
}

.modal-gallery img,
.modal-gallery video,
.modal-gallery iframe {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.modal-gallery iframe {
  aspect-ratio: 16 / 9;
}

@media (max-width: 980px) {
  .recognition-split {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .recognition-media {
    justify-self: center;
  }

  .recognition-text {
    text-align: center;
    justify-self: center;
  }

  .work-card {
    width: 50%;
  }

  .landing-stack {
    width: min(93vw, calc((100svh - var(--header-h) - 24px) * 16 / 9));
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 82px;
  }

  .top-nav {
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    font-size: 1rem;
    padding: 0.34rem 0.52rem;
  }

  .logo img {
    height: 30px;
  }

  .work-card {
    width: 100%;
  }

  .characters-stage {
    min-height: 0;
    height: calc(100svh - var(--header-h));
  }

  .modal {
    padding: 10px;
  }
}
