

/* ══════════════════════════════════════════════════════════════
   섹션1: i-LAB 
══════════════════════════════════════════════════════════════ */

#in-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* ── 배경 ── */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back1.png) center / cover no-repeat;
  z-index: 0;
}

/* ── 워터마크 ── */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: 'MADETommy', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.18);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  margin: 0;
}

/* ── 사진 컬럼 공통 ── */
.hero-col {
  flex: 0 0 22vw;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--gnb-h),
    black calc(var(--gnb-h) + 60px),
    black calc(100% - 60px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent var(--gnb-h),
    black calc(var(--gnb-h) + 60px),
    black calc(100% - 60px),
    transparent 100%
  );
}

/* flex 순서: 왼쪽 → 콘텐츠 → 오른쪽 */
.사진-왼쪽  { order: 1; margin-left: 5vw; }
.사진-오른쪽 { order: 3; margin-right: 5vw; }

.col-track {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0;
}

.hero-col img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

/* 무한 세로 스크롤 */
@keyframes scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes scroll-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.사진-왼쪽  .col-track { animation: scroll-up   56s linear infinite; }
.사진-오른쪽 .col-track { animation: scroll-down 56s linear infinite; }

/* ── 가운데 콘텐츠 — flex:1 로 양쪽 컬럼 사이 자동 채움 ── */
.hero-content {
  order: 2;
  flex: 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: calc(var(--gnb-h) + 16px) 24px 24px;
  min-width: 0;
}

/* 배지 */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e91e8c 0%, #c2185b 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  letter-spacing: 0.03em;
  padding: 6px 20px;
  opacity: 0.8;
}

/* i-LAB 로고 */
.hero-logo {
  height: clamp(56px, 9vh, 110px);
  width: auto;
  display: block;
}

/* 서브텍스트 */
.hero-sub {
  font-size: clamp(16px, 1.55vw, 19px);
  color: rgba(255, 255, 255, 0.78);
  margin-top:5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

/* 본문 설명 */
.hero-desc {
  font-size: clamp(15px, 1vw, 16px);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-weight: 200;
  margin: 10px 0 30px;
  word-break: keep-all;
}

/* 아웃라인 버튼 */
.hero-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 12px 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.22s;
}
.hero-btn:hover { background: rgba(255, 255, 255, 0.12); }

.hero-btn-label {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.0;
}
.hero-btn-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.0;
}

/* ── 모바일 ── */
@media (max-width: 768px) {
  .hero-col { display: none; }
  .hero-watermark { font-size: 36px; white-space: normal; text-align: center; width: 90%; }
  .hero-content { max-width: 100%; padding: calc(var(--gnb-h) + 12px) 24px 20px; gap: 12px; }

  /* ── C: 히어로 콘텐츠 순차 페이드인 초기 상태 */
  .hero-badge,
  .hero-logo,
  .hero-sub,
  .hero-desc,
  .hero-btn {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .hero-badge.hero-anim-in,
  .hero-logo.hero-anim-in,
  .hero-sub.hero-anim-in,
  .hero-desc.hero-anim-in,
  .hero-btn.hero-anim-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── D: 워터마크 스케일업 + shimmer 초기 상태 ── */
  .hero-watermark {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  .hero-watermark.wm-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  @keyframes hero-wm-shimmer {
    0%   { color: rgba(0, 0, 0, 0.18); }
    50%  { color: rgba(255, 255, 255, 0.138); }
    100% { color: rgba(0, 0, 0, 0.18); }
  }
  .hero-watermark.wm-shimmer {
    animation: hero-wm-shimmer 2.4s ease-in-out 3;
  }
}

@media (max-width: 480px) {
  .hero-content { gap: 10px; padding: calc(var(--gnb-h) + 10px) 18px 16px; }
  .hero-sub     { font-size: 17px; margin-top:15px; }
  .hero-desc    {  font-size: 14px; margin-top:15px; line-height: 1.75; }
  .hero-btn     { margin-top:15px; font-size: 13px; padding: 9px 28px; }
}

/* ══════════════════════════════════════════════════════════════
   섹션2: 설득하는 영어 (Persuasive English)
══════════════════════════════════════════════════════════════ */

#in-persuasive {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 배경 ── */
.pe-bg {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back2.png) center / cover no-repeat;
  z-index: 0;
}
.pe-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* ── 콘텐츠 컨테이너 ── */
.pe-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 680px;
  width: 100%;
  padding: calc(var(--gnb-h) + 20px) 32px 28px;
}

/* ── 대형 타이틀 ── */
.pe-title {
  font-family: 'MADETommy', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(90deg,
      #EBDCCC 0%, #EBDCCC 38%,
      rgba(235, 220, 204, 0.2) 48%,
      rgba(235, 220, 204, 0.2) 52%,
      #EBDCCC 62%, #EBDCCC 100%);
  background-size: 300% 100%;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #EBDCCC;
}

.pe-title.shimmer-play {
  animation: pe-shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pe-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}

/* ── 구분선 ── */
.pe-divider {
  width: 40px;
  height: 1px;
  background: #EBDCCC;
  margin: 2px auto;
}

/* ── 서브텍스트 ── */
.pe-sub {
  font-family: 'Pretendard', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #EBDCCC;
  letter-spacing: 0.01em;
  margin:0 0 20px 0;
}

/* ── 2줄 설명 ── */
.pe-desc {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 300;
  color: #fff;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ── 메인 인용 텍스트 (세리프, 가장 크게) ── */
.pe-quote {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 200;
  color: #ECDDCD;
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin: 15px 0 20px 0;
}

/* ── 본문 단락 ── */
.pe-body {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 200;
  color: rgba(255, 255, 255, 0.68);
  line-height: 2.0;
  letter-spacing: 0.02em;
  margin: 0;
  word-break: keep-all;
}

/* 더보기 버튼: 기본 숨김 (모바일에서만 표시) */
.persuasive-more-btn { display: none; }

/* ── 하단 박스 ── */
.pe-box {
  margin-top: 8px;
  padding: 18px 32px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid #7E6345;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pe-box p {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(15px, 0.9vw, 17px);
  font-weight: 200;
  color: rgba(255, 255, 255);
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ── 섹션2 모바일 ── */
@media (max-width: 768px) {
  .pe-bg { background-position: 30% center; }
  .pe-inner { padding: calc(var(--gnb-h) + 16px) 24px 24px; gap: 12px; }
  .pe-quote  { font-size: 20px; }
  .pe-box    { padding: 14px 20px; }

  /* 더보기 토글 */
  .persuasive-body-collapsible {
    position: relative;
    max-height: 56px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .persuasive-body-collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .persuasive-body-collapsible.expanded::after {
    opacity: 0;
  }
  .persuasive-more-btn {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-family: 'Pretendard', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .pe-inner { padding: calc(var(--gnb-h) + 10px) 18px 16px; gap: 8px; }
  .pe-quote { font-size: 17px; }
  .pe-box   { padding: 10px 12px; }
  .pe-body  { line-height: 1.5; }
  .persuasive-body-collapsible { max-height: 42px; }
}

/* ══════════════════════════════════════════════════════════════
   섹션3: 핵심 역량 (Core Competencies)
══════════════════════════════════════════════════════════════ */

#in-core {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 배경 ── */
.cc-bg {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back3.png) center / cover no-repeat;
  z-index: 0;
}
/* 데코 오브 오버레이 (좌하단·우하단 컬러 오브) */
.cc-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back3_deco.png) center / cover no-repeat;
  pointer-events: none;
}

/* ── 콘텐츠 컨테이너 ── */
.cc-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  padding: calc(var(--gnb-h) + 20px) 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── 헤더 ── */
.cc-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cc-title {
  font-family: 'MADETommy', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(90deg,
      #fff 0%, #fff 38%,
      rgba(255, 255, 255, 0.2) 48%,
      rgba(255, 255, 255, 0.2) 52%,
      #fff 62%, #fff 100%);
  background-size: 300% 100%;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cc-title.shimmer-play {
  animation: cc-shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cc-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}

.cc-divider {
  width: 40px;
  height: 1px;
  background: rgb(255, 255, 255);
}

.cc-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
  margin: 0;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.역량-카드1 { grid-column: 1 / 3; }
.역량-카드2 { grid-column: 3 / 5; }
.역량-카드3 { grid-column: 5 / 7; }
.역량-카드4 { grid-column: 2 / 4; }
.역량-카드5 { grid-column: 4 / 6; }

/* ── 개별 카드 ── */
.cc-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.23);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  /* 초기 숨김 — JS .is-visible 추가 시 페이드업 */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cc-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 카드별 순차 딜레이 */
.역량-카드1 { transition-delay:   0ms; }
.역량-카드2 { transition-delay: 150ms; }
.역량-카드3 { transition-delay: 300ms; }
.역량-카드4 { transition-delay: 450ms; }
.역량-카드5 { transition-delay: 600ms; }

.cc-icon {
  width: clamp(38px, 4.5vw, 58px);
  height: auto;
  display: block;
}

.cc-card-title {
  font-family: 'Goldenbook-Black', 'Pretendard', sans-serif;
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

.cc-card-title span {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
  color: rgb(255, 255, 255);
  margin-top: 2px;
}

.cc-card-desc {
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 100;
  color: rgb(255, 255, 255);
  line-height: 1.45;
  margin: 0;
  word-break: keep-all;
}

/* ── 섹션3 중간 해상도 (태블릿 ~ 소형 데스크탑) ── */
@media (max-width: 1024px) {
  .cc-inner { padding: calc(var(--gnb-h) + 16px) 20px 24px; gap: 18px; }
  .cc-grid  { gap: 10px; }
  .cc-card  { padding: 20px 12px 18px; gap: 8px; }
  .cc-icon  { width: clamp(32px, 3.5vw, 44px); }
}

/* ── 섹션3 모바일 ── */
@media (max-width: 768px) {
  .cc-inner { padding: calc(var(--gnb-h) + 16px) 20px 24px; gap: 20px; }
  /* 4열 그리드로 2-2-1(중앙) 배치 */
  .cc-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
  .역량-카드1 { grid-column: 1 / 3; }
  .역량-카드2 { grid-column: 3 / 5; }
  .역량-카드3 { grid-column: 1 / 3; }
  .역량-카드4 { grid-column: 3 / 5; }
  .역량-카드5 { grid-column: 2 / 4; } /* 4열 중 2~4열 → 가운데 */
  /* 카드 정사각형 */
  .cc-card { aspect-ratio: 1 / 1; justify-content: center; padding: 16px 12px; }
}

@media (max-width: 480px) {
  .cc-inner { padding: calc(var(--gnb-h) + 12px) 14px 18px; gap: 14px; }
  .cc-grid  { gap: 8px; }
  .cc-icon  { width: 30px; }
  .cc-card  { padding: 10px 6px; gap: 6px; }
  .cc-card-title { font-size: 16px;}
}

/* ── 섹션3 짧은 높이 대응 (iPhone SE ~ 740px 이하) ── */
@media (max-height: 740px) and (max-width: 480px) {
  .cc-inner      { padding: calc(var(--gnb-h) + 8px) 14px 12px; gap: 10px; }
  .cc-header     { gap: 4px; }
  .cc-title      { font-size: 32px; margin-bottom: 10px; }
  .cc-sub        { font-size: 18px; line-height: 1.4; }
  .cc-grid       { gap: 6px; }
  .cc-card       { aspect-ratio: auto; padding: 10px 6px; gap: 4px; height: 160px; overflow: hidden; justify-content: center; }
  .cc-icon       { width: 30px; }
  .cc-card-title { font-size: 14px; }
  .cc-card-desc  { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   섹션4: 핵심 가치 (Core Values)
══════════════════════════════════════════════════════════════ */

#in-values {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 배경 ── */
.cv-bg {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back4.png) center / cover no-repeat;
  z-index: 0;
}

/* ── 콘텐츠 컨테이너 ── */
.cv-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: calc(var(--gnb-h) + 16px) 40px 24px;
  width: 100%;
}

/* ── 헤더 ── */
.cv-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cv-title {
  font-family: 'MADETommy', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(90deg,
      #1a1a2e 0%, #1a1a2e 38%,
      rgba(26, 26, 46, 0.12) 48%,
      rgba(26, 26, 46, 0.12) 52%,
      #1a1a2e 62%, #1a1a2e 100%);
  background-size: 300% 100%;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cv-title.shimmer-play {
  animation: cv-shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cv-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}

.cv-divider {
  width: 40px;
  height: 1px;
  background: rgb(0, 0, 0);
}

.cv-sub {
  font-size: 18px;
  font-weight: 500;
  color: rgb(0, 0, 0);
  letter-spacing: 0.01em;
  margin: 0;
}

/* ── 삼각 구도 원 컨테이너 ── */
.cv-circles {
  --circle: clamp(190px, 27vw, 300px);
  position: relative;
  /* 45° 배치: 성취·재미가 충분히 벌어지도록 컨테이너 확장 */
  width: clamp(440px, 68vw, 700px);
  /* 높이 = circle × 1.57 (45° 수직 오프셋 0.566D + 위아래 반지름 0.5D×2) */
  height: calc(var(--circle) * 1.57);
  flex-shrink: 0;
}

/* ── 원 공통 ── */
.cv-circle {
  position: absolute;
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cv-circle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 순차 딜레이 */
.원-공감 { transition-delay:   0ms; }
.원-성취 { transition-delay: 200ms; }
.원-재미 { transition-delay: 400ms; }

/* 삼각 위치: 공감 상단 중앙, 성취 좌하단, 재미 우하단 */
.원-공감 {
  background: url(../imgs_sub/intro/core1.png) center / cover no-repeat;
  top: 0;
  left: 50%;
  margin-left: calc(var(--circle) / -2);
  z-index: 3;
}

.원-성취 {
  background: url(../imgs_sub/intro/core2.png) center / cover no-repeat;
  bottom: 0;
  left: calc(50% - var(--circle) * 1.2);
  z-index: 2;
}

.원-재미 {
  background: url(../imgs_sub/intro/core3.png) center / cover no-repeat;
  bottom: 0;
  right: calc(50% - var(--circle) * 1.2);
  z-index: 1;
}

/* 어두운 반투명 오버레이 */
.cv-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  z-index: 1;
}

/* ── 원 내부 텍스트 ── */
.cv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.cv-circle-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.cv-circle-line {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.cv-circle-desc {
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 200;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}


.value-connector { display: none; }

/* ── 섹션4 중간 해상도 (1024px): 삼각형 축소 ── */
@media (max-width: 1024px) {
  .cv-inner { padding: calc(var(--gnb-h) + 12px) 20px 20px; gap: 20px; }
  .cv-circles {
    --circle: clamp(150px, 25vw, 230px);
    width: clamp(350px, 59vw, 536px);
  }
  .cv-circle-title { font-size: clamp(17px, 2vw, 19px); }
  .cv-circle-desc  { font-size: v-circle-titleclamp(11px, 1.2vw, 13px); }
}

/* ── 섹션4 모바일 (≤480px): 세로 1열 + 연결선 ── */
@media (max-width: 480px) {
  .cv-inner { padding: calc(var(--gnb-h) + 8px) 16px 16px; gap: 14px; }
  .cv-circles {
    --circle: clamp(130px, 42vw, 155px);
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }
  .cv-circle {
    position: static;
    margin-left: 0;
    width: var(--circle);
    height: var(--circle);
  }
  .value-connector {
    display: block;
    width: 2px;
    height: 28px;
    background: rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
  }
  .cv-circle-title { font-size: 16px; }
  .cv-circle-desc  { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   섹션5: 학습시스템
══════════════════════════════════════════════════════════════ */

#in-system {
  position: relative;
  overflow: hidden;
}

/* 레이어1: 베이스 배경 */
.tct-bg {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back5.png) center / cover no-repeat;
  z-index: 0;
}

/* 레이어2: 오버레이 */
.tct-layer {
  position: absolute;
  inset: 0;
  background: url(../imgs_sub/intro/back5_layer.png) center / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}
/* 레이어2.5: 은은한 책 배경 */
.tct-book-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1200px;
  z-index: 1;
  pointer-events: none;
}

/* 레이어3: 하단 라이트 — 자연 크기, 하단 중앙 */
.tct-light {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  display: block;
  max-width: none;
}

.tct-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top left, rgba(7, 29, 153, 0) 0%, rgba(4, 13, 62, 0.9) 100%);
  z-index: 2;
  pointer-events: none;
}

/* book image layer (centered, bottom flush with bar top) */
.tct-book-layer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px; 
  pointer-events: none;
  margin-top: clamp(-60px, -8vh, -20px);
}

.tct-book {
  display: block;
  width: calc(var(--tct-c) * 3.4);
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tct-book-light {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2;
  pointer-events: none;
  display: block;
  width: calc(var(--tct-c) * 3.4);
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.tct-book.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tct-book-light.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.tct-bar-box {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.tct-bar-box.bar-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .tct-bar-box {
    transform: translateY(16px);
  }
  .tct-bar-box.bar-visible {
    transform: translateY(0);
  }
}

.tct-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: row;
  gap: clamp(6px, 0.78vw, 10px);
  padding: 0 clamp(12px, 1.56vw, 20px) clamp(16px, 2.34vw, 30px);
}

.tct-bar-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.52);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  padding: clamp(10px, 1.41vw, 18px) clamp(12px, 1.72vw, 22px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: clamp(44px, 5.94vw, 76px);
}

.tct-bar-title {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(17px, 1.15vw, 19px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tct-bar-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.452);
  margin: 0 clamp(10px, 1.56vw, 20px);
  flex-shrink: 0;
}

.tct-bar-desc {
  font-size: clamp(13px, 0.85vw, 15px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.873);
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

/* ── decorative side books ── */
.tct-deco-left,
.tct-deco-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.14;
  pointer-events: none;
}
.tct-deco-left  { left: -60px; }
.tct-deco-right { right: -60px; transform: translateY(-50%) scaleX(-1); }
.tct-deco-left img,
.tct-deco-right img {
  width: clamp(140px, 14vw, 210px);
  height: auto;
  filter: brightness(3) sepia(1) hue-rotate(140deg) saturate(2);
}

/* ── main content wrapper ── */
.tct-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--gnb-h) + 28px);
  padding-bottom: 116px;
  pointer-events: none;
}

/* circles + book: both inherit --tct-c for proportional scaling */
.tct-visual-group {
  --tct-c: clamp(130px, 13vw, 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}

/* section title */
.tct-header {
  text-align: center;
  margin-bottom: clamp(18px, 2.5vw, 32px);
}
.tct-title-en {
  font-family: 'MADETommy', sans-serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: clamp(10px, 1.56vw, 20px) 0 clamp(6px, 0.78vw, 10px);
  background: linear-gradient(90deg,
      #fff 0%, #fff 38%,
      rgba(255, 255, 255, 0.2) 48%,
      rgba(255, 255, 255, 0.2) 52%,
      #fff 62%, #fff 100%);
  background-size: 300% 100%;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tct-title-en.shimmer-play {
  animation: tct-en-shimmer 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tct-en-shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}
.tct-title-rule {
  width: clamp(32px, 3.13vw, 40px);
  height: 1px;
  background: rgb(255, 255, 255, 0.8);
  margin: 0 auto clamp(8px, 0.78vw, 10px);
}
.tct-title-ko {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(12px, 1.41vw, 18px);
  font-weight: 500;
  color: rgb(255, 255, 255);
  letter-spacing: 0.01em;
  margin: 0;
}

/* TCT diagram */
.tct-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.41vw, 18px);
  flex: 1;
  justify-content: center;
  margin-top: clamp(-60px, -3.13vw, -12px);
}

.tct-circles {
  position: relative;
  width: calc(var(--tct-c) * 2.50);
  height: calc(var(--tct-c) * 1.9);
}

.tct-circle {
  position: absolute;
  width: var(--tct-c);
  height: var(--tct-c);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.80);
  border: 1px solid #00FCFF;
  box-shadow: 0 0 28px rgba(0, 195, 185, 0.22), inset 0 0 18px rgba(0, 195, 185, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(3px, 0.39vw, 5px);
}

/* top center — Coaching */
.tct-코칭 {
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s;
}
.tct-코칭.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* bottom left — Teaching */
.tct-티칭 {
  bottom: 30px;
  left: calc(50% - var(--tct-c) * 1.2);
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 1.2s, transform 0.8s ease-out 1.2s;
}
.tct-티칭.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* bottom right — Training */
.tct-트레이닝 {
  bottom: 30px;
  right: calc(50% - var(--tct-c) * 1.2);
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 1.6s, transform 0.8s ease-out 1.6s;
}
.tct-트레이닝.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tct-circle-title {
  font-family: 'Goldenbook-Black', 'Pretendard', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}
.tct-circle-sub {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* TCT 시스템 pill badge */
.tct-badge {
  background: rgba(30, 146, 150, 0.55); /* #11686b 색상에 투명도 85% 적용 */
  border: none;
  border-radius: 0;
  padding: clamp(5px, 0.63vw, 8px) clamp(15px, 2.5vw, 20px);
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 2.0s, transform 0.8s ease-out 2.0s;
}
.tct-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── section 5 responsive ── */
@media (max-width: 768px) {
  .tct-deco-left,
  .tct-deco-right { display: none; }

  .tct-content {
    padding-top: calc(var(--gnb-h) + 16px);
    padding-bottom: 195px;
  }
  .tct-title-en { font-size: 32px; margin-bottom:15px;}
  .tct-title-rule { margin-bottom: 15px; } 
  .tct-title-ko { font-size: 17px; } 

  .tct-book-layer {
    transform: translateY(-30px);
  }

  .tct-bottom-bar {
    flex-direction: column;
    padding: 0 14px 14px;
    gap: 8px;
  }
  .tct-bar-box {
    min-height: auto;
    padding: 14px 16px;
  }
  .tct-bar-title { font-size: 15px; }
  .tct-bar-divider { margin: 0 14px; }
  .tct-bar-desc { font-size: 13px; }
}

.mo-br {
  display: none;
}

@media (max-width: 480px) {
  .tct-content   { padding-bottom: 185px; }
  .tct-title-en  { font-size: 32px; }
  .tct-bar-box   { padding: 10px 12px; }
  .tct-bar-title { font-size: 15px; }
  .tct-bar-desc  { font-size: 13px; }

  .mo-br {
    display: block;
  }
}

@media (max-width: 360px) {
  .tct-content { padding-bottom: 175px; }
}

/* ── 실기기 높이 대응: circles/badge 겹침 방지, 책/하단바 겹침 방지 */
@media (max-height: 960px) and (max-width: 480px) {
  .tct-visual-group { --tct-c: 130px; }
  .tct-diagram      { margin-top: 0; }
  .tct-book-layer   { margin-top: -20px; transform: none; }
  .tct-content      { padding-bottom: 200px; }
  .tct-circle-title { font-size: clamp(16px, 3.5vw, 20px); }
  .tct-circle-sub   { font-size: clamp(13px, 2.2vw, 14px); }
}


@media (max-height: 740px) and (max-width: 480px) {
  .tct-book-layer {
    display: none;
  }
}

