/*
  ABOUT PAGE
  biz-place.kr/about 의 마크업 구조·박스 모델·rem 단위 체계를 그대로 재현.
  실제 사진/아이콘 에셋이 없는 부분은 프로젝트 브랜드 그라디언트로 대체.
*/

:root {
  --color-tint: #fff6f3;
}

.about-main {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.about-main::before {
  content: "";
  display: block;
  width: 100%;
  height: 15rem;
}

.about-main::after {
  content: "";
  position: absolute;
  left: 60%;
  top: 80rem;
  width: 119.2rem;
  height: 119.2rem;
  box-sizing: border-box;
  border: 13rem solid var(--color-tint);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.about-main article {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 1;
}

/* ---------- BANNER ---------- */
article.about-banner {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  margin: 0 auto;
  padding: 0 0 0 10.8rem;
  width: 127.2rem;
  max-width: 100%;
  height: 28.8rem;
  background-image: url('../img/about-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

article.about-banner h1 {
  width: 100%;
  font-size: 2.9rem;
  font-weight: 500;
  color: #fff;
  line-height: 2.9rem;
}

article.about-banner h2 {
  margin: 3rem 0 0 0;
  max-width: 60rem;
  font-size: 1.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 2.6rem;
}

/* ---------- PLACE (회사소개 문구) ---------- */
article.about-place {
  justify-content: center;
  align-items: flex-start;
  min-height: 73.5rem;
  background-color: #fff;
  overflow: hidden;
}

article.about-place::after {
  content: "";
  position: absolute;
  left: calc((100% - 144rem) / 2);
  bottom: 0;
  width: 144rem;
  max-width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

article.about-place section {
  position: relative;
  padding: 15rem 0 0 0;
  width: 63.6rem;
  color: var(--color-text);
  transition: opacity 1s ease, transform 1s ease;
}

article.about-place section:nth-of-type(1) {
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 3rem;
}

article.about-place section.logo-line::before {
  content: "제이비기프트";
  text-align: center;
  color: #fff;
  font-size: 12px;
  position: absolute;
  left: 0;
  top: 10rem;
  width: 9rem;
  height: 3rem;
  background: var(--gradient);
  border-radius: 0.9rem;
}

article.about-place section:nth-of-type(2) {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 3rem;
  text-align: right;
}

article.about-place section:nth-of-type(1).fx {
  opacity: 0;
  transform: translateX(10rem);
}

article.about-place section:nth-of-type(2).fx {
  opacity: 0;
  transform: translateX(-10rem);
}

article.about-place div.bg {
  position: absolute;
  left: calc((100% - 127.2rem) / 2);
  bottom: -10rem;
  width: 127.2rem;
  height: 70rem;
  background: no-repeat 50% 45% / 108rem url('../img/about-place-bg.png');
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 90%, transparent);
  opacity: 0.18;
  transition: opacity 2s ease, transform 2s ease;
  pointer-events: none;
  z-index: 0;
}

article.about-place div.bg.fx {
  opacity: 0;
  transform: translateY(20rem);
}

/* ---------- VISION & MISSION ---------- */
article.about-vision {
  justify-content: center;
  align-items: center;
  min-height: 150rem;
  background-color: #fff;
}

article.about-vision .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  width: 88.8rem;
  max-width: 100%;
}

article.about-vision .container::before {
  content: "";
  position: absolute;
  left: -82rem;
  top: 26rem;
  width: 64rem;
  height: 64rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary), var(--color-gradient-end) 70%, transparent 78%);
  opacity: 0.1;
  z-index: 0;
}

article.about-vision .container::after {
  content: "";
  position: absolute;
  right: -34.6rem;
  bottom: 0;
  width: 47rem;
  height: 47rem;
  box-sizing: border-box;
  border: 4.4rem solid var(--color-tint);
  border-radius: 50%;
  z-index: 0;
}

article.about-vision .container .fx {
  opacity: 0;
  transform: translateY(10rem);
}

article.about-vision .wrapper {
  width: 100%;
  transition: opacity 1s ease, transform 1s ease;
}

article.about-vision .wrapper h1 {
  width: 100%;
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

article.about-vision .wrapper h2 {
  margin: 5rem 0 12rem 0;
  width: 100%;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--color-sub);
  line-height: 2.6rem;
  text-align: center;
}

article.about-vision .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

article.about-vision .cards section {
  position: relative;
  padding: 13.5rem 0 0 0;
  width: 40.8rem;
  height: 48rem;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 3.5rem;
  z-index: 1;
  transition: opacity 1s ease, transform 1s ease;
}

article.about-vision .cards section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8.6rem;
  height: 8.6rem;
  border-radius: 1.8rem;
  background: var(--gradient);
  box-shadow: 0.6rem 0.6rem 1.6rem rgba(255, 0, 0, 0.18);
}

article.about-vision .cards section.innovation::before  { background: url('../img/about-vision-innovation.png')  no-repeat center / 55%, var(--gradient); }
article.about-vision .cards section.growth::before      { background: url('../img/about-vision-growth.png')      no-repeat center / 55%, var(--gradient); }
article.about-vision .cards section.public::before      { background: url('../img/about-vision-public.png')      no-repeat center / 55%, var(--gradient); }
article.about-vision .cards section.competition::before { background: url('../img/about-vision-competition.png') no-repeat center / 55%, var(--gradient); }

article.about-vision .cards section:nth-of-type(even) {
  padding: 28.5rem 0 0 0;
}

article.about-vision .cards section:nth-of-type(even)::before {
  top: 15rem;
}

article.about-vision .cards section h3 {
  margin: 0 0 4rem 0;
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 3.3rem;
  text-transform: uppercase;
}

article.about-vision .cards section h3::first-letter {
  color: var(--color-primary);
}

/* ---------- AREA (사업영역) ---------- */
article.about-area {
  justify-content: center;
  align-items: center;
  min-height: 100rem;
  background-color: rgba(244, 246, 249, 1);
}

article.about-area section.copy {
  width: 64.8rem;
}

article.about-area section.visual {
  position: relative;
  width: 62.8rem;
  height: 69rem;
}

article.about-area section.copy * {
  transition: opacity 1s ease, transform 1s ease;
}

article.about-area section.copy .fx {
  opacity: 0;
  transform: translateY(10rem);
}

article.about-area section.visual .fx {
  opacity: 0;
  transform: scale(0.25) rotate(-180deg);
}

article.about-area section.copy h1 {
  width: 100%;
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-text);
}

article.about-area section.copy h2 {
  margin: 21rem 0 5rem 0;
  width: 100%;
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--color-text);
}

article.about-area section.copy h3 {
  width: 100%;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 4rem;
}

article.about-area section.copy h4 {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 4.5rem 0 0 0;
  width: max-content;
  height: 8rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

article.about-area section.copy h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8.4rem;
  height: 4px;
  background-color: var(--color-primary);
}

article.about-area section.visual div.area {
  position: absolute;
  left: 0;
  bottom: -10rem;
  width: 100%;
  height: 69rem;
  background: no-repeat 50% 50% / contain url('../img/about-area-bg.png');
  transition: opacity 1s ease, transform 1s ease;
}

/* ---------- HISTORY (연혁) ---------- */
article.about-history {
  display: block;
  padding: 16rem 0;
  margin: 0 auto;
  width: 127.2rem;
  max-width: 100%;
}

article.about-history h1 {
  width: 100%;
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 5rem;
}

article.about-history .container {
  position: relative;
  margin: 15rem 0 0 0;
  width: 100%;
}

article.about-history .items section {
  position: relative;
  padding: 0 0 0 86.4rem;
  width: 100%;
  height: 60rem;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 3.3rem;
  letter-spacing: -0.1rem;
  transition: color 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

article.about-history .items section::before {
  content: attr(data-year);
  position: absolute;
  left: 10.8rem;
  top: -1rem;
  width: max-content;
  height: auto;
  font-size: 13.3rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -0.2rem;
  line-height: 13.3rem;
}

article.about-history .items section::after {
  content: "";
  position: absolute;
  left: calc((100% - 2rem) / 2);
  top: 4.6rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-text);
  border-radius: 50%;
  transition: background-color 0.5s ease;
}

article.about-history .items section.fx {
  color: rgba(230, 230, 230, 1);
  transform: translateY(5rem);
}

article.about-history .items section.fx::after {
  background-color: rgba(230, 230, 230, 1);
}

article.about-history .items section b {
  display: block;
  font-weight: 500;
}

article.about-history div.line {
  position: absolute;
  left: calc((100% - 4px) / 2);
  top: 4.6rem;
  width: 4px;
  height: 0;
  background-color: var(--color-text);
  transition: height 1.2s ease;
  z-index: 0;
}

/* ---------- PLACE/AREA 애매한 너비(676~1350px) 대응: 두 컬럼(PLACE 63.6rem×2,
   AREA 64.8rem+62.8rem)이 옆으로 붙기엔 좁아서 강제로 줄바꿈되어 찌그러지거나
   화면 밖으로 잘리던 문제 → 세로 스택으로 전환해 각 컬럼이 폭을 꽉 채우게 함 ---------- */
@media (min-width: 676px) and (max-width: 1350px) {
  article.about-place {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 3rem;
  }

  article.about-place section {
    width: 100%;
    padding-top: 4rem;
    text-align: center;
  }

  article.about-place section:nth-of-type(1) {
    padding-top: 8rem;
  }

  article.about-place section.logo-line::before {
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
  }

  article.about-place section:nth-of-type(2) {
    padding-top: 3rem;
    text-align: center;
  }

  article.about-area {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 3rem;
  }

  article.about-area section.copy {
    width: 100%;
    max-width: 64.8rem;
  }

  article.about-area section.visual {
    width: 100%;
    max-width: 62.8rem;
    margin-top: 4rem;
  }

  /* HISTORY: 86.4rem 고정 padding-left/13.3rem 연도 숫자가 이 너비대에서
     타임라인 점·선과 겹쳐 보이던 문제 → vw 기반 값으로 축소해 겹침 방지 */
  article.about-history .items section {
    padding-left: calc(55vw + 2rem);
  }

  article.about-history .items section::before {
    left: 4vw;
    font-size: 8rem;
    line-height: 8rem;
    top: 0.5rem;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 675px) {
  .about-main::before {
    height: 6rem;
  }

  .about-main::after {
    display: none;
  }

  /* BANNER */
  article.about-banner {
    margin: 0 auto;
    padding: 0 0 0 2rem;
    width: calc(100% - 3rem);
    height: 15rem;
    border-radius: 1.4rem;
  }

  article.about-banner h1 {
    font-size: 2rem;
    line-height: 2.4rem;
  }

  article.about-banner h2 {
    margin: 1.2rem 0 0 0;
    padding: 0 2rem 0 0;
    font-size: 1.1rem;
    line-height: 1.8rem;
  }

  /* PLACE */
  article.about-place {
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding: 0 1.5rem;
    height: 50rem;
  }

  article.about-place::after {
    left: 0;
    bottom: 0;
    width: 100%;
  }

  article.about-place section {
    padding: 10rem 0 0 0;
    width: 100%;
    text-align: center;
  }

  article.about-place section.logo-line::before {
    left: 50%;
    top: 5rem;
    transform: translateX(-50%);
  }

  article.about-place section:nth-of-type(1) {
    font-size: 1.9rem;
    line-height: 3rem;
  }

  article.about-place section:nth-of-type(2) {
    padding: 4rem 0 0 0;
    font-size: 1.2rem;
    line-height: 2.4rem;
    text-align: center;
  }

  article.about-place div.bg {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 42rem;
    background-size: 56rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 6%, black 92%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 6%, black 92%, transparent);
    opacity: 0.2;
  }

  /* VISION */
  article.about-vision {
    height: 110rem;
  }

  article.about-vision .container {
    padding: 0 1.5rem;
    width: 100%;
    overflow: hidden;
  }

  article.about-vision .container::before {
    left: -18rem;
    top: 18rem;
    width: 32rem;
    height: 32rem;
  }

  article.about-vision .container::after {
    right: -34.6rem;
    bottom: 0;
    width: 47rem;
    height: 47rem;
  }

  article.about-vision .wrapper h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  article.about-vision .wrapper h2 {
    margin: 2rem 0 6rem 0;
    padding: 0 3rem;
    font-size: 1.2rem;
    line-height: 1.6rem;
  }

  article.about-vision .cards section {
    padding: 13.5rem 0 0 0;
    width: 44%;
    height: 42rem;
    font-size: 1.4rem;
    line-height: 2rem;
    text-align: center;
  }

  article.about-vision .cards section::before {
    left: 50%;
    transform: translateX(-50%);
    width: 6.8rem;
    height: 6.8rem;
  }

  article.about-vision .cards section:nth-of-type(even) {
    padding: 25rem 0 0 0;
  }

  article.about-vision .cards section:nth-of-type(even)::before {
    top: 12rem;
  }

  article.about-vision .cards section:nth-of-type(3),
  article.about-vision .cards section:nth-of-type(4) {
    margin: -6rem 0 0 0;
  }

  article.about-vision .cards section h3 {
    margin: 0 0 2rem 0;
    font-size: 1.9rem;
    line-height: 2.1rem;
  }

  /* AREA */
  article.about-area {
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding: 8rem 1.5rem 0 1.5rem;
    height: 100rem;
    overflow: hidden;
  }

  article.about-area section.copy,
  article.about-area section.visual {
    width: 100%;
  }

  article.about-area section.visual {
    height: 50rem;
  }

  article.about-area section.copy > * {
    text-align: center;
  }

  article.about-area section.copy h1 {
    font-size: 2.5rem;
  }

  article.about-area section.copy h2 {
    display: none;
  }

  article.about-area section.copy h3 {
    margin: 5rem 0 0 0;
    width: 100%;
    font-size: 1.5rem;
    line-height: 2.5rem;
  }

  article.about-area section.copy h4 {
    justify-content: center;
    margin: 2.25rem auto 2rem;
    height: 6rem;
    font-size: 1.9rem;
  }

  article.about-area section.copy h4::before {
    left: calc((100% - 8.4rem) / 2);
    top: 0;
    width: 8.4rem;
    height: 4px;
  }

  article.about-area section.visual div.area {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }

  /* HISTORY */
  article.about-history {
    padding: 8rem 1.5rem 0 1.5rem;
    width: 100%;
  }

  article.about-history h1 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
  }

  article.about-history .container {
    margin: 9rem 0 0 0;
  }

  article.about-history .items section {
    padding: 0 0 0 55vw;
    height: 40rem;
    font-size: 1.3rem;
    line-height: 2.3rem;
  }

  article.about-history .items section::before {
    left: 0;
    top: -0.4rem;
    font-size: 5.5rem;
    letter-spacing: -0.1rem;
    line-height: 5.5rem;
  }

  article.about-history .items section::after {
    left: calc((100% - 1rem) / 2);
    top: 2rem;
    width: 1rem;
    height: 1rem;
  }

  article.about-history div.line {
    left: calc((100% - 2px) / 2);
    top: 2rem;
    width: 2px;
  }
}
