/*==================================================
  Home (v3) — analog / cassette / Voyager
==================================================*/
:root {
  --bg: #070807;
  --ink: #e9ece7;
  --muted: #8a9088;
  --amber: #e0b877;               /* 아날로그 / 골드 */
  --line: rgba(233, 236, 231, 0.14);
}

.home-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  scroll-snap-type: none;         /* style_v3의 mandatory 해제 */
  scroll-behavior: smooth;
}

/* 좌측 메뉴 색 (다크 홈) */
.home-body .top-menu a { color: var(--ink); }
.home-body .top-menu a:hover { color: var(--amber); }
.home-body #darkModeToggle { color: var(--ink); }
.home-body #darkModeToggle:hover { color: var(--amber); }

/* 은은한 글로우 + 그레인 */
.home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(224, 184, 119, 0.10), transparent 62%),
    radial-gradient(45% 40% at 82% 96%, rgba(90, 130, 170, 0.08), transparent 60%);
}

.home-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 104px 9vw 88px 160px;   /* 좌측 메뉴에서 띄움 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid transparent;
}
.home-section + .home-section { border-top: 1px solid var(--line); }

/*========== HERO (orbital) ==========*/
.home-hero { padding: 0; overflow: hidden; }
#orbCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2; display: block;
  touch-action: pan-y;   /* 모바일 세로 스크롤 허용 (가로 스와이프는 구 회전) */
}
.hero-title {
  position: absolute; z-index: 1; pointer-events: none;   /* 구(canvas z2)보다 뒤 */
  top: 3%; left: calc(50% + 90px); transform: translateX(-50%);   /* 맨 위 + 좌측 메뉴 옆으로 비켜 */
  text-align: left;
}
.hero-name {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(50px, 13.5vw, 200px); line-height: 0.9;
  letter-spacing: -2px; color: #f2f4f0; white-space: nowrap;
}
.hero-sub {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  color: var(--amber);
  font-size: clamp(15px, 2vw, 26px); letter-spacing: 1.5px;
  margin-top: 8px; padding-left: 10px;
}
.hero-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-family: 'Space Mono', monospace; }
.hero-top { position: absolute; top: 28px; right: 9vw; }
.hero-top .edition { font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.hero-side { position: absolute; left: 160px; top: 47%; }
.hero-side .k { font-size: 11px; letter-spacing: 2px; color: var(--amber); }
.hero-side .v { font-family: 'Space Grotesk', sans-serif; font-size: 20px; color: var(--ink); margin: 3px 0 6px; }
.hero-side .tiny { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.hero-quote { position: absolute; left: 160px; bottom: 74px; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 30ch; }
.hero-quote span { color: rgba(233, 236, 231, 0.35); }
.scroll-cue2 {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 2px; color: var(--muted);
  animation: bob 1.9s ease-in-out infinite;
}
.sat-tip {
  position: absolute; z-index: 4; pointer-events: none;
  left: 0; top: 0;
  background: #0f100e; color: #f4f1e6; border: 1px solid var(--line);
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -150%); opacity: 0;
  transition: opacity 0.12s ease;
}
.sat-tip.on { opacity: 1; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(6px); opacity: 0.55; } }

/*========== 섹션 공통 헤더 ==========*/
.sec-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 13px; letter-spacing: 3px;
  color: var(--amber);
}
.home-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
  margin: 0.25em 0 0.9em;
}

/*========== ABOUT + MIXTAPE ==========*/
/* About — 중앙 정렬, 두 칸 1:1 */
.home-about {
  align-items: center;
  text-align: center;
  padding-left: 9vw;                /* 대칭 여백 → 가운데 */
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 스티커 : 글 = 1:1 */
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}
.about-bio { text-align: left; }    /* 본문은 읽기 좋게 좌측 */
.about-bio p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
  color: #cfd3cd;
  max-width: 42ch;
  margin: 0 0 1.1em;
}
.about-bio .hl { color: var(--amber); }
.about-bio .quiet { color: var(--muted); font-family: 'Space Mono', monospace; font-size: 14px; }

/* 폴라로이드 */
.polaroid {
  position: absolute; top: 16px; left: 16px; z-index: 0;   /* 맨 아래 (스티커 뒤) */
  cursor: grab; touch-action: none;
  background: #f4f1e6;
  padding: 9px 9px 14px;
  border-radius: 2px;
  width: 168px; margin: 0;
  transform: rotate(-4deg);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.6);
}
.polaroid.dragging { cursor: grabbing; box-shadow: 0 24px 44px rgba(0, 0, 0, 0.65); }
.polaroid img { pointer-events: none; }
.polaroid img { width: 100%; display: block; border-radius: 1px; aspect-ratio: 1 / 1; object-fit: cover; }
.polaroid figcaption {
  font-family: 'Caveat', cursive; font-size: 23px;
  color: #2a2a28; text-align: center; margin-top: 8px; line-height: 1;
}

/* 스티커 보드 */
.sticker-board {
  position: relative;
  background:
    radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(160deg, #1a1c17, #101109);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
  height: 520px;
}
.sticker {
  position: absolute;                   /* JS가 위치 지정 + 드래그 */
  z-index: 2;                           /* 사진(0)보다 위 */
  width: 62px; height: 62px;
  border: none; border-radius: 50%;
  background: #f4f1e6;
  font-size: 30px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.10);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.sticker:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55);
}
.sticker.dragging {
  cursor: grabbing;
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 200;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.6);
  transition: none;
}
/* 이미지 스티커 (다이컷, 흰 원 없음) */
.sticker.sticker--img {
  width: 150px; height: 150px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.sticker.sticker--img img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 11px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.sticker.sticker--img.dragging { box-shadow: none; }
/* 개별 크기 보정 */
.sticker[data-label="Batman"] { width: 195px; height: 195px; }
.sticker::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%; left: 50%;
  margin-bottom: 4px;                      /* 이미지 바로 위 */
  transform: translateX(-50%) translateY(4px);
  background: #0f100e; color: #f4f1e6;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.4px;
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.sticker:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.board-hint {
  position: absolute; bottom: 14px; right: 18px;
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1px;
  color: var(--muted); margin: 0;
}

/*========== CONTACT ==========*/
/* Contact — 중앙 정렬 (마무리 섹션) */
.home-contact {
  align-items: center;
  text-align: center;
  padding-left: 9vw;                 /* 대칭 여백 → 진짜 가운데 */
}
.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2×2 */
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}
.contact-card { text-align: left; }  /* 카드 안 텍스트는 좌측 */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex; gap: 14px; align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.contact-card:hover { border-color: var(--amber); transform: translateY(-3px); background: rgba(224, 184, 119, 0.05); }
.contact-card i { font-size: 22px; color: var(--amber); flex: 0 0 auto; }
.contact-card .k { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.contact-card .v { font-size: 14px; margin-top: 3px; word-break: break-all; }
.contact-foot {
  margin-top: 40px;
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 1px;
  color: var(--muted);
}

/*========== 반응형 ==========*/
@media (max-width: 768px) {
  .home-section { padding: 92px 22px 72px; justify-content: flex-start; }
  .home-section:first-child { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-bio p { max-width: none; }
  /* 모바일: 상단 바 검게 */
  .home-body .top-menu { background: #0b0c0b; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
  /* 모바일: 좌측 메뉴 없음 → gutter 원복 + 이름은 바 아래로 */
  .hero-title { left: 50%; top: 66px; }
  .hero-name { font-size: clamp(44px, 15vw, 92px); }
  .hero-side, .hero-quote { left: 22px; }
  .contact-list { grid-template-columns: 1fr; }
}
