/* =========================================================
   119센터 스토리 섹션 — Upward Reveal
   Figma: State=00~03 / Page02_State=00~03 (1440x810)
   ========================================================= */

.story {
  --paper: #EDE7DB;
  --navy: #22375E;
  --navy-2: #1B2C4E;
  --story-orange: #F26B21;

  position: relative;
  width: 100%;
  min-height: 810px;
  background: var(--paper);
  overflow: hidden;
  font-family: var(--font);
}

/* 종이 질감 */
.story::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(0,0,0,.035) 0 1px, transparent 1px),
    radial-gradient(circle at 68% 74%, rgba(0,0,0,.03) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 55%, rgba(255,255,255,.5) 0 2px, transparent 2px);
  background-size: 7px 7px, 11px 11px, 13px 13px;
}

.story__inner {
  position: relative; z-index: 2;
  width: 1440px; max-width: 100%;
  height: 810px;
  margin: 0 auto;
}

/* ---------- Reveal 애니메이션 (Upward Reveal) ---------- */
.rv {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1),
              transform .75s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.story.is-step1 .rv[data-step="1"],
.story.is-step2 .rv[data-step="1"], .story.is-step2 .rv[data-step="2"],
.story.is-step3 .rv[data-step="1"], .story.is-step3 .rv[data-step="2"], .story.is-step3 .rv[data-step="3"],
.story.is-on .rv[data-step="0"] {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .rv { transition: none; opacity: 1; transform: none; }
}

/* ---------- 공통 타이포 ---------- */
.story-kicker {
  position: absolute; left: 0; right: 0; top: 69px;
  text-align: center;
  font-size: 15px; font-weight: 700; color: var(--navy);
  letter-spacing: -.2px;
}
.story-kicker::after {
  content: ""; display: block;
  width: 132px; height: 4px; margin: 6px auto 0;
  background: var(--story-orange);
  border-radius: 2px;
  transform: rotate(-.6deg);
}

.story-title {
  position: absolute; left: 0; right: 0; top: 126px;
  text-align: center;
  font-size: 40px; font-weight: 900; line-height: 1.35;
  color: var(--navy); letter-spacing: -1.2px;
}

.story-body {
  position: absolute; left: 0; right: 0; top: 280px;
  text-align: center;
  font-size: 13.5px; line-height: 26.7px; color: #6B6257;
}

/* 손글씨 메모 */
.story-note {
  position: absolute; left: 1097px; top: 143px;
  width: 217px;
  font-family: 'Nanum Pen Script', var(--font);
  font-size: 27px; line-height: 1.45; color: var(--navy);
  text-align: center;
  transform: rotate(-4deg);
}
.story-note span { display: block; }
.story-note span:nth-child(2) { margin-left: 14px; }
.story-note::after {
  content: ""; display: block;
  width: 210px; height: 7px; margin-top: 4px;
  background: var(--story-orange);
  border-radius: 4px;
  transform: rotate(-5deg);
  clip-path: polygon(0 40%, 12% 10%, 30% 55%, 52% 5%, 74% 60%, 90% 15%, 100% 45%, 100% 100%, 0 100%);
}

/* ---------- 스텝 (지원 과정) ---------- */
.step { position: absolute; }
.step__no {
  font-size: 19px; font-weight: 700; color: var(--story-orange);
  line-height: 1;
}
.step__no::after {
  content: ""; display: block;
  width: 35px; height: 3.5px; margin-top: 8px;
  background: var(--story-orange); border-radius: 2px;
}
.step__title {
  margin-top: 10px;
  font-size: 34px; font-weight: 900; color: var(--navy);
  letter-spacing: -1px;
}
.step__cap {
  margin-top: 18px;
  font-size: 14px; line-height: 27.5px; color: #5B5449;
}
.step__cap b { color: var(--navy); font-weight: 700; }
.step__cap .ul {
  color: var(--navy); font-weight: 700; font-size: 16px;
  border-bottom: 3px solid var(--story-orange);
  padding-bottom: 1px;
}

/* 폴라로이드 (사진 자리) */
.polaroid {
  position: relative;
  background: #D9D3C8;
  box-shadow: 0 8px 22px rgba(60,45,25,.20);
  display: flex; align-items: center; justify-content: center;
  color: #7C7568; font-size: 13px;
  overflow: hidden;
}
.polaroid::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(0,0,0,.12));
}

/* 찢어진 종이 / 테이프 악센트 */
.torn-orange {
  position: absolute;
  background: var(--story-orange);
  clip-path: polygon(6% 0, 100% 4%, 96% 96%, 0 100%, 3% 52%);
}
.tape-navy {
  position: absolute;
  background: #1F3D7A;
  clip-path: polygon(0 6%, 100% 0, 96% 100%, 4% 94%);
}
.scrap-paper {
  position: absolute;
  background: #E4DCCC;
  clip-path: polygon(8% 2%, 100% 0, 94% 92%, 0 100%);
  display: flex; align-items: center; justify-content: center;
}
.scrap-paper svg { width: 60%; height: 60%; opacity: .55; }

/* 화살표 */
.arrow-hand { position: absolute; color: var(--navy); }
.arrow-hand svg { width: 100%; height: 100%; }

/* ---------- 페이지2: 찢어진 오렌지 배너 ---------- */
.torn-band {
  position: absolute; left: -20px; right: -20px; top: 42px;
  height: 172px;
  background: var(--story-orange);
  clip-path: polygon(
    0 22%, 6% 10%, 13% 26%, 21% 8%, 29% 24%, 38% 6%, 47% 22%,
    56% 4%, 65% 20%, 74% 6%, 83% 22%, 92% 8%, 100% 20%,
    100% 78%, 92% 92%, 83% 74%, 74% 90%, 65% 72%, 56% 90%,
    47% 74%, 38% 92%, 29% 74%, 21% 90%, 13% 72%, 6% 88%, 0 74%
  );
}
.torn-band-navy {
  position: absolute; left: -30px; top: 62px;
  width: 150px; height: 60px;
  background: #1F3D7A;
  clip-path: polygon(0 10%, 100% 0, 88% 100%, 0 86%);
}

.story-hand-kicker {
  position: absolute; left: 0; right: 0; top: 38px;
  text-align: center;
  font-family: 'Nanum Pen Script', var(--font);
  font-size: 22px; color: var(--navy);
  transform: rotate(-1.2deg);
}

.serif-title {
  position: absolute; left: 0; right: 0; top: 102px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 400; line-height: 1.6;
  color: #FAF6EC;
}

.bold-title {
  position: absolute; left: 0; right: 0; top: 265px;
  text-align: center;
  font-size: 33px; font-weight: 900; line-height: 1.45;
  color: var(--navy); letter-spacing: -1px;
}

.intro-body {
  position: absolute; left: 0; right: 0; top: 378px;
  text-align: center;
  font-size: 14px; line-height: 29px; color: #6B6257;
}

.collage { position: absolute; }
.collage__cap {
  position: absolute; top: 251px;
  font-size: 13px; line-height: 25px; color: #5B5449;
  text-align: center; width: 100%;
}
.collage__cap .ul {
  color: var(--navy); font-weight: 700;
  border-bottom: 4px solid var(--story-orange);
}

/* 점 장식 */
.dots {
  position: absolute;
  display: grid; grid-template-columns: repeat(5, 6px); gap: 5px;
}
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #1F3D7A; display: block; }

/* ---------- 통계 섹션 (돌아온 선교사의 현실) ---------- */
.tape-label {
  position: absolute; left: 0; right: 0; top: 54px;
  display: flex; justify-content: center;
}
.tape-label span {
  position: relative;
  background: #F4EFE4;
  padding: 7px 26px;
  font-family: 'Nanum Pen Script', var(--font);
  font-size: 22px; color: var(--navy);
  box-shadow: 0 2px 8px rgba(60,45,25,.12);
  transform: rotate(-.8deg);
}
.tape-label span::before,
.tape-label span::after {
  content: ""; position: absolute; top: -7px;
  width: 26px; height: 15px; background: #C9BCA5; opacity: .85;
}
.tape-label span::before { left: -10px; transform: rotate(-16deg); }
.tape-label span::after { right: -10px; transform: rotate(14deg); }

.stat-title {
  position: absolute; left: 0; right: 0; top: 126px;
  text-align: center;
  font-size: 48px; font-weight: 900; line-height: 62px;
  color: var(--navy); letter-spacing: -1.2px;
}
.stat-title::first-line {
  color: var(--story-orange);
  font-size: 52px;
}
.stat-title .mark { padding-bottom: 2px; }
.stat-title::after {
  content: ""; display: block;
  width: 268px; height: 8px; margin: -4px 0 0 713px;
  background: var(--story-orange); border-radius: 4px;
  transform: rotate(-.5deg);
}

.stat-cards {
  position: absolute; left: 0; right: 0; top: 298px;
  display: flex; align-items: flex-start; justify-content: center;
  gap: 8px;
}
.stat-card {
  position: relative;
  background: #FAF6EC;
  box-shadow: 0 10px 26px rgba(60,45,25,.16);
  text-align: center;
}
.stat-card::before {
  content: ""; position: absolute; left: 50%; top: -18px;
  width: 92px; height: 28px; margin-left: -46px;
  background: #C9BCA5; opacity: .9;
  transform: rotate(-1.4deg);
}
.stat-card--side {
  width: 295px; padding: 50px 30px 40px;
  margin-top: 76px;
}
.stat-card--side.left  { transform: rotate(-1.2deg); }
.stat-card--side.right { transform: rotate(1.1deg); }
.stat-card--main {
  width: 450px; padding: 59px 34px 56px;
  transform: rotate(.4deg);
}
.stat-card--main::before {
  width: 133px; height: 36px; margin-left: -66px; top: -20px;
}
.stat-card__num {
  font-size: 56px; font-weight: 900; color: var(--navy); line-height: 1;
}
.stat-card--main .stat-card__num { font-size: 90px; }
.stat-card__cap {
  margin-top: 8px;
  font-size: 14px; line-height: 1.55; color: var(--navy);
}
.stat-card__cap::before {
  content: ""; display: block;
  width: 164px; height: 8px; margin: 0 auto 10px;
  background: var(--story-orange); border-radius: 4px;
}
.stat-card--main .stat-card__cap { margin-top: 25px; font-size: 20px; font-weight: 700; color: var(--navy); }
.stat-card--main .stat-card__cap::before {
  width: 298px; margin-bottom: 12px;
}

.stat-source {
  position: absolute; left: 0; right: 0; top: 614px;
  text-align: center;
  font-size: 11px; color: #8B8272;
}

.sticky-note {
  position: absolute;
  padding: 16px 22px;
  background: #F7F2E6;
  box-shadow: 0 6px 18px rgba(60,45,25,.14);
  font-family: 'Nanum Pen Script', var(--font);
  font-size: 18px; line-height: 1.5; color: var(--navy);
  text-align: center;
}
.sticky-note.left  { left: 65px;   top: 569px; width: 249px; transform: rotate(-3deg); }
.sticky-note.right { left: 1234px; top: 548px; width: 189px; transform: rotate(3.5deg); }

.stat-closing {
  position: absolute; left: 0; right: 0; top: 683px;
  text-align: center;
  font-family: 'Nanum Pen Script', var(--font);
  font-size: 25px; line-height: 1.52; color: var(--navy);
}

/* ---------- 반응형 ---------- */
@media (max-width: 1440px) {
  .story__inner { transform-origin: top center; }
}
@media (max-width: 900px) {
  .story, .story__inner { height: auto; min-height: 0; }
  .story__inner { width: 100%; padding: 60px 20px 70px; }
  .story-kicker, .story-title, .story-body, .story-note,
  .step, .collage, .serif-title, .bold-title, .intro-body,
  .story-hand-kicker, .torn-band, .torn-band-navy, .dots {
    position: static; left: auto; top: auto; right: auto;
    width: auto !important; transform: none;
  }
  .story-note, .torn-band, .torn-band-navy, .dots { display: none; }
  .story-title { font-size: 28px; margin: 14px 0; }
  .serif-title { font-size: 22px; margin: 14px 0; }
  .bold-title { font-size: 24px; margin: 18px 0; }
  .step, .collage { margin-top: 46px; }
  .polaroid { width: 100% !important; height: 210px !important; }
  .collage__cap { position: static; margin-top: 16px; text-align: left; }
  .arrow-hand, .torn-orange, .tape-navy, .scrap-paper { display: none; }

  /* 인라인 좌표(style="position:absolute; left:…")로 배치된 콜라주 래퍼 해제 */
  .story__inner [style*="absolute"] {
    position: static !important;
    left: auto !important; top: auto !important; right: auto !important;
    width: auto !important; height: auto !important;
    transform: none !important;
    margin-top: 26px;
  }
  .story__inner .polaroid[style] {
    position: relative !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: 200px !important;
    transform: none !important;
    margin-top: 14px;
  }
  .story__inner .arrow-hand[style],
  .story__inner .torn-orange[style],
  .story__inner .tape-navy[style],
  .story__inner .scrap-paper[style],
  .story__inner .dots[style] { display: none !important; }

  .tape-label, .stat-title, .stat-cards, .stat-source, .stat-closing, .sticky-note {
    position: static; left: auto; right: auto; top: auto; bottom: auto;
  }
  .stat-title { font-size: 26px; line-height: 1.45; margin: 18px 0; }
  .stat-title::first-line { font-size: 28px; }
  .stat-title::after { margin: 8px auto 0; }
  .stat-cards { flex-direction: column; align-items: stretch; gap: 30px; margin-top: 34px; }
  .stat-card { transform: none !important; width: auto !important; margin-top: 0 !important; }
  .stat-card--main { padding: 40px 22px 30px; }
  .stat-source { margin-top: 26px; }
  .sticky-note { width: auto; transform: none !important; margin-top: 22px; }
  .stat-closing { margin-top: 30px; font-size: 21px; }
}
