/* ----------------------------------------
   1. Base & Reset & Fonts
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

/* Lenis Scroll */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #1e1e1e;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
ul {
  list-style: none;
}
address {
  font-style: normal;
}

/* Fonts Load */
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2")
    format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2")
    format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  font-weight: 900;
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2")
    format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Caudex";
  src: url("https://fonts.gstatic.com/s/caudex/v24/esDT31JQOpN6Wg9luOof.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Caudex";
  src: url("https://fonts.gstatic.com/s/caudex/v24/esDf31JQOpN6Wg9BqOcQ2A.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Craftwork Grotesk";
  src: url("../fonts/CraftworkGrotesk-Medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Craftwork Grotesk";
  src: url("../fonts/CraftworkGrotesk-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Craftwork Grotesk";
  src: url("../fonts/CraftworkGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Craftwork Grotesk";
  src: url("../fonts/CraftworkGrotesk-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Utility: Mobile Break */
.mobile-break {
  display: none;
}

/* ----------------------------------------
   2. Common Layout: Hero & Pages
---------------------------------------- */
.detail-page,
.about-page,
.services-page,
.history-page {
  width: 100%;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden; /* 스크롤바 방지 */
}

.detail-hero {
  position: relative;
  width: 100%;
  padding: clamp(100px, 10.4vw, 150px) clamp(20px, 4.86vw, 70px) 0;
}

.detail-hero-title {
  font-family: "Craftwork Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: clamp(42px, 5.56vw, 80px);
  letter-spacing: 1.08px;
  z-index: 2;
  color: #1e1e1e;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.detail-books {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: calc(100vw - 140px);
  margin: 0 auto;
  height: max(120px, 21.3vw);  /* 409px @ 1920 */
  gap: max(3px, 0.52vw);       /* 10px @ 1920 */
}

.detail-hero-divider {
  width: 100%;
  max-width: calc(100vw - 70px);
  height: 1px;
  margin: 0 auto;
  background-color: #3e3e3e;
}

/* ----------------------------------------
   3. Common Component: Books
---------------------------------------- */
.book-item {
  position: relative;
  flex-shrink: 1;
}

.book-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Noise Texture (All Books) */
.book-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  z-index: 3;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Color Overlay Base (All Books) */
.book-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  z-index: 1;
}

/* Book Text Wrapper Base */
.book-text-wrapper {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  left: 50%;
  top: clamp(5px, 1.3vw, 22px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s ease-out;
  z-index: 1;
}

.book-title-kr {
  font-size: clamp(8px, 1.8vw, 30px);
  line-height: 1.3;
}
.book-title-en {
  font-weight: 400;
  font-size: clamp(5px, 1vw, 16px);
  margin: 0;
}

/* Book Dimensions (Common) */
.book-item-1 {
  width: max(49px, 11.67vw);  /* 224px @ 1920 */
  height: max(90px, 21.3vw);  /* 409px @ 1920 */
}
.book-item-2 {
  width: max(35px, 8.18vw);   /* 157px @ 1920 */
  height: max(71px, 16.82vw); /* 323px @ 1920 */
  transform: rotate(-5deg);
  margin: 0 max(10px, 2.04vw) max(2px, 0.36vw) max(4px, 0.89vw);
}
.book-item-3 {
  width: max(23px, 5.36vw);   /* 103px @ 1920 */
  height: max(71px, 16.77vw); /* 322px @ 1920 */
  margin-left: min(-7px, -1.56vw);
}
.book-item-4 {
  width: max(31px, 7.29vw);   /* 140px @ 1920 */
  height: max(90px, 21.3vw);  /* 409px @ 1920 */
}
.book-item-5 {
  width: max(31px, 7.29vw);   /* 140px @ 1920 */
  height: max(83px, 19.58vw); /* 376px @ 1920 */
}
.book-item-6 {
  width: max(8px, 1.77vw);    /* 34px @ 1920 */
  height: max(83px, 19.58vw); /* 376px @ 1920 */
}
.book-item-7 {
  width: max(23px, 5.36vw);   /* 103px @ 1920 */
  height: max(71px, 16.77vw); /* 322px @ 1920 */
}
.book-item-8 {
  width: max(35px, 8.18vw);   /* 157px @ 1920 */
  height: max(71px, 16.82vw); /* 323px @ 1920 */
  transform: rotate(5deg);
  margin: 0 max(4px, 1.04vw) max(2px, 0.36vw) max(3px, 0.78vw);
}
.book-item-9 {
  width: max(49px, 11.67vw);  /* 224px @ 1920 */
  height: max(90px, 21.3vw);  /* 409px @ 1920 */
}
.book-item-10 {
  width: max(23px, 5.42vw);   /* 104px @ 1920 */
  height: max(90px, 21.3vw);  /* 409px @ 1920 */
}
.book-item-11 {
  width: max(23px, 5.36vw);   /* 103px @ 1920 */
  height: max(71px, 16.77vw); /* 322px @ 1920 */
}
.book-item-12 {
  width: max(18px, 4.27vw);   /* 82px @ 1920 */
  height: max(60px, 14.11vw); /* 271px @ 1920 */
}

/* Text Positions (Common) */
.book-text-wrapper-1 {
  top: 22px;
  transform: translateX(-34%);
}
.book-text-wrapper-2 {
  top: clamp(5px, 1.3vw, 22px);
  transform: translateX(-3%) rotate(-1deg);
}
.book-text-wrapper-3 {
  top: clamp(5px, 1.2vw, 20px);
  transform: translateX(-35%);
}
.book-text-wrapper-4 {
  top: clamp(5px, 1.3vw, 22px);
  transform: translateX(-16%);
}
.book-text-wrapper-9 {
  top: 22px;
  transform: translateX(25%);
}
.book-text-wrapper-10 {
  top: clamp(5px, 1.3vw, 22px);
  transform: translateX(-38%);
}
.book-text-wrapper-11 {
  top: clamp(5px, 1.3vw, 22px);
  transform: translateX(-50%);
}
.book-text-wrapper-12 {
  top: 22px;
  transform: translateX(-50%);
}

/* --- Page Specific Book Colors & Overrides --- */

/* 1. About Page Colors (2, 4, 11) */
.about-page .book-item-2 .book-image::after {
  background: linear-gradient(
      168deg,
      rgba(191, 255, 205, 0.7) 21.1%,
      rgba(109, 109, 109, 0) 275.44%
    ),
    #fff;
}
.about-page .book-item-4 .book-image::after {
  background: linear-gradient(
      176deg,
      rgba(255, 237, 191, 0.7) 18.4%,
      rgba(154, 154, 154, 0) 252.32%
    ),
    #fff;
}
.about-page .book-item-11 .book-image::after {
  background: linear-gradient(
      178deg,
      rgba(83, 177, 255, 0.7) 15.53%,
      rgba(122, 122, 122, 0) 214.51%
    ),
    #fff;
}

.about-page .book-item-2 .book-title-kr {
  color: #538a60;
}
.about-page .book-item-2 .book-title-en {
  color: #82ce93;
}
.about-page .book-item-4 .book-title-kr {
  color: #d29c3b;
}
.about-page .book-item-4 .book-title-en {
  color: #ddc394;
}
.about-page .book-item-11 .book-title-kr {
  color: #3279b1;
}
.about-page .book-item-11 .book-title-en {
  color: #72a0c5;
}

/* 2. Services Page Colors (1, 9, 12) */
.services-page .book-item-1 .book-image::after {
  background: linear-gradient(
      169deg,
      rgba(153, 249, 230, 0.7) 21.56%,
      rgba(109, 109, 109, 0) 238.03%
    ),
    #fff;
}
.services-page .book-item-9 .book-image::after {
  background: linear-gradient(
      192deg,
      rgba(209, 191, 255, 0.7) 32.21%,
      rgba(154, 154, 154, 0) 166.48%
    ),
    #fff;
}
.services-page .book-item-12 .book-image::after {
  background: linear-gradient(178deg, rgba(255, 249, 83, 0.70) 15.53%, rgba(122, 122, 122, 0.00) 214.51%), #FFF;
}

.services-page .book-item-1 .book-title-kr {
  color: #76a195;
}
.services-page .book-item-1 .book-title-en {
  color: #87c5b9;
}
.services-page .book-item-9 .book-title-kr {
  color: #9577e2;
}
.services-page .book-item-9 .book-title-en {
  color: #baa6ec;
}
.services-page .book-item-12 .book-title-kr {
  color: #a29e2e;
}
.services-page .book-item-12 .book-title-en {
  color: #d3ce4f;
}

/* 3. History Page Colors (3, 4, 10) & Override */
.history-page .book-item-10 {
  width: 140px;
}
.history-page .book-text-wrapper-4 {
  top: 22px;
  transform: translateX(-38%);
}

.history-page .book-item-3 .book-image::after {
  background: linear-gradient(
      178deg,
      rgba(83, 177, 255, 0.7) 15.53%,
      rgba(122, 122, 122, 0) 214.51%
    ),
    #fff;
}
.history-page .book-item-4 .book-image::after {
  background: linear-gradient(
      176deg,
      rgba(255, 237, 191, 0.7) 18.4%,
      rgba(154, 154, 154, 0) 252.32%
    ),
    #fff;
}
.history-page .book-item-10 .book-image::after {
  background: linear-gradient(
      192deg,
      rgba(209, 191, 255, 0.7) 32.21%,
      rgba(154, 154, 154, 0) 166.48%
    ),
    #fff;
}

.history-page .book-item-3 .book-title-kr {
  color: #3279b1;
}
.history-page .book-item-3 .book-title-en {
  color: #72a0c5;
}
.history-page .book-item-4 .book-title-kr {
  color: #d29c3b;
}
.history-page .book-item-4 .book-title-en {
  color: #ddc394;
}
.history-page .book-item-10 .book-title-kr {
  color: #9577e2;
}
.history-page .book-item-10 .book-title-en {
  color: #baa6ec;
}

/* --- Activation Logic (Fade In) --- */
/* Common Active State */
.book-colored .book-image::after,
.book-colored .book-text-wrapper {
  opacity: 1;
}

/* Sequential Delays (Page Specific) */
/* About: 2 -> 4 -> 11 */
.about-page .book-colored .book-item-2 .book-image::after,
.about-page .book-colored .book-item-2 .book-text-wrapper {
  transition-delay: 0s;
}
.about-page .book-colored .book-item-4 .book-image::after,
.about-page .book-colored .book-item-4 .book-text-wrapper {
  transition-delay: 0.3s;
}
.about-page .book-colored .book-item-11 .book-image::after,
.about-page .book-colored .book-item-11 .book-text-wrapper {
  transition-delay: 0.6s;
}

/* Services: 1 -> 9 -> 12 */
.services-page .book-colored .book-item-1 .book-image::after,
.services-page .book-colored .book-item-1 .book-text-wrapper {
  transition-delay: 0s;
}
.services-page .book-colored .book-item-9 .book-image::after,
.services-page .book-colored .book-item-9 .book-text-wrapper {
  transition-delay: 0.3s;
}
.services-page .book-colored .book-item-12 .book-image::after,
.services-page .book-colored .book-item-12 .book-text-wrapper {
  transition-delay: 0.6s;
}

/* History: 3 -> 4 -> 10 */
.history-page .book-colored .book-item-3 .book-image::after,
.history-page .book-colored .book-item-3 .book-text-wrapper {
  transition-delay: 0s;
}
.history-page .book-colored .book-item-4 .book-image::after,
.history-page .book-colored .book-item-4 .book-text-wrapper {
  transition-delay: 0.3s;
}
.history-page .book-colored .book-item-10 .book-image::after,
.history-page .book-colored .book-item-10 .book-text-wrapper {
  transition-delay: 0.6s;
}

/* ----------------------------------------
   4. Page Section: About (Detail)
---------------------------------------- */
.hcg-way-section,
.history-intro-section {
  position: relative;
  padding: clamp(80px, 11.1vw, 160px) 240px; /* 양쪽 240px 여백 */
}
.hcg-way-content {
  max-width: calc(100vw - 140px);
  margin: 0 auto;
  position: relative;
}

/* Detail Intro Icon (About & History 공통) */
.detail-intro-icon {
  position: absolute;
  left: -90px;
  top: 0px;
  width: 45px;
  height: 45px;
  margin-bottom: 65px;
}
.detail-intro-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.detail-icon-static {
  z-index: 1;
  filter: brightness(0);
}
.detail-icon-rotate {
  z-index: 2;
  filter: brightness(0);
  animation: rotate360 10s linear infinite;
}

@keyframes rotate360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Common: Section Header, Label & Title */
.section-header {
  margin-bottom: clamp(30px, 4.17vw, 60px);
}
.section-label {
  font-family: "Craftwork Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: normal;
  letter-spacing: 0.48px;
  color: #3e3e3e;
  margin: 0 0 clamp(12px, 1.39vw, 20px);
}
.section-title {
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: clamp(42px, 5.56vw, 80px);
  letter-spacing: -1.08px;
  color: #1e1e1e;
  margin: 0;
}

.hcg-way-description {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 4.86vw, 70px);
  margin: clamp(30px, 4.17vw, 60px) clamp(0px, 3.47vw, 50px);
}
.hcg-way-col {
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: clamp(26px, 2.22vw, 32px);
  letter-spacing: -0.4px;
  color: #2e2e2e;
}
.hcg-way-col strong {
  font-weight: 600;
}
.hcg-way-highlight {
  margin-top: clamp(15px, 1.74vw, 25px);
  font-weight: 700;
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: clamp(28px, 2.5vw, 36px);
  letter-spacing: -0.48px;
  color: #2e2e2e;
}
.hcg-way-highlight p {
  margin: 0;
}
/* Mission */
.mission-section {
  position: relative;
  width: 100%;
  max-width: calc(100vw - clamp(40px, 9.72vw, 140px));
  margin: 0 auto;
  height: clamp(200px, 22.2vw, 320px);
  border-radius: 8px;
  overflow: hidden;
  background-color: #010201;
}
.mission-background {
  position: absolute;
  inset: 0;
  background: url("../images/detail/mission_bg.jpg") no-repeat center center;
  background-size: cover;
}
.mission-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: clamp(20px, 2.78vw, 40px);
  text-align: center;
}
.mission-label {
  font-family: "Craftwork Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #cecece;
  margin: 0 0 clamp(12px, 1.39vw, 20px);
}
.mission-text {
  font-weight: 600;
  font-size: clamp(20px, 2.22vw, 32px);
  line-height: clamp(35px, 3.47vw, 50px);
  letter-spacing: -0.64px;
  color: #ffffff;
}
.mission-text p {
  margin: 0;
}

/* Vision */
.vision-section {
  position: relative;
  width: 100%;
  margin: 40px auto 0;
  overflow: visible;
  /* 파스텔 톤 멀티 컬러 그라데이션 배경 - 하단 영역 */
  background: 
    /* 왼쪽 - 연한 하늘색 */
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(200, 225, 245, 0.6) 0%, transparent 60%),
    /* 중앙 - 연한 라벤더/보라색 */
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(220, 210, 245, 0.5) 0%, transparent 55%),
    /* 오른쪽 - 연한 민트/초록색 */
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(200, 240, 220, 0.5) 0%, transparent 55%),
    /* 기본 배경 - 흰색 */
    #ffffff;
    background-size: 100% 1300px;
    background-position: center bottom -150px;
  background-repeat: no-repeat;
}
/* Vision Section Outer - canvas는 scale 영향 받지 않음 */
.vision-section-outer {
  position: relative;
  width: 100%;
  margin-top: 190px;
  overflow: visible;
}
.vision-section-outer > #visionWaveCanvas {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  max-height: 800px;
  z-index: 0;
  pointer-events: none;
}
.vision-section-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 350px;
  min-height: 800px;
  transform-origin: center top;
}
.vision-box {
  padding: clamp(80px, 11.1vw, 160px) 240px;
  display: flex;
  flex-wrap: nowrap;
  margin: 0 auto;
  justify-content: space-between;
  gap: 117px;
}
.vision-header {
  width: 541px;
  min-width: 300px; /* 타이틀 최소 너비 유지 */
  flex-shrink: 0; /* 타이틀은 줄어들지 않음 */
}
.vision-content {
  flex: 1; 
  min-width: 0; 
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: clamp(26px, 2.22vw, 32px);
  letter-spacing: -0.4px;
  color: #3e3e3e;
}
.vision-content p {
  margin: 0 0 8px;
}
.vision-content strong {
  font-weight: 500;
}

.vision-main-svg {
  position: absolute;
  left: 0;
  width: 100%;
  max-height: 460px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.vision-main-svg path {
  stroke: #2e2e2e;
}

/* Vision Dot - 카드 내부에서 기준점 역할 */
.vision-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  background-color: #2e2e2e;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  /* 카드의 기준점 (JS에서 이 위치를 path에 맞춤) */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Vision Cards - JS에서 SVG path 기준으로 배치 */
.vision-card {
  position: absolute;
  text-align: center;
  z-index: 3;
}
.vision-card-text-wrapper,
.vision-card-image {
  position: absolute;
}
.vision-card-image img {
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  width: auto;
  height: auto;
  max-width: 400px;
  animation: visionFloat 4s ease-in-out infinite;
}
.vision-card-1 .vision-card-image img {
  animation-delay: 0s;
}
.vision-card-2 .vision-card-image img {
  animation-delay: -1.3s;
}
.vision-card-3 .vision-card-image img {
  animation-delay: -2.6s;
}
@keyframes visionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.vision-card-1 .vision-card-image img {
  max-width: 458px;
}
.vision-card-2 .vision-card-image img {
  max-width: 450px;
}
.vision-card-3 .vision-card-image img {
  max-width: 303px;
}

/* Vision Card Positions - dot 기준 상대 위치 */
.vision-card-1 .vision-card-image {
  bottom: -138px;
  left: -245px;
}
.vision-card-1 .vision-card-text-wrapper {
  top: 50px;
  left: -127px;
  white-space: nowrap;
}
.vision-card-2 .vision-card-image {
  top: -498px;
  left: -420px;
}
.vision-card-2 .vision-card-text-wrapper {
  top: -190px;
  left: -170px;
  white-space: nowrap;
}
.vision-card-3 .vision-card-image {
  bottom: -330px;
  left: -148px;
}
.vision-card-3 .vision-card-text-wrapper {
  bottom: 50px;
  left: -154px;
  white-space: nowrap;
}

.vision-card-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: clamp(10px, 1.11vw, 16px);
  color: #1e1e1e;
}
.vision-card-text {
  font-size: 20px;
  line-height: 1.8;
  color: #3e3e3e;
}
.vision-card-text strong {
  color: #333;
  font-weight: 600;
}

/* What We Do */
.what-we-do-section {
  position: relative;
  width: 100%;
  padding: 0 clamp(20px, 4.86vw, 70px) clamp(50px, 13.9vw, 200px);
  text-align: center;
  overflow: hidden;
}
.what-we-do-header {
  max-width: 782px;
  margin: 0 auto;
} /* section-header와 함께 사용 */

/* Knowledge Cards */
.knowledge-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: min(1440px, calc(100vw - clamp(40px, 9.72vw, 140px)));
  margin: clamp(30px, 4.17vw, 60px) auto 0;
  padding: 0 clamp(20px, 2.78vw, 40px);
}
.knowledge-card {
  position: relative;
  width: 100%;
  border-radius: clamp(16px, 2.08vw, 30px);
  overflow: hidden;
  padding: clamp(40px, 6.25vw, 90px) clamp(30px, 6.94vw, 100px);
  display: flex;
  justify-content: space-between;
  background-color: #151515;
  text-align: left;
  gap: clamp(30px, 4.17vw, 60px);
}

.knowledge-content {
  padding: clamp(20px, 3.47vw, 50px) 0 0 clamp(0px, 4.17vw, 60px);
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}
.knowledge-title {
  font-weight: 700;
  font-size: clamp(28px, 3.06vw, 44px);
  line-height: clamp(36px, 3.47vw, 50px);
  letter-spacing: -0.88px;
  color: #ffffff;
  margin: 0 0 clamp(16px, 2.08vw, 30px);
}
.knowledge-description {
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: clamp(26px, 2.22vw, 32px);
  letter-spacing: -0.4px;
  color: rgba(255, 255, 255, 0.8);
}

.knowledge-specialization::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 120% -20%,
      rgba(44, 139, 255, 0.9) 0%,
      rgba(44, 139, 255, 0) 60%
    ),
    radial-gradient(
      circle at 10% 190%,
      rgba(44, 251, 255, 0.9) 0%,
      rgba(44, 251, 255, 0) 60%
    );
}
.knowledge-popularization::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 120% -20%,
      #fcff53 0%,
      rgba(48, 49, 15, 0) 60%
    ),
    radial-gradient(circle at 10% 190%, #d1bfff 0%, rgba(45, 39, 61, 0) 60%);
}
.knowledge-popularization {
  padding: 40px;
}

.knowledge-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.39vw, 20px);
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.39vw, 20px);
  justify-content: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.83vw, 12px);
  font-variant-numeric: tabular-nums;
  min-width: clamp(100px, 9.72vw, 140px);
  padding: clamp(16px, 1.74vw, 25px) clamp(20px, 2.43vw, 35px);
  position: relative;
  border-radius: clamp(10px, 1.11vw, 16px);
  border: none;
}
.stat-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.stat-label {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.stat-number {
  font-weight: 700;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: clamp(34px, 2.92vw, 42px);
  letter-spacing: -0.72px;
  color: #ffffff;
}

.knowledge-stats p {
  text-align: right;
  color: #CECECE;
}

.knowledge-visual {
  position: relative;
  z-index: 2;
  width: clamp(280px, 39.9vw, 575px);
  height: clamp(200px, 26.4vw, 380px);
  border-radius: clamp(12px, 1.39vw, 20px);
  overflow: hidden;
  background-color: #333;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.knowledge-visual img {
  width: 100%;
  height: 107%;
  object-fit: cover;
}

/* ----------------------------------------
   5. Page Section: Services
---------------------------------------- */
.services-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 70px;
  overflow: visible;
}
.services-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-43%);
  width: 90%;
  height: calc(100% - 100px);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.services-line-path {
  stroke: #cecece;
  stroke-width: 1;
  fill: none;
}

.service-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.service-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 120px;
  max-width: calc(100vw - 140px);
  margin: 0 auto;
}
.service-content-right {
  justify-content: flex-start;
}
.service-content-left {
  justify-content: flex-end;
}
.service-text-content {
  max-width: 837px;
  flex: 1;
  min-width: 300px;
}
.service-text-content.text-align-right {
  text-align: right;
}

.service-title {
  font-weight: 700;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: clamp(42px, 5.56vw, 80px);
  letter-spacing: -1.08px;
  color: #1e1e1e;
  margin: 0 0 25px;
}
.service-divider {
  height: 1px;
  background-color: #cecece;
  margin-bottom: 25px;
}
.service-divider-wide {
  width: 1012px;
}
.text-align-right .service-divider {
  margin-left: auto;
}

.service-description {
  font-weight: 400;
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: clamp(28px, 2.22vw, 32px);
  color: #3e3e3e;
  margin-bottom: clamp(30px, 4.17vw, 60px);
}

/* Logos */
.service-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}
.service-logos.justify-end {
  justify-content: flex-end;
}
.logo-item {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.service-main-image {
  border-radius: 30px;
  overflow: hidden;
}
.service-main-image .image-placeholder,
.edu-image .image-placeholder {
  width: 100%;
  height: 100%;
}

/* Service Specifics */
.service-publishing {
  padding-top: 140px;
}
.service-publishing .service-main-image {
  width: 756px;
  height: 750px;
  flex-shrink: 0;
}
.service-publishing .service-text-content {
  padding-top: 250px;
}
/* 플로팅 이미지 공통 스타일 */
.service-float-image {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}
.service-float-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 플로팅 이미지 1 - 출판사업 (따옴표) */
.service-float-1 {
  left: 50%;
  top: 26px;
  width: clamp(200px, 21vw, 362px);
  animation: serviceFloat1 5s ease-in-out infinite;
}
@keyframes serviceFloat1 {
  0%, 100% { transform: translate(-10%, 10px); }
  50% { transform: translate(-10%, -5px); }
}

.service-psychological .service-content-wrapper {
  align-items: center;
  position: relative;
}
.service-psychological .service-text-content {
  max-width: 865px;
}
.service-psychological .service-main-image {
  width: 678px;
  height: 868px;
  flex-shrink: 0;
}
/* 플로팅 이미지 2 - 심리검사사업 */
.service-float-2 {
  left: 0%;
  top: auto;
  bottom: -100px;
  width: clamp(280px, 36.4vw, 524px);
  animation: serviceFloat2 6s ease-in-out infinite;
}
@keyframes serviceFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.service-education {
  max-width: 1284px;
  margin: 0 auto;
}
.service-education .service-text-content {
  max-width: 1012px;
}
.service-education-images {
  display: flex;
  gap: 30px;
  margin-bottom: 90px;
}
.edu-image {
  border-radius: 30px;
  overflow: hidden;
  background-color: #d8d8d8;
}

.service-platform {
  padding-bottom: 200px;
  max-width: 1503px;
  margin: 0 auto;
}
.service-platform .service-content-wrapper {
  align-items: center;
}
.service-platform .service-main-image {
  width: 678px;
  height: 868px;
  flex-shrink: 0;
}
.service-platform .service-text-content {
  max-width: 705px;
  padding-top: 50px;
}
/* 플로팅 이미지 3 - 플랫폼사업 (별) */
.service-float-3 {
  right: -122px;
  bottom: 23%;
  width: 468px;
  animation: serviceFloat3 7s ease-in-out infinite;
}
@keyframes serviceFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ----------------------------------------
   6. Page Section: History
---------------------------------------- */
.history-float-svg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: historyFloat 4s ease-in-out infinite;
  width: clamp(200px, 27.9vw, 535px); /* 1920px 기준 535px */
  height: auto;
}

/* 모바일에서 history-float-svg 숨김 */
@media (max-width: 768px) {
  .history-float-svg {
    display: none;
  }
}
.history-float-top-right {
  top: max(300px, 31.25vw); /* 1920px에서 600px, 화면 커지면 같이 내려감 */
  right: 0px;
}
.history-float-bottom-left {
  position: fixed; /* 화면에 고정 */
  bottom: -127px;
  left: -5.57vw; /* 모든 화면에서 비례 (1920px 기준 -107px) */
  animation-delay: -2s;
  opacity: 0; /* 기본: 숨김 */
  transition: opacity 0.5s ease;
}
.history-float-bottom-left.visible {
  opacity: 1; /* 스크롤 시 나타남 */
}
@keyframes historyFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.history-intro-content {
  position: relative;
  margin: 0 auto;
  max-width: calc(100vw - 140px);
}

.history-timeline-section {
  position: relative;
  width: 100%;
  padding: 0 240px 200px;
}
.history-timeline-container {
  display: flex;
  gap: 120px;
  max-width: none;
  margin: 0;
}

.history-era-column {
  flex: 0 0 min(864px, 45vw, calc(100vh - 200px));
  align-self: flex-start;
  position: relative;
  z-index: 5; /* SVG 이미지보다 위에 */
}
.history-era-cards-wrapper {
  position: relative;
  width: min(864px, 45vw, calc(100vh - 200px));
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
}
.history-era-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%); /* 기본: 아래로 숨김 */
  opacity: 0; /* 기본: 투명 */
}
/* 첫 번째 카드만 보이게 (JS 로드 전 초기 상태) */
.history-era-card:first-of-type {
  transform: translateY(0);
  z-index: 10;
  opacity: 1;
}
/* active 클래스가 있는 카드 보이기 */
.history-era-card.active {
  opacity: 1;
}

.history-era-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #e8e8e8;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.history-era-image img {
  width: 105%;
  height: 105%;
  object-fit: cover;
}
.history-era-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
}

.history-shared-content {
  position: absolute;
  bottom: 180px;
  left: 90px;
  right: 90px;
  z-index: 10;
}
.history-shared-timeline {
  position: absolute;
  bottom: 100px;
  left: 90px;
  right: 90px;
  z-index: 10;
}

.timeline-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
}
.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background-color: #ffffff;
  transition: left 0.5s ease-out, width 0.5s ease-out;
}
.timeline-labels {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}
.timeline-label {
  font-family: "Craftwork Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.39vw, 20px);
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease, font-weight 0.3s ease;
}
.timeline-label.active {
  color: #ffffff;
  font-weight: 600;
}

.history-era-title {
  font-weight: 700;
  font-size: clamp(24px, 3.06vw, 44px);
  line-height: clamp(32px, 3.47vw, 58px);
  letter-spacing: -0.8px;
  color: #ffffff;
  margin: 0 0 clamp(15px, 2.08vw, 30px);
}
.history-era-description {
  font-weight: 400;
  font-size: clamp(14px, 1.39vw, 20px);
  line-height: clamp(22px, 2.22vw, 32px);
  letter-spacing: -0.4px;
  color: #cecece;
}

.history-list-column {
  flex: 1;
  min-width: 0;
  padding-bottom: 150px;
  overflow: visible;
}
.history-year {
  font-weight: 700;
  font-size: clamp(28px, 3.33vw, 48px);
  line-height: clamp(40px, 4.44vw, 64px);
  color: #1e1e1e;
  margin: 0 0 clamp(24px, 2.78vw, 40px);
}
.history-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-item-tags {
  display: flex;
  gap: 8px;
}

/* History Tags - Optimizations */
.history-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 400;
  font-size: clamp(12px, 1.11vw, 16px);
  line-height: clamp(14px, 1.32vw, 19px);
  position: relative;
}
.history-tag-month {
  background-color: #fff;
  color: #2e2e2e;
  border: 1px solid #2e2e2e;
}

.history-tag-platform {
  background: linear-gradient(
    186deg,
    rgba(245, 205, 254, 0.7) 31.94%,
    rgba(225, 213, 229, 0) 199.84%
  );
  color: #651c77;
}
.history-tag-counseling {
  background: linear-gradient(
    168deg,
    rgba(167, 234, 234, 0.7) 21.1%,
    rgba(183, 184, 184, 0) 275.44%
  );
  color: #1f8282;
}
.history-tag-education {
  background: linear-gradient(
    168deg,
    rgba(250, 237, 204, 0.5) 21.1%,
    rgba(168, 168, 168, 0) 275.44%
  );
  color: #96792d;
}
.history-tag-publishing {
  background: linear-gradient(
    168deg,
    rgba(255, 133, 117, 0.5) 21.1%,
    rgba(190, 190, 190, 0) 275.44%
  );
  color: #a92e1d;
}
.history-tag-psychology {
  background: linear-gradient(
    168deg,
    rgba(198, 223, 243, 0.5) 21.1%,
    rgba(133, 197, 250, 0) 275.44%
  );
  color: #2d76b3;
}

/* Shared Mask Logic for Colored Tags */
.history-tag-platform::before,
.history-tag-counseling::before,
.history-tag-education::before,
.history-tag-publishing::before,
.history-tag-psychology::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Individual Border Colors */
.history-tag-platform::before {
  background: linear-gradient(
    186deg,
    #651c77 31.94%,
    rgba(101, 28, 119, 0.3) 100%
  );
}
.history-tag-counseling::before {
  background: linear-gradient(
    168deg,
    #1f8282 21.1%,
    rgba(31, 130, 130, 0.3) 100%
  );
}
.history-tag-education::before {
  background: linear-gradient(
    168deg,
    #96792d 21.1%,
    rgba(150, 121, 45, 0.3) 100%
  );
}
.history-tag-publishing::before {
  background: linear-gradient(
    168deg,
    #a92e1d 21.1%,
    rgba(169, 46, 29, 0.3) 100%
  );
}
.history-tag-psychology::before {
  background: linear-gradient(
    168deg,
    #2d76b3 21.1%,
    rgba(45, 118, 179, 0.3) 100%
  );
}

.history-item-text {
  font-weight: 600;
  font-size: clamp(18px, 1.94vw, 28px);
  line-height: clamp(30px, 3.47vw, 50px);
  letter-spacing: -0.56px;
  color: #2e2e2e;
  margin: 0;
}
.history-year-divider {
  width: 100%;
  height: 1px;
  border: none;
  background: repeating-linear-gradient(
    to right,
    #4e4e4e 0,
    #4e4e4e 8px,
    transparent 5px,
    transparent 14px
  );
  margin: 120px 0;
}

/* ----------------------------------------
   6-1. History Mobile Layout (1024px 이하용)
---------------------------------------- */
/* 기본: 모바일 버전 숨김 */
.history-timeline-mobile {
  display: none;
}

/* 모바일 시대 섹션 */
.history-mobile-era {
  position: relative;
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid #cecece;
}
.history-mobile-era:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 시대 이미지 (배경처럼 먼저 배치) */
.history-mobile-era-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}
.history-mobile-era-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 이미지 상단 그라데이션 오버레이 (텍스트 가독성용) */
.history-mobile-era-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 20px 20px 0 0;
}

.history-mobile-era-header {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  right: 0;
  z-index: 3;
  text-align: center;
  transform: translate(-50%, -50%);
}
.history-mobile-era-title {
  font-weight: 700;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.history-mobile-era-period {
  font-family: "Craftwork Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 3.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 시대 설명 (이미지 안 헤더 내부) */
.history-mobile-era-desc {
  font-weight: 400;
  font-size: clamp(12px, 3vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  margin: 15px 0 0;
}

/* 모바일 연도 그룹 스타일 조정 */
.history-timeline-mobile .history-year-group {
  margin-bottom: 0;
  display: flex;
      gap: 50px;
}
.history-timeline-mobile .history-year {
  font-size: clamp(28px, 6vw, 40px);
  margin-bottom: 20px;
}
.history-timeline-mobile .history-items {
  gap: 20px;
}
.history-timeline-mobile .history-item-text {
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.6;
}
.history-timeline-mobile .history-year-divider {
  margin: 50px 0;
}
.history-timeline-mobile .history-year-group:last-child + .history-year-divider,
.history-mobile-era > .history-year-divider:last-child {
  display: none;
}

/* ----------------------------------------
   7. Form / Contact Section
---------------------------------------- */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  justify-content: space-between;
  padding: 160px 60px;
  margin: auto;
  box-sizing: border-box;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}

.step-indicator {
  font-size: 16px;
  font-weight: 400;
  color: #666;
  margin-bottom: 40px;
}
.current-step {
  color: #000;
  font-weight: 600;
}
.step-divider {
  margin: 0 8px;
}
.total-steps {
  color: #999;
}

.form-wrapper {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.step.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question {
  font-size: 53px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000;
}
.subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 60px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.option-btn {
  border: 1px solid #111;
  border-radius: 50px;
  padding: 18px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  word-break: keep-all; /* 한글 단어 단위 줄바꿈 */
}
.option-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.option-btn.selected {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.option-btn:active {
  transform: translateY(0);
}

.text-input {
  font-family: "Pretendard";
  width: 100%;
  max-width: 600px;
  padding: 20px 0;
  font-size: 32px;
  font-weight: 400;
  border: none;
  border-bottom: 2px solid #ddd;
  background-color: transparent;
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 30px;
}
.text-input:focus {
  border-bottom-color: #000;
}
.text-input::placeholder {
  color: #ccc;
}
.textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 18px;
  padding-top: 15px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
}
.nav-btn {
  background-color: transparent;
  border: 2px solid #000;
  border-radius: 50px;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-btn:hover {
  background-color: #000;
  color: #fff;
}
.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
}
.nav-btn:disabled:hover {
  background-color: transparent;
  color: #ccc;
}
.prev-btn {
  background-color: transparent;
}
.next-btn {
  background-color: #000;
  color: #fff;
  margin-left: auto;
}
.next-btn:hover {
  background-color: #333;
}
.next-btn:disabled {
  background-color: #ccc;
  border-color: #ccc;
}

.thank-you {
  text-align: center;
  padding: 100px 0;
}
.thank-you .question {
  margin-bottom: 30px;
}
.checkmark {
  font-size: 120px;
  color: #00cc00;
  margin-top: 60px;
  animation: scaleIn 0.5s ease-in-out;
}
@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ----------------------------------------
   8. Global Responsive
---------------------------------------- */

/* ~ 1600px */
@media (max-width: 1650px) {
  .detail-intro-icon {
    position: relative;
    width: 41px;
    height: 45px;
    left: 0;
    margin-bottom: 12px;
  }
  .book-text-wrapper-2 {
    transform: translateX(-17%) rotate(0deg);
  }
  .book-text-wrapper-4 {
    transform: translateX(-30%);
  }
  .hcg-way-section,
  .history-intro-section {
    padding: clamp(80px, 11.1vw, 160px);
  }
  .vision-box {
    padding: clamp(80px, 11.1vw, 160px);
}
  .services-container {
    padding: 0 40px;
  }
  .service-publishing .service-main-image {
    width: 600px;
    height: 600px;
  }
  .service-psychological .service-main-image,
  .service-platform .service-main-image {
    width: 500px;
    height: 700px;
  }
  .service-main-image img {
    width: 100%;
  }
  .service-content-wrapper {
    gap: 60px;
  }
  .service-publishing .service-text-content {
    padding-top: 120px;
  }
  .service-psychological br {
    display: none;
  }
  .history-timeline-container {
    gap: 80px;
  }
  .history-timeline-section {
    padding: 0 clamp(80px, 11.1vw, 160px) 200px;
  }
  .history-era-column {
    flex: 0 0 min(600px, 40vw);
  }
  .history-era-cards-wrapper {
    width: min(600px, 40vw);
    aspect-ratio: 1;
  }
  .history-shared-content {
    bottom: 150px;
    left: 30px;
    right: 30px;
  }
  .history-shared-timeline {
    bottom: 30px;
    left: 30px;
    right: 30px;
  }
}

/* ~ 1200px (Tablet Landscape / Laptop) */
@media (max-width: 1200px) {
  /* About */
  .detail-books {
    transform-origin: center bottom;
  }
  .vision-section-outer > #visionWaveCanvas {
    top: -223px;
  }

  .vision-box {
    gap: 10px;
  }
  .vision-header {
    width: 442px;
}

.vision-section-wrap {
  margin-top: 200px;
}

  .service-publishing .service-text-content {
    padding-top: 0px;
  }
  .service-publishing .service-main-image {
    width: 400px;
    height: 400px;
  }
  .service-psychological .service-main-image,
  .service-platform .service-main-image {
    width: 350px;
    height: 500px;
  }
  .service-description {
    margin-bottom: 40px;
  }
  .service-education-images {
    gap: 20px;
    margin-bottom: 60px;
  }
  .service-platform .service-text-content {
    padding-top: 0;
  }
  /* 플로팅 이미지 - 모바일에서도 보이게 (크기만 축소) */
  .service-float-image {
    display: block;
  }
  .service-float-1 {
    left: 70%;
    top: -10px;
    width: 200px;
  }
  .service-float-2 {
    left: -4%;
    bottom: -163px;
    width: 280px;
  }
  .service-float-3 {
    right: -93px;
    bottom: 24%;
    width: 310px;
  }
  .history-float-bottom-left {
    bottom: -83px;
    left: -84px;
}

}

/* ~ 1024px (Tablet Portrait) */
@media (max-width: 1024px) {
  /* About */
  .hcg-way-description {
    gap: 40px;
  }
  .vision-box {
    flex-direction: column;
  }
  .knowledge-card {
    height: auto;
    padding: 60px 40px;
  }

  .history-timeline-container {
        gap: 40px;
    }

  /* Form */
  .question {
    font-size: 42px;
  }
  .options-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
  }
  .container {
    padding: 180px 40px 60px 40px;
  }
}

/* ~ 768px (Mobile) */
@media (max-width: 768px) {
  .services-line {
    display: none;
  }

  /* ========== History 모바일 레이아웃 ========== */
  /* 데스크탑 버전 숨기기 */
  .history-timeline-container {
    display: none;
  }

  /* 모바일 버전 표시 */
  .history-timeline-mobile {
    display: block;
    position: relative;
  }

  .history-intro-section {
    padding-bottom: 0;
  }

  /* 모바일 시대 섹션 */
  .history-mobile-era {
    margin-bottom: 0;
    padding-bottom: 40px;
    border-bottom: none;
  }

  /* 모바일 이미지 기본 스타일 */
  .history-mobile-era-image {
    height: 90px;
    aspect-ratio: unset;
    border-radius: 12px;
  }

  /* 이미지가 fixed로 전환될 때 (JS에서 클래스 추가) */
  .history-mobile-era-image.is-fixed {
    position: fixed !important;
    width: calc(100% - 60px);
    z-index: 101;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  /* 이미지 뒤에 깔리는 흰색 마스크 (콘텐츠가 뒤로 안 보이게) */
  .history-mobile-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background-color: #ffffff;
    z-index: 99;
    display: none;
    pointer-events: none;
  }
  .history-mobile-mask.active {
    display: block;
  }

  /* 이미지가 고정 해제될 때 원래 자리에 placeholder */
  .history-mobile-era-image.is-fixed + .era-image-placeholder {
    display: block;
  }
  .era-image-placeholder {
    display: none;
    height: 90px;
    margin-bottom: 30px;
  }

  /* 연도 리스트가 이미지 뒤로 안 보이게 마스크 */
  .history-mobile-era {
    position: relative;
    background-color: #ffffff;
  }
  .history-mobile-era-title {
    font-size: 1.5rem;
  }
  .history-mobile-era-period {
    font-size: 1rem;
}

.history-timeline-mobile .history-year {
  font-size: 2rem;
}

  /* Vision Section 배경 - 세로 방향 (중앙 집중) */
  .vision-section {
    background: 
      /* 상단 - 연한 하늘색 */
      radial-gradient(ellipse 100% 35% at 50% 30%, rgba(200, 225, 245, 0.6) 0%, transparent 60%),
      /* 중앙 - 연한 라벤더/보라색 */
      radial-gradient(ellipse 100% 35% at 50% 55%, rgba(220, 210, 245, 0.6) 0%, transparent 55%),
      /* 하단 - 연한 민트/초록색 */
      radial-gradient(ellipse 100% 35% at 50% 80%, rgba(200, 240, 220, 0.6) 0%, transparent 55%),
      /* 기본 배경 - 흰색 */
      #ffffff;
    background-size: 100% 100%;
    background-position: center;
  }
  /* Common */
  .detail-hero-title,
  .services-hero-title,
  .history-hero-title {
    position: static;
    transform: translate(0, 0);
    margin-bottom: 100px;
  }
  .detail-hero {
    padding: 120px 20px 0;
  }

  /* About */
  .about-page .book-item-1,
  .about-page .book-item-5,
  .about-page .book-item-9,
  .about-page .book-item-12 {
    display: none;
  }

  .services-page .book-item-2,
  .services-page .book-item-5,
  .services-page .book-item-7,
  .services-page .book-item-11 {
    display: none;
  }

  .history-page .book-item-1,
  .history-page .book-item-5,
  .history-page .book-item-9,
  .history-page .book-item-12 {
    display: none;
  }

  .history-page .book-item-10 {
      width: 59px;
  }

  .about-page .detail-books {
    transform: scale(1.6);
  }
  .services-page .detail-books {
    transform: scale(1.45);
  }
  .history-page .detail-books {
    transform: scale(1.5);
  }

  .book-text-wrapper-1,
  .book-text-wrapper-4,
  .book-text-wrapper-9,
  .book-text-wrapper-12 {
    top: clamp(5px, 1.3vw, 22px) !important;
  }
  .contact-page .book-item-1,
  .services-page .book-item-1 {
    margin-right: 2%;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .hcg-way-section {
    padding: 60px 0 40px;
    background: 
      /* 하단 50%~100%에만 연한 하늘색 그라데이션 */
      linear-gradient(to bottom, 
        transparent 0%, 
        transparent 50%,
        rgba(220, 235, 250, 0.6) 90%,
        rgba(210, 225, 245, 0.7) 100%
      ),
      #ffffff;
  }
  .detail-intro-icon {
    width: 30px;
    height: 32px;
    top: 0;
    left: 0;
  }

  .hcg-way-description {
    margin: 0;
  }
  .hcg-way-content,
  .vision-box,
  .history-intro-content,
  .service-content-wrapper {
    max-width: min(1440px, calc(100vw - 60px));
  }
  .hcg-way-col {
    font-size: 16px;
    line-height: 26px;
  }
  .vision-section-wrap {
    padding-bottom: 160px;
  }
  .vision-section-outer {
    margin-top: -72px;
  }
  .vision-box {
    display: flex;
    gap: 0;
    padding: 20px 0 0;
  }
  .vision-card-title {
    font-size: 20px;
  }
  .vision-card-text {
    font-size: 16px;
  }
  .vision-card-text {
    font-size: 18px;
  }
  .vision-card-1 .vision-card-image img {
    max-width: 346px;
  }
  .vision-card-2 .vision-card-image img {
    max-width: 366px;
  }
  .vision-card-3 .vision-card-image img {
    max-width: 270px;
  }
  .mission-section {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    height: 315px;
  }
  .mission-background {
    background: url(../images/detail/mission_bg_m.jpg) no-repeat left center;
  }
  .knowledge-card {
    flex-direction: column;
    padding: 60px 30px;
    gap: 36px;
  }
  .knowledge-content {
    max-width: 100%;
    padding: 0;
  }
  .stats-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-item {
    min-width: 120px;
    padding: 20px 25px;
  }
  .stat-number {
    font-size: 30px;
    line-height: 40px;
  }
  .knowledge-visual {
    width: 100%;
    height: clamp(180px, 40vw, 280px);
  }

  .vision-section-wrap {
    min-height: auto;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .vision-main-svg,
  canvas {
    display: none;
  }
  /* 모바일에서는 static 배치, JS 위치값 초기화 */
  .vision-card {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .vision-card-text-wrapper,
  .vision-card-image {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    bottom: auto;
    white-space: normal;
  }
  .vision-card-1 .vision-card-text-wrapper,
  .vision-card-2 .vision-card-text-wrapper,
  .vision-card-3 .vision-card-text-wrapper {
    margin-top: -100px;
  }
  .vision-card-2 .vision-card-text-wrapper {
    margin-top: -75px;
  }
  .vision-card-3 {
    margin-top: 30px;
  }
  .vision-card-3 .vision-card-text-wrapper {
    margin-top: -20px;
  }
  .vision-card-2 .vision-card-image {
    margin-left: 59px;
  }
  .vision-card-image img {
    margin: 0 auto;
  }
  /* 카드별 텍스트 정렬 */
  .vision-card-1 .vision-card-text-wrapper {
    text-align: right;
  }
  .vision-card-2 .vision-card-text-wrapper {
    text-align: left;
  }
  .vision-card-3 .vision-card-text-wrapper {
    text-align: center;
  }
  /* 모바일에서 dot 숨김 */
  .vision-dot {
    display: none;
  }

  .what-we-do-section {
    text-align: left;
    padding: 0 30px 20px;
  }

  .what-we-do-header br {
    display: none;
  }
  .knowledge-cards {
    padding: 0;
  }

  /* Services - 세로 레이아웃 (사진 위, 글씨 아래) */
  .services-container {
    padding: 0 20px;
  }
  .service-section {
    padding: 50px 0;
  }
  .service-section:last-child {
    padding-bottom: 100px;
  }
  .service-content-wrapper {
    flex-direction: column;
  }
  .service-content-left {
    flex-direction: column-reverse;
  }
  .service-platform .service-content-wrapper {
    flex-direction: column;
  }
  .service-title {
    margin-bottom: 20px;
  }
  .service-text-content,
  .service-psychological .service-text-content,
  .service-platform .service-text-content {
    max-width: 100%;
  }
  .service-text-content.text-align-right {
    text-align: left;
  }
  .text-align-right .service-divider {
    margin-left: 0;
  }
  .service-logos.justify-end {
    justify-content: flex-start;
  }
  .service-publishing .service-main-image,
  .service-psychological .service-main-image,
  .service-platform .service-main-image {
    width: 100%;
    height: auto;
  }
  .service-divider,
  .service-divider-wide {
    width: 100%;
  }

  .service-logos {
    gap: 20px;
  }

  .service-float-1 {
    left: 70%;
    top: 0;
    bottom: -21%;
    width: 50%;
  }
  .service-float-2 {
    left: -18%;
    bottom: 25%;
    width: 54%;
  }
  .service-float-3 {
    bottom: 24.5%;
    width: 280px;
  }

  /* History */
  .history-intro-section {
    padding: 80px 20px 20px;
  }
  .history-float-top-right {
    display: none;
  }

  .history-timeline-section {
    padding: 0 30px 100px;
  }

  .history-era-cards-wrapper {
    height: 300px;
  }
  .history-shared-content {
    bottom: 100px;
    left: 15px;
    right: 15px;
  }
  .history-shared-timeline {
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  .history-items {
    gap: 20px;
  }

  /* Form - Contact 페이지 */
  .question {
    font-size: 32px;
    word-break: keep-all;
  }
  .options-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    width: 100%;
  }
  .option-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  .container {
    padding: 140px 24px 50px 24px;
  }
  .text-input {
    font-size: 24px;
    max-width: 100%;
  }
  .nav-btn {
    padding: 14px 32px;
    font-size: 15px;
  }
  .navigation {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mobile-break {
    display: inline !important;
  }

  .knowledge-description .mobile-break {
    display: none !important;
  }
}

@media (max-width: 610px) {
  .service-float-1 {
    bottom: -10%;
  }
  .service-float-2 {
    left: -18%;
    bottom: 34%;
    width: 54%;
  }
}

/* ~ 480px (Small Mobile) */
@media (max-width: 480px) {
  /* Common */
  .detail-hero-title,
  .services-hero-title,
  .history-hero-title {
    position: static;
    transform: translate(0, 0);
    margin-bottom: 50px;
  }

  .services-page .detail-books,
  .about-page .detail-books,
  .history-page .detail-books {
    transform: scale(1.3);
  }

  .knowledge-stats p {
    font-size: 14px;
  }

  .knowledge-description p {
    display: inline;
  }

  .knowledge-description .mobile-break {
    display: inline !important;
  }

  .knowledge-visual {
    height: 390px;
  }

  .knowledge-visual img {
    object-position: right center;
  }


  .services-page .book-text-wrapper {
    left: 45%;
  }
  .service-content-wrapper {
    max-width: 100%;
  }

  .service-education-images {
    flex-direction: column;
    padding-right: 0;
    gap: 20px;
  }

    .service-float-1 {
    bottom: 6%;
  }
  .service-float-2 {
    left: -18%;
        bottom: 44%;
        width: 54%;
    width: 54%;
  }
  .service-float-3 {
    right: -49px;
    bottom: 21.5%;
    width: 173px;
  }

  .history-page .detail-books {
    transform: scale(1.3);
}
.history-page .book-item-3 {
  width: 38px;
}

  .history-page .book-item-4 {
    width: 50px;
}

.history-page .book-item-10 {
  width: 40px;
}

.history-timeline-section {
  padding: 0 30px 70px;
}

/* 480px 모바일 이미지 스택 조정 */
  .history-mobile-era-image {
    height: 70px;
    border-radius: 10px;
  }

  .history-mobile-era {
    margin-bottom: 0;
    padding-bottom: 30px;
  }

  .history-mobile-era-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

  /* Form - Contact 페이지 */
  .container {
    padding: 120px 16px 40px 16px;
  }
  .question {
    font-size: 24px;
    word-break: keep-all;
  }
  .subtitle {
    margin-bottom: 40px;
  }
  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .option-btn {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 30px;
  }
  .text-input {
    font-size: 20px;
  }
  .navigation {
    margin-top: 40px;
    gap: 12px;
  }
  .nav-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* ================================
   HCG Way Section - Lottie 애니메이션
================================ */
.hcg-way-lottie {
  width: 100%;       
  text-align: center;
  position: relative;  /* 가상 요소 기준점 */
  z-index: 0;          /* stacking context 생성 */
}

/* 배경을 영역 밖으로 확장 */
.hcg-way-lottie::before {
  content: '';
  position: absolute;
  top: -100px;          /* 위로 확장 */
  left: -50px;          /* 왼쪽으로 확장 (축소) */
  right: -50px;         /* 오른쪽으로 확장 (축소) */
  bottom: -100px;       /* 아래로 확장 */
  background: 
    radial-gradient(ellipse 55% 60% at 35% 50%, rgba(191, 255, 205, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 30% 35% at 65% 40%, rgba(83, 177, 255, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 55% 60% at 45% 60%, rgba(209, 191, 255, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 65% 45% at 55% 50%, rgba(255, 237, 191, 0.6) 0%, transparent 70%);
  z-index: -1;          /* 콘텐츠 뒤로 */
  pointer-events: none; /* 클릭 방해 안 함 */
}

.hcg-way-lottie svg {
  width: 100% !important;
  max-width: 80%;   
  height: auto !important;
  padding: 120px 0 40px;
  position: relative;   /* svg가 배경 위에 보이도록 */
  z-index: 1;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .hcg-way-lottie {
  }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .hcg-way-lottie {
  }
  
  .hcg-way-lottie::before {
    display: none;  /* 모바일에서 배경 숨김 */
  }

  .hcg-way-lottie svg {
    max-width: 100%;
    padding: 60px 0;
  }
}