/* About page-specific styles: hero images, Mission & Vision, Core Values */

/* About Hero Banner */
.about-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #ffffff; 
}

.about-hero .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
  top: 0;
  left: 0;
  /* Intro reveal animation (same as history) */
  clip-path: inset(0% 50% 0% 50%);
  transition: clip-path 1.2s ease-out;
}
.about-hero .hero-background img.expand {
  clip-path: inset(0% 0% 0% 0%);
}

.about-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}
.about-hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
}
.about-hero .hero-title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}
.about-hero .hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.95;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.8s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero scroll indicator (공통) */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@media (max-width: 992px) {
  .about-hero .hero-title { font-size: 2rem; }
  .hero-description {font-size: 0.9rem;}
}
@media (max-width: 768px) {
  .about-hero {
    height: 28vh;
    margin-bottom: 8px;
    margin-top: -12px
  }
  .scroll-indicator {
      bottom: 10px;
  }
  .scroll-arrow {
      width: 35px;         /* 기존 50px -> 40px */
      height: 35px;        /* 기존 50px -> 40px */
      border-width: 1.5px; /* 기존 2px -> 1.5px (선택) */
      font-size: 1rem;     /* 기존 1.2rem -> 1rem */
  }
  .hero-title {
      font-size: 1.7rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  /* 히어로 텍스트를 살짝 위로 이동 (우선순위 강제) */
  .about-hero .hero-content { transform: translateY(-14px) !important; }
  /* 본문 텍스트 좌측 정렬 */
  .company-intro-content p { text-align: left !important; }
  /* 회사소개 헤드라인 중앙정렬 */
  .company-intro-title { text-align: center !important; }
  /* 인트로 헤드라인(회사 소개 타이틀) 소폭 축소 */
  .company-intro-title { font-size: 1.6rem !important; }
}

@media (max-width: 480px) {
  /* 초소형에서는 텍스트를 조금 더 위로 */
  .about-hero .hero-content { transform: translateY(-16px) !important; }
  /* 초소형에서 한 단계 더 축소 */
  .company-intro-title { font-size: 1.4rem !important; }
}

.overview-text-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.text-content-left {
  max-width: 1200px;
}

.company-intro-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0px 18px;
  opacity: 0;
  text-align: center;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.company-intro-title.in-view {
  opacity: 1;
  transform: translateY(0);
}

.company-intro-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.company-intro-content.in-view {
  opacity: 1;
  transform: translateY(0);
}

.company-intro-content p {
  font-size: 1.0rem;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
  color: #323d4d;
}

.company-intro-content p:last-child {
  margin-bottom: 0;
}

/* 이미지 섹션 (텍스트 아래) */
.overview-image-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.overview-image-container {
  width: 1200px;
  height: 520px;
  position: relative;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 0 40px 0 40px;
}

.overview-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  will-change: transform, clip-path;
  transform-origin: center center;
  animation: kbZoom 28s ease-in-out infinite alternate;
}

/* 원형 확장 애니메이션 - 텍스트 애니메이션 후에 시작 */
.overview-image-container .overview-bg-image {
  clip-path: circle(0% at 50% 50%);
}

.overview-image-container.in-view .overview-bg-image {
  animation: overviewReveal 2.4s ease-out forwards, kbZoom 28s ease-in-out 2.4s infinite alternate;
}

@keyframes overviewReveal {
  0% {
    clip-path: circle(0% at 50% 50%);
    opacity: .6;
  }

  100% {
    clip-path: circle(150% at 50% 50%);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .overview-text-section {
    padding: 32px 0;
  }

  .overview-image-container {
    height: 460px;
  }

  .company-intro-title {
    font-size: 2rem;
  }
}

@media (max-width: 1200px) {
  .overview-image-container {
    width: 100%;
    height: 460px;
    border-radius: 0 35px 0 35px;
  }
}

@media (max-width: 992px) {
  .overview-text-section {
    padding: 24px 0;
  }

  .overview-image-container {
    width: 100%;
    height: 380px;
    border-radius: 0 30px 0 30px;
  }

  .company-intro-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .company-intro-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .overview-text-section {
    padding: 8px 0;
  }

  .overview-image-container {
    width: 100%;
    height: 300px;
    border-radius: 0 25px 0 25px;
  }

  .company-intro-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .company-intro-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
}

@media (max-width: 576px) {
  .overview-text-section {
    padding: 8px 0;
  }

  .overview-image-container {
    height: 300px;
  }

  .company-intro-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .company-intro-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
}

/* Hero: Single full-bleed image with circular reveal + slow zoom */
.about-hero-strip {
  margin: 0 0 120px;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  overflow: hidden;
}

.hero-single {
  width: 100%;
  padding: 0;
}

.hero-single-cell {
  height: 520px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.kb-single-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  will-change: transform;
  transform-origin: center center;
  animation: kbZoom 28s ease-in-out infinite alternate;
}

/* Reveal from center when in view */
.hero-single-cell .kb-single-img {
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path, transform;
}

.hero-single-cell.in-view .kb-single-img {
  animation: heroReveal 2.4s ease-out forwards, kbZoom 28s ease-in-out 2.4s infinite alternate;
}

@keyframes kbZoom {
  0% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1.10);
  }
}

@keyframes heroReveal {
  0% {
    clip-path: circle(0% at 50% 50%);
    opacity: .6;
  }

  100% {
    clip-path: circle(150% at 50% 50%);
    opacity: 1;
  }
}

@media (max-width: 1200px) {
  .hero-single-cell {
    height: 460px;
  }
}

@media (max-width: 992px) {
  .hero-single-cell {
    height: 380px;
  }
}

@media (max-width: 576px) {
  .hero-single-cell {
    height: 180px;
  }
}

/* Mission & Vision (3 circles) */
/* Core Values timeline style (Mission & Vision 대체) */
.core-values {
  margin: 30px 0 110px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cv4-heading {
  font-size: 2.4rem;
  color: #0f172a;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: .2px;
}

.cv4-desc {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 900px;
}

.cv4-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 1280px;
  margin: 0 auto;
}

.cv4-item {
  position: relative;
}

/* 오버랩: 두 번째 이후 아이템에 음수 마진 */
.cv4-item+.cv4-item {
  margin-left: -36px;
}

.cv4-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16);
}

.cv4-icon {
  font-size: 52px;
  opacity: .98;
  margin-bottom: 22px;
}

.cv4-title {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.cv4-sub {
  font-size: 1.08rem;
  opacity: .95;
  margin-top: 12px;
}

.cv4-circle.light {
  background: #3db4da;
}

.cv4-circle.mid {
  background: linear-gradient(135deg, #1c86e5, #2ca3f3);
}

.cv4-circle.deep {
  background: linear-gradient(135deg, #1368cf, #185cc5);
}

.cv4-circle.navy {
  background: #0b4591;
}

.cv4-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.cv4-sub {
  font-size: 1.05rem;
  opacity: .95;
  margin-top: 8px;
}

/* 등장 애니메이션 */
.core-values .cv4-item {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .cv4-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .cv4-item {
    margin-left: 0 !important;
  }
}

@media (max-width: 640px) {
  .cv4-circle {
    width: 240px;
    height: 240px;
  }
}

/* ========== Core Values Reveal Animation ========== */
.core-values .cv4-item {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.core-values .cv4-item:nth-child(1) {
  transform: translateY(16px);
  transition-duration: .8s;
  transition-delay: .05s;
}

.core-values .cv4-item:nth-child(2) {
  transition-delay: .15s;
}

.core-values .cv4-item:nth-child(3) {
  transition-delay: .30s;
}

.core-values .cv4-item:nth-child(4) {
  transition-delay: .45s;
}

.core-values .cv4-item.in-view {
  opacity: 1;
  transform: translateX(0);
}

.core-values .cv4-item.in-view:nth-child(1) {
  transform: translateY(0);
}

/* Core Values */
.cv-section {
  margin: 140px 0 160px;
}

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cv-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
}

.cv-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 32px;
}

.cv-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cv-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  opacity: 0;
  transform: translateY(18px);
}

.cv-item.in-view {
  animation: cvRise .65s ease forwards;
}

.cv-item:nth-child(1).in-view {
  animation-delay: .10s;
}

.cv-item:nth-child(2).in-view {
  animation-delay: .26s;
}

.cv-item:nth-child(3).in-view {
  animation-delay: .42s;
}

.cv-item:nth-child(4).in-view {
  animation-delay: .58s;
}

.cv-item:nth-child(5).in-view {
  animation-delay: .74s;
}

@keyframes cvRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cv-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.cv-text h4 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #0f172a;
}

.cv-text p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Typography enhancements */
.page-header h2 {
  font-weight: 800;
  letter-spacing: .3px;
  color: #0f172a;
}

.page-description {
  font-size: 1.15rem;
  color: #475569;
}

.page-description .accent {
  font-weight: 800;
  color: #0ea5e9;
}

/* Emphasis helpers */
.em-strong {
  font-weight: 800;
}

.em-medium {
  font-weight: 600;
}

.em-muted {
  color: #64748b;
}

@media (max-width: 992px) {
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cv-image img {
    height: 340px;
  }
}

/* About Intro (텍스트 블록) */
.about-intro {
  max-width: 980px;
  margin: 0 auto 60px;
  text-align: center;
  color: #0f172a;
}

.about-intro .ai-main {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: .15px;
  margin: 0 0 16px;
  color: #0f172a;
  line-height: 1.28;
}

.about-intro .ai-sub {
  font-size: 1.01rem;
  color: #475569;
  margin: 0 auto;
  line-height: 1.6;
  max-width: 860px;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .about-intro .ai-sub {
    white-space: normal;
  }
}

.about-intro .br-lg {
  display: none;
}

@media (min-width: 960px) {
  .about-intro .br-lg {
    display: inline;
  }
}

/* ===== Core Values Photo Form ===== */
.cv-photo-section {
  margin: 40px auto 110px;
  max-width: 1220px;
  padding: 0 20px;
}

.cvp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.cvp-item {
  display: grid;
  grid-template-columns: 1fr 768px;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cvp-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cvp-item:nth-child(1).in-view {
  transition-delay: 0.1s;
}

.cvp-item:nth-child(2).in-view {
  transition-delay: 0.3s;
}

.cvp-item:nth-child(3).in-view {
  transition-delay: 0.5s;
}

.cvp-item:nth-child(even) {
  grid-template-columns: 768px 1fr;
}

.cvp-item:nth-child(even) .cvp-text {
  order: 2;
}

.cvp-item:nth-child(even) .cvp-image {
  order: 1;
}

.cvp-title {
  font-size: 1.8rem;
  color: #0f172a;
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.3;
}

.cvp-title span {
  color: #1c86e5;
  font-weight: 800;
  margin-right: 10px;
}

.cvp-text {
  max-width: 500px;
}

.cvp-text p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 400;
}

.cvp-text p:last-child {
  margin-bottom: 0;
}

.cvp-image img {
  width: 768px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

@media (max-width: 1200px) {
  .cvp-item {
    grid-template-columns: 1fr 600px;
    gap: 30px;
  }

  .cvp-item:nth-child(even) {
    grid-template-columns: 600px 1fr;
  }

  .cvp-image img {
    width: 600px;
    height: 320px;
  }

  .cvp-title {
    font-size: 1.6rem;
  }

  .cvp-text p {
    font-size: 1.1rem;
  }
} 

@media (max-width: 920px) {

  .cvp-item,
  .cvp-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cvp-item:nth-child(even) .cvp-text {
    order: 1;
  }

  .cvp-item:nth-child(even) .cvp-image {
    order: 2;
  }

  .cvp-image img {
    width: 100%;
    height: 280px;
  }

  .cvp-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .cvp-text {
    max-width: none;
  }

  .cvp-text p {
    font-size: 1.05rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .cvp-image img {
    height: 240px;
  }

  .cvp-title {
    font-size: 1.3rem;
  }

  .cvp-text p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .cv4-heading {
    font-size: 1.6rem;
  }
}