/* =========================================================
   타이거커머스랩 — 디자인 시스템
   톤: 밝고 활기찬 + 신뢰감, 네이버 스마트스토어 매뉴얼 수준 고시인성
   ========================================================= */

:root {
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --bg: #FFFDF8;
  --bg-alt: #FFF3E1;
  --ink: #1C1A18;
  --ink-soft: #55504A;
  --ink-faint: #8A837B;

  --orange: #FF6A1A;
  --orange-dark: #DB4E05;
  --orange-soft: #FFE3CC;
  --yellow: #FFC93C;
  --red: #E63946;
  --white: #FFFFFF;

  --line: rgba(28, 26, 24, 0.10);
  --line-strong: rgba(28, 26, 24, 0.18);
  --shadow-sm: 0 2px 10px rgba(28, 26, 24, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 26, 24, 0.10);
  --shadow-lg: 0 24px 60px rgba(28, 26, 24, 0.16);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.hl { color: var(--orange); }
.only-desktop { display: none; }
@media (min-width: 860px) { .only-desktop { display: inline; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  z-index: 999;
  transition: width .08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #FFFFFF; }
.brand-name { font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 106, 26, .35); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ---------- Side nav ---------- */
.side-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-nav-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  padding: 0;
  position: relative;
  transition: background .25s, transform .25s;
}
.side-nav-dot span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .2s;
  background: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.side-nav-dot:hover span { opacity: 1; }
.side-nav-dot.is-active { background: var(--orange); transform: scale(1.3); }
@media (max-width: 860px) { .side-nav { display: none; } }

/* ---------- Layout helpers ---------- */
/* 전 섹션 공통 컨테이너 — 이 값 하나로만 가로 폭/중앙 정렬을 통일한다.
   섹션마다 다른 max-width를 따로 두지 않고, 모두 이 클래스를 그대로 쓴다. */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.section { padding: 100px 20px; overflow: hidden; }
.section-inner { }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 500;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   HERO INTRO (풀스크린 캐릭터 스플래시)
   ========================================================= */
.hero-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  overflow: hidden;
  background: var(--bg);
}
.hero-intro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(600px, 92vw);
  height: min(600px, 92vw);
  transform: translate(-50%, -52%);
  background: radial-gradient(circle, var(--orange-soft) 0%, rgba(255, 227, 204, 0) 68%);
  border-radius: 50%;
  z-index: 0;
}
.hero-intro-char {
  /* width만으로 크기를 잡으면(예: min(380px,62vw)) 세로가 긴 인물 이미지라
     뷰포트가 낮은 화면에서는 카피 전체(제목+스크롤 유도)가 min-height:100vh
     박스 밖으로 밀려나 첫 화면에 헤드라인이 안 보이는 문제가 있었다.
     height를 뷰포트 높이 기준으로 제한해 항상 헤드라인이 함께 보이도록 한다. */
  position: relative;
  z-index: 1;
  height: min(42vh, 360px);
  width: auto;
  aspect-ratio: 845 / 1516;
  margin-bottom: 24px;
  animation: heroFloat 4.5s ease-in-out infinite;
}
.hero-intro-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(28, 26, 24, .2)); }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.hero-intro-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-intro-title {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .hero-intro { padding: 96px 20px 48px; }
}

/* =========================================================
   재사용 미니 캐릭터 + 말풍선 (섹션 헤딩 옆 배치)
   ========================================================= */
/* 프로세스 섹션 스티키 캐릭터(.char-stage)와 정확히 같은 높이 기준을 사용해
   전 섹션의 캐릭터 표시 크기를 통일한다. */
.mini-char-stage {
  position: relative;
  display: inline-block;
  margin: 0 0 32px;
}
.mini-char-img {
  display: block;
  height: min(58vh, 540px);
  width: auto;
  filter: drop-shadow(0 12px 14px rgba(28, 26, 24, .15));
}
.mini-char-stage .char-badge { opacity: 0; }
.mini-char-stage.is-visible .char-badge {
  opacity: 1;
  animation: badgeBounceIn .6s var(--ease) .25s backwards;
}

/* =========================================================
   STORY GROUP (PAIN POINT / MARKET / PROCESS / CASES)
   ========================================================= */
.story {
  /* vw 단위를 써서 이 변수가 어느 자손 요소에서 재사용되든(퍼센트와
     달리) 항상 같은 픽셀 값으로 계산되게 한다 — 아래 .panel .container의
     max-width 보정에 그대로 재사용하기 위함. */
  --sidebar-w: clamp(180px, 22vw, 260px);
  display: flex;
  align-items: flex-start;
  background: var(--bg);
}
.story-visual {
  /* 캐릭터가 텍스트 컬럼과 겹치지 않도록 실제 폭을 갖는 사이드바로 유지한다
     (폭을 0으로 만들면 .container가 전체 뷰포트 기준으로 중앙정렬되긴 하지만,
     캐릭터가 텍스트 위에 그대로 겹쳐버리는 더 심각한 문제가 생긴다).
     대신 .panel의 좌우 패딩을 .section과 동일한 값(20px)으로 맞춰서
     (아래 .panel 규칙 참고) 사이드바로 인한 정렬 오차를 최소화한다. */
  position: sticky;
  top: 0;
  z-index: 1;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-bottom: 8vh;
  overflow: visible;
  transition: opacity .2s linear;
}
/* 캐릭터 원본 이미지(cutout)는 세로로 긴 인물 비율(약 845:1516)이므로,
   박스 크기를 뷰포트 "높이" 기준으로 제한해 화면이 낮을 때도
   머리~발이 항상 뷰포트 안에 온전히 들어오도록 한다. */
.char-stage {
  position: relative;
  height: min(58vh, 540px);
  width: auto;
  aspect-ratio: 845 / 1516;
  flex-shrink: 0;
}
.char-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 74%;
  height: 46%;
  background: radial-gradient(ellipse at center, var(--orange-soft) 0%, rgba(255,227,204,0) 72%);
  z-index: -1;
  border-radius: 50%;
}
.char-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity .7s var(--ease);
  filter: drop-shadow(0 14px 16px rgba(28,26,24,.16));
}
.char-img[data-char="hero"] { opacity: 1; }

/* 캐릭터 머리 위 말풍선 */
.char-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -84%);
  background: var(--bg-alt);
  color: var(--ink);
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 12.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.char-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--bg-alt);
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  border-radius: 0 0 3px 0;
  transform: translateX(-50%) rotate(45deg);
}
@keyframes badgeBounceIn {
  0%   { transform: translate(-50%, -50%) scale(.5); opacity: 0; }
  55%  { transform: translate(-50%, -96%) scale(1.12); opacity: 1; }
  75%  { transform: translate(-50%, -78%) scale(.94); }
  100% { transform: translate(-50%, -84%) scale(1); opacity: 1; }
}
.char-badge.is-bouncing { animation: badgeBounceIn .6s var(--ease); }

.story-panels { flex: 1; min-width: 0; position: relative; z-index: 2; }
.panel {
  /* 좌우 패딩을 .section과 동일한 값(20px)으로 맞춰, .container가
     다른 섹션과 완전히 같은 위치에서 시작/종료하도록 통일한다. */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
}
/* panel-inner의 가로폭/중앙정렬은 .container 클래스 하나로 통일한다
   (섹션마다 640/720/100%로 제각각이던 값을 여기서 없앤다).
   다만 .panel 안의 .container는 왼쪽에 사이드바(--sidebar-w)가 실제로
   폭을 차지하고 있어, 다른 섹션과 똑같이 1200px까지 늘어나면 우측
   가장자리가 더 이상 맞지 않는다(사이드바+본문 합이 1200을 넘어가므로).
   그래서 상한을 "1200px - 사이드바 폭"으로 낮춰 사이드바+본문의 합이
   항상 다른 섹션의 1200px과 같아지도록 맞춘다 — 넓은 데스크톱 화면에서도
   모든 섹션의 우측 가장자리가 일치한다. */
.panel .container { max-width: calc(1200px - var(--sidebar-w)); }

/* HERO panel */
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin-bottom: 10px;
}
.text-underline {
  position: relative;
  color: var(--orange-dark);
  white-space: nowrap;
}
.text-underline::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.05em;
  height: 0.32em;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
}
.hero-title-sub {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 22px;
}
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 56px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--ink-faint);
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* 2km 반경 섹션 — 한국 지도 비주얼(PNG 이미지 + 애니메이션 오버레이) */
.korea-map {
  position: relative;
  margin-top: 40px;
  width: min(280px, 72vw);
}
.korea-map-frame { position: relative; }
.korea-map-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(28, 26, 24, .18));
}
.korea-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.korea-map-ring {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  opacity: 0;
}
.korea-map.is-visible .korea-map-ring-1 { animation: mapRingPulse 2.2s ease-out .1s infinite; }
.korea-map.is-visible .korea-map-ring-2 { animation: mapRingPulse 2.2s ease-out .8s infinite; }
.korea-map.is-visible .korea-map-ring-3 { animation: mapRingPulse 2.2s ease-out 1.5s infinite; }
@keyframes mapRingPulse {
  0%   { r: 20; opacity: .8; }
  100% { r: 135; opacity: 0; }
}
.korea-map-arrow {
  stroke: var(--orange-dark);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.korea-map.is-visible .korea-map-arrow { opacity: .9; }

/* MARKET panel */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-label { font-weight: 700; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.stat-unit { font-weight: 600; color: var(--ink-faint); }
.bar-chart { display: flex; flex-direction: column; gap: 13px; }
.bar-chart-row { display: flex; align-items: center; gap: 16px; }
.bar-chart-track {
  flex: 1;
  height: 14px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.bar-chart-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 1s var(--ease);
  box-shadow: 0 0 14px rgba(255, 106, 26, .55);
}
.bar-chart-meta { display: flex; flex-direction: column; align-items: flex-end; min-width: 78px; }
.bar-chart-year { font-size: 11.5px; color: var(--ink-faint); font-weight: 700; }
.bar-chart-num { display: inline-block; font-size: 17px; font-weight: 800; transform-origin: right center; }
.bar-chart-num em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-left: 2px; }
.bar-chart-row-final .bar-chart-track { height: 18px; }
.bar-chart-row-final .bar-chart-year { color: var(--orange-dark); }
.bar-chart-row-final .bar-chart-num { font-size: 26px; color: var(--orange-dark); }
.stat-source { margin-top: 18px; font-size: 12px; color: var(--ink-faint); font-weight: 600; }

@keyframes statPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.bar-chart-num.is-popping { animation: statPop .45s var(--ease); }

/* 유기적 배경 장식 (톤온톤 블랍) */
.panel-hero, .panel-market, .panel-process { position: relative; }
.panel-market::before,
.panel-process::before {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.panel-market::before {
  width: 380px; height: 380px;
  top: -6%; right: -8%;
  background: radial-gradient(circle, var(--orange-soft) 0%, rgba(255,227,204,0) 72%);
}
.panel-process::before {
  width: 340px; height: 340px;
  bottom: -8%; left: 30%;
  background: radial-gradient(circle, var(--bg-alt) 0%, rgba(255,243,225,0) 72%);
}

/* PROCESS panel */
.process-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.process-step {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: -4px;
  width: 2px;
  background: var(--line-strong);
}
.process-step:last-child::before { display: none; }
.process-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  z-index: 1;
}
.process-step:nth-child(4) .process-num,
.process-step:nth-child(5) .process-num { background: var(--orange); }
.process-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.process-body p { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }

/* CASES panel */
.panel-cases {
  align-items: flex-start;
  padding-top: 120px;
  position: relative;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.panel-cases .panel-inner { position: relative; z-index: 1; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-media { position: relative; aspect-ratio: 4 / 3; }
.case-media img:first-child { width: 100%; height: 100%; object-fit: cover; }
.case-media-badge {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}
.case-body { padding: 22px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.case-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.case-body p { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; line-height: 1.55; }
.case-award { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--red); }

/* 맛집감별사 연결 (독립 섹션) */
.section-promo { padding: 64px 20px; }
.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 38px;
  background: linear-gradient(135deg, var(--ink) 0%, #2A2621 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card-title { color: #fff; font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
.promo-card-desc { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; }
.promo-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.promo-card-cta:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* 이런 분들께 추천해요 — 1인칭 채팅 말풍선 */
.section-audience {
  background: linear-gradient(180deg, var(--orange-soft) 0%, var(--bg) 100%);
  position: relative;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.quote-bubble {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 22px 22px 22px 4px;
  padding: 22px 24px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.quote-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
  transition: border-color .3s var(--ease);
}
.quote-bubble:nth-child(odd) { transform: rotate(-1.4deg); }
.quote-bubble:nth-child(even) { transform: rotate(1.1deg); }
.quote-bubble:hover {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.quote-bubble:hover::after { border-color: var(--orange); }

/* =========================================================
   SERVICES
   ========================================================= */
.section-services { background: var(--bg-alt); }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
.plan-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan-card-featured { border-color: var(--orange); box-shadow: var(--shadow-lg); }
.plan-card-featured:hover { box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan-name { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.plan-desc { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 24px; min-height: 66px; }
.plan-price { font-size: 16px; font-weight: 800; color: var(--orange-dark); }

.scope-title {
  display: inline-block;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.scope-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.scope-card {
  position: relative;
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.scope-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.scope-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .65);
  font-size: 26px;
  margin-bottom: 16px;
}
.scope-card-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.scope-card-desc { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.6; }
.scope-card-1 { background: #FFF3E1; }
.scope-card-2 { background: #FFE9D2; }
.scope-card-3 { background: #FFE3CC; }
.scope-card-4 { background: #FFDCC0; }
.scope-card-5 { background: #FFEFDA; }
.scope-card-6 { background: #FFE6C9; }

/* =========================================================
   SNS 채널 강조
   ========================================================= */
.sns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
.sns-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sns-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sns-card-title { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.sns-card-desc { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.65; }

/* "콘텐츠는 복리로 쌓인다" 카드만 오렌지 톤으로 강조 + 진입 시 pulse */
.sns-card-highlight {
  border-color: var(--orange);
  background: linear-gradient(160deg, var(--orange-soft) 0%, var(--white) 65%);
}
.sns-card-highlight .sns-card-title,
.sns-card-highlight .sns-card-desc { color: var(--orange-dark); }
.sns-card-highlight.is-visible {
  animation: snsCardPulse 1.6s var(--ease) .7s 1 backwards;
}
@keyframes snsCardPulse {
  0%   { transform: scale(1); box-shadow: var(--shadow-sm); }
  40%  { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255, 106, 26, .16), var(--shadow-md); }
  100% { transform: scale(1); box-shadow: var(--shadow-sm); }
}

/* =========================================================
   FOUNDER
   ========================================================= */
.section-founder { position: relative; }
.section-founder::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 460px;
  height: 460px;
  top: -18%;
  left: -14%;
  border-radius: 50%;
  filter: blur(55px);
  background: radial-gradient(circle, var(--orange-soft) 0%, rgba(255,227,204,0) 72%);
  pointer-events: none;
}
.founder-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.founder-name { font-size: 24px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.founder-role { font-size: 13.5px; font-weight: 700; color: var(--ink-faint); }
.founder-desc { font-size: 15.5px; color: var(--ink-soft); font-weight: 500; margin: 18px 0 28px; line-height: 1.75; }
.founder-link {
  width: auto;
  min-width: fit-content;
  padding: 12px 24px;
  font-size: 15px;
  white-space: nowrap;
}
.founder-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-visual img { max-width: 220px; }

/* =========================================================
   CONTACT
   ========================================================= */
.section-contact { background: var(--ink); color: #fff; }
.section-contact .section-lead { color: rgba(255,255,255,.72); }
.section-contact .eyebrow { background: rgba(255,255,255,.12); color: var(--yellow); }

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 20px; }
.form-row label, .form-legend {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.req { color: var(--red); }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.radio-group { display: flex; gap: 10px; }
.radio-pill {
  flex: 1;
  text-align: center;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.radio-pill input { display: none; }
.radio-pill:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.form-submit { width: 100%; margin-top: 8px; }
.form-status { min-height: 20px; margin: 14px 0 0; font-weight: 700; font-size: 14px; text-align: center; }
.form-status.is-success { color: #1E8E3E; }
.form-status.is-error { color: var(--red); }
.form-note { text-align: left; font-size: 12px; line-height: 1.6; color: var(--ink-faint); margin-top: 10px; }

.contact-side { display: flex; flex-direction: column; gap: 20px; }
.kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FEE500;
  color: #191600;
  font-weight: 800;
  font-size: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease);
}
.kakao-btn:hover { transform: translateY(-2px); }
.contact-info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md);
  padding: 26px;
}
.contact-info-title { font-weight: 800; margin-bottom: 14px; color: var(--yellow); }
.contact-info-list li {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}
.contact-info-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--orange);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #121110; color: rgba(255,255,255,.6); padding: 48px 20px 32px; }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.footer-biz { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-biz a { color: var(--yellow); font-weight: 700; }
.footer-sns { display: flex; justify-content: center; gap: 20px; margin-bottom: 22px; font-size: 13px; font-weight: 700; }
.footer-sns a:hover { color: #fff; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,.35); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .section-header-offset { padding-top: 90px; }
  .story { flex-direction: column; }
  .story-visual {
    /* 모바일 일부 브라우저(특히 iOS)는 flex-column 안의 position:sticky가
       스크롤 방향에 따라 비대칭으로 재계산되어 캐릭터가 잘려 보이는 버그가
       있다. fixed로 고정해 스크롤 방향과 무관하게 항상 같은 화면 위치에
       렌더링하고, 노출 여부는 JS가 opacity로만 제어한다(순수 위치 함수). */
    position: fixed;
    top: 68px; /* 모바일 헤더 실측 높이(~50~58px)보다 넉넉히 아래로 */
    left: 0;
    width: 100%;
    /* height를 고정/제한하지 않는다 — 안에 있는 캐릭터 이미지(최대 60vh)가
       어떤 값이 되든 부모가 그 높이를 그대로 감싸도록 두고, overflow도
       명시적으로 visible로 지정해 절대 잘리지 않게 한다. */
    height: auto;
    overflow: visible;
    z-index: 10;
    /* 말풍선이 캐릭터 머리 위로 튀어나오는 여백을 이 padding-top 안에
       담는다. align-items를 flex-start로 바꿔서 이 padding이 실제로
       "캐릭터 위 여백"이 되도록 고정한다(센터 정렬이면 여백이 반으로
       쪼개져 부족해진다). */
    align-items: flex-start;
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 0;
    background: linear-gradient(180deg, var(--bg) 55%, rgba(255,253,248,0));
    opacity: 0;
    pointer-events: none;
  }
  .char-stage {
    /* 캐릭터 이미지 크기를 그대로 따라가도록 고정 height를 두지 않는다. */
    height: auto;
    width: auto;
    overflow: visible;
  }
  .char-img {
    /* 데스크톱 규칙(inset:0; width:100%; height:100%)은 부모 박스를
       가득 채우는 방식이라 부모 높이가 곧 이미지 높이의 상한이 된다.
       모바일에서는 반대로 "이미지 자체"에 max-height를 걸고 부모가
       그 크기를 따라가게 해서, 어떤 부모 높이 값과도 무관하게
       이미지가 잘리지 않도록 한다. */
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 60vh;
  }
  .char-badge {
    font-size: 11px;
    padding: 6px 12px;
    /* 캐릭터 높이가 가변(최대 60vh)이라 %기반 transform으로 위치를
       잡으면 캐릭터 높이에 따라 화면 밖으로 밀려날 수 있다. 대신
       캐릭터를 감싸는 .char-stage(position:relative) 기준으로 top을
       고정된 음수 px 값으로 제한해, 항상 캐릭터 머리 바로 위 화면
       안쪽에 오도록 한다. */
    top: -40px;
    transform: translateX(-50%);
  }
  .story-panels { width: 100%; }
  .panel { min-height: auto; padding: 48px 24px 72px; align-items: flex-start; }
  .panel-cases { padding-top: 48px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .mini-char-stage { margin-bottom: 24px; }
  .mini-char-img { height: min(21vh, 168px); }
  .korea-map { width: min(220px, 64vw); margin-top: 28px; }
}

@media (max-width: 520px) {
  .site-header { padding: 12px 14px; }
  .site-header.is-scrolled { padding: 8px 14px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 12px; }
  .header-cta.header-cta { padding: 8px 14px; font-size: 12px; }
}

@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .sns-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .founder-inner { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .scope-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .char-img, .bar-chart-fill, .btn, .case-card { transition: none !important; }
  .scroll-cue-line,
  .hero-intro-char,
  .korea-map-ring-1, .korea-map-ring-2, .korea-map-ring-3,
  .char-badge.is-bouncing,
  .mini-char-stage.is-visible .char-badge,
  .sns-card-highlight.is-visible { animation: none !important; }
}
