@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
/* ============================================
   SLBIOM — Design System (Light)
   ============================================ */

:root {
  /* Colors — light, clean, trustworthy */
  --bg: #FFFFFF;
  --bg-2: #F7F8FA;
  --bg-3: #EEF1F5;
  --line: #E4E7EC;
  --line-strong: #CBD1D9;

  --fg: #0F172A;         /* near-black, cool */
  --fg-2: #1F2937;
  --fg-dim: #111111;     /* body text — black (was grey) */
  --fg-mute: #1A1A1A;    /* secondary labels — black (was grey) */

  --brand: #1477B8;       /* SLBIOM brand blue (primary) */
  --brand-dark: #0C4A78;  /* deeper navy for text on brand */
  --brand-2: #4EBBE0;     /* SLBIOM secondary cyan (from logo) */
  --brand-soft: #EAF6FC;  /* pale tint background */
  --accent: #C99A46;      /* subtle warm accent, used sparingly */

  /* Type */
  --f-display: "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --f-body: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Pretendard", "Noto Sans KR", "돋움", Dotum, sans-serif;

  /* Space */
  --header-h: 92px;
  --page-max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 15px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   Typography
   ============================================ */
/* Category labels (회사소개 / 핵심제품 …) — clearly visible, larger than section titles */
.eyebrow {
  font-family: var(--f-body);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--brand);
}

.display-xl {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(46px, 6.6vw, 102px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Section sub-titles (중제목) — intentionally smaller than .eyebrow category labels */
.display-l {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.display-m {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.serif-italic { font-style: normal; color: var(--brand); font-weight: inherit; }

.h-section {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.body-l {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-dim);
  font-weight: 400;
  max-width: 60ch;
}

.body-m {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
  font-weight: 400;
}

/* ============================================
   Layout helpers
   ============================================ */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(80px, 12vh, 160px) 0; }
.section-sm { padding: clamp(56px, 8vh, 100px) 0; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.site-header .inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 64px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-mark img {
  height: 100%;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--fg);
  font-weight: 500;
  display: block;
  line-height: 1;
}
.brand-tag {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
  margin-top: 4px;
  display: block;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-left: auto;
  margin-right: 12px;
}
.nav-primary a {
  font-size: 26px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  font-weight: 400;
}
.nav-primary a:hover, .nav-primary a.active {
  color: var(--brand);
}
.nav-primary a.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 2px;
  background: var(--brand);
}

.lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-toggle button {
  padding: 5px 12px;
  color: var(--fg-mute);
  transition: all 0.2s;
  border-radius: 999px;
}
.lang-toggle button.on {
  background: var(--brand);
  color: #FFFFFF;
}

.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.menu-toggle span {
  width: 20px; height: 1.5px; background: var(--fg);
}

@media (max-width: 1100px) {
  .nav-primary { display: none; }
  .menu-toggle { display: flex; }
  .nav-primary.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .nav-primary.open a {
    font-size: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-primary.open a:last-child { border-bottom: none; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col p, .footer-col a {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.9;
  display: block;
}
.footer-col a:hover { color: var(--brand); }
.footer-brand-name {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 8px;
  font-weight: 500;
}
.footer-logo {
  height: 68px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
.footer-tag {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 999px;
}
.btn:hover {
  background: var(--fg);
  color: #FFFFFF;
}
.btn .arrow { transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-brand {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}
.btn-brand:hover {
  background: var(--fg);
  color: #FFFFFF;
  border-color: var(--fg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 4px 0;
  border-bottom: 1px solid var(--brand);
  transition: all 0.2s;
}
.link-arrow:hover { gap: 14px; }
.link-arrow .arrow { transition: transform 0.2s; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================
   Image placeholders (LIGHT)
   ============================================ */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(18, 59, 112, 0.04) 0px,
      rgba(18, 59, 112, 0.04) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--fg-mute);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  border-radius: 4px;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--brand-2);
  border-left: 1px solid var(--brand-2);
}
.img-placeholder::after {
  content: "";
  position: absolute;
  bottom: 14px; right: 14px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--brand-2);
  border-right: 1px solid var(--brand-2);
}
.img-placeholder.circular {
  border-radius: 50%;
  aspect-ratio: 1;
}

/* ============================================
   Page Hero (subpages)
   ============================================ */
.page-hero {
  padding: calc(var(--header-h) + 100px) 0 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-soft), #FFFFFF);
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { margin-bottom: 24px; display: block; }
.page-hero h1 { max-width: 14ch; }
.page-hero .body-l { margin-top: 32px; }

/* Future HQ photo — right side of subpage hero */
.page-hero.has-photo .container > * { max-width: min(640px, 52vw); }
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
@media (max-width: 900px) {
  .hero-photo { display: none; }
  .page-hero.has-photo .container > * { max-width: none; }
}

/* Temporary candidate picker (review only) */
.hq-picker {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 30px rgba(12,74,120,.14);
  font-size: 13px; font-weight: 500; color: var(--fg);
}
.hq-picker button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font: inherit; cursor: pointer; color: var(--fg);
}
.hq-picker button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============================================
   Cards
   ============================================ */
.card {
  border: 1px solid var(--line);
  background: #FFFFFF;
  padding: 40px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.08);
}
.card-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--brand-2);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.fg-dim { color: var(--fg-dim); }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-row .stat {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
}
.stat-row .stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--brand);
  margin-bottom: 12px;
}
.stat-num .unit {
  font-size: 0.5em;
  color: var(--brand-2);
  margin-left: 4px;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
@media (max-width: 780px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-row .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-row .stat:last-child { border-bottom: none; }
}

/* Display type — Pretendard (Korean corporate sans) */
.display-xl, .h-section { font-weight: 600 !important; letter-spacing: -0.03em; }

/* Former mono labels — now regular sans, slightly heavier for legibility */
[class*="mono"], .tag, .chip { font-weight: 500; }
