/* ============================================
   home.css — Hero & Home-specific styles
   ============================================ */

/* ── HERO — 데스크탑: 아래 정렬, 전체 높이 ── */
.hero {
  min-height: 100vh;
  padding: 0 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

/* 그라데이션 배경 오브 */
.grad-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grad-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.orb1 {
  width: 580px; height: 580px; top: -140px; right: -60px;
  background: radial-gradient(circle, #c8d4ff 0%, #a0b4f0 45%, transparent 70%);
  opacity: 0.6;
}
.orb2 {
  width: 420px; height: 420px; top: 40px; left: -120px;
  background: radial-gradient(circle, #d4c8ff 0%, #b8a8e8 50%, transparent 70%);
  opacity: 0.4;
}
.orb3 {
  width: 340px; height: 340px; bottom: 100px; right: 14%;
  background: radial-gradient(circle, #b8ead8 0%, #90d4b8 50%, transparent 70%);
  opacity: 0.35;
}
.orb4 {
  width: 260px; height: 260px; bottom: 180px; left: 28%;
  background: radial-gradient(circle, #ffd4b8 0%, #f0b898 55%, transparent 70%);
  opacity: 0.25;
}

.corner { display: none; }

/* 상단 메타 */
.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 88px;
  margin-bottom: 20px;
}

.hero-headline { position: relative; z-index: 2; }
.headline-svg { width: 60%; max-width: 560px; height: auto; display: block; }
.hero-top .mono { color: var(--text-muted); letter-spacing: 0.18em; }

/* Resume CTA */
.resume-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a3aff 0%, #5b2fff 35%, #00b894 70%, #1a3aff 100%);
  background-size: 200% 200%;
  animation: grad-shift 4s ease infinite;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 24px rgba(26, 58, 255, 0.2);
}
.resume-cta:hover { opacity: 0.88; transform: translateY(-1px); }
@keyframes grad-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 하단 설명 */
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 72px;
  gap: 40px;
}
.hero-desc { font-size: 14px; color: var(--text-secondary); max-width: 340px; line-height: 1.8; font-weight: 400; }
.hero-desc strong { color: var(--text-primary); font-weight: 400; }
.hero-scroll { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hero-scroll::before { content: ''; display: block; width: 36px; height: 0.5px; background: var(--text-muted); }

/* ── WORKS ── */
.works { padding: 80px 48px; border-top: 0.5px solid var(--border); }
.works-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.works-title {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ── PROJECT CARD ── */
.project-card {
  display: grid;
  grid-template-columns: 44px 280px 1fr auto 20px;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-top: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.25s;
  color: inherit;
}
.p-desc-wrap { padding-top: 0; }
.p-main { display: flex; flex-direction: column; }
.project-card:last-of-type { border-bottom: 0.5px solid var(--border); }
.project-card:hover { background: rgba(20, 18, 16, 0.02); }
.project-card:hover .p-arrow { transform: translate(3px, -3px); color: var(--text-primary); }
.project-card:hover .p-num { color: var(--text-secondary); }
.p-num { transition: color 0.2s; }
.p-name { font-size: 20px; font-weight: 400; color: var(--text-primary); margin-bottom: 16px; letter-spacing: -0.02em; line-height: 1.3; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.p-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.8; font-weight: 400; margin-top: 16px; }
.p-meta { text-align: right; }
.p-date { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.p-arrow { font-size: 15px; color: var(--text-muted); padding-top: 3px; transition: transform 0.2s, color 0.2s; }

.tag { background: rgba(20, 18, 16, 0.08); border-color: transparent; color: var(--text-secondary); }
.tag.hi { background: rgba(26, 107, 58, 0.1); border-color: transparent; color: var(--accent-green); }

.p-thumb {
  width: 280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  flex-shrink: 0;
  align-self: start;
  justify-self: start;
  position: relative;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease-out); }
.project-card:hover .p-thumb img { transform: scale(1.04); }

/* ── ABOUT STRIP ── */
.about-strip {
  padding: 72px 48px;
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-hl { font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 38px; color: var(--text-primary); line-height: 1.05; letter-spacing: -0.01em; }
.about-hl-serif { font-family: var(--font-serif); font-weight: 600; font-style: italic; font-size: 34px; color: var(--text-primary); line-height: 1.05; display: block; margin-bottom: 28px; }
.about-body { font-size: 13px; color: var(--text-secondary); line-height: 1.85; font-weight: 400; }
.about-body strong { color: var(--text-primary); font-weight: 400; }
.about-link { display: inline-block; margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-secondary); border-bottom: 0.5px solid var(--border); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.about-link:hover { color: var(--text-primary); border-color: var(--text-secondary); }

.career-list { padding-top: 8px; }
.career-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 0.5px solid var(--border); gap: 16px; }
.career-co { font-size: 13px; color: var(--text-primary); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .project-card { grid-template-columns: 36px 220px 1fr auto 20px; }
  .p-desc { display: none; }
}

@media (max-width: 768px) {
  /* 모바일: 높이 고정 해제, 위에서부터 채우기 */
  .hero {
    min-height: 0;
    height: auto;
    padding: 0 24px 48px;
    justify-content: flex-start;
  }
  .hero-top {
    padding-top: 80px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .hero-top .mono { font-size: 9px; letter-spacing: 0.1em; }
  .hero-year { text-align: right !important; line-height: 1.6 !important; }
  .headline-svg { width: 100% !important; max-width: 100% !important; }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 40px;
  }
  .resume-cta { font-size: 13px; padding: 12px 24px; }
  .hero-desc { font-size: 13px; max-width: 100%; }
  .br-desktop { display: none; }
  .corner { display: none; }
  .works { padding: 48px 24px; }
  .project-card { grid-template-columns: 28px 1fr 16px; gap: 12px; }
  .p-desc { display: none; }
  .p-meta { display: none; }
  .p-thumb { display: none; }
  .p-tags { min-height: auto; }
  .about-strip { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
}
