@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Wafer Carrier & Tray: page-local layout, shared site components retained. */
.wafer-page {
  --wafer-blue: #005db6;
  --wafer-navy: #121f65;
  --wafer-gutter: var(--page-gutter, clamp(32px, 4.17vw, 80px));
  --wafer-width: min(1400px, calc(100% - var(--wafer-gutter) * 2));
}
.biz-wafer,
.wafer-page .subpage-intro { font-family: "Inter", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }

.wafer-page .subpage-intro__shell {
  width: var(--wafer-width);
  max-width: 1400px;
  padding: 80px 0 0;
  gap: 40px;
}

.wafer-page .subpage-intro__top { gap: 56px; }
.wafer-page .subpage-intro__title { font-size: 56px; }
.wafer-page .subpage-intro__heading { gap: 36px; }
.wafer-page .subpage-intro__description {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.3;
  word-break: keep-all;
}
.wafer-page .subpage-intro__tabs { flex-wrap: wrap; }
.wafer-page .subpage-intro__tab { min-height: 62px; padding-inline: 48px; }
.wafer-page .subpage-intro__tab.is-unavailable {
  color: #111;
  border-color: #d9d9d9;
  cursor: default;
}
.wafer-page .subpage-intro__dropdown-link.is-unavailable {
  color: #666;
  cursor: default;
}

.biz-wafer {
  width: var(--wafer-width);
  max-width: 1400px;
  margin: 40px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  word-break: keep-all;
}

.biz-wafer__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.biz-wafer__tabs li { min-width: 0; }
.biz-wafer__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px 12px 0;
  font-size: 18px;
  line-height: 22px;
  color: #666;
}
.biz-wafer__tab.is-active { color: var(--wafer-blue); font-weight: 600; }
.biz-wafer__tab[aria-disabled] { cursor: default; }
.biz-wafer__tab[href] { transition: color 200ms ease; }
.biz-wafer__tab[href]:hover { color: var(--wafer-blue); }

html[lang="en"] .wafer-page .biz-wafer__tabs > li {
  width: auto;
  max-width: 100%;
}
html[lang="en"] .wafer-page .biz-wafer__tab {
  justify-content: flex-start;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.biz-wafer__section { display: flex; flex-direction: column; gap: 34px; }
.biz-wafer__heading { display: flex; flex-direction: column; gap: 34px; }
.biz-wafer__accent { width: 46px; height: 5px; background: var(--wafer-blue); }
.biz-wafer__heading h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.biz-wafer__heading h2 span { display: inline-block; }

.biz-wafer__features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.biz-wafer__features li {
  min-width: 0;
  padding: 36px 30px;
  border-radius: 20px;
  background: #f5f7f9;
  font-size: 18px;
  line-height: 1.33;
  text-align: center;
}

.biz-wafer__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.biz-wafer__product {
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #d9d9d9;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.biz-wafer__product h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  margin: 0;
  padding: 14px;
  background: var(--wafer-navy);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.biz-wafer__product-body { padding: 24px 20px; }
.biz-wafer__product-media { position: relative; width: 100%; aspect-ratio: 650 / 215; }
.biz-wafer__image-slot { position: absolute; overflow: hidden; }
.biz-wafer__image-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.biz-wafer__image-slot--chip-1 { left: 12.7692%; top: 0; width: 33.2308%; height: 89.7674%; }
.biz-wafer__image-slot--chip-1 img { position: absolute; top: -5.56%; left: -0.09%; width: 99.9%; height: 111.8%; }
.biz-wafer__image-slot--chip-2 { left: 52.9231%; top: 13.0233%; width: 34.9231%; height: 70.2326%; }
.biz-wafer__image-slot--wafer-1 { left: 5.0769%; top: 12.093%; width: 29.3846%; height: 76.2791%; }
.biz-wafer__image-slot--wafer-2 { left: 38.9231%; top: 11.1628%; width: 24.9231%; height: 78.1395%; }
.biz-wafer__image-slot--wafer-3 { left: 68.3077%; top: 12.093%; width: 26.6154%; height: 76.2791%; }
.biz-wafer__image-slot--wafer-3 img { position: absolute; top: 5.92%; left: 0.24%; height: 100.2%; }

.biz-wafer__diagram { position: relative; margin: 0; }
.biz-wafer__diagram-link { display: block; border-radius: 20px; overflow: hidden; background: #f5f7f9; }
.biz-wafer__diagram-link img { display: block; width: 100%; height: auto; }
.biz-wafer__diagram-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   [최종] 상단 타이틀 바 + 가로 꽉 찬 영상 카드 스타일
   ---------------------------------------------------------- */
.biz-wafer__video-card {
  width: 100%;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  overflow: hidden; /* 모서리 둥글게 할 때 영상이 밖으로 튀어나가지 않도록 제어 */
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.biz-wafer__video-header {
  margin: 0;
  padding: 20px 24px;
  background: var(--wafer-navy, #121f65);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
}

.biz-wafer__video-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  background: #000;
  display: block;
}

.biz-wafer__video-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.wafer-page a:focus-visible,
.wafer-page button:focus-visible { outline: 3px solid var(--wafer-blue); outline-offset: 4px; }
.biz-wafer__diagram-link { transition: box-shadow 200ms ease; }
.biz-wafer__diagram-link:hover { box-shadow: 0 8px 28px rgb(18 31 101 / 10%); }

.wafer-page .site-footer__inner { width: var(--wafer-width); max-width: 1400px; padding-inline: 0; }
.wafer-page .site-footer__info { flex: 0 1 auto; }

/* 반응형 미디어쿼리 */
@media (max-width: 1280px) {
  .wafer-page .subpage-intro__tab { padding-inline: 28px; }
  .biz-wafer__features { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .biz-wafer__features li { padding: 28px 20px; }
  .biz-wafer__desktop-break { display: none; }
  .biz-wafer__product h3 { font-size: 17px; }
}
@media (min-width: 1001px) {
  .biz-wafer__tab { white-space: nowrap; }
  .biz-wafer__tabs li:nth-child(1) { width: 200px; }
  .biz-wafer__tabs li:nth-child(2) { width: 208px; }
  .biz-wafer__tabs li:nth-child(3) { width: 412px; }
  .biz-wafer__tabs li:nth-child(4) { width: 232px; }
}
@media (max-width: 1000px) {
  .wafer-page .subpage-intro__shell { padding-top: 64px; }
  .wafer-page .subpage-intro__title { font-size: 44px; }
  .biz-wafer__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .biz-wafer__tab { justify-content: flex-start; padding-right: 0; font-size: 16px; }
  .biz-wafer__products { grid-template-columns: 1fr; }
  .biz-wafer__product h3 { font-size: 20px; }
  .biz-wafer__product-media { max-width: 650px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .wafer-page .subpage-intro__shell { padding-top: 48px; gap: 32px; }
  .wafer-page .subpage-intro__top { gap: 36px; }
  .wafer-page .subpage-intro__heading { gap: 24px; }
  .wafer-page .subpage-intro__title { font-size: 36px; }
  .wafer-page .subpage-intro__description { font-size: 16px; line-height: 1.6; }
  .biz-wafer { margin-top: 24px; margin-bottom: 56px; gap: 32px; }
  .biz-wafer__heading { gap: 24px; }
  .biz-wafer__heading h2 { font-size: 28px; }
  .biz-wafer__section { gap: 24px; }
  .biz-wafer__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .biz-wafer__features li { font-size: 16px; padding: 24px 16px; line-height: 1.5; }
  .biz-wafer__features li:last-child { grid-column: 1 / -1; }
  .biz-wafer__diagram-caption {
    position: static;
    width: auto;
    height: auto;
    margin-top: 12px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
  }
  .biz-wafer__video-header {
    padding: 16px;
    font-size: 17px;
  }
}
@media (max-width: 480px) {
  .biz-wafer__tabs { gap: 8px 12px; }
  .biz-wafer__tab { font-size: 14px; line-height: 1.5; }
  .biz-wafer__heading h2 { font-size: 24px; }
  .biz-wafer__features { grid-template-columns: 1fr; }
  .biz-wafer__features li:last-child { grid-column: auto; }
  .biz-wafer__features li { padding: 24px; }
  .biz-wafer__product h3 { padding: 14px 16px; font-size: 16px; line-height: 1.5; }
  .biz-wafer__product-body { padding: 24px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wafer-page .reveal-item,
  .wafer-page .subpage-intro__tab,
  .biz-wafer__tab,
  .biz-wafer__diagram-link { transition: none !important; }
}