/* ===== 김민기 — 나를 소개하는 한 페이지 ===== */
:root {
  --hand: 'Nanum Pen Script', 'Malgun Gothic', cursive;
  --bg: #FFF8F1;
  --surface: #FFFFFF;
  --ink: #26202E;
  --ink-2: #514A63;
  --violet: #6A4CFF;
  --violet-deep: #5538DB;
  --coral: #FF8B6B;
  --coral-deep: #B23A24;
  --mint: #BFEDE0;
  --mint-deep: #0B6B4F;
  --butter: #FFD166;
  --lavender: #E9E3FF;
  --line: #EFE6DC;
  --shadow: 0 6px 24px rgba(84, 60, 140, .08), 0 1px 3px rgba(84, 60, 140, .06);
  --shadow-lg: 0 16px 48px rgba(84, 60, 140, .14), 0 2px 8px rgba(84, 60, 140, .08);
  --radius: 22px;
  --radius-lg: 30px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ----- 건너뛰기 링크 ----- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; }

/* ----- 화면에는 숨기고 읽기에는 남김 ----- */
.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;
}

/* ----- 초점 ----- */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ----- 배경 블롭 ----- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: float 14s ease-in-out infinite;
}
.blob-violet { width: 420px; height: 420px; background: #DDD3FF; top: -120px; right: -80px; }
.blob-coral  { width: 340px; height: 340px; background: #FFD9CC; top: 38%; left: -140px; animation-delay: -5s; }
.blob-mint   { width: 300px; height: 300px; background: #C9F0E4; bottom: -100px; right: 18%; animation-delay: -9s; }

/* 노트 점선 배경 */
.bg-blobs::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(106, 76, 255, .10) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 35% 25%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 35% 25%, #000 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.06); }
}

/* ----- 헤더 ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 248, 241, .78);
  border-bottom: 1px solid rgba(239, 230, 220, .7);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.logo span { color: var(--violet); }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover {
  background: var(--lavender);
  color: var(--violet-deep);
}

/* ----- 움직임 토글 ----- */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px 7px 16px;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.motion-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #D8D0E8;
  transition: background .2s ease;
  flex-shrink: 0;
}
.motion-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.motion-toggle[aria-checked="true"] .motion-track { background: var(--violet); }
.motion-toggle[aria-checked="true"] .motion-thumb { transform: translateX(18px); }

/* ----- 히어로 ----- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0 40px;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--violet-deep);
  background: rgba(233, 227, 255, .85);
  border-radius: 4px 14px 4px 14px;
  padding: 5px 14px;
  margin-bottom: 18px;
  transform: rotate(-1.5deg);
  box-shadow: 0 2px 6px rgba(106, 76, 255, .10);
}

/* 손글씨 포인트 */
.hand-note {
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--coral-deep);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 14px;
}
.footer-hand { margin-bottom: 0; }

.motto {
  font-family: var(--hand);
  font-size: 1.7rem;
  color: var(--violet-deep);
  transform: rotate(-1deg);
  display: inline-block;
  margin: 2px 0 16px;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hl {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: .06em;
  height: .34em;
  background: var(--butter);
  border-radius: .3em;
  z-index: -1;
  transform: rotate(-1deg);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.purpose {
  font-size: .95rem;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 26px;
}
.purpose-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--coral-deep);
  background: #FFE9E0;
  border-radius: 8px;
  padding: 2px 8px;
  margin-right: 6px;
  vertical-align: .1em;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 20px rgba(106, 76, 255, .32);
}
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ----- 히어로 패널 ----- */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1deg);
}

.buddy {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 4px;
  border-radius: 18px;
}
.buddy-face {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(106, 76, 255, .35));
  animation: bob 3.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
.buddy:hover .buddy-face { animation-play-state: paused; }
.buddy-bubble {
  font-family: var(--hand);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  background: var(--butter);
  padding: 10px 18px;
  border-radius: 18px 18px 18px 6px;
  box-shadow: var(--shadow);
}
.buddy-bubble.pop { animation: pop .3s ease; }
@keyframes pop {
  0% { transform: scale(.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.buddy-hint {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 6px;
  padding-left: 8px;
}

.panel-group { border-top: 1px dashed var(--line); padding-top: 16px; }
.panel-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.strength-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.strength-pills a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--lavender);
  color: var(--violet-deep);
  font-size: .9rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.strength-pills a:hover { background: #DDD3FF; transform: translateY(-2px); }

.evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #26202E;
  color: #FFF8F1;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.evidence-chip:hover { background: #3A3347; transform: translateY(-2px); }

/* ----- 띠배너 ----- */
.marquee {
  overflow: hidden;
  background: var(--violet);
  padding: 13px 0;
  transform: rotate(-.6deg) scale(1.01);
  margin: 10px 0 -6px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}
.mq-star { color: var(--butter); font-size: .85rem; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ----- 요즘의 나 ----- */
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.now-card {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(38, 32, 46, .06);
  box-shadow: var(--shadow);
  font-size: .93rem;
}
.now-card:nth-child(1) { transform: rotate(-.7deg); }
.now-card:nth-child(2) { transform: rotate(.5deg); }
.now-card:nth-child(3) { transform: rotate(-.4deg); }
.now-card:hover { transform: translateY(-3px) rotate(0); transition: transform .16s ease; }
.now-lavender { background: #F2EEFF; }
.now-mint { background: #E9F8F2; }
.now-butter { background: #FFF3D9; }
.now-label {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.now-lavender .now-label { color: var(--violet-deep); }
.now-mint .now-label { color: var(--mint-deep); }
.now-butter .now-label { color: #8A5A00; }

/* ----- 걸어온 길 타임라인 ----- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #B9ACFF 0 7px, transparent 7px 14px);
}
.timeline li { position: relative; }
.tl-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--butter);
  border: 3px solid var(--violet);
}
.tl-when {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--violet-deep);
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 3px;
}
.tl-what { font-size: .95rem; color: var(--ink); }

/* ----- 성향 키워드 ----- */
.trait-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.trait-lead {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-2);
  margin-right: 2px;
}
.trait-strip span:not(.trait-lead) {
  font-family: var(--hand);
  font-size: 1.25rem;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.trait-badge {
  background: var(--violet) !important;
  color: #fff;
  border-color: var(--violet) !important;
  font-weight: 700;
}

/* ----- 미니 Q&A ----- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.qa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.qa-card:nth-child(1) { transform: rotate(-.6deg); }
.qa-card:nth-child(2) { transform: rotate(.5deg); }
.qa-card:nth-child(3) { transform: rotate(-.4deg); }
.qa-card:hover { transform: translateY(-3px) rotate(0); transition: transform .16s ease; }
.qa-q {
  font-family: var(--hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--violet-deep);
  margin-bottom: 8px;
}
.qa-a { font-size: .93rem; color: var(--ink); }

/* ----- 해보고 싶은 것 ----- */
.goal-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.goal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hand);
  font-size: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
.goal-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2.5px solid var(--violet);
  border-radius: 6px;
  position: relative;
}
.goal-list li:hover .goal-box::after {
  content: "✓";
  position: absolute;
  inset: -8px 0 0 1px;
  font-size: 1.3rem;
  color: var(--coral);
  font-weight: 700;
}

/* ----- 버디 파티클 ----- */
.buddy { position: relative; }
.particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.15rem;
  animation: floatUp .9s ease-out forwards;
}
@keyframes floatUp {
  from { opacity: 1; transform: translateY(0) scale(.7) rotate(0); }
  to { opacity: 0; transform: translateY(-48px) scale(1.25) rotate(18deg); }
}

/* ----- 섹션 공통 ----- */
.section { padding: 72px 0 8px; }
.section-head { margin-bottom: 34px; }
h2 {
  font-family: var(--hand);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.section-sub { color: var(--ink-2); font-size: 1rem; }

/* ----- 아코디언 ----- */
.accordion-list { display: flex; flex-direction: column; gap: 14px; }
.acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.acc:has(.acc-btn[aria-expanded="true"]) {
  border-color: var(--violet);
  box-shadow: var(--shadow-lg);
}
.acc-title { font-size: inherit; font-weight: inherit; }
.acc-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.acc-num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--violet-deep);
  background: var(--lavender);
  border-radius: 10px;
  padding: 4px 10px;
}
.acc-name {
  font-family: var(--hand);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}
.acc-name small {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: 6px;
}
.acc-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(180deg); background: var(--violet); }
.acc-btn[aria-expanded="true"] .acc-icon::before,
.acc-btn[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .32s ease, visibility 0s .32s;
}
.acc-panel.open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .32s ease;
}
.acc-panel > .sar {
  overflow: hidden;
  min-height: 0;
}
.sar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 24px 24px;
}
.sar-item {
  background: var(--bg);
  border-radius: 16px;
  padding: 18px;
  font-size: .92rem;
  color: var(--ink);
}
.sar-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 8px;
}
.sar-item:nth-child(1) .sar-label { background: #FFE9E0; color: var(--coral-deep); }
.sar-item:nth-child(2) .sar-label { background: var(--lavender); color: var(--violet-deep); }
.sar-item:nth-child(3) .sar-label { background: var(--mint); color: var(--mint-deep); }

/* ----- 좋아하는 것 ----- */
.like-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.like-cloud li {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .16s ease, background .16s ease;
}
.like-cloud li a {
  color: inherit;
  text-decoration: none;
}
.like-cloud li a:hover { text-decoration: underline; }
.like-cloud li:nth-child(4n+1) { transform: rotate(-1.5deg); }
.like-cloud li:nth-child(4n+3) { transform: rotate(1.5deg); }
.like-cloud li:hover { transform: translateY(-3px) rotate(0); background: var(--lavender); }

/* ----- 공개 범위 ----- */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.scope-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
}
.scope-card h3 {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scope-card h3::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 5px;
  flex-shrink: 0;
}
.scope-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.scope-card li { padding-left: 22px; position: relative; font-size: .95rem; }
.scope-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.scope-open { background: var(--surface); }
.scope-open h3 { color: var(--mint-deep); }
.scope-open h3::before { background: var(--mint-deep); }
.scope-open li::before { background: #4EC9A6; }
.scope-closed { background: #26202E; border-color: #3A3347; }
.scope-closed h3 { color: #FFB4A0; }
.scope-closed h3::before { background: var(--coral); }
.scope-closed li { color: #E8E2F0; }
.scope-closed li::before { background: var(--coral); }

/* ----- 연결 ----- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.link-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.link-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--line);
}
.link-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px 24px;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet);
}
.link-card-title {
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.link-card-desc { font-size: .88rem; color: var(--ink-2); }
.link-card-go {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--violet-deep);
  background: rgba(255, 255, 255, .92);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.link-card:hover .link-card-go { transform: translate(2px, -2px); }

/* ----- BGM 플레이어 ----- */
.bgm {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.bgm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hand);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #FFF8F1;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: wiggle 3.2s ease-in-out infinite;
}
.bgm-chip.playing { background: var(--violet); }
.bgm-note { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-2.5deg) scale(1.04); }
}
.bgm-card {
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  transform-origin: bottom right;
  animation: pop .3s ease;
}
.bgm-now { display: flex; align-items: center; gap: 12px; }
.bgm-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: repeating-radial-gradient(circle, #26202E 0 3px, #36304A 3px 6px);
  position: relative;
  box-shadow: var(--shadow);
  animation: discSpin 7s linear infinite;
}
.bgm-disc::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: var(--butter);
  border: 2px solid #FFF8F1;
}
@keyframes discSpin { to { transform: rotate(360deg); } }
.bgm-title {
  font-family: var(--hand);
  font-size: 1.3rem;
  line-height: 1.1;
}
.bgm-sub { font-size: .78rem; color: var(--ink-2); margin-top: 2px; }

/* 영상은 숨기고 소리만 — 재생용 1px 프레임 */
.bgm-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: .01;
  pointer-events: none;
}
.bgm-frame iframe { width: 2px; height: 2px; border: 0; display: block; }

.bgm-actions { display: flex; gap: 8px; margin-top: 12px; }
.bgm-actions button,
.bgm-actions .bgm-channel {
  flex: 1;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.bgm-actions button:hover,
.bgm-actions .bgm-channel:hover { background: var(--lavender); }

/* ----- 방명록 ----- */
.guestbook {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.guestbook-note {
  position: relative;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gb-tape {
  display: inline-block;
  width: 14px;
  height: 34px;
  background: rgba(255, 209, 102, .55);
  transform: rotate(-8deg);
  border-radius: 2px;
  flex-shrink: 0;
}
.guestbook .utterances { border-radius: 14px; }

/* ----- 푸터 ----- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--ink-2);
}
.footer-inner a { color: var(--violet-deep); font-weight: 700; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ----- 스크롤 등장 ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ----- 움직임 줄이기 ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-play-state: paused !important;
  transition-duration: .01ms !important;
}
html.reduce-motion .blob, html.reduce-motion .buddy-face { animation: none; }
html.reduce-motion .reveal { opacity: 1; transform: none; }

/* ----- 반응형 ----- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 40px;
    min-height: 0;
  }
  .hero-panel { transform: none; }
  .sar { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr; }
  .goal-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .header-inner { gap: 12px; height: 60px; }
  .site-nav { display: none; }
  .motion-toggle { margin-left: auto; }
  .motion-label { display: none; }
  .motion-toggle { padding: 7px; }
  .hero { padding-top: 32px; }
  .scope-grid { grid-template-columns: 1fr; }
  .acc-btn { gap: 12px; padding: 16px 18px; }
  .acc-name small { display: block; margin-left: 0; margin-top: 2px; }
  .buddy { flex-wrap: wrap; }
  .section { padding-top: 56px; }
}

@media (max-width: 380px) {
  .hero-cta .btn { width: 100%; }
}

/* ===== 나만의 자리 — 패스키 잠금 구역 (과제 8) ===== */
#vault .section-sub code {
  background: var(--lavender); color: var(--violet-deep);
  border-radius: 6px; padding: 1px 7px; font-size: .82em;
}
.vault-note { font-size: .8rem; color: var(--ink-2); margin-top: 14px; text-align: center; }

.vault-box {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  transition: border-color .3s;
}
#vault.is-locked .vault-box { border-color: var(--violet); background: linear-gradient(180deg, #FBFAFF, var(--surface)); }
#vault.is-open .vault-box { border-style: solid; border-color: var(--mint-deep); }

.vault-locked { text-align: center; }
.vault-icon { font-size: 2.6rem; margin-bottom: 10px; }
.vault-lead { color: var(--ink-2); margin-bottom: 22px; }

.vault-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.vault-actions .btn { min-width: 180px; }

.vault-form { max-width: 420px; margin: 0 auto; text-align: left; }
.vault-h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; text-align: center; }
.vault-sub { font-size: .88rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; text-align: center; }
.vault-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.vault-input {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: .95rem;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.vault-input:focus { outline: none; border-color: var(--violet); }

.vault-status { min-height: 1.4em; margin-top: 14px; font-size: .85rem; color: var(--ink-2); text-align: center; }

/* ----- 열린 상태 ----- */
.vault-open-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.vault-row-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.vault-row-head h4 { font-size: 1rem; font-weight: 800; }

.vault-item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 14px;
  background: #FDFBF8; padding: 14px 16px; margin-bottom: 10px;
}
.vault-item-body { flex: 1; display: grid; gap: 8px; }
.vault-item input, .vault-item textarea {
  width: 100%; font: inherit; border: 1px solid transparent; border-radius: 8px;
  padding: 6px 8px; background: transparent; color: var(--ink); resize: vertical;
}
.vault-item input { font-weight: 700; }
.vault-item textarea { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
.vault-item input:focus, .vault-item textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.vault-item-acts { display: flex; flex-direction: column; gap: 6px; }

.vault-pk {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 14px;
  background: #FDFBF8; padding: 12px 16px; margin-bottom: 10px;
}
.pk-name { font-weight: 700; }
.pk-meta { font-size: .8rem; color: var(--ink-2); margin-left: auto; }

.btn.sm { padding: 8px 12px; font-size: .82rem; border-radius: 10px; }
.btn.danger { color: var(--coral-deep); }
.btn-ghost {
  background: var(--lavender); color: var(--violet-deep);
  border: 0; cursor: pointer; font-weight: 700;
}
.btn-ghost:hover:not(:disabled) { filter: brightness(0.96); }
.btn-ghost.danger { background: #FDE8E2; color: var(--coral-deep); }
