/* 제목용 글꼴: 페이퍼로지 (눈누 noonnu.cc/font_page/1456, SIL 오픈 폰트 라이선스) */
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Paperozi'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #fcfcff;
  --surface: #ffffff;
  --ink: #151a30;
  --ink-2: #4f5568;
  --ink-3: #676d82;          /* 흰 바탕에서 4.5:1 이상 */
  --dim: #8c91a8;            /* 큰 글자 전용 (3:1 이상) */
  --line: #e8e9f1;
  --accent: #5653e8;
  --navy: #151a3c;
  --shadow-sm: 0 1px 2px rgb(21 26 60 / 0.04), 0 10px 28px -16px rgb(40 44 110 / 0.22);
  --shadow-lg: 0 0 0 1px rgb(21 26 60 / 0.05), 0 36px 70px -30px rgb(40 44 120 / 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 4.5vw, 56px);
  --max: 1360px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --display: "Paperozi", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p, li { text-wrap: pretty; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
i { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#i-github path { fill: currentColor; stroke: none; }

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn .ic { font-size: 15px; transition: transform 0.25s var(--ease); }
.btn:hover .ic { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgb(21 26 60 / 0.6); }
.btn-dark:hover { background: #262d5c; }
.btn-outline { border: 1.5px solid #cfd2e0; background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline:hover .ic { transform: translateY(2px); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #ecebff; }
.btn-ghost { border: 1.5px solid rgb(255 255 255 / 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }

.round {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1.5px solid #d6d8e5; background: var(--surface); color: var(--ink); font-size: 18px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.round:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #dcdeea; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink);
}
.pill i { width: 7px; height: 7px; rotate: 45deg; border-radius: 1.5px; background: var(--accent); }
.pill .ic { font-size: 13px; }

/* 섹션 라벨: 글자 + 짧은 선 */
.label { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.label::after { content: ""; width: 44px; height: 1px; background: #c9c8f3; }

/* ───────── 상단 바 ───────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 68px; padding: 0 var(--gutter);
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.topbar.is-stuck { background: rgb(252 252 255 / 0.97); border-bottom-color: var(--line); }
.topbar > .btn { justify-self: end; }
.brand { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 14.5px; font-weight: 500; color: var(--ink-3); }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: none; }

/* ───────── 첫 화면 ───────── */
.hero { position: relative; isolation: isolate; padding-top: 68px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -10%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(closest-side, rgb(120 116 255 / 0.16), rgb(160 190 255 / 0.08) 55%, transparent);
}
.hero-inner {
  max-width: 1640px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) var(--gutter) clamp(24px, 5vh, 64px);
  display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 13fr); gap: clamp(24px, 3vw, 56px); align-items: center;
  min-height: min(calc(100svh - 68px - 80px), 760px);
}
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.hero-copy > :nth-child(5) { animation-delay: 0.28s; }
.hero h1 {
  font-size: clamp(36px, 3.6vw, 64px); font-weight: 700; line-height: 1.14; letter-spacing: -0.035em;
}
@media (min-width: 1025px) { .hero h1 { white-space: nowrap; } }
.hero h1 .dim { color: var(--dim); }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; letter-spacing: -0.01em; }
.hero-desc { margin-top: 12px; font-size: 16px; color: var(--ink-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* 입체로 떠 있는 화면들 */
/* 오른쪽 여백까지 써서 작업 화면을 크게 보여 준다 */
.stage { position: relative; aspect-ratio: 1.3; margin-right: calc(-0.6 * var(--gutter)); perspective: 2200px; animation: stage-in 1.3s 0.2s var(--ease) both; }
.scene {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(20deg + var(--rx, 0deg))) rotateY(calc(-24deg + var(--ry, 0deg))) rotateZ(9deg);
  transition: transform 0.7s var(--ease);
}
.s {
  position: absolute; padding: 5px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg);
  animation: bob 8s ease-in-out infinite;
}
.s img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 10px; }
.s-main { left: 14%; top: 24%; width: 62%; aspect-ratio: 16 / 10.4; padding: 9px; border-radius: 20px; transform: translateZ(70px); animation-delay: -1s; }
.s-main img { border-radius: 12px; }
.s-back1 { left: 1%; top: 4%; width: 33%; aspect-ratio: 4 / 3.1; transform: translateZ(-50px); opacity: 0.94; animation-delay: -3s; }
.s-back2 { left: 48%; top: -2%; width: 30%; aspect-ratio: 4 / 3.3; transform: translateZ(-80px); opacity: 0.92; animation-delay: -5s; }
.s-small { left: 0%; top: 66%; width: 31%; aspect-ratio: 16 / 9.6; transform: translateZ(20px); animation-delay: -2s; }
.s-side { left: 67%; top: 22%; width: 33%; aspect-ratio: 16 / 10; transform: translateZ(10px); animation-delay: -4s; }
.s-phone {
  left: 74%; top: 50%; width: 17%; aspect-ratio: 9 / 19; padding: 5px; border-radius: 24px;
  background: #15161d; transform: translateZ(140px); animation-delay: -6s;
}
.s-phone img { border-radius: 19px; object-position: center top; }

.scroll-down {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content;
  margin: clamp(20px, 4vh, 48px) auto 0; padding: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3);
}
.mouse { position: relative; width: 20px; height: 30px; border: 1.5px solid #b6b9cc; border-radius: 12px; }
.mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-3); animation: wheel 1.8s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* ───────── 공통 섹션 ───────── */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(88px, 11vw, 150px) var(--gutter) 0; }
.section h2 { margin-top: 14px; font-size: clamp(28px, 3.3vw, 40px); font-weight: 700; line-height: 1.38; letter-spacing: -0.03em; }
.lead { margin-top: 18px; color: var(--ink-3); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-note { color: var(--ink-3); font-size: 15px; }

/* ───────── About ───────── */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-copy { position: relative; padding-right: clamp(0px, 3vw, 44px); }
.about-copy::after { content: ""; position: absolute; right: 0; top: 4%; bottom: 4%; width: 1px; background: var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: clamp(28px, 4vw, 44px); }
.stats li { padding: 0 clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font-family: var(--display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; }
.stats span { font-size: 13.5px; color: var(--ink-3); }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--accent); }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.about-photo { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.03); }

/* ───────── Skills ───────── */
.skill-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.skill-grid li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 12px 22px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm);
  text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.8s var(--ease);
}
.skill-grid li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgb(60 60 160 / 0.45); }
.skill-grid img { width: 40px; height: 40px; margin-bottom: 12px; }
.skill-grid b { font-size: 15.5px; font-weight: 700; }
.skill-grid span { font-size: 13px; color: var(--ink-3); }

/* ───────── Projects ───────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: #f1f1f8; }
.filters button {
  min-width: 44px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-3); transition: background 0.2s, color 0.2s;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.plist { display: grid; gap: 22px; }
.pcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 260px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 0.35s, transform 0.35s var(--ease), opacity 0.8s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -32px rgb(50 50 140 / 0.45); }
.pcard[hidden] { display: none; }
.pc-text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); }
.pc-no { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pc-no::after { content: ""; width: 40px; height: 1px; background: #cfd1de; }
.pc-text h3 { margin-top: 18px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; letter-spacing: -0.02em; }
.pc-text > p:not(.pc-no) { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 3px 11px; border-radius: 999px; background: #f2f3f8; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pc-text .round { margin-top: auto; align-self: flex-end; }
/* 카드 어디를 눌러도 자세히 보기가 열린다 */
.pc-text .round::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.pcard:hover .round { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 색 판은 흐리게 번지지 않고 비스듬한 직선으로 잘린다 */
.pc-visual {
  --slant: clamp(48px, 7vw, 96px);
  position: relative; min-height: 260px; overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 25% 15%, rgb(255 255 255 / .88), transparent 55%),
    radial-gradient(ellipse at 85% 85%, color-mix(in srgb, var(--project-color) 65%, transparent), transparent 65%),
    linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 50%, var(--project-color)));
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.flip .pc-visual { order: -1; clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }

/* 미니 브라우저 창 */
.bw {
  position: absolute; padding-top: 16px; border-radius: 10px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(21 26 60 / 0.06), 0 24px 44px -22px rgb(30 36 100 / 0.5);
  transition: transform 0.6s var(--ease);
}
.bw > i { position: absolute; left: 9px; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: #ff6b5f; box-shadow: 9px 0 0 #ffc23d, 18px 0 0 #2ccb52; }
.bw img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.v-main { left: 16%; top: 15%; width: 58%; }
.v-side { left: 66%; top: 36%; width: 30%; }
.v-wide { left: 14%; width: 74%; top: 12%; }
.flip .v-main { left: 8%; }
.flip .v-side { left: 58%; }
.pcard:hover .v-main { transform: translateY(-6px); }
.pcard:hover .v-side { transform: translateY(-12px); }

/* 미니 휴대폰 */
.ph { position: absolute; padding: 4px; border-radius: 22px; background: #15161d; box-shadow: 0 30px 50px -24px rgb(20 60 40 / 0.55); transition: transform 0.6s var(--ease); }
.ph img { width: 100%; aspect-ratio: 9 / 19; object-fit: cover; object-position: center top; border-radius: 18px; }
.v-phone { left: 44%; top: 10%; width: 22%; rotate: 6deg; }
.v-phone-back { left: 24%; top: 22%; width: 19%; rotate: -8deg; opacity: 0.5; filter: saturate(0.7); }
.pcard:hover .v-phone { transform: translateY(-8px); }

/* 잘라 낸 카드 화면 */
.card-shot { position: absolute; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgb(21 26 60 / 0.06), 0 24px 44px -22px rgb(30 60 100 / 0.5); transition: transform 0.6s var(--ease); }
.v-chart { left: 14%; top: 10%; width: 34%; }
.v-flow { left: 52%; top: 16%; width: 40%; }
.v-report { left: 56%; top: 52%; width: 20%; }
.pcard:hover .v-flow { transform: translateY(-8px); }
.pcard:hover .v-report { transform: translateY(-14px); }

/* ───────── Process ───────── */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; left: calc(50% + 50px); right: calc(-50% + 50px); height: 1.5px;
  background: linear-gradient(90deg, #c9c8f3 0 60%, transparent 0) 0 0 / 8px 1.5px repeat-x;
}
.step-ic {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -18px rgb(86 83 232 / 0.55); color: var(--accent); font-size: 28px;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}
.steps li:hover .step-ic { transform: translateY(-4px); background: var(--accent); color: #fff; }
.steps b { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent); }
.steps span:last-child { font-size: 15px; font-weight: 600; }

/* ───────── Contact ───────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 72px); border-radius: 28px; color: #fff;
  background:
    radial-gradient(60% 90% at 78% 20%, rgb(120 108 255 / 0.5), transparent 70%),
    radial-gradient(50% 60% at 55% 120%, rgb(86 83 232 / 0.7), transparent 70%),
    linear-gradient(120deg, #11152f, #1d2150);
}
.orbit { position: absolute; z-index: -1; right: -6%; top: 6%; width: 64%; overflow: visible; }
.orbit ellipse { fill: none; stroke: rgb(255 255 255 / 0.22); stroke-width: 1.2; }
.star { position: absolute; z-index: -1; width: 12px; height: 12px; background: #b9b4ff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0.85; }
.st1 { left: 58%; top: 62%; }
.st2 { right: 8%; bottom: 14%; width: 9px; height: 9px; }
.st3 { right: 30%; top: 12%; width: 7px; height: 7px; opacity: 0.6; }
.cta-plane { position: absolute; z-index: -1; right: 8%; top: 50%; width: clamp(120px, 20vw, 250px); translate: 0 -50%; rotate: -4deg; filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.45)); animation: plane 6s ease-in-out infinite; }
@keyframes plane { 50% { translate: 0 calc(-50% - 12px); } }
.pill-dark { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.3); color: #fff; }
.cta h2 { margin-top: 20px; color: #fff; }
.cta-desc { margin-top: 12px; color: rgb(255 255 255 / 0.74); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ───────── 바닥 ───────── */
.footer {
  max-width: var(--max); margin: clamp(64px, 8vw, 100px) auto 0; padding: 28px var(--gutter) 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  border-top: 1px solid var(--line);
}
.footer p { font-size: 13px; color: var(--ink-3); }
.footer-nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; color: var(--ink-3); }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--ink); }
.social { display: flex; justify-content: flex-end; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 17px; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.social a:hover { background: var(--navy); color: #fff; }

/* ───────── 자세히 보기 창 ───────── */
.sheet {
  width: min(920px, calc(100% - 32px)); max-height: min(88dvh, 1000px); padding: 0 clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px);
  border: 0; border-radius: 26px; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgb(20 24 70 / 0.5); overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(20 24 58 / 0.45); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in 0.35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: clamp(20px, 3vw, 32px) 0 16px; background: var(--surface);
}
.sheet-head h3 { margin-top: 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.sheet-lead { color: var(--ink-2); }
.spec { margin: 20px 0 24px; border-top: 1px solid var(--line); }
.spec li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.spec li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.sheet figure { margin-top: 24px; }
.sheet figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.sheet figure.narrow { max-width: 420px; }
.sheet figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.sheet-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

/* ───────── 등장 효과 ───────── */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s; }
.js .reveal.is-visible { opacity: 1; translate: none; }
.skill-grid li:nth-child(2), .steps li:nth-child(2) { transition-delay: 0.05s; }
.skill-grid li:nth-child(3), .steps li:nth-child(3) { transition-delay: 0.1s; }
.skill-grid li:nth-child(4), .steps li:nth-child(4) { transition-delay: 0.15s; }
.skill-grid li:nth-child(5) { transition-delay: 0.2s; }
.skill-grid li:nth-child(6) { transition-delay: 0.25s; }
/* 등장이 끝나면 마우스 반응이 바로 따라오도록 지연을 없앤다 */
.js .reveal.is-done { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .hero-copy > *, .stage, .s, .mouse i, .cta-plane, .sheet[open] { animation: none; }
  .scene, .bw, .ph, .card-shot, .pcard, .skill-grid li, .step-ic, .about-photo img { transition: none; }
}

/* ───────── 반응형 ───────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage { max-width: 760px; width: 100%; margin: 0 auto; }
  .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-copy { padding-right: 0; }
  .about-copy::after { display: none; }
  .pcard, .flip { grid-template-columns: minmax(0, 1fr); }
  .pc-visual, .flip .pc-visual { --slant: 28px; order: -1; min-height: 0; aspect-ratio: 16 / 9; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(2)::after { display: none; }
  .footer { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer-nav { flex-wrap: wrap; }
  .social { justify-content: flex-start; }
  .cta-plane { opacity: 0.35; right: -6%; }
  .sheet-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { flex: 1 1 auto; }
  .stats li { padding: 0 14px; }
}
/* 고객의 판단 순서에 맞춘 콘텐츠 */
.hero h1 { white-space: normal; font-size: clamp(34px, 3.4vw, 58px); line-height: 1.3; }
.hero-copy > .label { margin-bottom: 22px; font-size: 12px; letter-spacing: .08em; }
.hero h1 .dim { color: #666b89; }
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.section { padding-top: clamp(64px, 8vw, 110px); }
.projects { padding-top: 44px; }
.section h2 { font-size: clamp(26px, 3vw, 38px); }
.case-link { width: auto; gap: 12px; display: inline-flex; padding: 0 16px; border-radius: 999px; font-size: 13px; margin-top: 24px !important; align-self: flex-start !important; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service { border-top: 2px solid var(--navy); padding: 28px 12px 24px 0; display: flex; flex-direction: column; }
.service-num { font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.service h3 { font-size: 22px; margin: 20px 0 12px; }
.service p { color: var(--ink-2); font-size: 15px; }
.service ul { margin: 22px 0; font-size: 14px; color: var(--ink-2); }
.service li { padding: 5px 0; }
.service li::before { content: '+'; color: var(--accent); margin-right: 10px; }
.service a { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.scope-note { border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink-3); font-size: 14px; }
.process-list { border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding: 30px 0; }
.process-list b { color: var(--accent); font-family: var(--display); font-size: 24px; }
.process-list h3 { font-size: 20px; }
.process-list p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.process-list li > span { font-size: 13px; color: var(--ink-3); }
.about-principles { border-radius: 24px; padding: clamp(28px,4vw,52px); background: #eeeffa; }
.about-principles h3 { font-size: clamp(25px,3vw,36px); line-height: 1.45; margin: 22px 0; }
.about-principles > p:not(.label) { color: var(--ink-2); }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tool-list span { background: white; border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: 13px; }
.contact-email { display: inline-block; margin-top: 20px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.copy-status { min-height: 24px; font-size: 13px; margin-top: 6px; color: #dedcff; }
.cta-plane { right: 4%; width: clamp(100px,17vw,220px); }
.cta h2, .cta-desc, .cta-actions, .contact-email, .copy-status { position: relative; }
.faq { max-width: 880px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 30px 22px 0; font-weight: 600; }
.faq details p { padding-bottom: 24px; color: var(--ink-2); font-size: 15px; }
.footer-email { justify-self: end; font-size: 14px; }
.case-context { padding: 22px 0 4px; }
.case-context h4 { font-family: var(--display); font-size: 23px; margin: 12px 0 24px; }
.case-context dl { margin: 0; }
.case-context dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 20px; margin: 18px 0; }
.case-context dt { font-size: 13px; color: var(--accent); font-weight: 600; }
.case-context dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.case-next { margin-top: 40px; padding: 28px; background: #f0f0fb; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.case-next h4 { margin: 0; font-size: 19px; }
.case-next p { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.next-case { min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1024px) {
 .hero-inner { grid-template-columns: 1fr; }
 .hero-copy { max-width: 680px; }
 .stage { max-width: 600px; }
 .service-grid { gap: 16px; }
 .service h3 { font-size: 19px; }
 .process-list li > span { display: none; }
 .process-list li { grid-template-columns: 48px 1fr; }
}
@media (max-width: 760px) {
 .service-grid { grid-template-columns: 1fr; gap: 10px; }
 .service { padding: 24px 0; }
 .hero-inner { padding-top: 44px; gap: 12px; }
 .hero-copy > .label { font-size: 10px; }
 .hero-sub { margin-top: 20px; }
 .hero-desc { font-size: 14px; }
 .stage { max-width: 440px; margin-right: 0; }
 .projects { padding-top: 32px; }
 .pc-text { padding: 24px; }
 .sec-head { gap: 20px; }
 .filters { flex-wrap: wrap; }
 .process-list li { gap: 12px; padding: 24px 0; }
 .process-list h3 { font-size: 18px; }
 .footer-email { justify-self: start; }
 .case-context dl > div { grid-template-columns: 1fr; gap: 4px; }
 .case-next { padding: 22px; }
 .cta-plane { opacity: .12; }
 .cta-actions { align-items: flex-start; flex-direction: column; }
 .cta { padding: 36px 24px 24px; }
}

/* ───────── 새 섹션 다듬기 ───────── */
/* 섹션 머리: 오른쪽 설명에 얇은 선으로 무게를 준다 */
.sec-note { border-left: 2px solid #d9d8fb; padding-left: 16px; line-height: 1.75; }

/* 제작 범위 카드 */
.services { padding-bottom: clamp(24px, 4vw, 48px); }
.service-grid { gap: clamp(14px, 1.6vw, 22px); }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.4vw, 34px); border: 1px solid var(--line);
  border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 130px;
  background: linear-gradient(180deg, var(--svc), transparent);
}
.service:nth-child(1) { --svc: #e9eeff; --svc-ink: #3f5bd9; }
.service:nth-child(2) { --svc: #efeaff; --svc-ink: #5653e8; }
.service:nth-child(3) { --svc: #e4f1fb; --svc-ink: #2a74a8; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface); color: var(--svc-ink); font-size: 22px;
  box-shadow: 0 0 0 1px rgb(21 26 60 / .06), 0 8px 18px -10px rgb(40 44 110 / .35);
}
.service-num { color: var(--svc-ink); font-size: 11px; letter-spacing: .1em; }
.service h3 { margin: 26px 0 10px; font-size: clamp(19px, 1.6vw, 22px); }
.service p { line-height: 1.7; }
.service ul { margin: 22px 0 26px; padding-top: 18px; border-top: 1px dashed #dcdde8; }
.service li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.service li::before {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0; translate: 0 -2px;
  border-radius: 2px; rotate: 45deg; background: var(--svc-ink);
}
.service-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none !important;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .25s;
}
.service-link .ic { transition: transform .25s var(--ease); }
.service-link:hover { background: #262d5c; }
.service-link:hover .ic { transform: translate(2px, -2px); }
.scope-note {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 18px;
  border: 0; border-radius: 14px; background: transparent; color: var(--ink-2);
}
.scope-note > span {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 12px/1 var(--font);
}

/* 소개: 오른쪽 카드에 장식과 깊이 */
.about { align-items: stretch; }
.about-copy { align-self: center; }
.about-principles {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(150deg, #f3f2ff 0%, #e9eaff 55%, #e2e8fb 100%);
  box-shadow: inset 0 0 0 1px rgb(86 83 232 / .08);
}
.about-principles::before, .about-principles::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.about-principles::before { width: 340px; height: 340px; right: -110px; top: -130px; background: radial-gradient(circle, rgb(124 120 255 / .28), transparent 68%); }
.about-principles::after { width: 260px; height: 260px; right: 40px; bottom: -150px; border: 1px dashed rgb(86 83 232 / .28); }
.about-principles h3 { letter-spacing: -.02em; }
.tool-list span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  font-weight: 600; border-color: rgb(86 83 232 / .14); box-shadow: 0 6px 14px -10px rgb(40 44 110 / .4);
}
.tool-list span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 진행 방식 */
.process-list { border-top: 0; display: grid; gap: 14px; }
.process-list li {
  position: relative; grid-template-columns: 64px minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 32px);
  padding: 24px clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.process-list li:hover { border-color: #d3d2fb; box-shadow: var(--shadow-sm); transform: translateX(4px); }
.process-list b {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #f0efff; font-size: 18px; transition: background .3s, color .3s;
}
.process-list li:hover b { background: var(--accent); color: #fff; }
.process-list li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(clamp(20px, 2.6vw, 34px) + 27px); bottom: -15px; width: 2px; height: 16px;
  background: repeating-linear-gradient(#c9c8f3 0 3px, transparent 3px 6px);
}
.process-list p { margin-top: 6px; }
.process-list li > span {
  padding: 6px 12px; border-radius: 999px; background: #f4f4fa; color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}

/* 자주 묻는 질문 */
.faq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-head .sec-note { margin-top: 20px; }
.faq { max-width: none; margin: 0; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .3s, box-shadow .3s;
}
.faq details[open] { border-color: #d3d2fb; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 20px 16px 26px; list-style: none; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { transition: color .2s; }
.faq summary:hover > span { color: var(--accent); }
.faq summary > i {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f0efff;
  transition: background .25s, rotate .3s var(--ease);
}
.faq summary > i::before, .faq summary > i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--accent); translate: -50% -50%; transition: background .25s;
}
.faq summary > i::after { rotate: 90deg; }
.faq details[open] summary > i { background: var(--accent); rotate: 45deg; }
.faq details[open] summary > i::before, .faq details[open] summary > i::after { background: #fff; }
.faq details p { padding: 0 26px 24px; line-height: 1.8; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 18px; }

/* 자세히 보기 창의 맥락 블록 */
.case-context {
  margin-top: 18px; padding: 24px clamp(20px, 3vw, 32px) 10px; border-radius: 18px;
  background: #f6f6fd; border: 1px solid var(--line);
}
.case-context h4 { margin: 10px 0 8px; }
.case-context dl > div { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.case-context dl > div:first-child { border-top: 0; }
.case-next { background: linear-gradient(135deg, #f0f0fb, #e8e8fd); }
.case-next > div { flex: 1 1 260px; }

@media (max-width: 1024px) {
  .faq-sec { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
}
@media (max-width: 760px) {
  .service { padding: 24px; }
  .process-list li { grid-template-columns: 48px minmax(0, 1fr); padding: 20px; }
  .process-list b { width: 44px; height: 44px; font-size: 15px; }
  .process-list li:not(:last-child)::after { left: 41px; }
  .process-list li:hover { transform: none; }
  .faq summary { padding: 14px 16px 14px 20px; font-size: 15px; }
  .faq details p { padding: 0 20px 20px; }
  .about-principles::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .service, .process-list li, .faq summary > i { transition: none; }
  .service:hover, .process-list li:hover { transform: none; }
}

/* ───────── 3D 아이콘 배치 ───────── */
.service-top { align-items: flex-start; }
.service-3d {
  width: clamp(76px, 6.4vw, 96px); height: auto; margin: -6px 0 -10px -8px;
  filter: drop-shadow(0 14px 16px rgb(40 44 120 / .18));
  transition: transform .45s var(--ease);
}
.service:hover .service-3d { transform: translateY(-4px) rotate(-4deg) scale(1.04); }
.service-top .service-num { margin-top: 10px; }
.service h3 { margin-top: 18px; }

.about-principles { padding-right: clamp(28px, 4vw, 52px); }
.ap-3d {
  position: absolute; z-index: -1; right: clamp(8px, 2vw, 28px); bottom: clamp(8px, 2vw, 24px);
  width: clamp(110px, 12vw, 170px); height: auto; opacity: .95;
  filter: drop-shadow(0 18px 20px rgb(40 44 120 / .2));
  animation: ap-float 6s ease-in-out infinite;
}
@keyframes ap-float { 50% { translate: 0 -10px; } }

.faq-3d {
  width: clamp(140px, 14vw, 200px); height: auto; margin-top: 28px;
  filter: drop-shadow(0 20px 22px rgb(40 44 120 / .18));
  animation: ap-float 7s ease-in-out infinite;
}

@media (max-width: 1024px) {
  .faq-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
  .faq-head > :not(.faq-3d) { grid-column: 1; }
  .faq-3d { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 120px; margin: 0; }
}
@media (max-width: 760px) {
  .ap-3d { width: 96px; opacity: .35; }
  .faq-3d { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-3d, .faq-3d { animation: none; }
  .service-3d { transition: none; }
  .service:hover .service-3d { transform: none; }
}

/* ───────── 문의 전환 요소 ───────── */
/* 채워야 할 빈칸: 눈에 띄는 노란 점선 (내용을 넣으면 mark 태그째 바꾸기) */
mark.tbd {
  padding: 0 6px; border: 1px dashed #d9a400; border-radius: 6px;
  background: #fff5c7; color: #6b4e00; font-weight: 600; font-size: .92em;
}
[data-todo][href="#"] { outline: 1.5px dashed #e0b400; outline-offset: 3px; }

.dot-live {
  display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: #1fbf75; box-shadow: 0 0 0 4px rgb(31 191 117 / .18);
}

/* 첫 화면 증거 줄 */

/* 운영 중 배지 */
.live-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 8px; border-radius: 999px;
  background: #e8f8f0; color: #137a4b; font-size: 12px; font-weight: 700;
}
.pc-no:has(.live-badge)::after { order: -1; display: none; }

/* 사례 창: 한눈에 보는 정보 */
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 20px 0 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line);
}
.case-meta > div { padding: 14px 16px; background: var(--surface); }
.case-meta dt { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.case-meta dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; }
.case-meta .ext { color: var(--accent); }
.quote {
  margin: 20px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0;
  background: #f6f6fd; font-size: 16px; line-height: 1.8;
}
.quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--ink-3); }

/* 비용 */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 36px);
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.plan h3 { font-size: 20px; }
.plan-desc { margin-top: 8px; min-height: 3.2em; color: var(--ink-3); font-size: 14.5px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; font-family: var(--display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 700; }
.plan-price span { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink-3); }
.plan-time { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.plan ul { margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; padding: 5px 0; }
.plan li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%;
  background: #ecebff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%235653e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: auto;
  border: 1.5px solid #cfd2e0; border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: border-color .2s, background .2s;
}
.plan-cta:hover { border-color: var(--ink); }
.plan-cta .ic { transition: transform .25s var(--ease); }
.plan-cta:hover .ic { transform: translateX(3px); }
.plan.is-featured {
  border-color: transparent; color: #fff;
  background: radial-gradient(80% 60% at 90% 0%, rgb(120 108 255 / .45), transparent 70%), linear-gradient(150deg, #151a3c, #232870);
  box-shadow: var(--shadow-lg);
}
.plan.is-featured .plan-desc, .plan.is-featured .plan-time, .plan.is-featured .plan-price span { color: rgb(255 255 255 / .7); }
.plan.is-featured ul { color: rgb(255 255 255 / .86); border-top-color: rgb(255 255 255 / .16); }
.plan.is-featured li::before { background-color: rgb(255 255 255 / .14); filter: brightness(1.8); }
.plan.is-featured .plan-cta { border: 0; background: #fff; color: var(--navy); }
.plan.is-featured .plan-cta:hover { background: #ecebff; }
.plan-badge {
  position: absolute; top: 22px; right: 22px; padding: 3px 12px; border-radius: 999px;
  background: rgb(255 255 255 / .14); color: #fff; font-size: 12px; font-weight: 700;
}

/* 문의: 왼쪽 안내 + 오른쪽 양식 */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-copy { position: relative; }
.cta .cta-plane { right: 0; top: -8px; translate: none; width: clamp(90px, 9vw, 140px); opacity: .9; animation-name: plane2; }
@keyframes plane2 { 50% { translate: 0 -10px; } }
.cta-reply { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: rgb(255 255 255 / .82); }
.btn-kakao { background: #fee500; color: #191600; }
.btn-kakao:hover { background: #ffeb3b; }
.btn-kakao mark.tbd { font-size: 12px; }
.inquiry {
  position: relative; display: grid; gap: 14px; padding: clamp(24px, 3vw, 34px);
  border-radius: 22px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
}
.inquiry h3 { font-size: 21px; }
.inq-help { margin-top: -8px; font-size: 13px; color: var(--ink-3); }
.inq-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inquiry label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.inquiry input, .inquiry select, .inquiry textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #dcdee9; border-radius: 12px;
  background: #fafaff; color: var(--ink); font: 500 15px/1.5 var(--font); transition: border-color .2s, box-shadow .2s, background .2s;
}
.inquiry textarea { resize: vertical; min-height: 104px; }
.inquiry select { appearance: none; padding-right: 36px; background: #fafaff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23676d82' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.inquiry input::placeholder, .inquiry textarea::placeholder { color: #9a9fb3; }
.inquiry :is(input, select, textarea):focus { outline: none; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px rgb(86 83 232 / .14); }
.inq-error { min-height: 0; font-size: 13px; font-weight: 600; color: #d23a3a; }
.inq-error:empty { display: none; }
.inq-submit { justify-content: center; width: 100%; min-height: 52px; }

/* 바닥 링크 */
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.social-gh {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); font-size: 18px; transition: background .2s, color .2s;
}
.social-gh:hover { background: var(--navy); color: #fff; }
.social-gh .fill, .social-gh svg { fill: currentColor; stroke: none; }

@media (max-width: 1024px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .plan-desc { min-height: 0; }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .inquiry { max-width: 560px; }
}
@media (max-width: 760px) {
  .inq-row { grid-template-columns: minmax(0, 1fr); }
  .inquiry { padding: 22px 18px; }
  .cta .cta-plane { width: 80px; opacity: .5; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-links { justify-content: flex-start; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────── 스크롤 성능 ───────── */
/* 화면 밖 섹션의 반복 애니메이션은 멈춘다 (script.js가 is-offscreen을 붙임) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
/* 첫 화면 3D 카드: 넓게 번지는 그림자 대신 가벼운 그림자 */
.s { box-shadow: 0 0 0 1px rgb(21 26 60 / .05), 0 18px 30px -18px rgb(40 44 120 / .4); }

/* ───────── 섹션 간격: 한 가지 리듬 ─────────
   큰 섹션 사이 = --sec-space (휴대폰 72px → 넓은 화면 144px)
   섹션 제목과 내용 사이 = --head-space */
:root { --sec-space: clamp(72px, 10vw, 144px); --head-space: clamp(32px, 3.6vw, 52px); }
.section, .projects, .services { padding-top: var(--sec-space); padding-bottom: 0; }
#about { padding-top: clamp(48px, 6vw, 96px); }   /* 첫 화면 바로 다음은 조금 가깝게 */
.sec-head { margin-bottom: var(--head-space); }
.footer { margin-top: var(--sec-space); }
.faq-sec { row-gap: var(--head-space); }
.about { row-gap: var(--head-space); }

/* 줄인 내용에 맞춘 카드 여백 */
.service > p { margin-bottom: 28px; }
.hero-sub { line-height: 1.6; }
.hero-actions { margin-top: 36px; }

@media (max-width: 1024px) {
  /* 기울어진 3D 장면 아래 빈 공간을 줄인다 */
  .stage { margin-bottom: -10%; }
}

/* ───────── 기술 스택 ───────── */
.stack-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stack-row {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.stack-row h3 { display: grid; gap: 2px; font-size: 18px; }
.stack-row h3 small { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.stack-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stack-list li {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.stack-list li:hover { border-color: #d3d2fb; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.st-logo {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #f5f5fb;
}
.st-logo img { width: 26px; height: 26px; object-fit: contain; }
.st-text { display: grid; min-width: 0; line-height: 1.35; }
.st-text b { font-size: 15px; font-weight: 700; }
.st-text small { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .stack-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stack-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .stack-row h3 { display: flex; align-items: baseline; gap: 10px; }
}
@media (max-width: 420px) {
  /* 좁은 화면: 2열 + 이름만 보여 목록이 길어지지 않게 */
  .stack-list li { gap: 10px; padding: 10px; }
  .st-logo { width: 36px; height: 36px; border-radius: 10px; }
  .st-logo img { width: 22px; height: 22px; }
  .st-text b { font-size: 14px; }
  .st-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-list li { transition: none; }
  .stack-list li:hover { transform: none; }
}
/* 도구 칩을 뺀 뒤 소개 카드: 로켓과 글이 겹치지 않게 */
.about-principles { min-height: 300px; }
.about-principles > p:not(.label) { max-width: calc(100% - clamp(0px, 12vw, 170px)); }
@media (max-width: 760px) { .about-principles > p:not(.label) { max-width: none; } }

/* 섹션 순서 번호 */
.label-no {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px; margin-right: -2px;
  border-radius: 999px; background: #ecebff; color: var(--accent);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

/* Restore the original contact banner without altering other sections. */
#contact .cta { display: block; padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 72px); }
#contact .cta-plane { right: 8%; top: 50%; translate: 0 -50%; width: clamp(120px, 20vw, 250px); opacity: 1; animation: plane 6s ease-in-out infinite; }
#contact .cta-actions { flex-direction: row; align-items: normal; }
#contact .cta-actions .btn { width: auto; }
@media (max-width: 760px) {
  #contact .cta-plane { opacity: .35; right: -6%; }
}
@media (prefers-reduced-motion: reduce) {
  #contact .cta-plane { animation: none; }
}

/* Compact approach card alongside the shortened introduction. */
.about-principles { align-self: center; justify-self: end; width: 100%; max-width: 520px; min-height: 0; padding: 26px 28px; }
.about-principles h3 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.4; margin: 14px 0; }
.about-principles > p:not(.label) { font-size: 14px; line-height: 1.7; max-width: calc(100% - 90px); }
.about-principles .ap-3d { width: 100px; right: 12px; bottom: 14px; }
@media (max-width: 760px) {
  .about-principles { max-width: none; padding: 24px; }
  .about-principles > p:not(.label) { max-width: none; }
  .about-principles .ap-3d { width: 76px; opacity: .15; }
}

/* Image-only introduction card. */
.about-principles.approach-image { display: block; padding: 0; height: 280px; }
.approach-image::before, .approach-image::after { display: none; }
.approach-image .ap-3d { position: absolute; z-index: 1; right: 12px; bottom: 14px; width: 100px; height: auto; object-fit: contain; opacity: .95; }
@media (max-width: 760px) {
  .about-principles.approach-image { height: 240px; }
  .approach-image .ap-3d { width: 76px; opacity: .95; }
}

/* Distinct color atmospheres behind the project previews. */
.pcard { --project-color: #8997ec; }
.pcard:nth-child(2) { --project-color: #d4b58a; }
.pcard:nth-child(3) { --project-color: #a78ae6; }
.pcard:nth-child(4) { --project-color: #75b6a1; }
.pcard:nth-child(5) { --project-color: #74add5; }
.pc-visual::before, .pc-visual::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border: 1px solid rgb(255 255 255 / .55); border-radius: 50%;
  transition: transform .8s var(--ease);
}
.pc-visual::before {
  width: 85%; aspect-ratio: 1; left: 15%; top: -48%;
  box-shadow: 0 0 0 35px rgb(255 255 255 / .09), 0 0 0 70px rgb(255 255 255 / .07);
}
.pc-visual::after {
  width: 58%; aspect-ratio: 1; right: -18%; bottom: -65%;
  background: linear-gradient(140deg, rgb(255 255 255 / .24), transparent);
  box-shadow: 0 0 0 28px rgb(255 255 255 / .08);
}
.pcard:hover .pc-visual::before { transform: translate(12px, 8px); }
.pcard:hover .pc-visual::after { transform: translate(-8px, -8px); }
@media (prefers-reduced-motion: reduce) {
  .pc-visual::before, .pc-visual::after { transition: none; }
  .pcard:hover .pc-visual::before, .pcard:hover .pc-visual::after { transform: none; }
}

/* Decorative geometry stays behind the screenshots and outside hit testing. */
.project-shape { position: absolute; z-index: -1; pointer-events: none; transition: transform .7s var(--ease); }
.shape-orb {
  width: clamp(68px, 8vw, 112px); aspect-ratio: 1; right: 5%; top: 4%; border-radius: 50%;
  background: radial-gradient(circle at 28% 25%, #fff 0%, color-mix(in srgb, var(--project-color) 35%, #fff) 32%, var(--project-color) 75%, color-mix(in srgb, var(--project-color) 75%, #3c436d) 100%);
  box-shadow: inset -8px -10px 18px rgb(45 50 100 / .08), 0 16px 24px -14px color-mix(in srgb, var(--project-color) 65%, transparent);
  opacity: .85;
}
.shape-frame {
  width: clamp(82px, 9vw, 130px); aspect-ratio: 1; left: 7%; bottom: -12%; rotate: -22deg;
  border: clamp(9px, 1.2vw, 16px) solid rgb(255 255 255 / .65); border-radius: 24%;
  background: rgb(255 255 255 / .06);
  box-shadow: 5px 9px 0 rgb(255 255 255 / .15), 0 16px 24px -16px rgb(40 44 100 / .22);
}
.shape-spark {
  width: 24px; aspect-ratio: 1; left: 10%; top: 18%; rotate: 12deg;
  background: color-mix(in srgb, var(--project-color) 75%, #fff);
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}
.flip .shape-orb { right: 16%; top: 3%; }
.flip .shape-frame { left: -4%; bottom: -10%; rotate: 18deg; }
.flip .shape-spark { left: 5%; top: 8%; }
.pcard:nth-child(3) .shape-orb { right: -4%; top: 30%; }
.pcard:nth-child(4) .shape-frame { left: 8%; bottom: 3%; }
.pcard:nth-child(5) .shape-spark { left: 48%; top: 8%; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover .shape-orb { transform: translateY(-7px); }
  .pcard:hover .shape-frame { transform: translateY(-5px) rotate(8deg); }
  .pcard:hover .shape-spark { transform: rotate(35deg); }
}
@media (max-width: 760px) {
  .shape-orb { width: 72px; }
  .shape-frame { width: 88px; border-width: 10px; }
  .shape-spark { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-shape { transition: none; }
  .pcard:hover .project-shape { transform: none; }
}

/* Four-step horizontal process, adapting to narrower viewports. */
.process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.process-list li { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 22px; padding: 28px 24px; }
.process-list h3 { font-size: 18px; line-height: 1.5; min-height: 3em; }
.process-list p { margin-top: 12px; font-size: 14px; line-height: 1.8; }
.process-list li:not(:last-child)::after {
  left: auto; right: -21px; top: 55px; bottom: auto; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, #c9c8f3 0 3px, transparent 3px 6px);
}
.process-list li:hover { transform: translateY(-4px); }
@media (max-width: 1024px) {
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list h3 { min-height: 0; }
  .process-list li:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .process-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 20px; }
  .process-list b { width: 44px; height: 44px; font-size: 15px; }
  .process-list li:not(:last-child)::after { display: none; }
  .process-list li:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .process-list li:hover { transform: none; }
}

/* A continuous editorial story: ideas become a working product. */
.process-intro { color: var(--ink-3); font-size: 15px; line-height: 1.8; }
.process-story { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 14px 0 0; }
.process-story::before { content: ""; position: absolute; top: 130px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, #e2e3ec, #cfc7ee 55%, #9180de); }
.story-step { min-width: 0; }
.story-art { position: relative; isolation: isolate; aspect-ratio: 5 / 4; }
.story-art::before { content: ""; position: absolute; z-index: -1; inset: 8% 0 0; border-radius: 50%; background: radial-gradient(ellipse, #edeef5, transparent 70%); }
.story-step:nth-child(2) .story-art::before { background: radial-gradient(ellipse, #ece7f9, transparent 70%); }
.story-step:nth-child(3) .story-art::before { background: radial-gradient(ellipse, #e4dcff, transparent 70%); }
.story-step:nth-child(4) .story-art::before { background: radial-gradient(ellipse, #dcd4ff, transparent 70%); }
.story-art svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 12px 12px rgb(38 32 77 / .06)); transition: transform .5s var(--ease); }
.story-caption { border-top: 1px solid #e2e1ed; padding: 22px 0 0; margin-top: 16px; }
.story-index { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.story-index span { color: var(--ink-3); font-size: 10px; letter-spacing: .13em; font-weight: 500; }
.story-caption h3 { margin-top: 15px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -.04em; }
.story-desc { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.story-desc br { display: none; }
.js .story-step.reveal { transition-delay: var(--step-delay); }
@media (hover: hover) and (pointer: fine) {
 .story-step:hover .story-art svg { transform: translateY(-5px); }
}
@media (max-width: 1024px) {
 .process-story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 32px; }
 .process-story::before { display: none; }
 .story-art { max-width: 310px; margin: 0 auto; width: 100%; }
 .js .story-step.reveal { transition-delay: 0s; }
}
@media (max-width: 560px) {
 .process-story { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .story-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; }
 .story-caption { margin: 0; padding: 18px 0 0; }
 .story-caption h3 { font-size: 20px; margin-top: 10px; }
 .story-desc { font-size: 13px; margin-top: 8px; }
 .story-index { gap: 8px; }
 .story-index span { font-size: 9px; }
 .process-intro { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .story-art svg { transition: none; }
 .story-step:hover .story-art svg { transform: none; }
 .js .story-step.reveal { transition-delay: 0s; }
}

/* ───────── 첫 화면 배경 효과 ─────────
   성능: blur 필터 없이 그라데이션을 한 번만 그리고, transform · opacity만 움직인다 */
.hero::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* 천천히 떠다니는 빛 덩어리 */
.hb-blob { position: absolute; border-radius: 50%; will-change: transform; }
.hb-1 {
  width: 62vw; height: 62vw; max-width: 940px; max-height: 940px; right: -14%; top: -22%;
  background: radial-gradient(closest-side, rgb(124 118 255 / .30), rgb(124 118 255 / .10) 55%, transparent);
  animation: hb-drift1 22s ease-in-out infinite alternate;
}
.hb-2 {
  width: 46vw; height: 46vw; max-width: 700px; max-height: 700px; left: -12%; bottom: -30%;
  background: radial-gradient(closest-side, rgb(96 170 255 / .22), rgb(96 170 255 / .07) 55%, transparent);
  animation: hb-drift2 26s ease-in-out infinite alternate;
}
.hb-3 {
  width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: 34%; top: 8%;
  background: radial-gradient(closest-side, rgb(236 140 255 / .16), transparent);
  animation: hb-drift3 18s ease-in-out infinite alternate;
}
@keyframes hb-drift1 { to { transform: translate3d(-8%, 10%, 0) scale(1.08); } }
@keyframes hb-drift2 { to { transform: translate3d(14%, -12%, 0) scale(1.12); } }
@keyframes hb-drift3 { to { transform: translate3d(-18%, 22%, 0) scale(.9); } }

/* 가장자리로 갈수록 사라지는 모눈 */
.hb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(86 83 232 / .075) 1px, transparent 1px),
    linear-gradient(90deg, rgb(86 83 232 / .075) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 20%, transparent 75%);
}

/* 3D 장면 뒤로 천천히 도는 점선 궤도 */
.hb-ring {
  position: absolute; right: 4%; top: 50%; width: min(56vw, 860px); aspect-ratio: 1; margin-top: calc(min(56vw, 860px) / -2);
  border-radius: 50%; border: 1.5px dashed rgb(86 83 232 / .16);
  animation: hb-spin 90s linear infinite;
}
.hb-ring::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgb(86 83 232 / .14);
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* 반짝이는 별 */
.hb-spark {
  position: absolute; width: 14px; height: 14px; background: #8f8aff;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: hb-twinkle 4.2s ease-in-out infinite;
}
.sp1 { left: 6%;  top: 22%; }
.sp2 { left: 42%; top: 14%; width: 10px; height: 10px; animation-delay: -1.4s; background: #b6a4ff; }
.sp3 { left: 30%; bottom: 16%; width: 9px; height: 9px; animation-delay: -2.6s; background: #7fb4ff; }
.sp4 { right: 6%; top: 18%; width: 12px; height: 12px; animation-delay: -.8s; }
.sp5 { right: 40%; bottom: 10%; width: 8px; height: 8px; animation-delay: -3.3s; background: #c89bff; }
@keyframes hb-twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

@media (max-width: 1024px) {
  .hb-ring { right: -20%; top: auto; bottom: 4%; margin-top: 0; width: 110vw; }
  .hb-grid { background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 55%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 90% 60% at 50% 55%, #000 15%, transparent 75%); }
  .hb-1 { width: 110vw; height: 110vw; }
  .hb-2 { width: 90vw; height: 90vw; bottom: -10%; }
  .hb-3 { width: 70vw; height: 70vw; left: 10%; top: 30%; }
  .sp2, .sp5 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-blob, .hb-ring, .hb-spark { animation: none; }
  .hb-spark { opacity: .6; }
}
/* 배경 효과 보정: 아래쪽은 자연스럽게 사라지게, 궤도는 3D 장면 둘레로 */
.hero-bg {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.hb-ring { right: 6%; width: min(46vw, 720px); margin-top: calc(min(46vw, 720px) / -2 + 20px); }
@media (max-width: 1024px) {
  .hb-ring { right: -12%; bottom: 6%; width: 86vw; }
  .hb-ring::after { display: none; }
}

/* 첫 화면을 브라우저 화면 한 장에 꽉 차게 (상단 메뉴 높이 포함) */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero-inner { flex: 1; width: 100%; min-height: 0; }

/* ───────── 연락: 개인 포트폴리오용 한 단 구성 ───────── */
.cta.cta-simple { display: block; }
.cta-simple .cta-copy { max-width: 640px; }
.cta-simple .cta-plane { right: 9%; top: calc(50% - clamp(60px, 9vw, 120px)); width: clamp(120px, 18vw, 240px); opacity: 1; }
.cta-simple .cta-desc { line-height: 1.75; }
.ic.gh { fill: currentColor; stroke: none; }
@media (max-width: 760px) {
  .cta-simple .cta-plane { right: -4%; top: 18px; width: 110px; opacity: .25; }
}
.faq summary > i::before, .faq summary > i::after { transition: none; }
.contact-email { text-decoration: none; }
/* 첫 화면 설명: 넓은 화면에서는 문장 단위로 끊고, 좁은 화면에서는 자연스럽게 흐르게 */
.br-wide { display: none; }
@media (min-width: 1025px) { .br-wide { display: inline; } }

/* ───────── 첫 화면: 누구의 포트폴리오인지 알리는 표시 ───────── */
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-kicker b { font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; color: var(--ink); }
.hero-kicker span {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.hero-kicker span::before { content: ""; width: 28px; height: 1.5px; background: #c9c8f3; }

@media (max-width: 760px) {
  .hero-kicker { margin-bottom: 18px; gap: 10px; }
  .hero-kicker span { font-size: 11.5px; gap: 10px; }
  .hero-kicker span::before { width: 18px; }
}

/* ───────── 첫 화면 배경: 물방울처럼 퍼지는 빛 ─────────
   script.js가 무작위 위치 · 크기 · 색으로 만들고, 애니메이션이 끝나면 지운다 */
.hb-blob { animation: none !important; opacity: .7; }   /* 기존 빛 덩어리는 고정된 바탕색으로 */
.hb-drop {
  position: absolute; border-radius: 50%; pointer-events: none;
  translate: -50% -50%; transform: scale(.02); opacity: 1;
  background: radial-gradient(closest-side,
    rgb(var(--c) / .26) 0%, rgb(var(--c) / .26) 55%, rgb(var(--c) / 0) 100%);
  animation: hb-ripple var(--dur, 13s) cubic-bezier(.33, 0, .25, 1) forwards;
  will-change: transform, opacity;
}
@keyframes hb-ripple {
  0%   { transform: scale(.02); opacity: 1; }
  65%  { opacity: .85; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* 로고: 초승달 + 반짝이 표시 */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 30px; height: 30px; flex: none; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .brand-mark { transition: none; } .brand:hover .brand-mark { transform: none; } }
/* 로고와 이름 사이만 띄우고, 이름 뒤 점은 붙인다 */
.brand { gap: 0; }
.brand-mark { margin-right: 9px; }

/* 첫 화면 설명: 넓은 화면에서는 문장마다 한 줄로 */
@media (min-width: 1200px) {
  .hero-sub { font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.75; }
  .hero-sub .ln { display: block; white-space: nowrap; }
}
/* ㅁㅅㅊ 이니셜 로고 */
.brand-mark { width: 28px; height: 28px; margin-right: 10px; }
.brand:hover .brand-mark { transform: none; }
.kicker-mark { width: clamp(22px, 1.7vw, 26px); height: auto; margin-right: -4px; }

/* 핸드폰 모서리: 고정 px 대신 폰 크기에 비례 (작아져도 알약 모양이 되지 않게) */
.s-phone { border-radius: 20% / 9.5%; padding: clamp(3px, 0.4vw, 5px); }  /* % 여백은 부모 폭 기준이라 px로 */
.s-phone img { border-radius: 16% / 7.5%; }

/* 모바일 · 태블릿: 3D 화면을 위로, 글을 아래로 */
@media (max-width: 1024px) {
  .stage { order: -1; margin-top: -4%; margin-bottom: -8%; }
  .hero-inner { align-content: center; }
}

/* 3D 작업 화면: 흰 테두리가 밝은 배경에 묻히지 않게 윤곽선 + 그림자 */
.s:not(.s-phone) { box-shadow: 0 0 0 1px rgb(21 26 60 / .10), 0 18px 34px -16px rgb(40 44 120 / .42); }
@media (max-width: 1024px) {
  .stage { margin-bottom: clamp(20px, 6vw, 40px); }   /* 아래 글과 간격 */
  .s:not(.s-phone) { box-shadow: 0 0 0 1px rgb(21 26 60 / .16), 0 12px 24px -10px rgb(40 44 120 / .45); }
}

/* 모바일: 이름 + 제목을 작품 화면 위로, 가운데 정렬
   (글 묶음을 풀어 줄마다 따로 배치. 데스크톱 · 태블릿은 그대로) */
@media (max-width: 760px) {
  .hero-copy { display: contents; }
  .hero-kicker  { order: 1; justify-content: center; margin-bottom: 0; }
  .hero h1      { order: 2; text-align: center; margin-top: 14px; }
  .stage        { order: 3; margin-top: clamp(16px, 5vw, 28px); }
  .hero-sub     { order: 4; margin-top: 0; }
  .hero-actions { order: 5; }
}
@media (max-width: 760px) {
  /* 좁은 화면에서도 제목 2줄 유지: 둘째 줄 폭(약 10.9em)에 맞춰 줄어든다 */
  .hero h1 { font-size: min(34px, calc((100vw - 40px) / 10.9)); }
}

/* 연락 섹션: 세로 높이 줄이기 */
#contact .cta.cta-simple { padding: clamp(30px, 4vw, 52px) clamp(24px, 5vw, 64px); }
.cta-simple h2 { margin-top: 14px; }
.cta-simple .cta-desc { margin-top: 10px; }
.cta-simple .cta-actions { margin-top: 22px; }
.copy-status { min-height: 0; margin-top: 10px; }
.copy-status:empty { display: none; }       /* 복사 안내가 없을 때는 자리를 차지하지 않게 */
@media (min-width: 761px) { #contact .cta-simple .cta-plane { width: clamp(110px, 14vw, 190px); } }   /* 낮아진 상자에 맞게 */
@media (max-width: 760px) { #contact .cta.cta-simple { padding: 28px 22px; } }

/* 글자를 눌렀을 때 깜빡이는 커서(캐럿) 숨김. 입력 칸이 생기면 그곳에서는 보이게 */
html { caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }

/* 한글 "포트폴리오": 영문용 넓은 자간 · 대문자 설정 풀기 */
.hero-kicker span { letter-spacing: .02em; text-transform: none; font-size: 14px; }
@media (max-width: 760px) { .hero-kicker span { font-size: 13px; } }

/* "나의 포트폴리오"도 "문석찬"과 같은 글자 디자인 (가운데 선은 유지) */
.hero-kicker span {
  font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700;
  letter-spacing: normal; text-transform: none; color: var(--ink);
}
@media (max-width: 760px) { .hero-kicker span { font-size: clamp(18px, 1.5vw, 22px); } }

/* 소개 제목 "AI와 함께 새로운 가치를 만드는"이 한 줄에 들어가게 글 칸을 넓힘 (컴퓨터) */
@media (min-width: 1025px) {
  .about { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); }
  .about h2 { white-space: nowrap; }
}
/* 좁은 화면: 줄 길이를 고르게 나눠 한 단어만 남는 줄이 없게 */
.about h2 { text-wrap: balance; }
.hero-kicker span { color: var(--accent); }   /* "나의 포트폴리오"만 보라색 */

/* 프로젝트 창: 아직 채우지 않은 칸(노란 빈칸)은 숨긴다. 내용을 채우면 자동으로 다시 보임 */
.case-meta > div:has(mark.tbd) { display: none; }
.case-meta:not(:has(> div:not(:has(mark.tbd)))) { display: none; }   /* 모든 칸이 비었으면 표 전체 숨김 */

/* ───────── 첫 화면 배경 이미지 (OpenAI로 생성) ─────────
   다른 후보로 바꾸려면 --hero-image의 파일 이름만 hero-bg-a / b / c로 바꾸면 된다 */
.hero { --hero-image: url("assets/ai/hero-bg-a.webp"); }
.hero-bg { background: var(--hero-image) right center / cover no-repeat; }
.hb-blob, .hb-grid { display: none; }      /* 이미지가 색과 모눈을 대신한다 */
@media (max-width: 1024px) {
  .hero-bg { background-position: 70% bottom; }
}


/* 소개 카드: 남자 캐릭터(투명 배경) + 프로젝트 카드의 연한 색(#e9eeff · #efeaff · #e4f1fb) 그라데이션 */
.about-principles.approach-image {
  background:
    url("assets/ai/about-boy-a.webp") center bottom / auto 90% no-repeat,
    linear-gradient(135deg, #e9eeff 0%, #efeaff 48%, #e4f1fb 100%);
}

/* 모바일: 첫 화면 버튼을 세로로 쌓아 화면 폭 가득 */
@media (max-width: 760px) {
  .hero .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .hero-actions .btn { width: 100%; min-height: 52px; justify-content: center; }
}

/* 첫 화면 → 소개 섹션 전환: 배경을 첫 화면 아래로 240px 더 늘려, 흐려지는 구간이 스크롤 후에 오게 */
.hero { overflow-x: clip; overflow-y: visible; }   /* 가로 넘침만 자르고 아래로는 배경이 이어지게 */
.hero-bg {
  bottom: -240px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 300px), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 300px), transparent 100%);
}

/* 모바일 첫 화면이 폰 한 화면에 들어가게: 간격을 24px 리듬으로
   (3D 장면 상자 안 위 약 8.5% · 아래 약 10%의 빈 공간을 여백에서 뺀다) */
@media (max-width: 760px) {
  .hero .hero-inner { gap: 0; padding-top: 22px; padding-bottom: 28px; }
  .hero .hero-copy h1 { margin-top: 0; }
  .hero .stage { width: 94%; margin: calc(24px - 8.5%) auto calc(24px - 10%); }
  .hero .hero-sub { margin-top: 0; line-height: 1.65; }
  .hero .hero-actions { margin-top: 24px; gap: 8px; }
  .hero .hero-actions .btn { min-height: 48px; }
}

/* 모바일 첫 화면 숨통: 요소를 한 단계 작고 가볍게, 남는 공간은 여백으로 */
@media (max-width: 760px) {
  .hero .hero-copy h1 { font-size: min(28px, calc((100vw - 40px) / 11.6)); line-height: 1.3; }
  .hero .stage { width: 82%; max-width: 340px; margin: calc(34px - 7.4%) auto calc(34px - 8.7%); }
  .hero .hero-sub {
    max-width: 30em; margin-inline: auto; text-align: center; text-wrap: balance;
    font-size: 14.5px; font-weight: 400; line-height: 1.7; color: var(--ink-3);
  }
  .hero .hero-actions { margin-top: 30px; gap: 8px; }
  .hero .hero-actions .btn { min-height: 46px; font-size: 14.5px; }
  .hero .btn-outline { background: rgb(255 255 255 / .7); }
  /* 배경을 한 겹 밝게 눌러 리본 · 별이 덜 복잡하게 */
  .hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: rgb(252 252 255 / .38); }
  .hero .hb-spark { display: none; }
}

/* 상단 메뉴 '연락하기': 진한 알약 대신 가벼운 반투명 알약 + 봉투 아이콘 */
.nav-cta {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 18px 4px 5px; border-radius: 999px;
  border: 1px solid rgb(23 27 53 / .14); background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: saturate(1.4); backdrop-filter: saturate(1.4);
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.nav-cta-ic {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 16px; transition: transform .25s var(--ease);
}
.nav-cta:hover { border-color: rgb(23 27 53 / .4); background: #fff; box-shadow: 0 8px 20px -12px rgb(23 27 53 / .35); }
.nav-cta:hover .nav-cta-ic { transform: rotate(-8deg) scale(1.06); }
.nav-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) { .nav-cta { gap: 8px; padding-right: 14px; font-size: 13.5px; } .nav-cta-ic { width: 32px; height: 32px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .nav-cta, .nav-cta-ic { transition: none; } .nav-cta:hover .nav-cta-ic { transform: none; } }
