/* 회사소개 (intro2) — 히어로는 history.css 의 .hx-* 를 그대로 쓰고, 여기서는 본문만 다룬다.
   기존 CSS가 html{font-size:62.5%} 라서 rem 대신 px 를 쓴다. */

.ax :where(section, header):not(.hx-hero) { /* 히어로의 위쪽 여백(경로 표시 위 간격)은 지우지 않는다 */
  margin: 0;
  padding: 0;
}

.ax-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--hx-brand);
}

.ax-cap::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ───────── 히어로 ───────── */
.ax-hero {
  padding-bottom: 72px;
}

.ax-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: end;
  margin-top: 56px;
}

.ax-hero .hx-eyebrow,
.ax-hero .hx-title,
.ax-hero .hx-lead,
.ax-facts {
  animation: ax-up 0.8s var(--hx-ease) backwards;
}

.ax-hero .hx-title { animation-delay: 0.07s; }
.ax-hero .hx-lead { animation-delay: 0.14s; }
.ax-facts { animation-delay: 0.22s; }

@keyframes ax-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.ax-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ax-facts > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ax-facts dt {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ax-facts dt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}

.ax-facts dd {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #fff;
}

.ax-facts b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ax-facts dd span {
  font-size: 22px;
  font-weight: 600;
  color: var(--hx-accent);
}

/* ───────── ABOUT / VISION / MISSION ───────── */
.ax-body {
  padding: 24px 0 40px;
}

.ax-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 72px 0;
}

.ax-row + .ax-row {
  border-top: 1px solid var(--hx-line);
}

.ax-row .ax-cap {
  padding-top: 10px;
}

.ax-about {
  max-width: 820px;
  font-size: 19px;
  line-height: 1.9;
  color: #33414f;
}

.ax-about b {
  font-weight: 700;
  color: var(--hx-ink);
}

.ax .ax-vision {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--hx-ink);
}

.ax-vision > span {
  display: block;
}

.ax-vision i {
  display: inline-block;
  font-style: normal;
}

.ax-vision .is-accent i {
  color: transparent;
  background: linear-gradient(90deg, var(--hx-brand), #1aa7dc 60%, var(--hx-accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.ax-mission {
  max-width: 820px;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
}

.ax-mission b {
  font-weight: 700;
  color: var(--hx-brand);
}

/* ───────── CORE VALUE ───────── */
.ax-core {
  position: relative;
  overflow: hidden;
  padding: 104px 0 120px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(56, 198, 244, 0.16), transparent 70%),
    radial-gradient(800px 520px at 100% 100%, rgba(6, 84, 130, 0.55), transparent 70%),
    linear-gradient(180deg, var(--hx-navy) 0%, var(--hx-navy-2) 100%);
}

.ax-core__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(100% 70% at 30% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(100% 70% at 30% 0%, #000 10%, transparent 75%);
}

.ax-core .hx-in {
  position: relative;
}

.ax-core .ax-cap {
  color: var(--hx-accent);
}

.ax .ax-core__head h3 {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
}

.ax-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.ax-value {
  position: relative;
  padding: 32px 36px 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.ax-value__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ax-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--hx-accent);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ax-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ax-value__no {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
}

.ax .ax-value h4 {
  margin-top: 30px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.ax-value__ko {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hx-accent);
}

.ax-value__head {
  margin-top: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.ax-acts {
  counter-reset: act;
  margin-top: 6px;
}

.ax-acts li {
  position: relative;
  counter-increment: act;
  padding: 12px 0 0 30px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.ax-acts li::before {
  content: counter(act, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hx-accent);
}

@media (hover: hover) {
  .ax-value {
    transition: transform 0.3s var(--hx-ease), border-color 0.3s ease, background-color 0.3s ease;
  }
  .ax-value:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 198, 244, 0.55);
    background: rgba(255, 255, 255, 0.06);
  }
  .ax-value:hover .ax-icon {
    border-color: var(--hx-accent);
    background: var(--hx-accent);
    color: var(--hx-navy);
  }
}

/* ───────── 등장 모션 (about.js 가 .ax-js / .is-in / .is-done 을 붙인다) ───────── */
.ax-js [data-rv] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease var(--d, 0ms), transform 0.8s var(--hx-ease) var(--d, 0ms);
}

.ax-js [data-rv].is-in {
  opacity: 1;
  transform: none;
}

/* 떠오른 뒤에는 hover 가 지연 없이 반응하도록 */
.ax-js .ax-value.is-done {
  transition: transform 0.3s var(--hx-ease), border-color 0.3s ease, background-color 0.3s ease;
}

/* 비전 문구는 단어 단위로 떠오른다 */
.ax-js .ax-vision[data-rv] {
  opacity: 1;
  transform: none;
}

.ax-js .ax-vision i {
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s ease calc(var(--i) * 90ms), transform 0.9s var(--hx-ease) calc(var(--i) * 90ms);
}

.ax-js .ax-vision.is-in i {
  opacity: 1;
  transform: none;
}

/* ───────── 반응형 ───────── */
@media (max-width: 1000px) {
  .ax-hero__top {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;
  }
  .ax-body {
    padding: 8px 0 24px;
  }
  .ax-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 52px 0;
  }
  .ax-row .ax-cap {
    padding-top: 0;
  }
  .ax-core {
    padding: 72px 0 88px;
  }
  .ax-values {
    margin-top: 40px;
  }
}

@media (max-width: 760px) {
  .ax-values {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .ax-hero {
    padding-bottom: 48px;
  }
  .ax-facts > div {
    min-height: 64px;
  }
  .ax-facts b {
    font-size: 28px;
  }
  .ax-about {
    font-size: 16.5px;
    line-height: 1.85;
  }
  .ax-value {
    padding: 24px 22px 28px;
  }
  .ax-icon {
    width: 48px;
    height: 48px;
  }
  .ax .ax-value h4 {
    margin-top: 22px;
  }
  .ax-value__head {
    margin-top: 18px;
    font-size: 16.5px;
  }
  .ax-acts li {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-hero .hx-eyebrow,
  .ax-hero .hx-title,
  .ax-hero .hx-lead,
  .ax-facts {
    animation: none;
  }
  .ax-js [data-rv],
  .ax-js .ax-vision i,
  .ax-value,
  .ax-icon {
    transition: none;
  }
}
