/* =========================================================
   추진실적 / Promotion Performance (ko|en/performance.html)
   Figma: 185:4941 KO, 283:2495 EN, 2803:2839 mobile
   ========================================================= */
.perf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 120px 0;
}

/* page heading with square dot */
.perf-heading { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.perf-heading::after {
  content: '';
  width: 8px; height: 8px;
  flex-shrink: 0;
  background: var(--point-dot);
}

.perf-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}
.perf-sec { display: flex; flex-direction: column; gap: 40px; }
.perf-group > .perf-sec { gap: 60px; }

/* section title (생산설비 / 사업내역 / 활동 / 국내특허 …) */
.perf-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 34px;
  color: #000;
}
html[lang="ko"] .perf-title { letter-spacing: -1.02px; }
html[lang="en"] .perf-title { letter-spacing: -0.578px; text-transform: capitalize; }

/* =========================================================
   생산설비 — timeline → arrow → result card
   ========================================================= */
.perf-chart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.perf-timeline {
  position: relative;
  flex: 0 0 380px;
  height: 143px;
  display: flex;
  gap: 55px;
  padding-left: 86px;
}
.perf-timeline::before {         /* horizontal line */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 90px;
  height: 1px;
  background: var(--gray-3);
}
.perf-timeline__item {
  position: relative;
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 80px;
}
.perf-timeline__label {          /* bottom-anchored 29px from the top, grows upward */
  position: absolute;
  left: 50%;
  top: 29px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  text-align: center;
  font-size: 20px;
  color: #000;
}
html[lang="ko"] .perf-timeline__label { font-weight: 500; letter-spacing: -0.6px; }
html[lang="en"] .perf-timeline__label { font-weight: 400; line-height: 26px; letter-spacing: -0.34px; text-transform: capitalize; }
.perf-timeline__mark { position: relative; width: 21px; height: 21px; }
.perf-timeline__mark::before {   /* vertical line from the label down to the dot */
  content: '';
  position: absolute;
  left: 10px;
  bottom: 10.5px;
  width: 1px;
  height: 50px;
  background: var(--gray-3);
}
.perf-timeline__ring { position: absolute; left: 0; top: 0; width: 21px; height: 21px; }
.perf-timeline__dot { position: absolute; left: 8px; top: 8px; width: 5px; height: 5px; }
.perf-timeline__year {
  font-weight: 900;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.96px;
  color: #000;
}

.perf-chart__arrow { flex-shrink: 0; }
.perf-chart__arrow--right { width: 58px; height: 66px; }
.perf-chart__arrow--down { display: none; width: 66px; height: 58px; }

.perf-card {
  flex: 0 1 486px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: var(--card-bg);
  text-align: center;
}
.perf-card__icon { width: 118px; height: 118px; transition: transform .3s; }
.perf-card:hover .perf-card__icon { transform: translateY(-4px); }
.perf-card__txt { display: flex; flex-direction: column; align-items: center; }
html[lang="en"] .perf-card__txt { gap: 20px; }
.perf-card__title { font-weight: 700; font-size: 28px; color: var(--point-2); }
.perf-card__desc { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 20px; color: var(--gray-2); }
html[lang="ko"] .perf-card__title,
html[lang="ko"] .perf-card__desc { letter-spacing: -0.72px; }
html[lang="en"] .perf-card__title { font-family: 'Poppins', sans-serif; letter-spacing: -0.476px; }
html[lang="en"] .perf-card__desc { letter-spacing: -0.6px; }

/* capacity table */
.perf-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--gray-5);
  background: #fff;
  text-align: center;
  font-size: 20px;
  color: var(--gray-1);
}
.perf-table thead th {
  height: 72px;
  padding: 0 12px;
  border-top: 1px solid #000;
  background: var(--gray-6);
  font-weight: 700;
  color: #000;
  letter-spacing: normal;
}
.perf-table tbody th,
.perf-table tbody td {
  height: 60px;
  padding: 0 12px;
  border-top: 1px solid var(--gray-4);
  border-left: 1px solid var(--gray-5);
  vertical-align: middle;
}
.perf-table tbody th { border-left: 0; font-weight: 700; }
.perf-table tbody td { font-weight: 400; }
.perf-table__total th,
.perf-table__total td { border-top-width: 2px !important; }
.perf-table__total td:last-child { font-weight: 700; }
html[lang="ko"] .perf-table tbody th,
html[lang="ko"] .perf-table tbody td { letter-spacing: -0.6px; }
html[lang="en"] .perf-table tbody th { letter-spacing: normal; }
html[lang="en"] .perf-table tbody td { letter-spacing: -0.34px; text-transform: capitalize; }

/* production photo */
.perf-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.perf-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 996 / 423;
  object-fit: cover;
  border: 1px solid var(--gray-3);
}
.perf-photo figcaption { font-weight: 500; font-size: 20px; color: #000; text-align: center; }
html[lang="ko"] .perf-photo figcaption { letter-spacing: -0.6px; }
html[lang="en"] .perf-photo figcaption { letter-spacing: -0.34px; text-transform: capitalize; }

/* =========================================================
   특허 / 인증 (gray band)
   ========================================================= */
.perf-patent { width: 100%; padding: 100px 0; background: var(--gray-6); }
.perf-patent__in { display: flex; flex-direction: column; align-items: center; gap: 60px; }
.perf-patent__list { width: 100%; display: flex; gap: 24px; }
.perf-patent__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
html[lang="ko"] .perf-patent__col { align-items: flex-start; }
html[lang="en"] .perf-patent__col { align-items: center; }
.perf-patent__box {
  align-self: stretch;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 32px;
  background: #fff;
}

/* bullet list (patents + activity headings) */
.perf-bullets li { position: relative; padding-left: 20px; color: #000; font-size: 20px; }
.perf-bullets li::before,
.perf-act__name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 32px;
  background: url('../img/performance/bullet.svg') no-repeat 0 0;
}
html[lang="ko"] .perf-bullets li { font-weight: 500; letter-spacing: -0.6px; }
html[lang="en"] .perf-bullets li { font-weight: 400; line-height: 24px; letter-spacing: -0.34px; text-transform: capitalize; }
html[lang="en"] .perf-bullets li::before { height: 24px; background-position: 0 50%; }
.perf-bullets em { font-style: normal; color: var(--point-1); margin-left: .3em; }

.perf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 316px;
  height: 72px;
  padding: 16px 24px;
  background: var(--point-1);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  transition: background-color .2s;
}
.perf-btn:hover, .perf-btn:focus-visible { background: var(--point-2); }
html[lang="ko"] .perf-btn { letter-spacing: -0.6px; }
html[lang="en"] .perf-btn { font-family: 'Poppins', sans-serif; letter-spacing: -0.34px; }

/* =========================================================
   사업내역
   ========================================================= */
.perf-biz { display: flex; flex-direction: column; gap: 40px; }
.perf-biz__item { display: flex; min-height: 120px; background: var(--card-bg); }
.perf-biz__period {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 12px;
  background: var(--point-1);
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  white-space: nowrap;
}
html[lang="ko"] .perf-biz__period { letter-spacing: -0.6px; }
html[lang="en"] .perf-biz__period { letter-spacing: -0.34px; }
html[lang="en"] .perf-biz__period .num { font-family: 'Poppins', sans-serif; }
.perf-biz__line { display: flex; align-items: center; gap: 12px; }
.perf-biz__badge {
  min-width: 48px;
  padding: 0 12px;
  background: #fff;
  color: var(--point-1);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: -0.48px;
  text-align: center;
}
html[lang="en"] .perf-biz__badge { min-width: 54px; }
.perf-biz__title {
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  padding: 20px 12px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.84px;
  color: var(--point-2);
  text-align: center;
}

/* =========================================================
   활동
   ========================================================= */
.perf-act-list { display: flex; flex-direction: column; gap: 80px; }
.perf-act { display: flex; flex-direction: column; gap: 24px; }
.perf-act__name {
  position: relative;
  padding-left: 20px;
  font-size: 22px;
  line-height: 32px;
  color: var(--gray-1);
}
.perf-act__name b { font-weight: 700; letter-spacing: -0.66px; }
.perf-act__name span {
  margin-left: 6px;
  font-weight: 500;
  font-size: 20px;
  color: var(--gray-3);
}
html[lang="ko"] .perf-act__name span { letter-spacing: -0.6px; }
html[lang="en"] .perf-act__name span { font-family: 'Poppins', sans-serif; letter-spacing: -0.34px; }

.perf-act__imgs { display: flex; align-items: flex-start; gap: 24px; }
.perf-act__imgs li { flex: 1 1 0; min-width: 0; overflow: hidden; }
.perf-act__imgs img {
  width: 100%;
  height: auto;
  aspect-ratio: 316 / 221;
  object-fit: cover;
  transition: transform .4s;
}
.perf-act__imgs li:hover img { transform: scale(1.04); }
.perf-act__imgs li.is-bordered { border: 1px solid var(--gray-4); }
.perf-act__imgs--wide li:first-child { flex: 656 1 0; }
.perf-act__imgs--wide li:first-child img { aspect-ratio: 656 / 333; }
.perf-act__imgs--wide li:last-child { flex: 316 1 0; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .perf-chart { flex-direction: column; gap: 32px; }
  .perf-timeline { flex: none; width: 380px; max-width: 100%; }
  .perf-chart__arrow--right { display: none; }
  .perf-chart__arrow--down { display: block; }
  .perf-card { flex: none; width: 100%; max-width: 486px; }
  html[lang="en"] .perf-timeline { margin-top: 56px; }   /* room for the 3-line label */

  .perf-patent__list { gap: 16px; }
  .perf-patent__box { padding: 32px 24px; }
  .perf-bullets li { font-size: 18px; }

  .perf-biz__period { flex-basis: 200px; }
  .perf-biz__title { font-size: 24px; letter-spacing: -0.72px; }
}

/* =========================================================
   Mobile (Sub_회사소개_추진실적_m)
   ========================================================= */
@media (max-width: 768px) {
  /* the EN page title is too long for the shared 30px mobile hero title */
  html[lang="en"] .sub-hero__title { font-size: 24px; letter-spacing: -0.72px; }

  .perf { gap: 80px; padding: 80px 0; }
  .perf-heading::after { width: 4px; height: 4px; }
  .perf-group { gap: 80px; }

  .perf-title { font-size: 20px; }
  html[lang="ko"] .perf-title, html[lang="en"] .perf-title { letter-spacing: -0.6px; }

  /* timeline */
  .perf-timeline { flex: none; width: 100%; justify-content: center; padding-left: 0; }
  html[lang="en"] .perf-timeline { margin-top: 44px; }
  .perf-timeline__label { top: 19px; font-size: 16px; }
  html[lang="ko"] .perf-timeline__label { font-weight: 400; letter-spacing: -0.48px; }
  html[lang="en"] .perf-timeline__label { line-height: 20px; letter-spacing: -0.48px; }
  .perf-timeline__year { font-size: 20px; line-height: 24px; letter-spacing: -0.6px; }

  .perf-card { max-width: none; }
  .perf-card__title { font-size: 18px; }
  .perf-card__desc { font-weight: 500; font-size: 16px; }
  html[lang="ko"] .perf-card__title { letter-spacing: -0.54px; }
  html[lang="ko"] .perf-card__desc, html[lang="en"] .perf-card__desc { letter-spacing: -0.48px; }
  html[lang="en"] .perf-card__title { letter-spacing: -0.306px; }
  html[lang="en"] .perf-card__txt { gap: 8px; }

  /* table */
  .perf-table { font-size: 16px; }
  .perf-table thead th { font-size: 16px; }
  .perf-table tbody th, .perf-table tbody td { padding: 0 6px; }
  html[lang="ko"] .perf-table thead th,
  html[lang="ko"] .perf-table tbody th,
  html[lang="ko"] .perf-table tbody td { letter-spacing: -0.48px; }
  html[lang="en"] .perf-table tbody td { letter-spacing: -0.27px; }

  .perf-photo img { aspect-ratio: 328 / 176; }
  .perf-photo figcaption { font-weight: 400; font-size: 16px; }
  html[lang="ko"] .perf-photo figcaption, html[lang="en"] .perf-photo figcaption { letter-spacing: -0.48px; }

  /* patents */
  .perf-patent { padding: 80px 0; }
  .perf-patent__list { flex-direction: column; gap: 60px; }
  html[lang="ko"] .perf-patent__col, html[lang="en"] .perf-patent__col { align-items: flex-start; }
  .perf-patent__box { min-height: 0; padding: 24px 20px; }
  .perf-bullets li { padding-left: 12px; font-size: 16px; line-height: 22px; }
  html[lang="ko"] .perf-bullets li, html[lang="en"] .perf-bullets li { letter-spacing: -0.48px; }
  .perf-bullets li::before,
  html[lang="en"] .perf-bullets li::before,
  .perf-act__name::before {
    width: 4px;
    height: 22px;
    background-image: url('../img/performance/bullet-m.svg');
    background-position: 0 0;
  }
  .perf-btn { width: 100%; min-width: 0; height: auto; padding: 20px 16px; font-size: 16px; }
  html[lang="ko"] .perf-btn, html[lang="en"] .perf-btn { letter-spacing: -0.48px; }

  /* business */
  .perf-biz__item { flex-direction: column; min-height: 0; }
  .perf-biz__period { flex: none; padding: 20px 12px; font-size: 16px; white-space: normal; }
  html[lang="ko"] .perf-biz__period, html[lang="en"] .perf-biz__period { letter-spacing: -0.48px; }
  .perf-biz__title { flex: none; align-self: stretch; padding: 20px 16px; font-size: 16px; letter-spacing: -0.48px; }

  /* activity */
  .perf-act { gap: 12px; }
  .perf-act__name { padding-left: 12px; font-size: 16px; line-height: 22px; color: #000; }
  .perf-act__name b { font-weight: 500; letter-spacing: -0.48px; }
  .perf-act__name span { margin-left: 4px; font-family: var(--font-body); font-size: 16px; color: var(--point-1); }
  html[lang="ko"] .perf-act__name span, html[lang="en"] .perf-act__name span { font-family: var(--font-body); letter-spacing: -0.48px; }
  .perf-act__imgs { flex-direction: column; gap: 8px; }
  .perf-act__imgs li,
  .perf-act__imgs--wide li:first-child,
  .perf-act__imgs--wide li:last-child { flex: none; width: 100%; }
  .perf-act__imgs img,
  .perf-act__imgs--wide li:first-child img { aspect-ratio: 328 / 220; }
}
