@font-face{
  font-family: "MiniPizza";
  src: url("fonts/Mini Pizza.otf") format("opentype");
  font-display: swap;
}
@font-face{
  font-family: "LGGothic";
  src: url("fonts/LGGothic.ttf") format("truetype");
  font-display: swap;
}
@font-face{
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy.ttf") format("truetype");
  font-display: swap;
}

:root{
  --bg:#ffffff;
  --ink:#111;
  --green:#c8f08a;
  --green2:#e3f7c4;
  --bubble:#bfe88a;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
}

/* header */
.top{
  position:fixed;
  top:0; left:0;
  width:100%;
  padding:26px 34px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  z-index:10;
}
.home-link {
  text-decoration: none;   /* 밑줄 제거 */
  color: inherit;          /* 기존 글자색 유지 */
  cursor: pointer;
}

.home-link:hover {
  opacity: 0.85;           /* 살짝 반응 */
}

.top-left{
  justify-self:start;
  font-family:"MiniPizza", sans-serif;
  font-size:20px;
}
.top-title{
  justify-self:center;
  font-family:"MiniPizza", sans-serif;
  font-size:44px;
}
.top-right{
  justify-self:end;
}
.top-right img{
  width:44px; height:44px;
  object-fit:contain;
}
.top-title {
  font-family: "MiniPizza";
  font-size: 45px;
  text-decoration: none; /* 밑줄 제거 */
  color: #000;
}

.top-title:hover {
  opacity: 0.7;
}

/* stage */
.stage{
  position:relative;
  height:100vh;
  padding-top:110px;
}

.folder-cluster {
  position: relative;   /* 기준판 */
  width: 420px;
  height: 380px;
  margin: 200px auto 0;
}

.folder-item{
  position:absolute;
  width:110px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:var(--ink);
}

.folder-img{
  width:76px;
  height:auto;
  display:block;
}

.folder-name{
  font-family:"LGGothic", sans-serif;
  font-size:17px;
  margin-top:10px;
  text-align:center;
}

.folder-item.ghost{
  pointer-events:none;
  opacity:.55;
}
.folder-item.ghost .folder-name{ opacity:0; }

/* positions */

/* 어바웃 */
.p1 { top: 70px;   left: 500px; }

/* 웍스 */
.p2 { top: 70px;  left: 700px; }

/* 컨택트 */
.p3 { top: 70px;  left: 300px; }

/* 오위 */
.p4 { top: -10px; left: 600px; }

/* 왼위 */
.p5 { top: -10px; left: 400px; }

/* 왼아래 */
.p6 { top: 180px; left: 400px; }

/* 오아래 */
.p7 { top: 180px; left: 600px; }

/* 오아래 */
.p8 { top: 280px; left: 500px; }

.folder-item:hover .folder-img{
  transform: translateY(-2px) rotate(-0.5deg);
}

/* intro */
.intro{
  position:absolute;
  right:350px;
  top:280px;
  width:420px;
  font-family:"LGGothic", monospace;
  font-size:17px;
  line-height:1.7;
}

/* mascot area */
.mascot-area {
  position: absolute;
  right: 300px;      /* 화면 오른쪽 여백 */
  bottom: 90px;      /* 화면 아래 여백 */
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

/* character */
.me {
.me{ width:120px !important; height:auto !important; }

}

/* speech bubble */
.bubble {
  background: var(--green);
  padding: 18px 28px;
  border-radius: 24px;
  font-family: "LGGothic";
  font-size: 20px;
  position: relative;
  white-space: nowrap;
  margin-bottom: 150px;  /* ← 숫자 키우면 더 올라감 */
}

/* 말풍선 꼬리 */
.bubble::after {
  content: "";
  position: absolute;

  right:-15px;
  bottom: 7px;
 /* 삼각형 */
  width:28; height:014;
  border-style: solid;
  border-width: 10px 0 10px 18px; /* 세로, 가로 */
  border-color: transparent transparent transparent var(--green);

  /* ✅ 사선으로 내려오게 */
  transform: rotate(35deg);
  transform-origin: left center;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent var(--green);

}
.me{
  width:20px;
  height:auto;
  display:block;
}
/* 강제 적용(충돌 방지) */
.folder-item{ position:absolute !important; }
.folder-cluster{ position:absolute !important; }
.me{ width:120px !important; height:auto !important; }
/* ✅ me 크기 강제 고정 (다 덮어씀) */
.mascot-area .me{
  width: 80px !important;
  height: auto !important;
  max-width: none !important;
}
.top-right img:hover{
  transform: translateY(-2px);
}/* =========================
   INTERACTION PACK
   paste at bottom of style.css
========================= */

/* 공통: 부드러운 움직임 */
.top-right img,
.folder-item,
.folder-img,
.bubble,
.me,
.top-left{
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

/* 1) 오른쪽 상단 집 아이콘 hover */
.top-right img{
  cursor: pointer;
}
.top-right img:hover{
  transform: translateY(-2px) rotate(-2deg) scale(1.04);
}

/* 2) fav 텍스트 하트 살짝 반짝 */
.top-left{
  display: inline-block;
}
@keyframes twinkle {
  0%,100% { transform: translateY(0); filter: none; }
  50% { transform: translateY(-2px); filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }
}
.top-left:hover{
  animation: twinkle .6s ease-in-out;
}

/* 3) 폴더 hover: 둥둥 + 살짝 흔들 */
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.folder-item{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  user-select: none;
}
.folder-item:hover .folder-img{
  animation: floaty 1.2s ease-in-out infinite;
  transform: rotate(-2deg);
  filter: drop-shadow(0 10px 0 rgba(0,0,0,.08));
}
.folder-item:active .folder-img{
  transform: translateY(2px) scale(.98);
  filter: none;
}

/* 폴더 글자: hover 시 진하게 */
.folder-label{
  display: block;
  text-align: center;
}
.folder-item:hover .folder-label{
  transform: translateY(-1px);
}

/* 4) 말풍선 둥둥 (아주 미세하게) */
@keyframes bubbleFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.bubble{
  animation: bubbleFloat 2.6s ease-in-out infinite;
}

/* 말풍선 꼬리도 같이 살짝 움직이게 */
.bubble::after{
  transition: transform .18s ease;
}
.mascot-area:hover .bubble::after{
  transform: rotate(12deg);
}

/* 5) 캐릭터 숨쉬기 느낌 */
@keyframes breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}
.me{
  animation: breathe 3.2s ease-in-out infinite;
}

/* 6) 캐릭터에 마우스 올리면 살짝 인사 */
.me:hover{
  transform: translateY(-2px) rotate(1deg) scale(1.03);
}
/* ======================
   PAGE TRANSITION
====================== */

/* 기본 상태 */
body{
  opacity: 1;
  transition: opacity 0.35s ease;
  
}

/* 페이지 나갈 때 */
body.fade-out{
  opacity: 0;
}
/* ======================
   ABOUT PAGE (web-02)
====================== */

.page-about{
  background: var(--bg);
}

/* 헤더 제목 링크처럼 보이게 */
.top-title{
  font-family: "MiniPizza";
  font-size: 40px;
  text-decoration: none;
  color: var(--ink);
}

/* about 전체 래핑: 스케치처럼 가운데 정렬 */
.about-wrap{
  padding-top: 130px;          /* 헤더 아래 공간 */
  width: min(1000px, 92vw);
  margin: 0 auto;
  text-align: center;
}

/* 큰 이미지 */
.about-hero{
  margin-top: 15px;
}

.about-img{
  width: min(600px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 타이틀 */
.about-title{
  margin-top: 32px;
  font-family: "LGGothic";
  font-size: 18px;
  letter-spacing: 1px;
}

/* 본문 텍스트(스케치처럼) */
.about-text{
  margin: 1px auto 0;
  font-family: "LGGothic";
  font-size: 17px;
  line-height: 1.2;
  max-width: 830px;
  white-space: pre-line;
}
/* about page - top icon size */
.top-icon{
  width: 26px;
  height: auto;
  display: block;
}

/* 이미지 위에 메모 뜨는 hover */
.hover-note{
  position: relative;
  display: inline-block;
}

.hover-note .note{
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);

  width: min(550px, 85%);
  background: rgba(255,255,255,0.92);
  border: 1px dashed var(--green);
  border-radius: 18px;
  padding: 14px 16px;

  font-family: "paperLogy";
  font-size: 12px;
  line-height: 1.7;
  color: #111;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.hover-note:hover .note{
  opacity: 1;
}

/* 링크 기본 보라색/밑줄 방지 (헤더 포함) */
a{
  color: inherit;
  text-decoration: none;
}
/* about title hover bubble */
.about-title-wrap {
  position: relative;
  display: inline-block;
}

/* 말풍선 기본 상태 (안 보임) */
/* 말풍선 기본 상태 (안 보임) */
.about-bubble {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  transform: translateY(-50%) translateY(6px) scale(0.98);

  background: #f3ffe9;              /* 🍏 연두 배경 */
  border: 2px dashed #9bcf8b;       /* 🧵 스티치 느낌 */
  padding: 16px 20px;
  width: 510px;

  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);

  font-family: "LGGothic";
  font-size: 14px;
  line-height: 1.6;
  color: #1f2b1f;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.3s cubic-bezier(.2,1,.2,1),
    transform 0.3s cubic-bezier(.2,1,.2,1);
  transform-origin: left center;
}

/* 말풍선 꼬리 */
.about-bubble::after{
  content:"";
  position:absolute;

  left: -12px;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);

  width: 18px;
  height: 14px;

  background: #f3ffe9;
  border-left: 2px dashed #9bcf8b;
  border-bottom: 2px dashed #9bcf8b;

  border-bottom-left-radius: 12px;

  transition: transform 0.3s cubic-bezier(.2,1,.2,1);
}


/* hover 시 꼬리도 제자리로 */
.about-title-wrap:hover .about-bubble::after{
  transform: translateY(-50%) rotate(0deg);
}



/* 제목에 마우스 올리면 보이게 */
.about-title-wrap:hover .about-bubble {
  opacity: 1;
  transform: translateY(-50%) translateY(0px) scale(1); /* ✅ 제자리로 슥 올라옴 */
}
@media (max-width: 768px){
  .about-bubble{
    display: none;
  }
}
/* =========================
   WORKS PAGE
========================= */
.page-works .works-wrap{
  padding-top: 140px; /* 헤더 아래로 내려오게 */
  padding-left: 120px;
  padding-right: 120px;
  padding-bottom: 260px;
}

.works-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2개 나란히 */
  gap: 70px;
  align-items: start;
}

.work-card{
  text-align: center;
}

.work-img{
  width: 100%;
  max-width: 600px; /* 스케치처럼 너무 커지지 않게 */
  border-radius: 14px;
  display: block;
  margin: 0 auto 40px;
}

/* 제목/설명 스타일 (스케치 느낌) */
.work-title{
  font-family: "Paperlogy";
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}


.work-sub{
  margin-top: 0;
  margin: 6px 0 0;
  font-family: "Paperlogy";
  font-size: 13px;
  opacity: 0.7;
}

/* 살짝 귀엽게 인터랙션 */
.work-card:hover .work-img{
  transform: translateY(-4px);
}
.work-img{
  transition: transform 0.2s ease;
}

/* 3번째 작업이 있으면 아래로 내려오게 (2열이라 자동으로 내려감) */
/* =========================
   MODAL (WORKS POPUP)
========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;           /* 기본은 숨김 */
}

.modal.is-open{
  display: block;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.modal-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(900px, 92vw);
  max-height: 86vh;

  background: #ffffff;     /* ✅ 완전 불투명 흰색 */
  border-radius: 18px;     /* 둥근 모서리만 유지 */
  border: none;            /* ✅ 스티치 제거 */

  padding: 18px 18px 14px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);

  overflow: hidden;
  animation: popIn 0.2s ease-out;
}


.modal-close{
  position: absolute;
  right: 12px;
  top: 10px;

  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;

  font-size: 22px;
  line-height: 34px;
}

.modal-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;

  border-radius: 16px;
  background: #fff;
  padding: 6px;
}


.modal-caption{
  margin-top: 10px;
  font-family: "Paperlogy";
  font-size: 14px;
  opacity: 0.75;
  text-align: center;
}
/* modal pop-in animation */
@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
/* modal arrow buttons */
.modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  font-size: 26px;
  cursor: pointer;
}

.modal-nav.prev{ left: 12px; }
.modal-nav.next{ right: 12px; }
/* modal image slide feeling */
.modal-img{
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.is-next .modal-img{
  transform: translateX(20px);
  opacity: 0;
}

.modal.is-prev .modal-img{
  transform: translateX(-20px);
  opacity: 0;
}
.work-left {
  grid-column: 1; /* 무조건 왼쪽 칸 */
}

.paperlogy p,
.paperlogy .email {
  font-family: 'Paperlogy', sans-serif;
  letter-spacing: -0.2px;
}
/* ===== 공통 상단 ===== */
.site-header{
  width:100%;
  height:72px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:0 40px;
}

/* 왼쪽 fav */
.header-left{
  font-family:'MiniPizza', sans-serif;
  font-size:18px;
}

/* 중앙 타이틀 */
.header-title{
  font-family:'MiniPizza', sans-serif;
  font-size:40px;
  text-align:center;
  line-height:1;
}

/* 오른쪽 아이콘 */
.header-icon{
  justify-self:end;
}

.header-icon img{
  width:22px;
  height:22px;
  opacity:0.45;
}

.header-icon:hover img{
  opacity:0.8;
}
.main {
  margin-top: 140px;          /* 헤더 아래로 내리기 */
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;        /* 세로 중앙 */
}
