/* home 영역 (메인 페이지) — 클래스 접두사 hm- */

/* ===== 히어로 캐러셀 ===== */
.hm-hero {
  position: relative; overflow: hidden; margin: 0; min-height: 500px; color: #fff;
  transition: background 600ms ease-out;
}
.hm-hero--cobalt { background: linear-gradient(135deg, #2FA0E8 0%, #0F78C4 55%, #0A5488 100%); }
.hm-hero--ink    { background: linear-gradient(135deg, #1c1e21 0%, #0a1317 100%); }
.hm-hero--teal   { background: linear-gradient(90deg, #0a7fa8 0%, #0a8fa8 45%, #0c9aa0 100%); }
.hm-hero [hidden] { display: none !important; }

/* 우측 비주얼 */
.hero-visual.hm-hero__visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 43%; max-width: 760px;
  display: flex; align-items: center; justify-content: center; padding: 24px 0;
}
.hm-hero__stage {
  width: 100%; max-width: 520px; height: 100%; max-height: 440px;
  display: flex; align-items: center; justify-content: center;
}

/* 슬라이드 1 — 연결·확장되는 빛의 흐름 */
.hm-vc { position: relative; width: 100%; aspect-ratio: 480 / 420; max-height: 100%; margin: auto; overflow: hidden; }
.hm-vc__img {
  position: absolute; top: -8%; bottom: -8%; left: 0; right: 0; width: 100%; height: 116%;
  object-fit: cover; display: block; opacity: 0.5; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 32%, rgba(0,0,0,0.55) 62%, transparent 88%);
          mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 32%, rgba(0,0,0,0.55) 62%, transparent 88%);
}
.hm-vc__svg { position: absolute; inset: 0; }

/* 슬라이드 2 — OWLens 대시보드 + 라이브 오버레이 */
.hm-vd { position: relative; width: 100%; max-width: 820px; margin: auto; padding-top: 46px; padding-bottom: 46px; overflow: hidden; }
.hm-vd__panel {
  position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 48%, rgba(0,0,0,0.10) 100%);
}
.hm-vd__dots {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 35%, transparent 85%);
          mask-image: radial-gradient(120% 100% at 50% 50%, #000 35%, transparent 85%);
  opacity: 0.6;
}
.hm-vd__kpi {
  position: absolute; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap; backdrop-filter: blur(2px);
}
.hm-vd__kpi--top { top: 12px; }
.hm-vd__kpi--bottom { bottom: 12px; gap: 10px; }
.hm-vd__pulse { width: 6px; height: 6px; border-radius: 9999px; background: #24e400; animation: mcgLivePulse 1.6s ease-in-out infinite; }
.hm-vd__shot {
  position: relative; overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 115% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(120% 115% at 50% 50%, #000 58%, transparent 100%);
}
.hm-vd__img { width: 100%; display: block; animation: mcgShotDrift 18s ease-in-out infinite; }
.hm-vd__scan {
  position: absolute; left: 0; right: 0; height: 26%; pointer-events: none;
  background: linear-gradient(180deg, rgba(125,196,255,0) 0%, rgba(125,196,255,0.16) 50%, rgba(125,196,255,0) 100%);
  animation: mcgScanY 5.2s linear infinite;
}
.hm-vd__ring {
  position: absolute; width: 11%; height: 17%; border-radius: 10px; border: 2px solid #0091ff;
  box-shadow: 0 0 18px rgba(0,145,255,0.55); pointer-events: none;
  animation: mcgRing 9s ease-in-out infinite;
}
.hm-vd__live { position: absolute; left: 5%; top: 6%; display: inline-flex; align-items: center; gap: 5px; pointer-events: none; }
.hm-vd__live-txt { font-size: 9.5px; font-weight: 700; color: #24e400; letter-spacing: 0.08em; }
.hm-vd__alert {
  position: absolute; right: 5%; top: 8%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(242,169,24,0.95); color: #0a1317;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap; pointer-events: none;
  animation: mcgChip 9s ease-in-out infinite;
}
.hm-vd__alert-dot { width: 5px; height: 5px; border-radius: 9999px; background: #0a1317; }
.hm-vd__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,120,196,0.10) 0%, rgba(6,26,48,0.24) 100%);
}

/* 슬라이드 문구 — 오른쪽 패딩으로 비주얼 영역 확보 */
.hero-copy.hm-hero__copy {
  position: relative; z-index: 2; box-sizing: border-box;
  padding-top: 72px; padding-bottom: 88px;
  padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px));
  padding-right: calc(min(43vw, 760px) + 24px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 20px; min-height: 500px;
}
.hm-hero__eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0.85; }
.hero-title.hm-hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em; max-width: 100%;
  white-space: pre-line; color: #fff; word-break: keep-all;
}
.hero-sub.hm-hero__sub {
  margin: 0; line-height: 1.6; max-width: 100%;
  color: rgba(255,255,255,0.94); letter-spacing: -0.04em; word-break: keep-all;
  white-space: pre-line;
}
.hm-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.hm-hero__btn {
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: -0.14px;
  border-radius: 100px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 150ms ease-out, transform 100ms ease-out;
  white-space: nowrap; background: #fff; color: #0a1317;
  line-height: 1; padding: 17px 30px;
}
.hm-hero__btn:active { transform: scale(0.98); }

/* 컨트롤 */
.hero-controls.hm-hero__controls {
  position: absolute; bottom: 32px; left: 72px; right: 72px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.hm-hero__spacer { flex: 1; }
.hm-hero__dots { display: flex; align-items: center; gap: 12px; }
.hm-hero__dot {
  height: 4px; width: 16px; border-radius: 100px;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0;
  transition: width 250ms ease-out, background 250ms ease-out;
}
.hm-hero__dot.is-active { width: 32px; background: #fff; }
.hm-hero__count { margin-left: 12px; font-size: 14px; font-variant-numeric: tabular-nums; color: #fff; opacity: 0.85; font-weight: 700; }
.hm-hero__arrows { flex: 1; display: flex; justify-content: flex-end; gap: 4px; }
.hm-hero__arrow {
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  color: #fff; opacity: 0.55;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity 150ms cubic-bezier(0.2,0,0,1), transform 150ms cubic-bezier(0.2,0,0,1);
}
.hm-hero__arrow:hover { opacity: 1; }
.hm-hero__arrow--prev:hover { transform: translateX(-3px); }
.hm-hero__arrow--next:hover { transform: translateX(3px); }

/* ===== 공통 섹션 ===== */
.hm-sec { padding: 68px 0; background: #fff; }
.hm-sec--soft  { background: #eef1f5; }
.hm-sec--plain { background: transparent; }
.section-sub.hm-sub-wide { max-width: 820px; }
/* 화살표 아이콘 — hover 시 오른쪽으로 이동 */
.hm-arrow { display: inline-flex; transform: translateX(0); transition: transform 200ms cubic-bezier(0.2,0,0,1); }

/* ===== 사업영역 카드 ===== */
.services-grid.hm-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-svc {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #dee3e9; box-shadow: none; transform: translateY(0);
  transition: transform 240ms cubic-bezier(0.2,0,0,1), box-shadow 240ms cubic-bezier(0.2,0,0,1), border-color 240ms cubic-bezier(0.2,0,0,1);
  display: flex; flex-direction: column;
  cursor: pointer; word-break: keep-all; position: relative;
}
.hm-svc:hover { border-color: #0F78C4; box-shadow: rgba(15,120,196,0.16) 0px 14px 32px -12px; transform: translateY(-6px); }
.hm-svc__panel {
  position: relative; height: 168px;
  background: linear-gradient(135deg, #f4f7fa 0%, #e9eef4 100%);
  color: #6c7b8b;
  display: flex; align-items: center; justify-content: center;
  transition: background 280ms cubic-bezier(0.2,0,0,1), color 280ms cubic-bezier(0.2,0,0,1);
}
.hm-svc:hover .hm-svc__panel { background: linear-gradient(135deg, #2FA0E8 0%, #0F78C4 60%, #0A5488 100%); color: #fff; }
.hm-svc__chip {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: -0.11px;
  padding: 6px 14px; border-radius: 100px;
  background: #0F78C4; color: #fff; border: 1px solid transparent;
  white-space: nowrap;
  transition: background 240ms ease-out, border-color 240ms ease-out;
}
.hm-svc__chip--build    { background: #0F78C4; }
.hm-svc__chip--operate  { background: #0B7275; }
.hm-svc__chip--consult  { background: #12336b; }
.hm-svc__chip--solution { background: #f2a918; color: #0a1317; }
.hm-svc:hover .hm-svc__chip { background: rgba(255,255,255,0.24); color: #fff; border-color: rgba(255,255,255,0.4); }
.hm-svc__motif { width: 132px; height: 88px; transform: scale(1); transition: transform 280ms cubic-bezier(0.2,0,0,1); }
.hm-svc:hover .hm-svc__motif { transform: scale(1.06); }
.hm-svc__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hm-svc__title {
  margin: 0; font-family: var(--font-display);
  font-size: 23px; font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.3; color: #0a1317; transition: color 200ms ease-out;
}
.hm-svc:hover .hm-svc__title { color: #0F78C4; }
.hm-svc__desc { margin: 0; font-size: 16px; line-height: 1.6; color: #0a1317; letter-spacing: -0.03em; flex: 1; }
.hm-svc__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.13px;
  color: #0F78C4; white-space: nowrap;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.2,0,0,1);
}
.hm-svc:hover .hm-svc__more { opacity: 1; transform: translateX(0); }

/* ===== 핵심역량 카드 ===== */
.capability-grid.hm-cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hm-cap {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 232px; display: flex; flex-direction: column;
  justify-content: flex-start; padding: 26px 26px 28px;
  border: 1px solid #dee3e9;
  transform: translateY(0);
  box-shadow: rgba(10,19,23,0.10) 0px 4px 14px -8px;
  transition: transform 320ms cubic-bezier(0.2,0,0,1), box-shadow 320ms cubic-bezier(0.2,0,0,1);
  word-break: keep-all; cursor: default;
}
.hm-cap:hover { transform: translateY(-12px); box-shadow: rgba(10,19,23,0.30) 0px 26px 52px -18px; }
.hm-cap__photo { position: absolute; inset: 0; overflow: hidden; transform: scale(1); transition: transform 600ms cubic-bezier(0.2,0,0,1); }
.hm-cap:hover .hm-cap__photo { transform: scale(1.06); }
.hm-cap__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-cap__img--ai { object-position: 74% 50%; }
.hm-cap__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,19,23,0.30) 0%, rgba(10,19,23,0.52) 55%, rgba(10,19,23,0.78) 100%);
  opacity: 1; transition: opacity 320ms cubic-bezier(0.2,0,0,1);
}
.hm-cap:hover .hm-cap__scrim { opacity: 0.88; }
.hm-cap__icon {
  position: relative; pointer-events: none;
  width: 50px; height: 50px; margin-bottom: 16px; color: #fff;
  opacity: 0.92; transition: opacity 260ms ease-out;
}
.hm-cap:hover .hm-cap__icon { opacity: 1; }
.hm-cap__title {
  position: relative; margin: 0; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(17px, 1.8vw, 23px); font-weight: 700;
  letter-spacing: -0.005em; line-height: 1.4; white-space: pre-line;
  color: #fff; text-shadow: 0 1px 12px rgba(10,19,23,0.45);
  transform: translateY(0); transition: transform 320ms cubic-bezier(0.2,0,0,1);
}
.hm-cap:hover .hm-cap__title { transform: translateY(-4px); }
.hm-cap__rule {
  position: relative; display: block; margin-top: 16px; height: 2px;
  width: 0; background: #F2A918; pointer-events: none;
  transition: width 380ms cubic-bezier(0.2,0,0,1);
}
.hm-cap:hover .hm-cap__rule { width: 44px; }

/* ===== 레퍼런스 ===== */
.ref-layout.hm-ref { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.hm-ref__intro { display: flex; flex-direction: column; gap: 28px; word-break: keep-all; }
.hm-ref__title {
  margin: 12px 0 0; font-family: var(--font-display);
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; color: #0a1317;
}
.hm-ref__desc { margin: 0; font-size: 17px; line-height: 1.65; letter-spacing: -0.03em; color: #33414f; max-width: 360px; }
.hm-ref__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hm-ref__link {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 20px; cursor: pointer;
  border: 1px solid #ced0d4; background: transparent; color: #0a1317;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em;
  min-width: 190px; white-space: nowrap; text-decoration: none; box-shadow: none;
  transition: background 200ms cubic-bezier(0.2,0,0,1), color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.hm-ref__link:hover { border-color: #0F78C4; background: #0F78C4; color: #fff; box-shadow: rgba(15,120,196,0.28) 0px 8px 20px -8px; }
.hm-ref__link:hover .hm-arrow { transform: translateX(4px); }
.ref-logos.hm-logos { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dee3e9; background: #fff; }
.hm-logos__cell {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 16px; min-height: 96px; text-align: center;
  background: #fff; transition: background 180ms ease-out; cursor: default;
}
/* 원본은 4열 기준 순번으로 테두리를 지정 (반응형 열 수와 무관) */
.hm-logos__cell:not(:nth-child(4n)) { border-right: 1px solid #dee3e9; }
.hm-logos__cell:nth-child(-n+12) { border-bottom: 1px solid #dee3e9; }
.hm-logos__cell:hover { background: #f6f9fc; }
.hm-logos__img { max-width: 100%; max-height: 34px; width: auto; object-fit: contain; display: block; mix-blend-mode: multiply; }
.hm-logos__img--tall { max-height: 50px; }
.hm-logos__more { text-align: right; margin-top: 14px; font-size: 14px; font-weight: 700; color: #55657a; letter-spacing: 0.02em; }
.hm-logos__more a { color: inherit; text-decoration: none; transition: color 160ms ease-out; }
.hm-logos__more a:hover, .hm-logos__more a:focus-visible { color: #0F78C4; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 회사소식 ===== */
.hm-news { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.hm-news__row {
  padding: 22px 12px 22px 4px;
  border-top: 1px solid #dee3e9;
  display: flex; align-items: center; gap: 20px; cursor: pointer;
  background: transparent; transition: background 180ms ease-out;
  word-break: keep-all;
}
.hm-news > li:first-child > .hm-news__row { border-top-color: #0a1317; }
.hm-news > li:last-child > .hm-news__row { border-bottom: 1px solid #dee3e9; }
.hm-news__row:hover { background: #f6f9fc; }
.hm-news__tag {
  flex-shrink: 0; min-width: 64px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: -0.12px;
  padding: 5px 10px; border-radius: 100px;
  color: #0F78C4; background: rgba(15,120,196,0.08);
}
.hm-news__tag--press  { color: #0e8f92; background: rgba(14,143,146,0.10); }
.hm-news__tag--notice { color: #41505e; background: #f1f4f7; }
.hm-news__title {
  flex: 1; font-size: 17px; font-weight: 500; letter-spacing: -0.03em;
  line-height: 1.5; color: #0a1317; transition: color 180ms ease-out;
}
.hm-news__row:hover .hm-news__title { color: #0F78C4; }
.hm-news__date { flex-shrink: 0; font-size: 14.5px; color: #55657a; font-variant-numeric: tabular-nums; }
.hm-news__foot { display: flex; justify-content: center; margin-top: 40px; }
/* 모바일: 윗줄 [구분 태그 … 날짜], 아랫줄 제목(화면 폭 전체) — 회사소식 목록 화면과 같은 패턴 */
@media (max-width: 720px) {
  .hm-news__row { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tag date" "title title";
                  align-items: center; gap: 10px 12px; padding: 18px 4px 20px; }
  .hm-news__tag { grid-area: tag; justify-self: start; min-width: 0; }
  .hm-news__date { grid-area: date; justify-self: end; }
  .hm-news__title { grid-area: title; line-height: 1.55; }
}
.hm-news__all {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 34px; border-radius: 100px; cursor: pointer;
  border: 1px solid #ced0d4; background: transparent; color: #0a1317;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; box-shadow: none;
  transition: background 200ms cubic-bezier(0.2,0,0,1), color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.hm-news__all:hover { border-color: #0F78C4; background: #0F78C4; color: #fff; box-shadow: rgba(15,120,196,0.28) 0px 8px 20px -8px; }
.hm-news__all:hover .hm-arrow { transform: translateX(4px); }

/* ===== 문의하기 CTA ===== */
.hm-cta { background: #0F78C4; color: #fff; padding: 62px 0 66px; position: relative; overflow: hidden; }
.hm-cta__photo { position: absolute; inset: 0; opacity: 0.16; }
.hm-cta__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,84,136,0.55) 0%, rgba(15,120,196,0.35) 50%, rgba(10,84,136,0.62) 100%);
}
.hm-cta__art { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; }
.hm-cta__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(135deg, transparent 45%, black);
          mask-image: linear-gradient(135deg, transparent 45%, black);
}
.container.hm-cta__inner {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px; word-break: keep-all;
}
.hm-cta__title {
  margin: 0; font-family: var(--font-display); font-size: 40px;
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.3;
}
.hm-cta__desc { margin: 0; font-size: 18px; color: rgba(255,255,255,0.94); letter-spacing: -0.03em; }
.hm-cta__btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
/* 원본 <button> 과 같은 모양 (line-height: normal) */
.hm-cta__btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 17px 26px; min-width: 250px; cursor: pointer; border-radius: 10px;
  font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: normal;
  border: 1px solid #fff; background: #fff; color: #0a1317;
  transition: background 200ms cubic-bezier(0.2,0,0,1), color 200ms ease-out, border-color 200ms ease-out;
}
.hm-cta__btn:hover { background: #0a1317; color: #fff; border-color: #0a1317; }
.hm-cta__btn:hover .hm-arrow { transform: translateX(4px); }
