@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');:root{--bg:#08090d;--ink:#f7f8fb;--muted:rgba(247,248,251,.61);--line:rgba(255,255,255,.15)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans KR',sans-serif}a{color:inherit;text-decoration:none}.back{position:fixed;z-index:3;top:24px;left:24px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:rgba(9,11,18,.38);backdrop-filter:blur(14px);font-size:25px}.hero{position:relative;height:min(72vw,820px);min-height:480px;overflow:hidden}.hero img{width:100%;height:100%;object-fit:cover;filter:brightness(.62)}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,var(--bg),transparent 60%)}.hero-copy{position:absolute;z-index:1;left:max(28px,calc((100% - 1180px)/2));bottom:84px}.tag,.label{color:#c8ff75;font-size:12px;font-weight:800;letter-spacing:.13em}.hero h1{margin:14px 0 8px;font-size:clamp(60px,10vw,150px);line-height:.86;letter-spacing:-.11em}.hero p{color:var(--muted)}main{width:min(980px,calc(100% - 44px));margin:0 auto;padding:80px 0 130px}.intro{max-width:780px;font-size:clamp(24px,3.2vw,42px);line-height:1.42;letter-spacing:-.055em}.block{margin-top:120px;padding-top:18px;border-top:1px solid var(--line)}.block h2{margin:14px 0 28px;font-size:clamp(34px,5vw,64px);letter-spacing:-.08em}.block ul{display:grid;gap:17px;padding:0;list-style:none}.block li{padding:0 0 17px;border-bottom:1px solid rgba(255,255,255,.1);color:var(--muted);line-height:1.7}.tech{display:flex;flex-wrap:wrap;gap:10px}.tech span{padding:11px 14px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.07)}.screens{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.screens img{width:100%;border-radius:18px;background:#15171d}@media(max-width:600px){.hero{height:78vw}.hero-copy{bottom:46px}.block{margin-top:76px}.screens{grid-template-columns:1fr}}
/* 상세 페이지는 스크롤 기능은 유지하고 브라우저 스크롤바만 숨깁니다. */
html,body{overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}
.back{width:50px;height:50px;font-size:0;transition:transform .35s ease,background .35s ease,border-color .35s ease}
.back::before{content:"";display:block;width:21px;height:21px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.back:hover{transform:scale(1.06);background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.42)}
body[data-project="pacing"] .back::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E")}
header{position:sticky;isolation:isolate}
header>a{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}

/* 상세 페이지 뒤로가기: 아이콘만 표시하고 글래스 버튼 테두리는 제거합니다. */
.back,
.back:hover {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: none !important;
  border: 0 !important;
  background: transparent url("../img/eva-arrow-white.png") center / 30px 30px no-repeat !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.back::before {
  display: none !important;
}

/* Pacing·집착 서비스 화면도 원본 비율을 유지해 전체 이미지를 표시합니다. */
body[data-project="pacing"] .screens,
body[data-project="jipchak"] .screens {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-project="pacing"] .screens::-webkit-scrollbar,
body[data-project="jipchak"] .screens::-webkit-scrollbar { display: none; width: 0; height: 0; }

body[data-project="pacing"] .screens > img,
body[data-project="jipchak"] .screens > img {
  flex: 0 0 220px;
  width: 220px;
  height: auto;
  aspect-ratio: 1242 / 2688;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  background: #202124;
  scroll-snap-align: start;
}

@media (max-width: 700px) {
  body[data-project="pacing"] .screens > img,
  body[data-project="jipchak"] .screens > img { flex-basis: 178px; width: 178px; }
}

/* 프로젝트 상세 페이지 링크: 날짜 아래에 놓이는 글래스 버튼 그룹 */
.detail-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.detail-link{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 14px;border:1px solid rgba(255,255,255,.32);border-radius:999px;background:rgba(255,255,255,.07);color:var(--ink);font-size:13px;font-weight:600;backdrop-filter:blur(14px);transition:transform .35s ease,background .35s ease,border-color .35s ease,box-shadow .35s ease}
.detail-link:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.78);background:rgba(255,255,255,.16);box-shadow:0 10px 26px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.42)}
.detail-link-icon{display:block;width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(1)}
.detail-link-icon--apple{width:17px;height:17px;filter:none;font-size:18px;line-height:1;color:currentColor}
.detail-link-icon--blog{display:grid;place-items:center;width:17px;height:17px;border:0;border-radius:0;font-size:11px;font-weight:700;line-height:1}
.detail-link>span:not(.detail-link-icon){font-size:13px!important}
.detail-link b{font-size:18px;font-weight:400;line-height:1;transform:translateY(-1px)}
.detail-link:focus-visible{outline:2px solid #c8ff75;outline-offset:3px}

/* 히어로 이미지 규칙이 링크 아이콘까지 확장되지 않도록 크기를 고정합니다. */
.hero .detail-link-icon{flex:0 0 16px!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important}
.hero .detail-link-icon--apple{flex-basis:17px!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;filter:none!important}
.hero .detail-link-icon--blog{flex-basis:17px!important;width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;filter:none!important}
body.is-light-theme .hero .detail-link-icon:not(.detail-link-icon--apple):not(.detail-link-icon--blog),
body.light .hero .detail-link-icon:not(.detail-link-icon--apple):not(.detail-link-icon--blog){filter:brightness(0)!important}

/* 상세 페이지 공통 테마 전환 버튼과 화이트 모드 */
.project-theme-toggle{position:fixed;z-index:4;top:24px;right:24px;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent url("../../img/moon.png") center/24px 24px no-repeat;color:transparent;font-size:0;cursor:pointer;transition:transform .3s ease,background-color .3s ease}
.project-theme-toggle:hover{transform:scale(1.08);background-color:rgba(255,255,255,.12)}
body.is-light-theme{--bg:#f4f5f8;--ink:#111522;--muted:rgba(17,21,34,.64);--line:rgba(17,21,34,.16);background:#f4f5f8!important;color:#111522}
body.is-light-theme .hero:after{background:linear-gradient(0deg,#f4f5f8,transparent 60%)}
body.is-light-theme .hero img{filter:brightness(.78)}
body.is-light-theme .project-theme-toggle{background-image:none;color:#111522}
body.is-light-theme .project-theme-toggle::before{content:"☀";font:400 24px/1 Arial,sans-serif}
body.is-light-theme .detail-link{border-color:rgba(17,21,34,.26);background:rgba(255,255,255,.5);color:#111522}
body.is-light-theme .detail-link:hover{border-color:rgba(17,21,34,.58);background:rgba(255,255,255,.82);box-shadow:0 10px 26px rgba(38,45,72,.12),inset 0 1px rgba(255,255,255,.9)}
body.is-light-theme .detail-link-icon:not(.detail-link-icon--apple):not(.detail-link-icon--blog){filter:brightness(0)!important}
body.is-light-theme .block li{border-color:rgba(17,21,34,.12)}
body.is-light-theme .tech span{border-color:rgba(17,21,34,.16);background:rgba(255,255,255,.5)}
body.is-light-theme .screens img{background:#e5e8ef}

/* 화이트 모드에서도 프로젝트 배너는 검정 배너 스타일을 유지합니다. */
body.is-light-theme .hero{
  background:#08090d!important;
  color:#f7f8fb!important;
}
body.is-light-theme .hero img{filter:brightness(.62)!important}
body.is-light-theme .hero:after{
  background:linear-gradient(0deg,#08090d,transparent 60%)!important;
}
body.is-light-theme .hero h1,
body.is-light-theme .hero p{color:#f7f8fb!important}
body.is-light-theme .hero p{color:rgba(247,248,251,.61)!important}
body.is-light-theme .hero .detail-link{
  border-color:rgba(255,255,255,.3)!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
}
body.is-light-theme .hero .detail-link:hover{
  border-color:rgba(255,255,255,.58)!important;
  background:rgba(255,255,255,.14)!important;
}
body.is-light-theme .hero .detail-link-icon:not(.detail-link-icon--apple):not(.detail-link-icon--blog){filter:brightness(0) invert(1)!important}
body.is-light-theme > .project-theme-toggle{background-image:none!important;color:#111522!important}
body.is-light-theme > .project-theme-toggle::before{content:"☀"!important;display:block!important;color:currentColor!important;font:400 24px/1 Arial,sans-serif!important;text-align:center!important}

/* 상세 페이지의 섹션 라벨과 검증 수치는 화이트 모드에서 파란색으로 강조합니다. */
body.is-light-theme main .label,
body.is-light-theme main .validation-result{
  color:#1769d1!important;
}

/* 상세 화면의 데스크톱 테마 버튼은 화면 오른쪽 끝에 고정합니다. */
.detail-theme-toggle{top:21px!important;right:24px!important;width:44px!important;height:44px!important}
@media(min-width:701px){
  body[data-project] > button.project-theme-toggle.detail-theme-toggle{top:19px!important;left:auto!important;right:18px!important;transform:none!important}
  body[data-project] > button.project-theme-toggle.detail-theme-toggle:hover{transform:scale(1.08)!important}
  body > .back{top:21px!important;left:24px!important;width:44px!important;height:44px!important}
}
@media(max-width:700px){
  .detail-theme-toggle{top:13px!important;right:14px!important}
  body > .back{top:13px!important;left:16px!important;width:44px!important;height:44px!important}
}

/* 화이트 모드에서는 밝은 배경 위에서도 뒤로가기 아이콘이 보이도록 검정 아이콘을 사용합니다. */
body.is-light-theme .back,
body.light .back {
  background-image: url("../img/eva-arrow-black.png") !important;
}
