/* elastic-lab (05_elastic lab, Figma node 11:5918) — 원본 시안 통이미지(flat).
   이미지는 placeholder 표기, 그래프는 실 HTML 막대 차트로 구현, 색상은 시안 픽셀 추출. */

.el-page { background: #fff; color: #1a1a1a; }
/* 공통 이미지 자리표시 */
.bg-image-placeholder { position: relative; display: flex; align-items: center; justify-content: center; background: #ececec; background-image: linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%), linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%); background-size: 26px 26px; background-position: 0 0, 13px 13px;  }
.bg-image-placeholder__label { z-index: 1; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.9); color: #6a7682; font-family: var(--font-latin, "Poppins", sans-serif); font-size: 13px; font-weight: 500; text-align: center; }
.el-h2 { margin: 0 0 clamp(40px, 4.5vw, 40px); font-size: clamp(24px, 2.4vw, 38px); text-align: center; font-weight: 700; line-height: 1.25; letter-spacing: -0.5px; }
.el-h2--center { text-align: center; }
.el-eyebrow { margin: 0 0 14px; color: var(--color-primary, #f26521); font-family: var(--font-latin, "Poppins", sans-serif); font-size: 16px; font-weight: 600; }
/* ===== HERO ===== */
.el-hero { position: relative; display: flex; align-items: center; min-height: 100vh; padding: 0 clamp(24px, 6.25vw, 120px); overflow: hidden; }
.el-hero__bg { position: absolute; inset: 0; background-color: #efe9e3; }
.el-hero__copy { position: relative; z-index: 2; }
.el-hero__sub { margin: 0 0 6px; color: #fff; font-family: var(--font-latin, "Poppins", sans-serif); font-size: clamp(16px, 1.5vw, 22px); }
.el-hero__title { margin: 0; color: #fff; font-family: var(--font-latin, "Poppins", sans-serif); font-size: clamp(40px, 5vw, 76px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.02; }
.el-hero__desc { margin: 22px 0 0; color: #fff; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; word-break: keep-all; }
/* ===== PRODUCT INTRO (배경 이미지 full-bleed + 글자 패널 오버레이) ===== */
.el-intro { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 100vh; padding: clamp(56px, 7vw, 110px) clamp(24px, 3.2vw, 64px); overflow: hidden; }
.el-intro__photo { position: absolute; inset: 0; background-color: #e9eef2; }
/* 패널 자체는 투명(배경 이미지 위 텍스트), COMPOSITION만 흰 박스.
   데스크톱: 패널 폭을 좁혀 글자 블록을 우측에 더 붙임 */
.el-intro__panel { position: relative; z-index: 3; width: 40%; display: flex; flex-direction: column; justify-content: center; padding: 0; background: transparent; }
.el-intro__badge { width: 72px; height: 72px; margin-bottom: 28px; }
.el-intro__badge img { width: 100%; height: 100%; object-fit: contain; }
.el-intro__title { margin: 0; font-family: var(--font-latin, "Poppins", sans-serif); font-size: clamp(26px, 2.4vw, 38px); font-weight: 700; }
.el-intro__title sup { font-size: 13px; vertical-align: super; }
.el-intro__lead { margin: 22px 0 0; color: #666; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; }
/* 흰 박스는 글자 크기에 맞게 축소(fit-content), 줄바꿈은 그대로 유지 */
.el-intro__composition { align-self: flex-start; width: fit-content; max-width: 100%; margin-top: clamp(28px, 3vw, 44px); padding: 22px 26px; background: #fff; border-radius: 6px; box-shadow: 0 6px 22px rgba(0,0,0,0.06); }
.el-intro__comp-title { margin: 0 0 8px; font-family: var(--font-latin, "Poppins", sans-serif); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: #999; }
.el-intro__comp-list { margin: 0; font-size: 13px; line-height: 1.7; color: #777; }
/* ===== METRICS (막대 차트 — 헤딩 좌측정렬, 마우스오버 시 확대) ===== */
.el-metrics { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 8vw, 140px) clamp(24px, 5vw, 60px); text-align: left; }
.el-metrics .el-h2 { text-align: left; }
.el-metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 28px); align-items: end; margin-top: clamp(40px, 4.5vw, 72px); }
.el-metric { position: relative; display: flex; flex-direction: column; align-items: center; padding: 48px 10px 26px; border-radius: 18px; background: transparent; box-shadow: 0 0 0 rgba(0,0,0,0); transform: translateY(0); transition: background .26s ease, box-shadow .26s ease, transform .26s ease; }
.el-metric--featured { background: #fff; box-shadow: 0 16px 46px rgba(0,0,0,0.1); transform: translateY(-6px); z-index: 2; }
.el-bars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 1vw, 16px); height: 210px; }
.el-bar { width: clamp(28px, 2.5vw, 42px); border-radius: 5px 5px 0 0; height: var(--h); }
.el-bar--before { background: #cfd8df; }
.el-bar--after { background: var(--color-primary, #f26521); }
.el-metric__label { margin: 20px 0 0; text-align: center; font-family: var(--font-latin, "Poppins", sans-serif); font-size: clamp(13px, 1vw, 15px); font-weight: 600; color: #333; line-height: 1.4; transition: color .26s ease; }
.el-metric__label em { font-style: normal; font-weight: 400; color: #999; font-size: 12px; }
.el-metric--featured .el-metric__label { color: var(--color-primary, #f26521); }
.el-metric--featured .el-metric__label em { color: var(--color-primary, #f26521); opacity: 0.8; }
/* 배지(원형 % + 화살표) — 기본은 작은 흰 원, hover 시 큰 오렌지 원 */
.el-badge { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1.5px solid #f6cbb4; display: grid; place-items: center; isolation: isolate; transition: width .26s ease, height .26s ease, top .26s ease, background .26s ease, border-color .26s ease, box-shadow .26s ease; }
.el-badge::before { content: ""; position: absolute; inset: 2px; z-index: 1; border-radius: 50%; background: inherit; pointer-events: none; }
.el-badge__num { position: relative; z-index: 2; font-family: var(--font-latin, "Poppins", sans-serif); font-size: 15px; font-weight: 700; color: #2a2a2a; transition: color .26s ease, font-size .26s ease; }
.el-badge__num small { font-size: 12px; font-weight: 600; }
.el-badge__arrow { position: absolute; top: 50%; left: 50%; width: 92px; height: 1.5px; background: #f6cbb4; transform: translate(-50%, -50%) rotate(-30deg); z-index: 0; transition: width .26s ease, background .26s ease; }
/* 선 끝 화살표 머리(우상단) */
.el-badge__arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid #f6cbb4; border-right: 1.5px solid #f6cbb4; transform: translateY(-50%) rotate(45deg); transform-origin: center; }
.el-metric--featured .el-badge__arrow::after { width: 9px; height: 9px; border-color: var(--color-primary, #f26521); border-width: 2px; }
.el-metric--featured .el-badge { width: 104px; height: 104px; top: 6px; background: var(--color-primary, #f26521); border-color: var(--color-primary, #f26521); box-shadow: 0 8px 26px rgba(242,101,33,0.32); }
.el-metric--featured .el-badge__num { font-size: 26px; color: #fff; }
.el-metric--featured .el-badge__num small { font-size: 16px; }
.el-metric--featured .el-badge__arrow { width: 150px; height: 2px; background: var(--color-primary, #f26521); opacity: 0.55; }
/* ===== SKIN DENSITY ===== */
.el-density { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; }
.el-density__left { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 6vw, 80px) clamp(28px, 5vw, 80px); background: #f7f8f9; }
/* 시안: 측정 이미지 2개를 세로로 배치 */
.el-density__shots { display: grid; grid-template-columns: 1fr; gap: 16px; text-align: center; margin: 0 auto; }
.el-density__shots > .bg-image-placeholder { display: none; }
.el-shot { aspect-ratio: 1/1; width: 300px; height: 300px; border-radius: 6px; }
.el-density__photo { background-color: #f1e6dd; min-height: 560px; }
/* ===== BEFORE & AFTER ===== */
.el-ba { background: #fafafa; padding: clamp(72px, 8vw, 130px) clamp(24px, 5vw, 60px) clamp(90px, 9vw, 150px); }
.el-ba__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.5vw, 24px); }
.el-ba__grid > .bg-image-placeholder { display: none; }
.el-ba__item { aspect-ratio: 1/1; border-radius: 4px; }
/* ===== Responsive ===== */
@media (max-width:900px) {
  .el-hero { min-height: 440px; }
  /* intro: 모바일 전환/모바일에서도 패널을 우측 정렬로 유지(배경 위 오버레이) */
  .el-intro { justify-content: flex-end; min-height: 0; padding: clamp(44px, 9vw, 80px) clamp(20px, 5vw, 28px); }
  .el-intro__panel { width: min(88%, 460px); }
  .el-metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .el-metric { padding-top: 44px; }
  .el-density { grid-template-columns: 1fr; }
  .el-density__photo { min-height: 320px; }
  .el-ba__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:480px) {
  .el-bars { height: 170px; }
  .el-badge { width: 54px; height: 54px; }
  .el-badge--big { width: 88px; height: 88px; }
}
