:root {
  --bg: #ffffff;
  --text: #0f172a;
  /* slate-900 */
  --muted: #475569;
  /* slate-600 */
  --primary: #0b3b6f;
  /* deep navy */
  --primary-ink: #0a2c53;
  --accent: #e2e8f0;
  /* slate-200 */
  --border: #e5e7eb;
  /* gray-200 */
  --maxw: 1120px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 20px rgba(2, 6, 23, .08);
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
}

.nav-links a.active {
  color: var(--primary);
}

/* Language button */
.lang-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(11, 59, 111, 0.04);
}

.lang-separator {
  color: var(--border);
  font-weight: 400;
}

/* Language text states */
.lang-text {
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.lang-text.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-text.inactive {
  color: var(--muted);
  font-weight: 400;
}

/* Mobile controls container */
.mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
}

/* 시각적 숨김 (스크린리더용) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 햄버거 아이콘 */
.menu-btn .menu-icon {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}

.menu-btn .menu-icon .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease;
}

.menu-btn .menu-icon .bar:nth-child(1) { top: 0; }
.menu-btn .menu-icon .bar:nth-child(2) { top: 7px; }
.menu-btn .menu-icon .bar:nth-child(3) { bottom: 0; }

/* 열린 상태(X 아이콘) */
.menu-btn.is-open .menu-icon .bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.menu-btn.is-open .menu-icon .bar:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-icon .bar:nth-child(3) {
  bottom: auto;
  top: 7px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-outer {
  color: #fff;
  background: linear-gradient(135deg, rgba(11, 59, 111, .7) 0%, rgba(10, 44, 83, .7) 60%, rgba(11, 59, 111, .7) 100%), url('images/banner.png');
  background-size: 100% auto;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 20px 72px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: .2em;
  opacity: .8;
}



.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  font-family: inherit;
}

.hero p {
  max-width: 760px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-card {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.stat .k {
  font-size: 22px;
  font-weight: 700;
}

.stat .d {
  font-size: 13px;
  opacity: .85;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-header {
  margin-bottom: 26px;
}

.kicker {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: clamp(32px, 3.6vw, 40px);
  line-height: 1.25;
  margin-bottom: 20px;
}

.wrap-text {
  white-space: normal;   /* 기본 줄바꿈 허용 */
  word-break: keep-all;
}

h2 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2.8vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  font-family: inherit;
}

.lead {
  max-width: 820px;
  color: var(--muted);
}

/* Content blocks */
.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 16px;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
}

.member-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.member-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* Grid column utilities (HTML만으로 제어) */
.card-grid.cols-1 { --cols: 1; }
.card-grid.cols-2 { --cols: 2; }
.card-grid.cols-3 { --cols: 3; }
.card-grid.cols-4 { --cols: 4; }
.card-grid.cols-5 { --cols: 5; }
.card-grid.cols-6 { --cols: 6; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.card .avatar {
  width: 50%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 23px;
}

.muted {
  color: var(--muted);
}

/* Strategy section: vertical timeline-like stacked cards */
#strategy .card-grid {
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

#strategy .card {
  position: relative;
  padding: 18px 18px 18px 32px;
  transition: transform .15s ease, box-shadow .15s ease;
}

#strategy .card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

#strategy .card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(11, 59, 111, .12);
}

#strategy .card:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -22px;
  width: 2px;
  background: var(--accent);
}

#strategy .card h3 {
  color: var(--primary);
}

#contact .card h3 {
  color: var(--primary);
}

ul {
  padding-left: 18px;
  margin: 10px 0 10px 0;
}

li {
  font-size: 20px;
}

p {
  font-size: 20px;
}

/* Contact 주소 줄바꿈 및 간격 조정 */
#contact .card p {
  margin: 4px 0; /* p 사이 간격 좁게 */
}

/* data.json의 \n 줄바꿈을 시각적으로 반영 */
.multiline {
  white-space: pre-line; /* \n을 실제 줄바꿈으로 표시 */
}

/* Fade in up animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section specific animations with delays */
.hero .fade-in-up:nth-child(1) {
  transition-delay: 0.4s;
}

.hero .fade-in-up:nth-child(2) {
  transition-delay: 0.2s;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}

.upper-margin {
  margin-top: 50px;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-card {
    grid-template-columns: repeat(3, 1fr);
  }

  /* sm breakpoint utilities */
  .card-grid.sm-cols-1 { --cols: 1; }
  .card-grid.sm-cols-2 { --cols: 2; }
  .card-grid.sm-cols-3 { --cols: 3; }
  .card-grid.sm-cols-4 { --cols: 4; }
  .card-grid.sm-cols-5 { --cols: 5; }
  .card-grid.sm-cols-6 { --cols: 6; }
}

@media (min-width: 960px) {
  .menu-btn {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  /* Hide mobile language button on desktop */
  .mobile-lang-btn {
    display: none;
  }

  .hero-inner {
    padding: 100px  20px 100px 96px ;
  }

  /* lg breakpoint utilities */
  .card-grid.lg-cols-1 { --cols: 1; }
  .card-grid.lg-cols-2 { --cols: 2; }
  .card-grid.lg-cols-3 { --cols: 3; }
  .card-grid.lg-cols-4 { --cols: 4; }
  .card-grid.lg-cols-5 { --cols: 5; }
  .card-grid.lg-cols-6 { --cols: 6; }
}

@media (max-width: 959px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Show mobile language button */
  .mobile-lang-btn {
    display: flex;
  }

  /* Hide desktop language button in nav-links */
  .nav-links .lang-btn {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  /* 작은 화면에서 텍스트 크기 조정 */
  

  .hero h1 {
    font-size: clamp(30px, 5vw, 40px);
  }

  .hero p {
    font-size: 16px;
  }

  .kicker {
    font-size: clamp(28px, 3vw, 36px);
  }

  h2 {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 700;
  }

  .member-info h3 {
    font-size: 18px;
  }

  .member-info h4 {
    font-size: 16px;
  }

  .card h3 {
    font-size: 20px;
  }

  li {
    font-size: 18px;
  }

  p {
    font-size: 18px;
  }

  .stat .k {
    font-size: 20px;
  }

  .stat .d {
    font-size: 12px;
  }
}


