/* =====================================================================
 * Home (main page)
 * 블랙 & 화이트 + 포인트 컬러 #008be4
 * 모든 규칙은 .hm 안에서만 적용됩니다.
 * ===================================================================== */

.hm {
  --hm-ink: #111111;
  --hm-muted: #6e6e73;
  --hm-dark: #111111;
  --hm-card: #1c1c1c;
  --hm-card-hover: #232323;
  --hm-accent: #008be4;
  --hm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  background: #fff;
  color: var(--hm-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: clip;
}

.hm *,
.hm *::before,
.hm *::after {
  box-sizing: border-box;
}

.hm h1,
.hm h2,
.hm h3,
.hm p {
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.hm a {
  color: inherit;
  text-decoration: none;
}

.hm img {
  display: block;
  max-width: 100%;
}

/* 콘텐츠 폭: 최대 1560px */
.hm .hm-container {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- 공통 ---------- */
.hm-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-accent);
}

.hm-eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  background: var(--hm-accent);
}

.hm-eyebrow--light {
  color: rgba(255, 255, 255, 0.8);
}

.hm-title {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--hm-ink);
}

.hm-head {
  margin-bottom: 48px;
}

.hm-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--hm-ease);
}

.hm-btn:active {
  transform: scale(0.98);
}

.hm .hm-btn--light {
  background: #fff;
  color: var(--hm-ink);
}

.hm .hm-btn--light:hover,
.hm .hm-btn--light:focus-visible {
  background: var(--hm-accent);
  color: #fff;
}

.hm .hm-btn--outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hm .hm-btn--outline-light:hover,
.hm .hm-btn--outline-light:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hm .hm-btn--dark {
  background: #232323;
  color: #fff;
}

.hm .hm-btn--dark:hover,
.hm .hm-btn--dark:focus-visible {
  background: var(--hm-accent);
}

.hm a:focus-visible,
.hm button:focus-visible {
  outline: 2px solid var(--hm-accent);
  outline-offset: 3px;
}

/* ---------- ① Hero ---------- */
.hm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 80px;
  background: var(--hm-dark);
  color: #fff;
  overflow: hidden;
}

.hm-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hm-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 10, 12, 0.5) 0%, rgba(10, 10, 12, 0) 40%);
}

.hm-hero__inner {
  position: relative;
  z-index: 1;
}

.hm-hero__title {
  font-size: 88px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
}

.hm-hero__lead {
  max-width: 640px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hm-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.hm-rise {
  animation: hm-rise 0.9s var(--hm-ease) both;
}

.hm-hero__inner .hm-rise:nth-child(2) { animation-delay: 0.08s; }
.hm-hero__inner .hm-rise:nth-child(3) { animation-delay: 0.16s; }
.hm-hero__inner .hm-rise:nth-child(4) { animation-delay: 0.24s; }

@keyframes hm-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 섹션 ---------- */
.hm-section {
  padding: 120px 0;
  scroll-margin-top: 24px;
}

/* ---------- ② Our Software (어두운 섹션) ---------- */
.hm-section--dark {
  background: var(--hm-dark);
  color: rgba(255, 255, 255, 0.8);
}

.hm-section--dark .hm-title {
  color: #fff;
}

.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: #232323;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s;
}

.hm-link:hover,
.hm-link:focus-visible {
  background: var(--hm-accent);
}

.hm-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 40px;
  padding: 4px;
  border-radius: 999px;
  background: var(--hm-card);
}

.hm-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.hm-tab span {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.hm-tab:hover {
  color: #fff;
}

.hm-tab.is-active {
  background: #333;
  color: #fff;
}

.hm-tab.is-active span {
  background: var(--hm-accent);
  color: #fff;
}

.hm-panel.is-active {
  animation: hm-fade 0.45s var(--hm-ease) both;
}

@keyframes hm-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hm-grid {
  display: grid;
  gap: 24px;
}

.hm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 30px;
  border-radius: 20px;
  background: var(--hm-card);
  transition: background-color 0.3s;
}

.hm-card:hover {
  background: var(--hm-card-hover);
}

.hm-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #0b0b0b;
  overflow: hidden;
}

.hm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--hm-ease);
}

.hm-card:hover .hm-card__media img {
  transform: scale(1.04);
}

.hm-card__media::after {
  content: "→";
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hm-accent);
  color: #fff;
  font-size: 17px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--hm-ease);
}

.hm-card:hover .hm-card__media::after,
.hm-card:focus-visible .hm-card__media::after {
  opacity: 1;
  transform: none;
}

.hm-card__cat,
.hm-card__name,
.hm-card__desc {
  padding: 0 6px;
}

.hm-card__cat {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hm-accent);
}

.hm-card__name {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}

.hm-card__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}


/* Raindrop 띠 */
.hm-also {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--hm-card);
  transition: background-color 0.2s;
}

.hm-also:hover {
  background: var(--hm-card-hover);
}

.hm-also__label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hm-also__label strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.hm-also__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.hm-also__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  font-size: 18px;
  color: #fff;
  transition: background-color 0.2s, transform 0.2s var(--hm-ease);
}

.hm-also:hover .hm-also__go {
  background: var(--hm-accent);
  transform: translate(2px, -2px);
}

/* ---------- ③ Why Sugarpole ---------- */
.hm-why {
  position: relative;
  margin-top: -1px;
  padding: 1px 0 120px;
  background: var(--hm-dark);
}

.hm-why .hm-title {
  color: #fff;
}

.hm-why__head {
  margin-bottom: 48px;
  padding-top: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hm-title em {
  font-style: normal;
  color: var(--hm-accent);
}

/* 강점 3가지 */
.hm .hm-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-point {
  padding: 44px 40px 48px;
  border-radius: 24px;
  background: var(--hm-card);
  transition: background-color 0.35s var(--hm-ease), transform 0.35s var(--hm-ease);
}

.hm-point__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 80px;
  border-radius: 16px;
  background: #2a2a2a;
  color: var(--hm-accent);
  transition: background-color 0.35s, color 0.35s;
}

.hm-point__icon svg {
  width: 30px;
  height: 30px;
}

.hm-point__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.35s;
}

.hm-point__desc {
  margin-top: 10px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.35s;
}

.hm-point:hover {
  background: var(--hm-card-hover);
  transform: translateY(-4px);
}

.hm-point:hover .hm-point__icon {
  background: var(--hm-accent);
  color: #fff;
}

.hm-point:hover .hm-point__desc {
  color: rgba(255, 255, 255, 0.8);
}

.hm-points .hm-reveal:nth-child(2) { transition-delay: 0.08s; }
.hm-points .hm-reveal:nth-child(3) { transition-delay: 0.16s; }
.hm-points .hm-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 1024px) {
  .hm-why {
    padding-bottom: 96px;
  }

  .hm-why__head {
    padding-top: 72px;
  }

  .hm .hm-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-point {
    padding: 28px 28px 32px;
  }

  .hm-point__icon {
    margin-bottom: 36px;
  }
}

@media (max-width: 768px) {
  .hm-why {
    padding-bottom: 72px;
  }

  .hm-why__head {
    margin-bottom: 32px;
    padding-top: 56px;
  }

  .hm .hm-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hm-point {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 18px;
    padding: 20px;
    border-radius: 18px;
  }

  .hm-point__icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    border-radius: 14px;
  }

  .hm-point__title {
    font-size: 18px;
  }

  .hm-point__desc {
    margin-top: 0;
    font-size: 15px;
  }

  .hm-point:hover {
    transform: none;
  }
}

/* ---------- ④ Contact ---------- */
.hm-cta {
  padding: 120px 0;
  background: #fff;
}

.hm-cta__panel {
  position: relative;
  display: block;
  padding: 64px;
  border-radius: 32px;
  background: var(--hm-dark);
  color: #fff;
  overflow: hidden;
}

/* 마우스를 따라 움직이는 파란 빛 */
.hm-cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 60%) var(--my, 0%), rgba(0, 139, 228, 0.28), rgba(0, 139, 228, 0) 70%);
  pointer-events: none;
}

.hm-cta__text {
  position: relative;
  z-index: 1;
}

.hm-cta__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px 40px;
}

.hm-cta__lead {
  grid-column: 1 / -1;
}

.hm-cta__lead {
  max-width: 640px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

/* 보조 정보: 메일 · 전화 */
.hm .hm-cta__info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin: 0;
}

.hm-cta__info dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hm-cta__info dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* 주 행동: Contact us 알약 버튼 */
.hm .hm-cta__btn {
  align-self: end;
  justify-self: end;
  gap: 12px;
  height: 56px;
  padding: 0 28px 0 32px;
  font-size: 17px;
}

.hm-cta__btn span {
  transition: transform 0.3s var(--hm-ease);
}

.hm .hm-cta__btn:hover span {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .hm-cta__panel {
    padding: 48px 40px;
  }

  .hm-cta__lead {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .hm-cta__panel {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .hm-cta__text {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hm-cta__lead {
    font-size: 24px;
  }

  .hm .hm-cta__info {
    flex-direction: column;
    gap: 12px;
  }

  .hm-cta__info dd {
    font-size: 16px;
  }

  .hm .hm-cta__btn {
    align-self: stretch;
    justify-self: stretch;
  }
}

/* ---------- 스크롤 등장 ---------- */
.hm-js .hm-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--hm-ease), transform 0.8s var(--hm-ease);
}

.hm-js .hm-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hm-rise,
  .hm-panel.is-active {
    animation: none;
  }

  .hm-js .hm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 반응형 ---------- */
@media (min-width: 1025px) and (max-width: 1280px) {
  .hm-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hm-hero__title {
    font-size: 64px;
  }

  .hm-title {
    font-size: 44px;
  }

  .hm-section,
  .hm-cta {
    padding: 96px 0;
  }

}

@media (max-width: 768px) {
  .hm .hm-container {
    padding: 0 20px;
  }

  .hm-hero {
    justify-content: flex-end;
    padding: 120px 0 112px;
  }

  .hm-hero__overlay {
    background: linear-gradient(0deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(10, 10, 12, 0.25) 100%);
  }

  .hm-hero__title {
    font-size: 42px;
    line-height: 1.1;
  }

  .hm-hero__lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hm-hero__cta {
    flex-wrap: nowrap;
    margin-top: 32px;
  }

  .hm-hero__cta .hm-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    font-size: 15px;
  }

  .hm-section,
  .hm-cta {
    padding: 72px 0;
  }

  .hm-head {
    margin-bottom: 32px;
  }

  .hm-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .hm-title {
    font-size: 32px;
  }

  .hm-link {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }

  .hm-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 24px;
  }

  .hm-tab {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
    font-size: 14px;
  }

  /* 모바일: 같은 크기 카드 2열, 이미지 위 · 글자 아래 */
  .hm-grid--4,
  .hm-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hm-grid .hm-card {
    padding: 10px 10px 16px;
    border-radius: 16px;
  }

  .hm-grid .hm-card .hm-card__media {
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .hm-grid .hm-card__media::after {
    display: none;
  }

  .hm-grid .hm-card__cat,
  .hm-grid .hm-card__name,
  .hm-grid .hm-card__desc {
    padding: 0 4px;
  }

  .hm-grid .hm-card__cat {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hm-grid .hm-card__name {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }

  .hm-grid .hm-card__desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }


  .hm-card__name {
    font-size: 21px;
  }

  .hm-also {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    margin-top: 16px;
    padding: 24px;
  }

  .hm-also__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 15px;
  }

  .hm-also__go {
    grid-column: 2;
    grid-row: 1;
  }

}


/* =====================================================================
 * Our Software: 타이틀 / 탭·See all / 콘텐츠
 * 데스크톱에서는 화면 높이(vh)에 맞춰 한 화면에 들어가게 함
 * ===================================================================== */
@media (min-width: 1025px) {
  #products.hm-section {
    padding: clamp(48px, 8vh, 104px) 0;
  }

  #products .hm-head {
    margin-bottom: clamp(20px, 3vh, 32px);
  }

  #products .hm-title {
    font-size: 52px;
  }

  #products .hm-toolbar {
    margin-bottom: clamp(20px, 3vh, 32px);
  }

  .hm-products__main .hm-grid {
    gap: 20px;
  }

  #products .hm-card {
    padding: 16px 16px 24px;
  }

  #products .hm-card__media {
    aspect-ratio: auto;
    height: clamp(190px, 26vh, 310px);
    margin-bottom: 18px;
  }

  #products .hm-card__cat {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #products .hm-card__name {
    margin-top: 8px;
    font-size: 22px;
  }

  #products .hm-card__desc {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
  }

  /* Raindrop 띠 */
  #products .hm-also {
    grid-template-columns: 280px 1fr auto;
    gap: 40px;
    margin-top: 24px;
    padding: clamp(28px, 4vh, 44px) 44px;
  }

  #products .hm-also__label strong {
    margin-top: 8px;
    font-size: 30px;
    letter-spacing: -0.02em;
  }

  #products .hm-also__desc {
    font-size: 17px;
    line-height: 1.6;
  }

  #products .hm-also__go {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}

/* 탭 / See all 한 줄 */
.hm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.hm-toolbar .hm-tabs {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hm-toolbar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 24px;
  }

  .hm-toolbar .hm-link {
    align-self: flex-start;
  }
}

/* 태블릿: 모든 카드 같은 크기로 2열 */
@media (min-width: 769px) and (max-width: 1024px) {
  .hm-grid--4,
  .hm-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-grid .hm-card .hm-card__media {
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
  }

  .hm-grid .hm-card__name {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 700;
  }

  .hm-grid .hm-card__desc {
    margin-top: 6px;
    font-size: 15px;
  }

}

/* 데스크톱: 세 탭 패널을 같은 자리에 겹쳐 두어 탭을 바꿔도 높이가 변하지 않게 함 */
@media (min-width: 1025px) {
  .hm-products__main {
    display: grid;
  }

  .hm-products__main .hm-panel {
    grid-area: 1 / 1;
  }

  .hm-products__main .hm-panel[hidden] {
    display: block;
    visibility: hidden;
  }

  .hm-products__main .hm-also {
    grid-row: 2;
  }
}

/* =====================================================================
 * 연출 다듬기
 * ===================================================================== */

/* 첫 화면 → 제품 섹션: 아래쪽을 #111로 자연스럽게 이음 */
.hm-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, #111111 100%);
  pointer-events: none;
}

/* 스크롤 안내 */
.hm .hm-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.hm .hm-hero__scroll:hover {
  color: #fff;
}

.hm-hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.hm-hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--hm-accent);
  animation: hm-scroll-line 1.8s var(--hm-ease) infinite;
}

@keyframes hm-scroll-line {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* 키워드 흐름 띠 */
.hm-marquee {
  margin-top: 120px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hm-marquee__track {
  display: flex;
  width: max-content;
  animation: hm-marquee 40s linear infinite;
}

.hm-marquee:hover .hm-marquee__track {
  animation-play-state: paused;
}

.hm .hm-marquee__group {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-marquee__group li {
  display: flex;
  align-items: center;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.3s;
}

.hm-marquee__group li:hover {
  color: #fff;
}

.hm-marquee__group li::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 36px;
  border-radius: 50%;
  background: var(--hm-accent);
}

@keyframes hm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 마지막 Why 섹션 여백: 흐름 띠가 아래를 마무리 */
.hm-why {
  padding-bottom: 0;
}

/* 제품 카드: 부드럽게 떠오르기 */
.hm-section--dark .hm-card {
  transition: background-color 0.3s, transform 0.4s var(--hm-ease), box-shadow 0.4s var(--hm-ease);
}

.hm-section--dark .hm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.hm-card__media img {
  transition: transform 0.9s var(--hm-ease), filter 0.4s;
}

.hm-card:hover .hm-card__media img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

@media (max-width: 1024px) {
  .hm-marquee {
    margin-top: 96px;
  }

  .hm-marquee__group li {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .hm .hm-hero__scroll {
    display: none;
  }

  .hm-hero::after {
    height: 120px;
  }

  .hm-marquee {
    margin-top: 72px;
    padding: 20px 0;
  }

  .hm-marquee__group li {
    font-size: 24px;
  }

  .hm-marquee__group li::after {
    width: 6px;
    height: 6px;
    margin: 0 20px;
  }

  .hm-section--dark .hm-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-marquee__track,
  .hm-hero__scroll i::after {
    animation: none;
  }
}


/* =====================================================================
 * Software 페이지 (sub/software.php): 밝은 배경 + 분야별 섹션
 * ===================================================================== */
.sw {
  --hm-card: #f5f5f7;
  --hm-card-hover: #ececef;
  padding-bottom: 40px;
}

/* 분야 바로가기: 4칸 카드 */
.sw-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 72px 0 0;
}

.sw-jump a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 28px 30px;
  border-radius: 20px;
  background: #f5f5f7;
  color: var(--hm-ink);
  transition: background-color 0.25s, color 0.25s;
}

.sw-jump__count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hm-accent);
  transition: color 0.25s;
}

.sw-jump strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sw-jump i {
  position: absolute;
  right: 24px;
  bottom: 26px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  font-size: 17px;
  font-style: normal;
  color: var(--hm-ink);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--hm-ease);
}

.sw-jump a:hover,
.sw-jump a:focus-visible {
  background: var(--hm-ink);
  color: #fff;
}

.sw-jump a:hover .sw-jump__count,
.sw-jump a:focus-visible .sw-jump__count {
  color: rgba(255, 255, 255, 0.6);
}

.sw-jump a:hover i,
.sw-jump a:focus-visible i {
  background: var(--hm-accent);
  color: #fff;
  transform: translateY(3px);
}

/* 분야 섹션 */
.sw .sw-seg {
  padding: 96px 0 0;
  scroll-margin-top: 32px;
}

/* 타이틀 + 소개 문구를 한 줄로 */
.sw-seg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 28px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e3e3e6;
}

.sw-seg__lead {
  font-size: 18px;
  color: var(--hm-muted);
}

/* 브로슈어 다운로드 버튼 (타이틀 줄 오른쪽 끝) */
.hm .sw-seg__brochure {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  height: 46px;
  margin-left: auto;
  padding: 0 14px 0 18px;
  border: 1px solid #e0e0e4;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-ink);
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.sw-seg__brochure svg {
  transition: transform 0.3s var(--hm-ease);
}

.sw-seg__brochure-meta {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f0f2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hm-muted);
  transition: background-color 0.2s, color 0.2s;
}

.hm .sw-seg__brochure:hover,
.hm .sw-seg__brochure:focus-visible {
  border-color: var(--hm-ink);
  background: var(--hm-ink);
  color: #fff;
}

.sw-seg__brochure:hover svg {
  transform: translateY(2px);
}

.sw-seg__brochure:hover .sw-seg__brochure-meta {
  background: var(--hm-accent);
  color: #fff;
}

@media (max-width: 768px) {
  .hm .sw-seg__brochure {
    align-self: flex-start;
    height: 42px;
    margin: 8px 0 0;
    font-size: 14px;
  }
}

/* 밝은 카드 */
.sw .hm-card__media {
  background: #e9e9ec;
}

.sw .hm-card__name,
.sw .hm-also__label strong {
  color: var(--hm-ink);
}

.sw .hm-card__desc,
.sw .hm-also__desc {
  color: var(--hm-muted);
}

.sw .hm-also__label span {
  color: var(--hm-accent);
}

.sw .hm-also {
  margin-top: 0;
}

.sw .hm-also__go {
  background: var(--hm-ink);
}

@media (max-width: 1024px) {
  .sw-jump {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sw .sw-seg {
    padding-top: 72px;
    scroll-margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .sw-jump {
    gap: 10px;
    padding-top: 40px;
  }

  .sw-jump a {
    padding: 18px 18px 20px;
    border-radius: 16px;
  }

  .sw-jump strong {
    font-size: 20px;
  }

  .sw-jump__count {
    font-size: 11px;
  }

  .sw-jump i {
    display: none;
  }

  .sw .sw-seg {
    padding-top: 56px;
  }

  .sw-seg__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .sw-seg__lead {
    font-size: 15px;
  }
}


/* =====================================================================
 * 문의 페이지 (sub/contact.php)
 * ===================================================================== */
.ct {
  padding: 120px 0 140px;
}

.ct [hidden] {
  display: none !important;
}

.ct__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}

.ct__intro {
  position: sticky;
  top: 120px;
}

.ct__lead {
  max-width: 460px;
  margin-top: 24px !important;
  font-size: 18px;
  color: var(--hm-muted);
}

.hm .ct__info {
  margin: 56px 0 0;
  border-top: 1px solid #e3e3e6;
}

.ct__info > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e3e3e6;
}

.ct__info dt {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-muted);
}

.ct__info dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--hm-ink);
}

.ct__info dd a {
  transition: color 0.2s;
}

.ct__info dd a:hover {
  color: var(--hm-accent);
}

.hm .ct__map {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-accent);
}

/* 폼 카드 */
.ct__card {
  padding: 48px;
  border-radius: 28px;
  background: #f5f5f7;
}

.ct__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ct__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ct__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ct__field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-ink);
}

.ct__field > label::after {
  content: " *";
  color: var(--hm-accent);
}

.ct input[type="text"],
.ct input[type="email"],
.ct textarea {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #e0e0e4;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--hm-ink);
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct textarea {
  height: auto;
  min-height: 180px;
  padding: 16px 18px;
  line-height: 1.6;
  resize: vertical;
}

.ct input[type="text"]:hover,
.ct input[type="email"]:hover,
.ct textarea:hover {
  border-color: #c8c8ce;
}

.ct input[type="text"]:focus,
.ct input[type="email"]:focus,
.ct textarea:focus {
  border-color: var(--hm-accent);
  box-shadow: 0 0 0 4px rgba(0, 139, 228, 0.14);
}

/* 전송을 한 번 시도한 뒤에만 잘못된 칸 표시 */
.ct__form.is-checked input:invalid,
.ct__form.is-checked textarea:invalid {
  border-color: #e5484d;
}

/* 연락처: 국가번호 선택 + 번호 */
.ct__phone {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 10px;
}

.ct input[type="tel"] {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #e0e0e4;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--hm-ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct input::placeholder {
  color: #b0b0b6;
}

.ct__select {
  position: relative;
}

.ct__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--hm-muted);
  border-bottom: 1.5px solid var(--hm-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.ct__select select {
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 40px 0 18px;
  border: 1px solid #e0e0e4;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--hm-ink);
  text-overflow: ellipsis;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ct input[type="tel"]:hover,
.ct__select select:hover {
  border-color: #c8c8ce;
}

.ct input[type="tel"]:focus,
.ct__select select:focus {
  border-color: var(--hm-accent);
  box-shadow: 0 0 0 4px rgba(0, 139, 228, 0.14);
}

@media (max-width: 768px) {
  .ct__phone {
    grid-template-columns: 1fr;
  }
}

/* 개인정보 동의 */
.ct__privacy {
  padding-top: 8px;
}

.ct__check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--hm-ink);
  cursor: pointer;
}

.ct__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #c8c8ce;
  border-radius: 6px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.ct__check input:checked {
  border-color: var(--hm-accent);
  background: var(--hm-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ct__check input:focus-visible {
  outline: 2px solid var(--hm-accent);
  outline-offset: 2px;
}

.ct__form.is-checked .ct__check input:invalid {
  border-color: #e5484d;
}

.ct__policy {
  margin-top: 14px;
}

.ct__policy summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-muted);
  cursor: pointer;
  list-style: none;
}

.ct__policy summary::-webkit-details-marker {
  display: none;
}

.ct__policy summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 500;
}

.ct__policy[open] summary::after {
  content: "–";
}

.ct__policy summary:hover {
  color: var(--hm-ink);
}

.ct__policy-text {
  max-height: 220px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid #e0e0e4;
  border-radius: 14px;
  background: #fff;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hm-muted);
  overflow-y: auto;
}

/* 상태 메시지 · 전송 버튼 */
.ct__status {
  min-height: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--hm-muted);
}

.ct__status:empty {
  display: none;
}

.ct__status.is-error {
  color: #d93036;
}

.hm .ct__send {
  align-self: flex-start;
  gap: 12px;
  height: 56px;
  padding: 0 28px 0 32px;
  background: var(--hm-ink);
  font-size: 17px;
  color: #fff;
  cursor: pointer;
}

.hm .ct__send:hover,
.hm .ct__send:focus-visible {
  background: var(--hm-accent);
}

.ct__send span {
  transition: transform 0.3s var(--hm-ease);
}

.ct__send:hover span {
  transform: translateX(4px);
}

.hm .ct__send:disabled {
  background: #8e8e93;
  cursor: wait;
}

.ct__send.is-loading span {
  animation: ct-pulse 0.9s ease-in-out infinite;
}

@keyframes ct-pulse {
  50% {
    transform: translateX(6px);
    opacity: 0.4;
  }
}

/* 전송 완료 */
.ct__done {
  padding: 64px 8px;
  text-align: center;
}

.ct__done-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--hm-accent);
  font-size: 28px;
  color: #fff;
}

.ct__done h3 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ct__done p {
  margin-top: 10px !important;
  font-size: 17px;
  color: var(--hm-muted);
}

@media (max-width: 1024px) {
  .ct {
    padding: 80px 0 96px;
  }

  .ct__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ct__intro {
    position: static;
  }

  .hm .ct__info {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .ct {
    padding: 56px 0 72px;
  }

  .ct__lead {
    font-size: 16px;
  }

  .ct__info > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ct__info dd {
    font-size: 15px;
  }

  .ct__card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .ct__row {
    grid-template-columns: 1fr;
  }

  .hm .ct__send {
    align-self: stretch;
  }
}

/* =====================================================================
 * 회사 소개 (sub/about.php)
 * ===================================================================== */

/* ① 개요: 큰 헤드라인 + 이미지·본문 */
.ab-intro {
  padding: 140px 0 140px;
}

.ab-intro__title {
  font-size: clamp(56px, 7.2vw, 128px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--hm-ink);
}

.ab-intro__title em {
  font-style: normal;
  color: var(--hm-accent);
}

.ab-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 80px;
  align-items: end;
  margin-top: 80px;
}

.ab-intro__media {
  aspect-ratio: 16 / 10;
  border-radius: 32px;
  background: #f5f5f7;
  overflow: hidden;
}

.ab-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.2s var(--hm-ease);
}

.ab-intro__media:hover img {
  transform: scale(1.03);
}

.ab-intro__lead {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
}

.ab-intro__body {
  margin-top: 28px !important;
  padding-top: 28px;
  border-top: 1px solid #e3e3e6;
  font-size: 17px;
  line-height: 1.75;
  color: var(--hm-muted);
}

/* ② 강점: 펼쳐지는 세로 패널 */
.ab-str {
  padding: 140px 0;
}

.hm .ab-acc {
  display: flex;
  gap: 12px;
  height: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-acc__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 24px;
  background: #f5f5f7;
  overflow: hidden;
  isolation: isolate;
  transition: flex-grow 0.7s var(--hm-ease), background-color 0.5s;
}

.ab-acc__item.is-active {
  flex-grow: 4.2;
  background: #111;
}

/* 펼친 패널: 오른쪽에 엑스레이 사진이 은은하게 */
.ab-acc__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #111 0%, rgba(17, 17, 17, 0.85) 45%, rgba(17, 17, 17, 0.35) 100%),
    var(--ab-img) right center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.6s;
}

.ab-acc__item.is-active::before {
  opacity: 1;
}

/* 접힌 상태: 번호 + 세로 키워드 */
.ab-acc__btn {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 32px 28px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--hm-ink);
  text-align: left;
  cursor: pointer;
  transition: opacity 0.3s;
}

.ab-acc__item.is-active .ab-acc__btn {
  opacity: 0;
  pointer-events: none;
}

.ab-acc__no {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hm-accent);
}

.ab-acc__key {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ab-acc__item:not(.is-active):hover {
  background: #ececef;
}

/* 펼친 상태 내용 */
.ab-acc__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 560px;
  max-width: 100%;
  padding: 44px;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.ab-acc__item.is-active .ab-acc__body {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s 0.25s, transform 0.7s 0.25s var(--hm-ease);
}

.ab-acc__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--hm-accent);
  color: #fff;
}

.ab-acc__title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.ab-acc__text {
  max-width: 440px;
  margin-top: 16px !important;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* 태블릿·모바일: 세로로 쌓이는 아코디언 */
@media (max-width: 1024px) {
  .ab-str {
    padding: 96px 0;
  }

  .hm .ab-acc {
    flex-direction: column;
    height: auto;
  }

  .ab-acc__item {
    flex: none;
    border-radius: 20px;
    transition: background-color 0.4s;
  }

  .ab-acc__btn {
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
  }

  .ab-acc__item.is-active .ab-acc__btn {
    display: none;
  }

  .ab-acc__key {
    font-size: 20px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .ab-acc__body {
    position: relative;
    display: none;
    width: auto;
    gap: 40px;
    padding: 28px 24px 32px;
  }

  .ab-acc__item.is-active .ab-acc__body {
    display: flex;
  }

  .ab-acc__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .ab-acc__title {
    font-size: 30px;
  }

  .ab-acc__text {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .ab-str {
    padding: 72px 0;
  }
}

/* ③ 비전: 단어가 차례로 밝아짐 */
.ab-vision {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 140px 0;
  background: #050507;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.ab-vision__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(/public/img/about_vision.jpg) center bottom / cover no-repeat;
  opacity: 0.55;
  transition: opacity 1.2s;
}

.ab-vision.is-done .ab-vision__bg {
  opacity: 0.9;
}

.ab-vision__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.45) 45%, rgba(5, 5, 7, 0.75) 100%);
}

.ab-vision__title {
  max-width: 1200px;
  font-size: clamp(40px, 5.2vw, 88px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ab-vision__title span {
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.5s;
}

.ab-vision__title span.is-lit {
  color: #fff;
}

@media (max-width: 1024px) {
  .ab-intro {
    padding: 96px 0;
  }

  .ab-intro__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 56px;
  }

  .ab-vision {
    min-height: 80vh;
  }
}

@media (max-width: 768px) {
  .ab-intro {
    padding: 64px 0;
  }

  .ab-intro__title {
    font-size: 48px;
  }

  .ab-intro__media {
    border-radius: 24px;
  }

  .ab-intro__lead {
    font-size: 19px;
  }

  .ab-intro__body {
    font-size: 16px;
  }

  .ab-vision {
    min-height: 560px;
    padding: 96px 0;
  }

  .ab-vision__title {
    font-size: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
}

/* 비전: 4단계 경로 */
.hm .ab-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 120px 0 0;
  padding: 44px 0 0;
  list-style: none;
}

/* 바탕 선 + 그어지는 파란 선 */
.ab-path::before,
.ab-path::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.ab-path::after {
  height: 2px;
  top: -0.5px;
  background: linear-gradient(90deg, var(--hm-accent), #5cc0ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--hm-ease);
}

.ab-vision.is-done .ab-path::after {
  transform: scaleX(1);
}

.ab-path__step {
  position: relative;
  padding-right: 16px;
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.7s, transform 0.7s var(--hm-ease);
}

/* 선 위의 점 */
.ab-path__step::before {
  content: "";
  position: absolute;
  top: -51px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #050507;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.ab-vision.is-done .ab-path__step {
  opacity: 1;
  transform: none;
}

.ab-vision.is-done .ab-path__step::before {
  border-color: var(--hm-accent);
  background: var(--hm-accent);
  box-shadow: 0 0 0 6px rgba(0, 139, 228, 0.2), 0 0 24px rgba(0, 139, 228, 0.7);
}

.ab-vision.is-done .ab-path__step:nth-child(1),
.ab-vision.is-done .ab-path__step:nth-child(1)::before { transition-delay: 0.1s; }
.ab-vision.is-done .ab-path__step:nth-child(2),
.ab-vision.is-done .ab-path__step:nth-child(2)::before { transition-delay: 0.55s; }
.ab-vision.is-done .ab-path__step:nth-child(3),
.ab-vision.is-done .ab-path__step:nth-child(3)::before { transition-delay: 1s; }
.ab-vision.is-done .ab-path__step:nth-child(4),
.ab-vision.is-done .ab-path__step:nth-child(4)::before { transition-delay: 1.45s; }

.ab-path__no {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5cc0ff;
}

.ab-path__title {
  margin-top: 12px !important;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}

.ab-path__text {
  margin-top: 10px !important;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1024px) {
  .hm .ab-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
    margin-top: 80px;
  }

  .ab-path::before,
  .ab-path::after,
  .ab-path__step::before {
    display: none;
  }

  .ab-path__step {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .ab-vision.is-done .ab-path__step {
    border-top-color: var(--hm-accent);
  }
}

@media (max-width: 768px) {
  .hm .ab-path {
    grid-template-columns: 1fr;
    row-gap: 32px;
    margin-top: 56px;
  }

  .ab-path__title {
    font-size: 24px;
  }

  .ab-path__text {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-path__step,
  .ab-path::after {
    transition: none;
  }
}

/* =====================================================================
 * 연혁 (sub/company.php)
 * ===================================================================== */
.hs-intro {
  padding: 140px 0 40px;
}

.hs-intro__title {
  font-size: clamp(44px, 5vw, 88px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--hm-ink);
}

.hs-intro__title em {
  font-style: normal;
  color: var(--hm-accent);
}

.hs-intro__lead {
  max-width: none;
  margin-top: 28px !important;
  font-size: 19px;
  color: var(--hm-muted);
}

.hs-time {
  padding: 80px 0 160px;
}

.hs-time__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: start;
}

/* 왼쪽: 고정된 큰 연도 */
.hs-aside {
  position: sticky;
  top: 140px;
}

.hs-aside__year {
  overflow: hidden;
  font-size: clamp(120px, 13vw, 240px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: var(--hm-ink);
}

.hs-aside__year span {
  display: inline-block;
  padding: 0.02em 0.12em 0.04em 0.02em;
  margin: 0 -0.12em 0 -0.02em;
  background: linear-gradient(180deg, var(--hm-ink) 30%, var(--hm-accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hs-aside__year span.is-roll {
  animation: hs-roll 0.55s var(--hm-ease);
}

@keyframes hs-roll {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hs-aside__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hm-muted);
}

.hs-aside__bar i {
  position: relative;
  flex: 1;
  height: 2px;
  background: #e3e3e6;
  overflow: hidden;
}

.hs-aside__bar b {
  position: absolute;
  inset: 0;
  background: var(--hm-accent);
  transform-origin: left;
  transition: transform 0.6s var(--hm-ease);
}

/* 오른쪽: 연도별 내용 */
.hm .hs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid #e3e3e6;
  opacity: 0.32;
  transition: opacity 0.5s;
}

.hs-block:last-child {
  border-bottom: 1px solid #e3e3e6;
}

.hs-block.is-active {
  opacity: 1;
}

.hs-block__year {
  padding-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hm-ink);
  transition: color 0.4s;
}

.hs-block.is-active .hs-block__year {
  color: var(--hm-accent);
}

.hm .hs-block__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-block__items li {
  position: relative;
  padding-left: 22px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--hm-ink);
}

.hs-block__items li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c8ce;
  transition: background-color 0.4s;
}

.hs-block.is-active .hs-block__items li::before {
  background: var(--hm-accent);
}

/* 창립 항목 강조 */
.hs-block__items li.is-key {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hs-block__items li.is-key::before {
  top: 15px;
  width: 10px;
  height: 10px;
  margin-left: -2px;
  background: var(--hm-accent);
  box-shadow: 0 0 0 6px rgba(0, 139, 228, 0.15);
}

@media (max-width: 1024px) {
  .hs-intro {
    padding: 96px 0 24px;
  }

  .hs-time {
    padding: 48px 0 112px;
  }

  .hs-time__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hs-aside {
    display: none;
  }

  .hs-block {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hs-intro {
    padding: 64px 0 16px;
  }

  .hs-intro__title {
    font-size: 40px;
  }

  .hs-intro__lead {
    font-size: 16px;
  }

  .hs-time {
    padding-bottom: 80px;
  }

  .hs-block {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .hs-block__year {
    font-size: 32px;
  }

  .hs-block__items li {
    font-size: 17px;
  }

  .hs-block__items li.is-key {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-aside__year span.is-roll {
    animation: none;
  }
}

/* =====================================================================
 * 오시는 길 (sub/directions.php)
 * ===================================================================== */
.dr {
  padding: 140px 0 40px;
}

.dr__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

/* 연락처 패널 */
.dr__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 640px;
  padding: 48px;
  border-radius: 32px;
  background: #111;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.dr__card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 139, 228, 0.35), rgba(0, 139, 228, 0) 65%);
}

.dr__label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dr__addr-text {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #fff;
}

.hm .dr__info {
  margin: 48px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dr__info > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dr__info dt {
  padding-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.dr__info dd {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.dr__info dd a {
  transition: color 0.2s;
}

.dr__info dd a:hover {
  color: #5cc0ff;
}

.dr__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
}

.hm .dr__btn {
  gap: 8px;
}

.hm .dr__btn:hover {
  background: var(--hm-accent);
  color: #fff;
}

.hm .dr__copy {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.hm .dr__copy:hover {
  border-color: #fff;
}

.hm .dr__copy.is-done {
  border-color: var(--hm-accent);
  color: #5cc0ff;
}

/* 지도: 평소 흑백, 마우스를 올리면 컬러 */
.dr__map {
  position: relative;
  min-height: 640px;
  border-radius: 32px;
  background: #f5f5f7;
  overflow: hidden;
}

.dr__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s;
}

.dr__map:hover iframe {
  filter: none;
}

@media (max-width: 1024px) {
  .dr {
    padding: 96px 0 24px;
  }

  .dr__grid {
    grid-template-columns: 1fr;
  }

  .dr__card {
    min-height: 0;
  }

  .dr__map {
    min-height: 460px;
  }

  .dr__map iframe {
    filter: none;
  }
}

@media (max-width: 768px) {
  .dr {
    padding: 64px 0 16px;
  }

  .dr__card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .dr__addr-text {
    font-size: 22px;
  }

  .dr__info dd {
    font-size: 16px;
  }

  .dr__actions .hm-btn {
    flex: 1 1 100%;
  }

  .dr__map {
    min-height: 360px;
    border-radius: 24px;
  }
}
