*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── PALETTE ── */
:root {
  --bg: #f4f2ee;
  --bg2: #eceae5;
  --bg3: #e2dfd8;
  --ink: #1a1d26;
  --ink2: #3a3d4a;
  --muted: rgba(26, 29, 38, 0.72);
  --rule: rgba(26, 29, 38, 0.1);
  --rule2: rgba(26, 29, 38, 0.06);
  --crimson: #c8001e;
  --crimson2: #a0001a;
  --surface: #ffffff;
  --navy: #1a1d26;
  --navy2: #3a3d4a;
  --blue: #1554b0;
  --brand-cyan: #3ba2f2;
  --white: #ffffff;
  --border: rgba(26, 29, 38, 0.1);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 29, 38, 0.12) var(--bg);
}

body {
  font-family:
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Nanum Gothic",
    sans-serif;
  font-size: 22px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 0, 30, 0.35);
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.15s ease,
    height 0.15s ease,
    border-color 0.15s ease;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(26, 29, 38, 0.12);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 29, 38, 0.2);
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  padding: 130px 80px 56px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  background-image:
    linear-gradient(var(--rule2) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule2) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Big decorative letter */

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center within the left grid cell */
  align-items: flex-start; /* align content to the left */
  align-self: center; /* center vertically in the grid row */
  justify-self: start; /* stick to the left side of the left column */
  max-width: 820px; /* match index hero left column width */
  margin-left: 24px; /* slight offset from the edge */
}

/* Force vertical stacking for the hero top; important to override
         any conflicting rules from other stylesheets or user agent styles */
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 28px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--crimson);
  flex-shrink: 0;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(80px, 9.5vw, 140px);
  line-height: 0.92;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero-title span {
  color: var(--crimson);
}

/* KBi circular badge (matches provided attachment) */
.hero-title {
  display: block;
}
.hero-title .kb-badge {
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(26, 29, 38, 0.06);
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  color: #6b6b6b;
  position: relative;
  margin: 6px 0 12px 0;
}
.hero-title .kb-badge .kb-i {
  color: var(--crimson);
  margin-left: 6px;
  font-size: 38px;
}
.hero-title .kb-badge::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--crimson);
}

.hero-title-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(200, 0, 30, 0.2);
  background: rgba(200, 0, 30, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 15px;
  color: var(--crimson2);
  letter-spacing: 1px;
  text-transform: none;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(26, 29, 38, 0.03);
  border: none;
  width: max-content;
}
.hero-title-sub::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero-desc {
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero-desc strong {
  color: var(--crimson);
  font-weight: 700;
}
.hero-desc2 {
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--crimson);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 3px;
  transition: all 0.22s;
}
.btn-primary:hover {
  background: var(--crimson2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 0, 30, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.22s;
}
.btn-secondary:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* Hero right stat panel */
.hero-right {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  padding-left: 40px;
}

.stat-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.stat-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 16px;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.stat-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.sc-r::before {
  background: var(--crimson);
}
.sc-b::before {
  background: var(--ink);
}
.sc-c::before {
  background: var(--muted);
}
.sc-p::before {
  background: var(--ink2);
}
.stat-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 29, 38, 0.08);
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
}
.stat-num em {
  color: var(--crimson);
  font-style: normal;
}
.stat-lbl {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.cert-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cert-label {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cert-pill {
  display: inline-block;
  padding: 4px 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.cert-pill:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

.g2b-panel {
  background: var(--ink);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.g2b-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.g2b-link {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid rgba(200, 0, 30, 0.3);
  border-radius: 3px;
  transition: background 0.2s;
}
.g2b-link:hover {
  background: rgba(200, 0, 30, 0.1);
}

/* ── ABOUT STRIP ── */
.about-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, var(--navy2) 0%, var(--navy) 100%);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.about-cell {
  padding: 28px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.about-cell:first-child {
  border-left: none;
}
.about-cell:hover {
  background: rgba(200, 0, 30, 0.06);
}
.about-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.about-cell:hover::after {
  transform: scaleX(1);
}
.about-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 4px;
}
.about-num em {
  color: var(--crimson);
  font-style: normal;
  margin-left: 4px;
}
.about-lbl {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: "IBM Plex Sans KR", sans-serif;
}
.about-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* ── SECTIONS ── */
section {
  padding: 96px 80px;
  position: relative;
  z-index: 1;
}

.section-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 80px;
  color: rgba(26, 29, 38, 0.04);
  line-height: 1;
  margin-bottom: -20px;
  user-select: none;
}
.section-eyebrow {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  color: var(--crimson);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--crimson);
}
.section-title {
  font-size: clamp(28px, 7vw, 50px);
  font-weight: 800;
  color: var(--ink);
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--crimson);
  margin-top: 10px;
}
.section-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.95;
  max-width: 760px;
}
.section-desc strong {
  color: var(--ink);
  font-weight: 700;
}
.section-header {
  margin-bottom: 52px;
}

/* ── TIMELINE ── */
#history {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.timeline-wrapper {
  position: relative;
  padding-top: 20px;
}
.timeline-bar {
  position: absolute;
  top: 52px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
}
.timeline-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--ink),
    var(--crimson) 60%,
    var(--muted)
  );
  width: 100%;
  border-radius: 2px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.timeline-item {
  padding: 0 14px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: none;
}
.timeline-item:nth-child(1) {
  transition-delay: 0s;
}
.timeline-item:nth-child(2) {
  transition-delay: 0.1s;
}
.timeline-item:nth-child(3) {
  transition-delay: 0.2s;
}
.timeline-item:nth-child(4) {
  transition-delay: 0.3s;
}
.timeline-item:nth-child(5) {
  transition-delay: 0.4s;
}
.timeline-dot-row {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 40px 0 20px;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--ink2);
  position: relative;
  z-index: 1;
  transition:
    transform 0.25s,
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
  cursor: default;
}
.timeline-item:last-child .timeline-dot {
  border-color: var(--crimson);
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(200, 0, 30, 0.15);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(200, 0, 30, 0.15);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(200, 0, 30, 0.08);
  }
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.5);
  border-color: var(--crimson);
  background: rgba(200, 0, 30, 0.08);
  box-shadow: 0 0 0 6px rgba(200, 0, 30, 0.1);
}
.timeline-period {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 4px 14px;
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}
.timeline-card {
  background: var(--bg);
  padding: 22px;
  border-top: 3px solid var(--ink2);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  border-radius: 0 0 8px 8px;
}
.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 29, 38, 0.1);
  border-top-color: var(--crimson);
}
.timeline-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-card-title::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--crimson);
  border-radius: 2px;
  flex-shrink: 0;
}
.timeline-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.timeline-card ul li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  padding-left: 13px;
  position: relative;
}
.timeline-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
}

.timeline-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  counter-reset: era;
}
.timeline-bottom-card {
  background: var(--ink);
  padding: 28px 28px 28px 32px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  counter-increment: era;
}
.timeline-bottom-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--crimson), transparent);
}
.timeline-bottom-card::after {
  content: "0" counter(era);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}
.timeline-bottom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26, 29, 38, 0.25);
}
.timeline-bottom-card:hover::before {
  background: var(--crimson);
}
.timeline-bottom-card .era {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--crimson);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.timeline-bottom-card .era-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.timeline-bottom-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-bottom-card ul li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
  transition: color 0.2s;
}
.timeline-bottom-card:hover ul li {
  color: rgba(255, 255, 255, 0.7);
}
.timeline-bottom-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--crimson);
}

/* ── PARTNERS ── */
#partners {
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.partners-hub {
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
}
/* Decorative connection lines */
.partners-hub::before,
.partners-hub::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  z-index: 0;
}
.partners-hub::before {
  left: calc(50% - 260px);
  width: 120px;
}
.partners-hub::after {
  right: calc(50% - 260px);
  width: 120px;
}
.partners-left,
.partners-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.partner-card {
  background: var(--surface);
  padding: 26px;
  border: 1px solid var(--rule);
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 29, 38, 0.1);
  border-color: rgba(200, 0, 30, 0.18);
}
.partner-card:hover::before {
  transform: scaleX(1);
}
.partner-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  border-radius: 20px;
  font-family: "IBM Plex Sans KR", sans-serif;
}
.badge-blue {
  background: linear-gradient(135deg, var(--ink), #2a2f42);
  color: var(--white);
}
.badge-gray {
  background: linear-gradient(135deg, var(--muted), #6b7080);
  color: var(--white);
}
.badge-sky {
  background: linear-gradient(135deg, var(--accent-blue), #3d8fd4);
  color: var(--white);
}
.badge-navy {
  background: linear-gradient(135deg, var(--crimson), #e0223a);
  color: var(--white);
}
.partner-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.partner-card ul li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  padding-left: 13px;
  position: relative;
}
.partner-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-weight: 700;
}

.hub-center {
  background: var(--ink);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(200, 0, 30, 0.3);
  box-shadow:
    0 0 0 12px rgba(200, 0, 30, 0.04),
    0 0 48px rgba(200, 0, 30, 0.1),
    0 20px 48px rgba(26, 29, 38, 0.15);
  justify-self: center;
  animation: hubFloat 4s ease-in-out infinite alternate;
  position: relative;
  z-index: 1;
}
.hub-center::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 0, 30, 0.12);
  animation: hubSpin 20s linear infinite;
}
@keyframes hubSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hubFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}
.hub-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.hub-sub {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
  line-height: 1.6;
}

/* ── SERVICES ── */
#services {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
#services .section-num {
  color: rgba(255, 255, 255, 0.03);
}
#services .section-title {
  color: var(--white);
}
#services .section-title::after {
  background: var(--crimson);
}
#services .section-desc {
  color: rgba(255, 255, 255, 0.45);
}
#services .section-desc strong {
  color: rgba(255, 255, 255, 0.8);
}
#services .section-eyebrow {
  color: rgba(200, 0, 30, 0.8);
}
#services .section-eyebrow::before {
  background: rgba(200, 0, 30, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  counter-reset: svc;
}
.service-card {
  background: #1e2230;
  padding: 40px 30px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
  counter-increment: svc;
}
.service-card::before {
  content: "0" counter(svc);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  transition: color 0.25s;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.service-card:hover {
  background: rgba(200, 0, 30, 0.06);
}
.service-card:hover::before {
  color: rgba(200, 0, 30, 0.08);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(200, 0, 30, 0.1);
  border: 1px solid rgba(200, 0, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 12px;
  transition:
    background 0.25s,
    transform 0.25s;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--crimson);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card:hover .service-icon {
  background: rgba(200, 0, 30, 0.18);
  transform: scale(1.08);
}
.service-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.2;
}
.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.service-card ul li {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  padding-left: 15px;
  position: relative;
  transition: color 0.2s;
}
.service-card:hover ul li {
  color: rgba(255, 255, 255, 0.65);
}
.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--crimson);
}
.service-card ul li strong {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* ── CLIENTS ── */
#clients {
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.clients-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}
.bingocvm-badge {
  background: var(--ink);
  padding: 24px 30px;
  text-align: center;
  min-width: 190px;
  border-radius: 10px;
  border-top: 3px solid var(--crimson);
  box-shadow: 0 8px 24px rgba(26, 29, 38, 0.12);
}
.bingocvm-badge .product-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  color: var(--white);
  letter-spacing: 2px;
}
.bingocvm-badge .product-sub {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-top: 4px;
}
.product-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
  line-height: 1;
}

.product-name img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.clients-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding: 8px 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.clients-cat-label::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--crimson);
  border-radius: 2px;
  flex-shrink: 0;
}
.clients-cat-label::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--crimson);
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  min-height: 100px;
  height: 100%;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  cursor: default;
  text-align: center;
  position: relative;
}
.client-logo .logo-name {
  margin-top: auto;
}
.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26, 29, 38, 0.1);
  border-color: rgba(200, 0, 30, 0.25);
}
.client-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition:
    background 0.18s,
    transform 0.2s;
  border: 1px solid var(--rule);
}
.client-logo .logo-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}
.client-logo:hover .logo-icon {
  background: rgba(200, 0, 30, 0.04);
  transform: scale(1.06);
}
.client-logo .logo-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  white-space: normal;
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
}

.clients-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--ink);
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 29, 38, 0.15);
}
.client-stat {
  padding: 32px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s;
  text-align: center;
}
.client-stat:last-child {
  border-right: none;
}
.client-stat:hover {
  background: rgba(200, 0, 30, 0.06);
}
.client-stat .num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 52px;
  color: var(--white);
  line-height: 1;
  transition: transform 0.2s;
}
.client-stat:hover .num {
  transform: scale(1.08);
}
.client-stat .num span {
  color: var(--crimson);
}
.client-stat .lbl {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  margin-top: 8px;
}

/* ── TOC ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  align-items: start;
  margin: 32px 80px;
}

@media (max-width: 1100px) {
  .page-layout {
    grid-template-columns: 1fr;
    margin: 0;
  }
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-l {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal-l.visible {
  opacity: 1;
  transform: none;
}
.reveal-r {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal-r.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero {
    padding: 100px 40px 48px;
  }
  .hero::after {
    display: none;
  }
  .hero-right {
    padding-left: 0;
    margin-top: 36px;
  }
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .partners-hub {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .partners-hub::before,
  .partners-hub::after {
    display: none;
  }
  .hub-center {
    width: 200px;
    height: 200px;
    justify-self: center;
    order: -1;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 70px 40px;
  }
  .about-strip {
    grid-template-columns: 1fr 1fr;
  }
  .clients-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-intro {
    grid-template-columns: 1fr;
  }
  .nav {
    padding: 0 24px;
  }
  .section-title {
    font-size: 26px;
  }
  .client-stat .num {
    font-size: 40px;
  }
}
@media (max-width: 680px) {
  .timeline-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-bar {
    display: none;
  }
  .clients-logos {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }
  .clients-stats {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 20px;
  }
}
/* KBI logo badge - mock visual polish (rings, soft shadow, slow pulse) */
.hero-kbi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(92px, 9.5vw, 160px);
  height: clamp(92px, 9.5vw, 160px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.98),
    var(--surface)
  );
  box-shadow:
    0 20px 50px rgba(26, 29, 38, 0.12),
    inset 0 2px 6px rgba(255, 255, 255, 0.65);
  position: relative;
  margin-bottom: 12px;
  z-index: 3;
  flex-shrink: 0;
}
.hero-kbi img {
  max-height: 48%;
  max-width: 62%;
  object-fit: contain;
  display: block;
  z-index: 4;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.02));
}
.hero-kbi em {
  /* text fallback */
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(20px, 3.2vw, 36px);
  color: var(--navy2);
  font-style: normal;
}

/* Concentric rings behind the badge */
.hero-kbi::before,
.hero-kbi::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.hero-kbi::before {
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(145, 110, 210, 0.08);
  box-shadow: 0 6px 20px rgba(145, 110, 210, 0.02) inset;
  opacity: 0.95;
  animation: ringPulse 6s ease-in-out infinite;
}
.hero-kbi::after {
  width: calc(100% + 168px);
  height: calc(100% + 168px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(145, 110, 210, 0.04);
  opacity: 0.9;
}
