/* =========================================================
   특허 및 인증 / Patents and certifications (ko|en/tech-patents.html)
   Figma: 123:494 KO, 283:1838 EN, 2803:3679 mobile
          (the mobile frame is misnamed "Sub_기술_기술소개_ESG Coordinate_m")
   ========================================================= */

/* 34px page heading with square dot (sec-title__h at H1 size) */
.patents-heading.sec-title__h { font-size: 34px; white-space: normal; text-align: center; }
html[lang="ko"] .patents-heading.sec-title__h { letter-spacing: -1.02px; }
html[lang="en"] .patents-heading.sec-title__h { letter-spacing: -0.578px; text-transform: capitalize; }

.patents { width: 100%; display: flex; flex-direction: column; gap: 100px; }
.patents-group { display: flex; flex-direction: column; gap: 40px; }
.patents-group__title {
  font-family: var(--font-title);
  font-weight: 700;
  color: #000;
}
html[lang="ko"] .patents-group__title { font-size: 34px; letter-spacing: -1.02px; }
html[lang="en"] .patents-group__title { font-size: 28px; letter-spacing: -0.476px; text-transform: capitalize; }

/* certificate grid: 3 x 316px, gap 24 / 60 */
.cert-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 24px;
  align-items: start;
}
.cert { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cert__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 316 / 423;
  overflow: hidden;
  background: #fff;
}
.cert__img::after {             /* 1px inside stroke drawn over the image */
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gray-3);
  pointer-events: none;
  transition: border-color .2s, box-shadow .2s;
}
.cert__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* Figma "FILL" */
  transition: transform .3s;
}
.cert--fit .cert__img img { object-fit: contain; }   /* Figma "FIT" */
.cert--stretch .cert__img img { object-fit: fill; }  /* Figma "STRETCH" (source scan is pre-squashed) */
.cert__img:hover::after,
.cert__img:focus-visible::after { border-color: var(--point-1); box-shadow: inset 0 0 0 1px var(--point-1); }
.cert__img:hover img { transform: scale(1.02); }

.cert__name {
  width: 100%;
  font-size: 20px;
  line-height: normal;
  text-align: center;
  color: #000;
}
html[lang="ko"] .cert__name { font-weight: 400; letter-spacing: -0.34px; }
html[lang="en"] .cert__name { font-weight: 500; letter-spacing: -0.34px; text-transform: capitalize; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .patents { gap: 80px; }
  html[lang="ko"] .patents-group__title { font-size: 30px; letter-spacing: -0.9px; }
  html[lang="en"] .patents-group__title { font-size: 26px; }
  .cert-list { gap: 48px 20px; }
  .cert__name { font-size: 18px; }
}

/* =========================================================
   Mobile (360 frame 2803:3679, applied to EN too)
   ========================================================= */
@media (max-width: 768px) {
  .patents-content { gap: 60px; }
  .patents-heading.sec-title__h { font-size: 20px; }
  html[lang="ko"] .patents-heading.sec-title__h,
  html[lang="en"] .patents-heading.sec-title__h { letter-spacing: -0.6px; }

  .patents { gap: 100px; }
  .patents-group { gap: 40px; }
  html[lang="ko"] .patents-group__title,
  html[lang="en"] .patents-group__title { font-size: 18px; letter-spacing: -0.54px; }

  /* single column at 360; two columns once there is room */
  .cert-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 60px 16px; }
  .cert__img { aspect-ratio: 328 / 423; }
  .cert--fit-m .cert__img img { object-fit: contain; }
  .cert__name { font-size: 16px; }
  html[lang="ko"] .cert__name,
  html[lang="en"] .cert__name { letter-spacing: -0.48px; }
  html[lang="en"] .cert__name { font-weight: 400; }
}
