/* ==========================================================================
   Business > 금형 (Figma 1:7000, frame named "라이팅") — page body only
   Hero/stage: sp-common.css + sp-hero.js. Products/details rendered from
   products_api.php by the inline script in business/mold.html.
   ========================================================================== */
.mold-page {
  --mold-navy: #002165;
  --mold-wrap: min(1520px, 100% - 2 * clamp(16px, 10.417vw, 200px));
  --mold-wrap-wide: min(1600px, 100% - 2 * clamp(16px, 8.333vw, 160px));
}

/* style.css `section:not(.hero)… > *`(0,3,1: width 100% + max-width 1440 + 40px gutter) squeezes
   every section child to 1360px. Neutralize it here; each container sets its own width below. */
.sp-page.mold-page section:not(.hero):not(.hero-slider-container):not(.c-hero) > * {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
/* style.css `section { padding: 100px 0 }` — section spacing comes from the class rules below */
:where(.mold-page) section { padding: 0; }
.sp-page.mold-page section.mold-figures:not(.hero) > .mold-figures-inner { width: var(--mold-wrap-wide); }
.sp-page.mold-page section:not(.hero) > .mold-wrap { width: var(--mold-wrap); }
.sp-page.mold-page section:not(.hero) > .mold-wrap--wide { width: var(--mold-wrap-wide); }
.sp-page.mold-page section.mold-media:not(.hero) > .mold-video { width: min(1000px, 100%); }
.sp-page.mold-page section.mold-contact:not(.hero) > .mold-contact-cards { width: min(1440px, 100%); }
/* sp-common.css `.sp-page ol, .sp-page ul { margin: 0 }`(0,1,1) wipes the grid top margins */
.mold-page .mold-steps,
.mold-page .mold-macro { margin-top: clamp(36px, 3.125vw, 60px); }

/* ---------- Shared section head ---------- */
.mold-wrap { width: var(--mold-wrap); margin-inline: auto; }
.mold-wrap--wide { width: var(--mold-wrap-wide); }
.mold-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 738px;
}
.mold-head--center { align-items: center; text-align: center; max-width: none; }
.mold-page .mold-eyebrow { font-size: clamp(14px, 1.042vw, 20px); }
.mold-page .mold-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: clamp(30px, 2.917vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
  word-break: keep-all;
}
.mold-page .mold-desc {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}
.mold-page .mold-desc:empty { display: none; }

/* ---------- Stage headline (1:7076) ---------- */
.mold-page .mold-stage-headline {
  font-weight: 600;
  font-size: clamp(26px, 2.917vw, 56px);
}
.mold-stage-headline > span { display: block; }
.mold-page .mold-stage-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  font-size: clamp(14px, 1.042vw, 20px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.mold-page .mold-stage-headline small {
  margin-top: clamp(20px, 2.083vw, 40px);
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 24px);
}

/* ---------- Key Figures (1:7083) ---------- */
.mold-figures {
  position: relative;
  color: #fff;
  background: #03091a url('../../img/business/mold/hero.jpg') center / cover no-repeat;
}
.mold-figures::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.mold-figures-inner {
  position: relative;
  width: var(--mold-wrap-wide);
  min-height: clamp(560px, 48.958vw, 940px);
  margin-inline: auto;
  padding-block: clamp(72px, 9.74vw, 187px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(36px, 2.604vw, 50px);
}
.mold-figures .mold-title,
.mold-figures .mold-desc { color: #fff; }
.mold-figures-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.354vw, 26px);
  list-style: none;
}
.mold-figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(260px, 18.594vw, 357px);
  padding: clamp(24px, 2.083vw, 40px);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}
.mold-figure-label {
  font-family: var(--sp-font-en);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--mold-navy);
}
.mold-figure-body { display: flex; flex-direction: column; gap: 16px; }
.mold-figure-icon { width: clamp(60px, 4.167vw, 80px); height: auto; }
.mold-figure-text { display: flex; flex-direction: column; gap: 10px; }
.mold-figure-num {
  font-weight: 600;
  font-size: clamp(28px, 1.771vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
}
.mold-figure-desc {
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #666;
  word-break: keep-all;
}

/* ---------- Section tabs (1:7121) ---------- */
.mold-tabs {
  border-bottom: 1px solid #ddd;
  background: #fff;
}
.mold-tabs-inner {
  display: flex;
  gap: 20px;
  width: var(--mold-wrap-wide);
  margin-inline: auto;
  padding-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mold-tabs-inner::-webkit-scrollbar { display: none; }
.mold-tab {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: clamp(16px, 1.042vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #aaa;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.mold-tab:hover { color: var(--mold-navy); }
.mold-tab.is-active {
  border-bottom-color: var(--mold-navy);
  font-weight: 700;
  color: var(--mold-navy);
}

/* ---------- Products (1:7122) ---------- */
.mold-products { padding-top: clamp(64px, 6.25vw, 120px); }
.mold-products .mold-head { scroll-margin-top: 120px; }
.mold-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 760px));
  justify-content: space-between;
  column-gap: clamp(24px, 4.167vw, 80px);
  row-gap: clamp(32px, 3.125vw, 60px);
  margin-top: clamp(36px, 3.125vw, 60px);
}
.mold-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(20px, 2.083vw, 40px) clamp(20px, 2.083vw, 40px) clamp(20px, 1.667vw, 32px);
  border: 1px solid transparent;
  border-radius: 16px;
  transition: border-color 0.2s;
}
.mold-card-media {
  aspect-ratio: 680 / 400;
  border-radius: 8px;
  overflow: hidden;
  background: #aeaeae;
}
.mold-card-media img { width: 100%; height: 100%; object-fit: cover; }
.mold-card-body { display: flex; flex-direction: column; gap: 30px; flex: 1; justify-content: space-between; }
.mold-card-text { display: flex; flex-direction: column; gap: 14px; padding-inline: 10px; }
.mold-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 6px;
  font-weight: 600;
  font-size: clamp(24px, 1.875vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #111;
}
.mold-card-en {
  font-family: var(--sp-font-en);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #999;
}
.mold-card-text p {
  max-width: 420px;
  font-size: clamp(16px, 0.9375vw, 18px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #666;
  word-break: keep-all;
}
.mold-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ebedf2;
  font-weight: 500;
  font-size: clamp(17px, 1.146vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.mold-card:hover,
.mold-card:focus-within,
.mold-card.is-highlight { border-color: var(--mold-navy); }
.mold-card:hover .mold-card-btn,
.mold-card:focus-within .mold-card-btn,
.mold-card.is-highlight .mold-card-btn { background: var(--mold-navy); color: #fff; }
.mold-empty { padding: 40px 0; color: #666; }

/* ---------- Product details (1:7199) ---------- */
.mold-details {
  width: var(--mold-wrap);
  margin: clamp(64px, 8.333vw, 160px) auto 0;
}
.mold-details:empty { display: none; }
.mold-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 3.125vw, 60px);
  padding-top: clamp(64px, 6.25vw, 120px);
  border-top: 1px solid #ddd;
  scroll-margin-top: 40px;
}
.mold-detail + .mold-detail { margin-top: clamp(64px, 6.25vw, 120px); }
.mold-detail-glow {
  position: absolute;
  left: 96%;
  top: -100px;
  width: 1250px;
  max-width: none;
  height: auto;
  transform: rotate(60.93deg);
  pointer-events: none;
  z-index: 0;
}
.mold-detail-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 600px);
  gap: clamp(32px, 7.292vw, 140px);
  align-items: start;
}
.mold-slider-view {
  position: relative;
  aspect-ratio: 700 / 467;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.mold-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.mold-slide.is-active { opacity: 1; }
.mold-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
}
.mold-slider-nav img { width: 40px; height: 40px; }
.mold-slider-nav.is-prev { left: 20px; }
.mold-slider-nav.is-prev img { transform: scaleX(-1); }
.mold-slider-nav.is-next { right: 20px; }
.mold-slider-nav:hover { background: rgba(0, 0, 0, 0.4); }
.mold-slider-thumbs {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
  max-width: calc(100% - 140px);
  transform: translateX(-50%);
}
.mold-thumb {
  flex: 0 1 120px;
  aspect-ratio: 120 / 80;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: #aeaeae;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.mold-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mold-thumb.is-active,
.mold-thumb:hover { border-color: var(--mold-navy); opacity: 1; }
.mold-detail-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.125vw, 60px);
  padding-top: 14px;
}
.mold-detail-head { display: flex; flex-direction: column; gap: 16px; }
.mold-detail-title {
  font-weight: 600;
  font-size: clamp(30px, 2.292vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: #111;
}
.mold-detail-lead {
  max-width: 420px;
  font-weight: 500;
  font-size: clamp(18px, 1.146vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #333;
  word-break: keep-all;
}
.mold-detail-body { display: flex; flex-direction: column; gap: 20px; }
.mold-detail-body p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #666;
  word-break: keep-all;
}
.mold-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.mold-chips li {
  padding: 4px 12px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: #f5f6f9;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #2c3c5e;
}
.mold-spec { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.mold-spec-title {
  font-weight: 600;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #333;
}
.mold-spec-table { width: 100%; border-collapse: collapse; }
.mold-spec-table tr { border-bottom: 1px solid #fff; }
.mold-spec-table th,
.mold-spec-table td {
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.03em;
  text-align: left;
  vertical-align: middle;
}
.mold-spec-table th {
  width: 29%;
  background: #f8f8f8;
  font-weight: 500;
  color: #444;
}
.mold-spec-table td { border-bottom: 1px solid #f8f8f8; font-weight: 400; color: #666; }

/* ---------- Process (1:7287) ---------- */
.mold-process {
  margin-top: clamp(64px, 6.25vw, 120px);
  padding-block: clamp(64px, 6.25vw, 120px);
  border-top: 1px solid #ddd;
  scroll-margin-top: 0;
}
.mold-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 3.125vw, 60px);
  list-style: none;
}
.mold-step {
  display: flex;
  flex-direction: column;
  padding: 26px 32px 40px 40px;
  border-radius: 20px;
  background: #f8f8f8;
}
.mold-step-no {
  display: block;
  margin-bottom: -10px;
  font-family: var(--sp-font-en);
  font-weight: 600;
  font-size: clamp(56px, 4.167vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(44, 60, 94, 0.04);
  text-align: right;
}
.mold-step-text { display: flex; flex-direction: column; gap: 4px; }
.mold-step h3 {
  font-weight: 600;
  font-size: clamp(20px, 1.354vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: #111;
}
.mold-step p {
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: #666;
  word-break: keep-all;
}

/* ---------- Macro gallery (CMS only) ---------- */
.mold-gallery-sec { padding-bottom: clamp(64px, 6.25vw, 120px); }
.mold-gallery-sec[hidden] { display: none; }
.mold-macro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 3.125vw, 60px);
  list-style: none;
}
.mold-macro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.mold-macro figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.mold-macro strong { font-size: 18px; font-weight: 600; color: #111; }
.mold-macro span { font-size: 15px; color: #666; }

/* ---------- Video (1:7339) ---------- */
.mold-media { padding: 0 16px clamp(64px, 6.25vw, 120px); }
.mold-media[hidden] { display: none; }
.mold-page .mold-video {
  width: min(1000px, 100%);
  aspect-ratio: 1000 / 600;
  margin-inline: auto;
  border-radius: 16px;
  overflow: hidden;
}
.mold-video .yt-lite-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.mold-page .mold-play {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 5.99vw, 115px);
  height: clamp(64px, 5.99vw, 115px);
  margin: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: translate(-50%, -50%);
}
.mold-page .mold-play::after { display: none; }
.mold-play img { width: 86.6%; height: auto; transform: rotate(90deg); }
.mold-page .yt-lite-poster:hover .mold-play,
.mold-page .yt-lite-poster:focus-visible .mold-play {
  background: none;
  transform: translate(-50%, -50%) scale(1.06);
}

/* ---------- Tools (1:7341) ---------- */
.mold-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 3.125vw, 60px);
  padding: clamp(64px, 6.25vw, 120px) 16px;
  background: #f8f8f8;
}
.mold-tool-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
}
.mold-tool-list li {
  display: flex;
  align-items: center;
  height: 50px;
  padding-inline: 30px;
  border: 1px solid #ebedf1;
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #666;
}

/* ---------- Contact (1:7163) ---------- */
.mold-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 9.427vw, 181px);
  min-height: clamp(560px, 44.792vw, 860px);
  padding: clamp(72px, 7.917vw, 152px) 16px clamp(48px, 6.094vw, 117px);
  overflow: hidden;
  color: #fff;
}
.mold-contact-bg { position: absolute; inset: 0; }
.mold-contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.mold-contact-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.mold-contact-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.mold-page .mold-contact-title {
  font-family: var(--sp-font-en);
  font-weight: 500;
  font-size: clamp(40px, 3.646vw, 70px);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #fff;
}
.mold-page .mold-contact-sub {
  color: #fff;
  font-weight: 500;
  font-size: clamp(16px, 1.146vw, 22px);
  line-height: 1.6;
  letter-spacing: -0.03em;
}
.mold-contact-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.083vw, 40px);
  width: min(1440px, 100%);
  margin-top: auto;
}
.mold-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 24px 40px 40px;
  border-radius: 10px;
  background: #ebedf1;
  color: var(--mold-navy);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mold-contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); color: var(--mold-navy); }
.mold-contact-card--primary,
.mold-contact-card--primary:hover { background: var(--mold-navy); color: #fff; }
.mold-contact-text { display: flex; flex-direction: column; min-width: 0; }
.mold-contact-ico {
  display: flex;
  align-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}
.mold-contact-card strong {
  font-weight: 600;
  font-size: clamp(22px, 1.458vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.mold-contact-desc {
  margin-top: 6px;
  font-size: clamp(14px, 0.833vw, 16px);
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.7);
  word-break: keep-all;
}
.mold-contact-card--primary .mold-contact-desc { color: rgba(255, 255, 255, 0.8); }
.mold-contact-chev { flex-shrink: 0; width: clamp(40px, 3.125vw, 60px); height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .mold-detail-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mold-detail-glow { display: none; }
}
@media (max-width: 1024px) {
  .mold-figures-list { grid-template-columns: minmax(0, 1fr); }
  .mold-figure { min-height: 0; }
  .mold-figure-body { flex-direction: row; align-items: center; gap: 24px; }
  .mold-tabs-inner { gap: 4px; }
  .mold-tab { flex: 0 0 auto; padding-inline: 14px; }
  .mold-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mold-detail-top { grid-template-columns: minmax(0, 1fr); }
  .mold-detail-copy { padding-top: 0; }
  .mold-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mold-macro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mold-contact-cards { grid-template-columns: minmax(0, 1fr); }
  .sp-page.mold-page section.mold-contact:not(.hero) > .mold-contact-cards { width: min(720px, 100%); }
}
@media (max-width: 768px) {
  .mold-cards { grid-template-columns: minmax(0, 1fr); }
  .mold-card { padding: 16px 16px 20px; border-color: #eee; }
  .mold-spec-table th { width: 38%; }
  .mold-spec-table th,
  .mold-spec-table td { padding: 14px 16px; }
  .mold-slider-thumbs { bottom: 12px; }
  .mold-thumb { flex-basis: 72px; }
}
@media (max-width: 600px) {
  .mold-page .mold-stage-headline small br { display: none; }
  .mold-figure-body { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mold-steps { grid-template-columns: minmax(0, 1fr); }
  .mold-step { padding: 20px 20px 28px 24px; }
  .mold-macro { grid-template-columns: minmax(0, 1fr); }
  .mold-slider-nav { width: 40px; height: 40px; }
  .mold-slider-nav img { width: 32px; height: 32px; }
  .mold-slider-nav.is-prev { left: 10px; }
  .mold-slider-nav.is-next { right: 10px; }
  .mold-slider-thumbs { max-width: calc(100% - 110px); }
  .mold-tool-list { gap: 10px; }
  .mold-tool-list li { height: 44px; padding-inline: 18px; font-size: 15px; }
  .mold-contact-card { padding: 24px 16px 28px 24px; }
  .mold-contact-ico { width: 56px; height: 56px; }
  .mold-contact-ico img { transform: scale(0.75); transform-origin: left center; }
}
@media (prefers-reduced-motion: reduce) {
  .mold-slide,
  .mold-contact-card { transition: none; }
}
