/* Public R&D — page shell */

.rnd-page {
  background-color: #fff;
}

.company-hero {
  position: relative;
  overflow: hidden;
}

.company-hero__media {
  width: 100%;
  min-height: clamp(260px, 29.64vw, 569px);
  background-color: #ece7df;
  background-image:
    linear-gradient(180deg, rgba(25, 25, 25, 0.02) 0%, rgba(25, 25, 25, 0.08) 100%),
    url("/assets/images/product/R%26D_img.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media (max-width: 1023px) {
  .company-hero__media {
    min-height: clamp(220px, 44vw, 420px);
    background-position: center 45%;
  }
}

@media (max-width: 767px) {
  .company-hero__media {
    min-height: clamp(180px, 56vw, 320px);
    background-position: center;
  }
}

.rnd-content {
  width: 100%;
}

/* R&D LAB intro — Figma 9337:5980 */
.subnav + .rnd-content .rnd-lab.reveal-section {
  padding-top: clamp(56px, 5.21vw, 100px);
}

.rnd-lab {
  padding: 0 0 clamp(72px, 7.29vw, 140px);
  background-color: #fff;
}

.rnd-lab__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 4.17vw, 80px);
  width: min(100%, 1490px);
  margin-inline: auto;
}

.rnd-lab__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(28px, 2.08vw, 40px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rnd-lab__body {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.17vw, 80px);
  width: 100%;
}

.rnd-lab__visual {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 550px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  line-height: 0;
}

.rnd-lab__bg-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #c8c8c8;
}

.rnd-lab__bg {
  position: absolute;
  display: block;
  /* Figma: 948×632 at (-279, -41) inside 550×550 */
  left: calc(-279 / 550 * 100%);
  top: calc(-41 / 550 * 100%);
  width: calc(948 / 550 * 100%);
  height: calc(632 / 550 * 100%);
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.rnd-lab__certificate {
  position: absolute;
  z-index: 2;
  display: block;
  left: calc(290 / 550 * 100%);
  right: auto;
  bottom: -1px;
  top: auto;
  width: calc(230 / 550 * 100%);
  height: auto;
  max-height: calc(300 / 550 * 100%);
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.rnd-lab__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 1.67vw, 32px);
  min-width: 0;
}

.rnd-lab__copy p {
  margin: 0;
  font-size: clamp(16px, 1.09vw, 21px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .rnd-lab__body {
    flex-direction: column;
    align-items: stretch;
  }

  .rnd-lab__visual {
    width: min(100%, 480px);
    margin-inline: auto;
  }

  .rnd-lab__copy br {
    display: none;
  }
}

@media (max-width: 767px) {
  .rnd-lab__visual {
    width: 100%;
    max-width: 360px;
  }
}

/* R&D LAB features — Figma 9337:5834 */
.rnd-features {
  padding: 0 0 clamp(64px, 5.21vw, 100px);
  background-color: #fff;
}

.rnd-features__inner {
  width: min(100%, 1490px);
  margin-inline: auto;
}

.rnd-features__list {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(20px, 2.08vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rnd-features__item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.04vw, 20px);
  min-width: 0;
  max-width: 400px;
}

.rnd-features__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rnd-features__circle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 354px;
  height: 354px;
  padding: 24px;
  border: 2px solid #f99c1b;
  border-radius: 1000px;
  background-color: #fff;
  box-sizing: border-box;
}

.rnd-features__title {
  margin: 0;
  width: 100%;
  max-width: 250px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #f99c1b;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rnd-features__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2px;
}

.rnd-features__line {
  display: block;
  width: 0;
  height: clamp(64px, 5.21vw, 100px);
  border-left: 2px dashed #f99c1b;
}

.rnd-features__dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: -1px;
  border-radius: 50%;
  background-color: #f99c1b;
  flex-shrink: 0;
}

.rnd-features__box {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(20px, 1.56vw, 30px) clamp(16px, 1.25vw, 24px);
  border-radius: clamp(16px, 1.04vw, 20px);
  background-color: rgba(249, 156, 27, 0.12);
  box-sizing: border-box;
}

.rnd-features__text {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .rnd-features__list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .rnd-features__item {
    flex: 1 1 calc(50% - 16px);
    max-width: 360px;
  }

  .rnd-features__circle {
    width: 280px;
    height: 280px;
  }

  .rnd-features__title {
    font-size: 26px;
    max-width: 200px;
  }

  .rnd-features__text br {
    display: none;
  }
}

@media (max-width: 767px) {
  .rnd-features__list {
    flex-direction: column;
    align-items: center;
  }

  .rnd-features__item {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
  }

  .rnd-features__circle {
    width: 260px;
    height: 260px;
  }

  .rnd-features__title {
    font-size: 22px;
    max-width: 190px;
  }

  .rnd-features__line {
    height: 64px;
  }
}

/* R&D LAB process — Figma 9337:6070 */
.rnd-process {
  padding: clamp(64px, 5.21vw, 100px) 0;
  background-color: #f5f3ef;
}

.rnd-process__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(48px, 4.17vw, 80px);
  width: min(100%, 1490px);
  margin-inline: auto;
}

.rnd-process__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 1.88vw, 36px);
  width: 100%;
}

.rnd-process__title {
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 1.67vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rnd-process__lead {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.rnd-process__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(20px, 2.08vw, 40px);
  border-radius: clamp(16px, 1.25vw, 24px);
  background-color: #fff;
  box-sizing: border-box;
}

.rnd-process__image {
  display: block;
  width: 100%;
  max-width: 1010px;
  height: auto;
  aspect-ratio: 1010 / 599;
  object-fit: contain;
}

@media (max-width: 767px) {
  .rnd-process__lead br {
    display: none;
  }

  .rnd-process__panel {
    padding: 16px;
  }
}

/* 생산시설 gallery — Figma 9337:6933 */
.subnav + .rnd-content .facility-gallery.reveal-section {
  padding-top: clamp(56px, 5.21vw, 100px);
}

.facility-gallery {
  padding: 0 0 clamp(64px, 5.21vw, 100px);
  background-color: #fff;
}

.facility-gallery__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 5.21vw, 100px);
  width: min(100%, 1490px);
  margin-inline: auto;
}

.facility-gallery__title {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 2.08vw, 40px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.facility-gallery__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.25vw, 24px);
  width: 100%;
  max-width: 1290px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facility-gallery__item {
  min-width: 0;
}

.facility-gallery__figure {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 25px;
  margin: 0;
  transition: transform 0.25s ease;
}

.facility-gallery__media {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: calc(304.5 / 304.5 * 100%);
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 20px;
  background-color: #fff;
  box-sizing: border-box;
}

.facility-gallery__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.facility-gallery__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 32px;
  margin: 0;
  padding: 0 20px;
  border-radius: 1000px;
  background-color: #f99c1b;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .facility-gallery__item:hover .facility-gallery__figure {
    transform: translateY(-4px);
  }

  .facility-gallery__item:hover .facility-gallery__image {
    transform: scale(1.04);
  }
}

@media (max-width: 1023px) {
  .facility-gallery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .facility-gallery__media {
    padding-bottom: 75%;
  }
}

@media (max-width: 767px) {
  .facility-gallery__list {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .facility-gallery__figure {
    gap: 16px;
  }

  .facility-gallery__label {
    white-space: normal;
  }
}

/* 생산시설 현황 — Figma 9337:6949 */
.facility-status {
  padding: 0 0 clamp(64px, 5.21vw, 100px);
  background-color: #fff;
}

.facility-status__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(36px, 3.13vw, 60px);
  width: min(100%, 1490px);
  margin-inline: auto;
}

.facility-status__header {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 1.88vw, 36px);
  width: 100%;
  max-width: 1290px;
  margin-inline: auto;
}

.facility-status__title {
  margin: 0;
  text-align: left;
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.facility-status__top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(24px, 2.5vw, 48px);
  width: 100%;
  max-width: 1290px;
  margin-inline: auto;
}

.facility-status__summary {
  flex: 1 1 0;
  max-width: 645px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: facility-summary;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #535353;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.facility-status__summary li {
  position: relative;
  padding-left: 1.75em;
  counter-increment: facility-summary;
}

.facility-status__summary li::before {
  position: absolute;
  left: 0;
  content: counter(facility-summary) ".";
}

.facility-status__table {
  flex: 0 1 634px;
  width: 100%;
  max-width: 634px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #f3f3f3;
  border-radius: 12px;
  table-layout: fixed;
}

.facility-status__table th,
.facility-status__table td {
  padding: 8px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.facility-status__table tr:last-child th,
.facility-status__table tr:last-child td {
  border-bottom: 0;
}

.facility-status__table th {
  width: 42%;
  padding: 8px;
  border-right: 1px solid #f3f3f3;
  background-color: #f99c1b;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.facility-status__table td {
  padding: 8px 20px 8px 25px;
  background-color: #fff;
  font-weight: 400;
  color: #535353;
  text-align: left;
}

.facility-status__photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.25vw, 24px);
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.facility-status__photo {
  overflow: hidden;
  border: 1px solid #dddddd;
  border-radius: 20px;
  background-color: #fff;
  aspect-ratio: 1 / 1;
}

.facility-status__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.facility-status__note {
  margin: 0;
  max-width: 1290px;
  margin-inline: auto;
  width: 100%;
  text-align: left;
  font-size: clamp(13px, 0.78vw, 15px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: rgba(83, 83, 83, 0.6);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .facility-status__top {
    flex-direction: column;
    align-items: stretch;
  }

  .facility-status__summary,
  .facility-status__table {
    max-width: none;
    flex: 1 1 auto;
  }

  .facility-status__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .facility-status__photos {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .facility-status__table th {
    width: 36%;
  }

  .facility-status__table th,
  .facility-status__table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .facility-status__note br {
    display: none;
  }
}
