/* ═══════════════════════════════════════
   Visual Sharing — Design System
   컨셉: 화이트보드 위 스티키노트
═══════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --bg:        #F8F7F2;
  --bg-card:   #FFFFFF;
  --text:      #1C1C1C;
  --text-muted:#6B6B6B;
  --border:    #E2E0D8;

  --yellow:    #FFE566;
  --yellow-bg: #FFF9CC;
  --blue:      #A8D8EA;
  --blue-bg:   #E8F5FA;
  --green:     #C8E6A0;
  --green-bg:  #EEF7E4;

  --font: 'Pretendard', 'Inter', -apple-system, sans-serif;
  --max-w: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 타이포그래피 ── */
h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.6; }

/* ── 레이아웃 ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── 네비게이션 ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span {
  display: inline-block;
  background: var(--yellow);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── 스티키노트 카드 ── */
.sticky {
  padding: 20px 22px;
  border-radius: 2px;
  position: relative;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08);
  line-height: 1.6;
}
.sticky::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 0 0 3px 3px;
}
.sticky-yellow { background: var(--yellow); }
.sticky-blue   { background: var(--blue); }
.sticky-green  { background: var(--green); }

/* ── 섹션 레이블 ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── 구분선 ── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── 그리드 ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── 프로젝트 카드 ── */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.project-card img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.project-card-body { padding: 18px 20px; }
.project-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.project-card h3 { font-size: 1rem; margin-bottom: 4px; }
.project-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ── 버튼 ── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.8; }
.btn-dark { background: var(--text); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--text); color: var(--text); }
.btn-yellow { background: var(--yellow); color: var(--text); border: none; }

/* ── 히어로 ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}
.hero-photos {
  position: relative;
  height: 520px;
}
.hero-photo {
  position: absolute;
  background: #fff;
  padding: 8px 8px 28px 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.hero-photo:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  z-index: 10 !important;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-lg {
  width: 340px; height: 255px;
  top: 0px; left: 10px;
  transform: rotate(-3deg);
  z-index: 3;
}
.hero-photo-md {
  width: 260px; height: 195px;
  top: 240px; left: 160px;
  transform: rotate(2.5deg);
  z-index: 2;
}
.hero-photo-sm {
  width: 200px; height: 150px;
  top: 90px; left: 310px;
  transform: rotate(-1.5deg);
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--green);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { max-width: 700px; margin-bottom: 24px; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-stickies {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.hero-stickies .sticky {
  flex: 0 0 auto;
  width: 180px;
  font-size: 0.88rem;
  font-weight: 500;
  animation: sway1 4s ease-in-out infinite;
}
.hero-stickies .sticky:nth-child(2) { animation: sway2 5s ease-in-out infinite; }
.hero-stickies .sticky:nth-child(3) { animation: sway3 4.5s ease-in-out infinite; }

@keyframes sway1 {
  0%   { transform: rotate(-1.5deg) translateX(0); }
  50%  { transform: rotate(0.5deg) translateX(4px); }
  100% { transform: rotate(-1.5deg) translateX(0); }
}
@keyframes sway2 {
  0%   { transform: rotate(1deg) translateX(0); }
  50%  { transform: rotate(-1deg) translateX(-5px); }
  100% { transform: rotate(1deg) translateX(0); }
}
@keyframes sway3 {
  0%   { transform: rotate(-0.5deg) translateX(0); }
  50%  { transform: rotate(1.5deg) translateX(3px); }
  100% { transform: rotate(-0.5deg) translateX(0); }
}

/* ── 푸터 ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ── About 스티키노트 애니메이션 ── */
.about-stickies .sticky:nth-child(1) { animation: sway1 5s ease-in-out infinite; }
.about-stickies .sticky:nth-child(2) { animation: sway2 6s ease-in-out infinite 0.5s; }
.about-stickies .sticky:nth-child(3) { animation: sway3 5.5s ease-in-out infinite 1s; }

/* ── 프로젝트 카드 hover ── */
.project-card:hover { cursor: pointer; }

/* ── 필드 슬라이더 ── */
.field-slider-wrap {
  position: relative;
  margin-top: 24px;
}
.field-slider {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
}
.field-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
  width: 100%;
}
.field-track img {
  flex: 0 0 calc((100% - 32px) / 3);
  width: calc((100% - 32px) / 3);
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.15s;
}
.slider-btn:hover { background: var(--border); }
.slider-btn.prev { left: -20px; }
.slider-btn.next { right: -20px; }
.slider-btn:disabled { opacity: 0.3; cursor: default; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-track img { flex: 0 0 calc(100% - 0px); }
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .hero-stickies .sticky { width: 150px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photos { display: none; }
}
