: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; }
.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: 385px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding: 70px 24px 24px;
  background: var(--bg-container);
  border: 1px solid #fff;
  text-align: left;
}
/* 카드 등장: 섹션이 보이면 한 장씩 아래에서 위로 */
.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; }
.card__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.112px;
  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, 24px);
  line-height: 1.58;
  letter-spacing: -0.096px;
}
.hero__headline {
  font-size: clamp(40px, 5.6vw, 80px);
  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;
}

/* 줄 단위 마스크 리빌: 줄 틀 안에서 아래→위로 */
.mask-line { display: block; overflow: hidden; }
.mask-line__inner {
  display: inline-block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: var(--d, 0s);
}
.is-intro .mask-line__inner { transform: translateY(110%); }

/* KDX 티커: 시세판처럼 글자가 굴러가다 K·D·X 순서로 멈춤 */
.ticker { display: inline-flex; vertical-align: top; }
.tick {
  position: relative;
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
}
.tick__size { visibility: hidden; }
.tick__strip {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: -50% 0;
}
.tick__strip span { display: block; height: 1.3em; }
.is-intro .tick__strip { transform: translateY(0); }
.is-ready .tick__strip {
  animation: tick-roll var(--dur, 1s) cubic-bezier(0.15, 0.65, 0.1, 1) var(--d, 0s) both;
}
@keyframes tick-roll {
  from { transform: translateY(0); }
  to { transform: translateY(calc((var(--n, 1) - 1) * -1.3em)); }
}

.hero__tagline {
  transition: opacity 0.8s ease 1.9s, transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) 1.9s;
}
.is-intro .hero__tagline { opacity: 0; transform: translateY(10px); }

/* ───────── 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: 55% 30%; }
.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);
}
.story__layer--mission .story__dim { opacity: calc(var(--expand, 0) * 0.5); } /* Figma 딤 50% */
.story__layer--vision .story__dim { opacity: 0.6; } /* Figma 딤 60% */

.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-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.story__body { display: flex; flex-direction: column; gap: 18px; }
.story__title {
  font-size: clamp(28px, 2.9vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.168px;
}
.story__desc {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  letter-spacing: -0.32px;
}

/* Mission / Vision 문구: 라벨 → 타이틀 → 본문이 서서히 올라오며 등장 (동일한 인터랙션) */
.story__copy .story__label,
.story__copy .story__title,
.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 { --step: 0.08s; }
.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-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__menu { display: none; }
  .core__cards { flex-direction: column; }
  .card { min-height: 240px; padding-top: 40px; }
  .footer__cols, .footer__bottom { flex-direction: column; gap: 24px; }
}

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