@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;700;800&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 시안 v5 · 포트폴리오 콜라주형
   패프 캔바 포트폴리오의 종이·테이프·폴라로이드·외곽선 제목을 웹으로 옮겼다.
   종이·테이프는 임시로 CSS로 그렸고, 패프 원본 소스가 오면 이미지로 바꾼다. */
:root {
  --paper: #fbf7ee;
  --sheet: #fffdf8;
  --kraft: #d9bfa0;
  --ink: #263620;
  --ink-soft: #5f6656;
  --line: #e6dece;
  --forest: #4c7932;
  --sage: #8fae6f;
  --berry: #c52664;
  --pink: #ee97a3;
  --red: #c4312a;
  --marigold: #e7b625;
  --navy: #304769;
  --sky: #8dcbfc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: "Pretendard", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }

/* 시안 표시 */
.slot { border: 2px dashed #d3b98f; border-radius: 10px; background: rgba(255, 246, 225, .8); color: #8a6420; font-size: 14px; padding: 12px 14px; line-height: 1.6; }
.slot b { display: block; font-size: 12px; color: #a8782a; margin-bottom: 2px; }
.check { display: inline-block; font-size: 12px; font-weight: 600; color: #a8782a; background: #fbecc9; border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }

/* 패프식 제목: 대문자 + 흰 틈 + 색 그림자 */
.display {
  font-family: "League Spartan", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5.6vw, 76px); line-height: .98; letter-spacing: .01em;
  color: var(--fill, var(--sage));
  text-shadow: 3px 3px 0 #fff, 6px 6px 0 var(--shade, var(--pink));
}
.display.sm { font-size: clamp(26px, 3.4vw, 42px); text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--shade, var(--pink)); }
.ko { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin-top: 14px; line-height: 1.45; }
.lead { color: var(--ink-soft); font-size: 18px; max-width: 36em; }
.note-txt { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* 콜라주 소스: 폴라로이드 · 테이프 · 찢은 종이 */
.pola { position: relative; background: #fff; padding: 10px 10px 14px; box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 14px 26px -16px rgba(38, 54, 32, .55); transform: rotate(var(--r, 0deg)); }
.pola img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; }
.pola figcaption { font-family: "League Spartan", sans-serif; font-weight: 700; font-size: 14px; margin-top: 8px; line-height: 1.3; }
.pola figcaption span { display: block; font-family: "Pretendard", sans-serif; font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.tape { position: absolute; width: var(--w, 96px); height: 26px; background: var(--t, rgba(238, 151, 163, .62)); transform: rotate(var(--tr, -4deg)); z-index: 2;
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 98% 55%, 100% 82%, 96% 100%, 4% 96%, 0 70%, 2% 45%, 0 18%); }
.tape.top { top: -13px; left: calc(50% - var(--w, 96px) / 2); }
.tape.corner { top: -10px; left: -22px; --tr: -38deg; }
.tape.corner-r { top: -10px; right: -22px; --tr: 38deg; }
.t-green { --t: rgba(143, 174, 111, .6); }
.t-yellow { --t: rgba(231, 182, 37, .5); }
.t-blue { --t: rgba(141, 203, 252, .6); }
.t-red { --t: rgba(196, 49, 42, .85); }
.scrap { background: var(--sheet); padding: 16px 18px; box-shadow: 0 10px 20px -16px rgba(38, 54, 32, .6); transform: rotate(var(--r, 0deg));
  clip-path: polygon(0 3%, 6% 0, 14% 2%, 22% 0, 31% 3%, 40% 1%, 50% 3%, 61% 0, 70% 2%, 80% 0, 90% 3%, 100% 1%, 99% 30%, 100% 62%, 98% 100%, 88% 97%, 76% 100%, 64% 98%, 52% 100%, 40% 97%, 28% 100%, 16% 98%, 6% 100%, 0 97%, 1% 60%); }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pbar { display: flex; height: 22px; border-radius: 3px; overflow: hidden; }
.pbar i { flex: var(--w, 1); background: var(--c); }

/* 종이 바탕 */
.paper-stripe { background-color: #f7f4ec; background-image: repeating-linear-gradient(90deg, #f7f4ec 0 22px, #fdfbf6 22px 44px); }
.paper-kraft { background-color: var(--kraft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.28 0 0 0 0 0.15 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper-stripe.torn-top::before { background: #faf8f2; }
.paper-kraft.torn-top::before { background: var(--kraft); }
.torn-top::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 20px;
  clip-path: polygon(0 100%, 0 60%, 3% 30%, 6% 70%, 9% 20%, 13% 60%, 16% 35%, 20% 75%, 24% 25%, 28% 65%, 31% 40%, 35% 80%, 39% 30%, 43% 70%, 46% 15%, 50% 60%, 54% 35%, 58% 75%, 61% 20%, 65% 65%, 69% 40%, 72% 80%, 76% 25%, 80% 70%, 84% 35%, 87% 75%, 91% 20%, 95% 60%, 98% 30%, 100% 55%, 100% 100%); }

/* 버튼 */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 15px 26px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 16px; }
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: var(--forest); }
.btn-line { box-shadow: inset 0 0 0 2px var(--ink); background: rgba(255,255,255,.6); }

/* 상단 */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 238, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.mark { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.mark b { font-family: "League Spartan", sans-serif; font-weight: 800; font-size: 28px; color: var(--sage); text-shadow: 2px 2px 0 #fff, 3px 3px 0 var(--pink); }
.mark span { font-size: 13px; color: var(--ink-soft); }
.menu { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 15px; }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--forest); }
.menu .btn { padding: 9px 16px; font-size: 14px; }

/* 첫 화면: 콜라주 + 표지 제목 */
.hero { padding: 56px 0 72px; }
.collage { position: relative; height: 560px; }
.collage > * { position: absolute; }
.c1 { left: 30%; top: 10px; width: 40%; --r: -2deg; z-index: 3; }
.c2 { left: 0; top: 40px; width: 25%; --r: 5deg; }
.c3 { left: 6%; top: 300px; width: 22%; --r: -7deg; z-index: 2; }
.c4 { right: 2%; top: 0; width: 24%; --r: 4deg; }
.c5 { right: 8%; top: 290px; width: 20%; --r: -4deg; z-index: 4; }
.c6 { left: 63%; top: 400px; width: 15%; --r: 6deg; z-index: 5; }
.c1 img { --ar: 1 / 1; }
.cover-title { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.cover-title .display { font-size: clamp(34px, 5.9vw, 82px); }
.cover-title .sub { color: var(--berry); font-weight: 600; font-size: 15px; }
.hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-top: 36px; }
.hero-copy .title { font-size: 15px; font-weight: 600; color: var(--forest); }
.hero-copy h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.25; margin-top: 8px; }
.what { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.what span { background: var(--sheet); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

/* 두 입구: 테이프로 붙인 메모 두 장 */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.door { position: relative; display: block; text-decoration: none; padding: 36px 34px 30px; }
.door h2 { font-size: 28px; font-weight: 800; }
.door p { color: var(--ink-soft); margin-top: 8px; }
.door .go { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.door.brand h2 { color: var(--forest); }
.door.class h2 { color: var(--navy); }

/* 포트폴리오 묶음 */
.group { margin-top: 80px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.group-head p { color: var(--ink-soft); font-size: 15px; }
.group-row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 40px 34px; margin-top: 40px; align-items: start; }
.group-row .pola:nth-child(3n+1) { --r: -2.5deg; }
.group-row .pola:nth-child(3n+2) { --r: 2deg; margin-top: 18px; }
.group-row .pola:nth-child(3n+3) { --r: -1deg; margin-top: 6px; }

/* 콘셉트 작업: 패프 슬라이드 배치 */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; margin-top: 56px; }
.case.flip > :first-child { order: 2; }
.case-img { position: relative; }
.case-img > img { width: 100%; border-radius: 4px; box-shadow: 0 14px 26px -18px rgba(38,54,32,.6); }
.case-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.case-sub img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.meta { font-family: "League Spartan", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--berry); margin-top: 18px; }
.meta span { color: var(--ink-soft); font-weight: 500; }
.case h3 { font-size: 21px; font-weight: 800; margin: 18px 0 10px; }
.case p { color: var(--ink-soft); }
.cap { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.cap b { color: var(--ink); }

/* 클래스: 테이프로 붙인 노트 한 장 */
.class-sec { background: #efe9dc; }
.sheet {
  position: relative; background-color: var(--sheet);
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, #f1ebdf 35px 36px);
  padding: 60px 56px 48px; margin-top: 44px; box-shadow: 0 18px 40px -30px rgba(38, 54, 32, .55);
}
.sheet .tape.l { top: -12px; left: 8%; --tr: -6deg; }
.sheet .tape.r { top: -12px; right: 8%; --tr: 5deg; }
.sheet h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.status { display: inline-block; margin-top: 16px; background: #fde7d9; color: #9a3d16; border-radius: 6px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 8px; }
.spec div { background: var(--paper); border-radius: 8px; padding: 18px; }
.spec dt { font-size: 13px; color: var(--ink-soft); }
.spec dd { font-size: 17px; font-weight: 700; margin-top: 4px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.cols3 h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.cols3 p { font-size: 15px; color: var(--ink-soft); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.steps li { counter-increment: s; border-top: 3px solid var(--navy); padding-top: 14px; font-size: 15px; color: var(--ink-soft); }
.steps li::before { content: counter(s); display: block; font-family: "League Spartan", sans-serif; font-weight: 800; font-size: 30px; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.faq { margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--navy); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* 블로그 */
.posts { margin-top: 32px; border-top: 2px solid var(--ink); }
.post { display: grid; grid-template-columns: 120px 1fr 140px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post:hover h3 { color: var(--forest); }
.post time, .post span { font-size: 14px; color: var(--ink-soft); }
.post h3 { font-size: 18px; font-weight: 700; }

/* 소개 */
.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: center; }
.about .pola .slot { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.about p { color: var(--ink-soft); margin-top: 14px; }
.sign { color: var(--forest); font-weight: 700; margin-top: 22px; }

/* 문의: 크라프트지 위 마지막 장 */
.contact { padding: 110px 0 90px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact .pola { --r: -4deg; }
.x-tape { position: absolute; top: 18px; right: -18px; width: 70px; height: 70px; z-index: 3; }
.x-tape::before, .x-tape::after { content: ""; position: absolute; left: 0; top: 30px; width: 70px; height: 12px; background: var(--red); opacity: .9; transform: rotate(45deg); }
.x-tape::after { transform: rotate(-45deg); }
.contact .display { --fill: var(--pink); --shade: var(--berry); }
.contact .lead { color: #4b3a28; margin-top: 22px; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.notes .scrap { padding: 26px 24px; }
.notes h3 { font-size: 19px; font-weight: 800; }
.notes ul { margin: 10px 0 18px 18px; color: var(--ink-soft); font-size: 14.5px; }
.mail { margin-top: 28px; font-size: 21px; font-weight: 800; color: #3b2a19; }
.mail span { display: block; font-size: 15px; font-weight: 500; }

footer { padding: 30px 0 46px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* 폰 */
@media (max-width: 960px) {
  .spec { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 68px 0; }
  .menu li:not(:last-child) { display: none; }
  .collage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 12px; }
  .collage > * { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .c1 { grid-column: 1 / -1; }
  .c6 { display: none; }
  .hero-copy, .doors, .case, .about, .contact-grid, .notes, .cols3, .steps { grid-template-columns: 1fr; }
  .case.flip > :first-child { order: 0; }
  .group-row { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .group-row .pola { margin-top: 0 !important; }
  .sheet { padding: 40px 22px 32px; }
  .post { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .spec { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
