:root {
  --bg: #f2f4f6; --surface: #ffffff; --ink: #16202a; --ink-2: #3a4652; --muted: #5d6974;
  --line: #d5dce2; --line-strong: #aeb9c3; --link: #2448c9; --accent: #2448c9;
  --up: #d23a2f; --market: #d23a2f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 3px; }
time, .scale b, .delta td { font-variant-numeric: tabular-nums; }

/* 본문 폭 720px, 그림은 1040px까지 넓힌다 */
.wrap { max-width: 720px; margin: 0 auto; padding: 72px 16px 48px; }

/* 사이트 머리 */
h1 { margin: 0; font-size: clamp(44px, 11vw, 80px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.lede { margin: 16px 0 32px; color: var(--muted); }
.work { list-style: none; margin: 0 0 96px; padding: 0; border-top: 1px solid var(--line); }
.work li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.work .title { font-size: 20px; font-weight: 700; }
.work p { margin: 4px 0 0; color: var(--muted); }

/* 프로젝트 머리 */
.project-head h2 { margin: 0; font-size: clamp(40px, 9vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.pitch { margin: 24px 0 12px; font-size: 20px; line-height: 1.6; color: var(--ink-2); letter-spacing: -0.01em; }
.bookmark { display: flex; min-height: 108px; margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--surface); color: var(--ink); text-decoration: none; transition: background-color .12s; }
.bookmark:hover { background: #f7f8fa; }
.bm-text { flex: 4 1 180px; min-width: 0; padding: 12px 14px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.bm-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.bm-desc { font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-url { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bm-url img { flex: none; }
.bm-thumb { flex: 1 1 180px; position: relative; max-width: 250px; }
.bm-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
@media (max-width: 420px) { .bm-thumb { display: none; } }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; padding-top: 1px; }
.facts dd { margin: 0; font-size: 16px; }

/* 섹션 */
.project section { margin-top: 88px; }
h3 { margin: 0 0 20px; font-size: 26px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
h4 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.project p { margin: 0 0 12px; }
.note { color: var(--muted); font-size: 15px; }

/* 스크린샷 */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; }
.hero { margin: 56px 0 0; }
@media (min-width: 900px) {
  .hero, .gallery { margin-left: -160px; margin-right: -160px; }
}

/* 규모 */
.scale { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0 0 12px; border-top: 2px solid var(--ink); }
.scale div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.scale dt { font-size: 15px; color: var(--muted); }
.scale dd { margin: 2px 0 4px; font-size: 17px; color: var(--ink-2); }
.scale b { font-size: 36px; font-weight: 750; letter-spacing: -0.035em; color: var(--ink); margin-right: 2px; }
.scale p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (min-width: 640px) { .scale { grid-template-columns: repeat(3, 1fr); } }

/* 흐름: 실제 순서가 있는 단계 */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.flow li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 1; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1.5px; background: var(--line-strong); }
.flow h4 { margin-bottom: 4px; line-height: 30px; }
.flow p { color: var(--ink-2); }

/* 하루 시간표: 시간 축 위에 작업을 놓고, 장중 구간을 굵게 칠한다 */
.day { list-style: none; margin: 28px 0 16px; padding: 0; }
.day li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 7px 0; }
.day li::before { content: ""; position: absolute; left: 84px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.day li::after { content: ""; position: absolute; left: 80px; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); }
.day time { font-size: 15px; color: var(--muted); padding-top: 2px; }
.day span { padding-left: 20px; }
.day em { display: block; font-style: normal; font-size: 15px; color: var(--muted); }
.day .out time { color: var(--ink); font-weight: 700; }
.day .out span { font-weight: 700; }
.day .out em { font-weight: 400; }
.day .out::after { background: var(--accent); border-color: var(--accent); }
.day .phase { display: block; padding: 22px 0 6px 104px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.day .phase::after { display: none; }
.day li:first-child { padding-top: 0; }
.day .mkt-open::before { top: 22px; width: 6px; left: 82px; background: var(--market); }
.day .mkt-close::before { bottom: auto; height: 22px; width: 6px; left: 82px; background: var(--market); }
.day .mkt-open::after, .day .mkt-close::after { border-color: var(--market); }
.day .mkt-open span { color: var(--ink); }

/* 화면 목록 + 모바일 */
.screens { display: grid; gap: 32px; align-items: start; }
.tabs { margin: 0; border-top: 1px solid var(--line); }
.tabs div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tabs dt { font-weight: 700; font-size: 16px; }
.tabs dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.phone { max-width: 240px; }
.phone img { border-radius: 18px; }
@media (min-width: 640px) { .screens { grid-template-columns: 1fr 200px; } }
.gallery { display: grid; gap: 40px; margin-top: 56px; }


/* 핵심 경험 */
.case { padding: 28px 0 8px; border-top: 1px solid var(--line-strong); }
.case + .case { margin-top: 32px; }
.case h4 { font-size: 21px; margin-bottom: 18px; }
.case dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.case dt { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.case dd { margin: 2px 0 18px; color: var(--ink-2); }
.case dd > :last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .case dl { grid-template-columns: 88px 1fr; column-gap: 20px; }
  .case dt { padding-top: 3px; }
  .case dd { margin: 0 0 20px; }
}
.case ul, .plain { margin: 0; padding-left: 1.1em; }
.case li, .plain li { margin-bottom: 8px; }
.case li::marker, .plain li::marker { color: var(--line-strong); }
.plain li { color: var(--ink-2); margin-bottom: 14px; }
.plain b, .case b { color: var(--ink); }
blockquote { margin: 12px 0 16px; padding: 2px 0 2px 16px; border-left: 3px solid var(--accent); color: var(--ink); }
blockquote cite { display: block; margin-top: 4px; font-style: normal; font-size: 14.5px; color: var(--muted); }

/* 전후 비교 */
.delta { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15.5px; }
.delta th, .delta td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.delta thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--line-strong); }
.delta tbody th { font-weight: 500; color: var(--ink-2); }
.delta td:last-child { color: var(--ink); font-weight: 700; }
.delta td:nth-child(2) { color: var(--muted); }

/* 발전 과정 */
.history { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--line); }
.history li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 6px 0 6px 18px; position: relative; }
.history li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); }
.history li:last-child::before { background: var(--ink); border-color: var(--ink); }
.history time { color: var(--muted); font-size: 15px; padding-top: 1px; }
.history p { margin: 0; color: var(--ink-2); }

.site-foot { margin-top: 96px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.site-foot p { margin: 0; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .pitch { font-size: 18px; }
  .facts div { grid-template-columns: 56px 1fr; gap: 12px; }
  .day li { grid-template-columns: 48px 1fr; gap: 14px; }
  .day li::before { left: 64px; }
  .day li::after { left: 60px; }
  .day .mkt-open::before, .day .mkt-close::before { left: 62px; }
  .day .phase { padding-left: 86px; }
  .day span { padding-left: 24px; }
  .tabs div { grid-template-columns: 72px 1fr; }
  .history li { grid-template-columns: 64px 1fr; }
}
