:root {
  --brand-font-text: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --fg-default: #0e1114;
  --fg-subtle: rgba(0, 0, 0, 0.6);
  --fg-inverse-default: #fff;
  --fg-inverse-subtle: rgba(255, 255, 255, 0.6);
  --comp-fill-accent-primary: #28ebf0;
  --comp-fill-track: rgba(255, 255, 255, 0.5);
  --comp-bdr-inverse-subtle: rgba(255, 255, 255, 0.3);
  --bg-container: #f3f4f6;
  --grey-96: #f4f4f5;
  --grey-90: #e4e4e7;
  --grey-98: #fafafa;
  --grey-34: #52525b;
  --grey-16: #27272a;
  --gnb-h: 72px;
  --content-w: min(990px, calc(100% - 40px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--brand-font-text);
  color: var(--fg-default);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

/* ───────── GNB ───────── */
.gnb {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--gnb-h);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--comp-fill-track);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gnb__wrapper {
  width: var(--content-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gnb__logo img { width: 80px; height: 20px; }

/* Mission·Vision이 화면을 채운 동안: GNB 반전 (전환 없이 한 번에) */
.is-gnb-dark .gnb { background: rgba(0, 0, 0, 0.35); }
.is-gnb-dark .gnb__logo img { filter: invert(1); }
.is-gnb-dark .gnb__item { color: #fff; }
.is-gnb-dark .gnb__item:hover { background: rgba(255, 255, 255, 0.12); }
.is-gnb-dark .gnb__menu-btn span { background: #fff; }
.gnb__right { display: flex; align-items: center; gap: 8px; }
.gnb__menu-btn { display: none; }
.gnb__drawer { display: none; }
.gnb__menu { display: flex; gap: 16px; }
.gnb__item {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.016px;
  transition: background-color 0.2s;
}
.gnb__item:hover { background: rgba(14, 17, 20, 0.05); }
.btn-capsule {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--comp-fill-accent-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}


/* ───────── 스크롤 유도 꺽쇠 화살표 (Figma Component 28) ───────── */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  color: var(--fg-default);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.scroll-cue--light { color: #fff; }
.scroll-cue.is-visible { opacity: 1; }
.scroll-cue svg { display: block; width: 100%; height: 100%; animation: cue-bounce 1.6s ease-in-out infinite; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(8px); }
}


/* ───────── Core Value ───────── */
.core {
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.core__inner { width: var(--content-w); display: flex; flex-direction: column; align-items: center; gap: 50px; }
.core__cards { align-self: stretch; }
.section-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.128px;
}
.core__cards { display: flex; gap: 6px; }
.card {
  flex: 1 1 0;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding: 40px 24px 24px; /* 아이콘 아래 여백을 좌측 패딩과 같게 */
  background: var(--bg-container);
  border: 1px solid #fff;
  text-align: left;
}
/* 아이콘: 카드 아래쪽에 놓이고 문구와 최소 60px 떨어진다 (2배수 PNG를 절반 크기로 표시) */
.card__icon {
  margin-top: auto;
  width: 64px;
  height: 64px;
  display: block;
}
/* 카드 등장: 섹션이 보이면 한 장씩 아래에서 위로 */
.core.is-armed .card {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.18s);
}
.core.is-armed.is-inview .card { opacity: 1; transform: none; }
.core.is-inview :is(.section-title, .card__title) .lr__ch,
.shareholders.is-inview .section-title .lr__ch { transform: none; }
.card__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.128px;
  color: #000;
}
.card__desc {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.016px;
  color: rgba(10, 18, 23, 0.85);
}

/* ───────── 주주현황 ───────── */
.shareholders {
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shareholders__inner { width: var(--content-w); display: flex; flex-direction: column; gap: 16px; }
.shareholders__inner > .section-title { text-align: center; }
.shareholders__table-wrap { display: flex; flex-direction: column; gap: 7px; }
.shareholders__unit {
  align-self: flex-end;
  font-size: 16px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.064px;
}
.table-scroll { overflow-x: auto; }
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.table th {
  padding: 8px 16px;
  background: var(--grey-96);
  border-block: 1px solid var(--grey-90);
  font-weight: 600;
  line-height: 21px;
  color: var(--grey-34);
}
.table td {
  padding: 13.5px 16px;
  border-bottom: 1px solid var(--grey-90);
  color: var(--grey-16);
  white-space: nowrap;
}
.table td.no { font-weight: 500; color: var(--fg-default); }
.table .total { background: var(--grey-98); }
.table .total td { padding-block: 14px; }
.table .total td:first-child { text-align: center; }

.pagination {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.pagination__arrow, .pagination__page {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6c757d;
}
.pagination__arrow { font-size: 16px; }
.pagination__page { font-size: 14px; line-height: 22px; }
.pagination__page.is-active { background: #0e0f10; color: #fff; font-weight: 600; }

/* ───────── Footer ───────── */
.footer {
  background: #121414;
  border-top: 1px solid rgba(7, 10, 15, 0.08);
  padding: 80px 0;
  display: flex;
  justify-content: center;
  font-size: 14px;
}
.footer__inner { width: var(--content-w); display: flex; flex-direction: column; gap: 48px; }
.footer__info { display: flex; flex-direction: column; gap: 16px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; color: #fff; line-height: 23px; }
.footer__brand img { width: 160px; height: 40px; }
.footer__cols, .footer__bottom { display: flex; gap: 6px; }
.footer__col { flex: 1 1 0; min-width: 0; }
.footer__col--cs { display: flex; flex-direction: column; gap: 6px; }
.footer__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  line-height: 24px;
  letter-spacing: -0.2px;
  color: var(--fg-inverse-subtle);
}
.footer__cs-title { color: #fff; font-weight: 600; line-height: 16px; }
.divider { width: 1px; height: 12px; background: var(--comp-bdr-inverse-subtle); }
.footer__quick {
  flex: 1 1 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-weight: 600;
  line-height: 20px;
  color: var(--fg-inverse-subtle);
}
.footer__copy { flex: 1 1 0; line-height: 22px; letter-spacing: -0.2px; color: var(--fg-inverse-subtle); }


/* ───────── Hero B: 가운데 정렬 텍스트 (Figma 1:595) ───────── */
.hero {
  position: relative;
  min-height: 627px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gnb-h) 0 0;
  text-align: center;
}
.hero__inner {
  width: var(--content-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 55px;
}
.hero__title { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__eyebrow {
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.58;
  letter-spacing: -0.096px;
}
.hero__headline {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero__tagline {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: -0.112px;
  color: #000;
}

/* 모바일 전용 줄바꿈 */
.br-mo { display: none; }

/* 모든 타이틀 공통: 글자 하나씩 아래에서 위로 빠르게 등장 */
.lr { display: block; overflow: hidden; }
.lr__ch {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: calc(var(--li, 0) * 0.022s);
}
.is-rise-armed .lr__ch { transform: translateY(110%); }
.is-rise-in .lr__ch { transform: none; }

/* hero 문구: 줄 틀 안에서 글자 하나씩 올라온다 */
.mask-line { display: block; overflow: hidden; }
.hero__tagline .lr { display: block; overflow: hidden; }
.is-intro .hero .lr__ch { transform: translateY(110%); }

/* KDX 마크: 타이틀 안에 로고 이미지로 배치 */
.kdx-mark {
  display: inline-block;
  height: 0.72em;
  width: auto;
  margin-right: 0.06em;
  vertical-align: -0.03em;
}



/* ───────── Story: 이미지 확장 + 딤 → Mission 문구 → Vision 배경 전환 + 타이핑 ───────── */
.story {
  position: relative;
  height: calc(100vh + var(--story-dist, 300vh));
}
.story__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.story__frame {
  position: absolute;
  overflow: hidden;
  background: #111;
  will-change: left, top, width, height;
}
.story__layer { position: absolute; inset: 0; }
.story__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__layer--mission img { object-position: 50% 50%; }
.story__layer--vision img { object-position: 50% 50%; }
.story__layer--vision {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.story.is-vision .story__layer--vision { opacity: 1; }
.story__dim {
  position: absolute;
  inset: 0;
  background: rgb(0, 0, 0);
}
/* 딤: 문구가 뜨는 확장 50% 지점에서 이미 충분히 어둡도록 빠르게 차오른 뒤 최대 65% */
.story__layer--mission .story__dim { opacity: calc(min(1, var(--expand, 0) * 1.6) * 0.65); }
.story__layer--vision .story__dim { opacity: 0.35; } /* 계단 이미지가 원래 어두워 딤은 약하게 */

.story__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--content-w);
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.story__label {
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--comp-fill-accent-primary); /* #28ebf0 */
}
.story__body { display: flex; flex-direction: column; gap: 18px; }
.story__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.128px;
}
.story__desc {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.32px;
}

/* Mission / Vision 문구: 라벨 → 타이틀 → 본문이 서서히 올라오며 등장 (동일한 인터랙션) */
.story__copy .story__label,
.story__copy .story__desc {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: calc(var(--base, 0s) + var(--step, 0s));
}
.story__copy .story__title {
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: calc(var(--base, 0s) + 0.06s);
}
.story__copy .story__desc { --step: 0.16s; }
.story__copy--vision { --base: 0.25s; } /* Mission 문구가 빠지고 배경이 바뀌기 시작한 뒤 등장 */

.story.is-mission-in:not(.is-vision) .story__copy--mission :is(.story__label, .story__title, .story__desc),
.story.is-vision .story__copy--vision :is(.story__label, .story__title, .story__desc) {
  opacity: 1;
  transform: none;
}
/* 타이틀은 한 줄씩 올라온다 */
.story.is-mission-in:not(.is-vision) .story__copy--mission .story__title .lr__ch,
.story.is-vision .story__copy--vision .story__title .lr__ch { transform: none; }
/* 전환될 때 사라지는 쪽은 빠르게 페이드아웃 */
.story.is-vision .story__copy--mission :is(.story__label, .story__title, .story__desc),
.story:not(.is-vision) .story__copy--vision :is(.story__label, .story__title, .story__desc) {
  transition: opacity 0.3s ease;
  transition-delay: 0s;
}

/* ───────── Responsive ───────── */
@media (max-width: 860px) {
  /* ── GNB (Figma 5:394): 높이 64, 좌우 20, 메뉴는 햄버거 ── */
  .gnb { height: 64px; }
  .gnb__wrapper { width: 100%; padding-inline: 20px; }
  .gnb__menu { display: none; }
  .gnb__menu-btn {
    display: grid;
    align-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    justify-items: center;
    border-radius: 999px;
  }
  .gnb__menu-btn span { display: block; width: 20px; height: 2px; background: var(--fg-default); }
  .gnb__drawer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px 20px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-90);
  }
  .gnb__drawer[hidden] { display: none; }
  .gnb__drawer a { padding: 12px 0; font-size: 16px; font-weight: 600; }

  /* ── Hero (Figma 5:495): 소타이틀 18 / 대타이틀 32 / 태그라인 20 ── */
  .hero { min-height: 0; padding-block: calc(64px + 80px) 132px; }
  .scroll-cue { bottom: 28px; }
  .hero__inner { gap: 48px; }
  .hero__title { gap: 12px; }
  .hero__eyebrow { font-size: 18px; line-height: 25px; color: var(--fg-subtle); }
  .hero__headline { font-size: 32px; line-height: 44px; letter-spacing: -0.128px; }
  .hero__tagline { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.05px; }

  .br-mo { display: inline; }

  /* ── Story: 시작 이미지는 세로형, 문구는 PC와 같은 크기 ── */
  .story__copy { width: calc(100% - 32px); }
  .story__body { gap: 10px; }
  .story__title { font-size: 32px; line-height: 40px; }
  .story__desc { font-size: 16px; line-height: 21.6px; }

  /* ── Core Value (Figma 5:529): 카드 세로 적층 ── */
  .core { min-height: 0; padding-block: 120px 88px; }
  .core__inner { gap: 40px; }
  .section-title { text-align: center; }
  .core__cards { flex-direction: column; gap: 6px; }
  .card {
    flex: none; /* 세로로 쌓일 때 높이가 0으로 줄지 않도록 */
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 17px;
    padding: 40px 16px;
    text-align: left;
  }
  .card__title { font-size: 40px; line-height: 1.2; letter-spacing: -0.16px; }
  .card__icon { width: 80px; height: 80px; margin-top: 60px; } /* 세로 배치라 본문과 간격을 직접 준다 */

  /* ── 주주현황: PC와 같은 표 스타일, 폭만 화면에 맞춤 ── */
  .shareholders { min-height: 0; padding-block: 120px 88px; }
  .shareholders__inner > .section-title { text-align: center; }
  .table { min-width: 0; table-layout: auto; }
  .table col { width: auto !important; }
  .table th { padding: 8px 10px; }
  .table td { padding: 13.5px 10px; }
  .pagination { height: 64px; }

  /* ── 푸터 (Figma 5:399): 세로 배치 ── */
  .footer { padding: 40px 0 48px; }
  .footer__inner { width: calc(100% - 48px); gap: 24px; }
  .footer__info { flex-direction: column-reverse; gap: 24px; }
  .footer__cols { flex-direction: column-reverse; gap: 24px; }
  .footer__brand img { width: 128px; height: 32px; }
  .footer__cs-title { font-size: 16px; line-height: 18px; }
  .footer__bottom { flex-direction: column; gap: 16px; }
  .footer__quick { flex-direction: column; gap: 0; }
  .footer__quick a { padding: 10px 0; font-size: 16px; line-height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .lr__ch, .story__layer--vision,
  .story__copy .story__label, .story__copy .story__title, .story__copy .story__desc { transition: none !important; }
  .scroll-cue svg { animation: none; }
}
