/* 포트폴리오 공통 스타일. 업종 페이지는 :root 변수만 바꿔서 테마를 입힌다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --line: #e4e4e7;
  --text: #111113;
  --muted: #52525b;
  --accent: #111113;
  --on-accent: #ffffff;

  --font-body: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-display: var(--font-body);
  --font-num: var(--font-body);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 128px);
  --radius: 4px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--text); color: var(--bg); }
  .btn-ghost:hover { border-color: var(--text); }
}

/* 스크롤 등장 효과: JS가 .is-in을 붙인다. JS가 없으면 그냥 보인다. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 고급 등장 효과 (sharegreen.shop 실측): 7vh 아래에서 1.9s 동안 천천히 떠오른다. --d 한 칸 = 150ms 지연 */
.js .rise { opacity: 0; transform: translate3d(0, 7vh, 0); transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.9s cubic-bezier(0, 0, 0.2, 1); transition-delay: calc(var(--d, 0) * 150ms); }
.js .rise.is-in { opacity: 1; transform: none; }

/* <html class="force-motion">인 페이지는 방문자가 애니메이션을 꺼 둬도 효과를 그대로 보여 준다 (의뢰자 요청 시) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  html:not(.force-motion).js .reveal, html:not(.force-motion).js .rise { opacity: 1; transform: none; }
}
