/* ============================================================
   LOCON — locon.kr
   공용 스타일시트 (index / team / news 3개 페이지가 공유)
   ============================================================ */

:root {
  --bg: #08090a;
  --card-bg: #0e0f10;
  --card-bg-hover: #131415;
  --text-primary: #f7f8f8;
  --text-secondary: #8a8f98;
  --text-tertiary: #565b64;
  --white: #ffffff;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-dashed: rgba(255, 255, 255, 0.14);
  --border-dashed-strong: rgba(255, 255, 255, 0.18);
  --border-underline: rgba(255, 255, 255, 0.13);

  /* 영문은 SF Pro / Helvetica 계열의 뉴트럴 그로테스크로 통일한다.
     기존 스택은 윈도우에서 Segoe UI 로 떨어져 애플 기기와 인상이 크게 달랐다.
     Pretendard 의 라틴 글자는 Inter 기반이라, 이미 받아둔 폰트로 그 인상을 낼 수 있다.
     (Segoe UI 는 마지막으로 밀어 최후 폴백으로만 쓴다) */
  --font-en: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
             "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-kr: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
             "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;

  --header-h: 56px;

  /* 이징: 진입은 감속이 긴 곡선, 상태 전환은 표준 곡선 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  /* 스티키 헤더에 앵커가 가리지 않도록 */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-kr);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 본문 컨테이너. Linear 계열 레이아웃에 맞춰 1280px 로 넓힌다.
   읽기 힘들어지는 본문 단락은 개별 max-width 로 따로 잡는다. */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.gradient-text {
  background: linear-gradient(to bottom, var(--white) 60%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3, p, ul, li { margin: 0; padding: 0; list-style: none; }

.section-title {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.792px;
  margin-bottom: 52px;
}

#tech .section-title { margin-bottom: 0; padding-bottom: 47px; }
#business .section-title { margin-bottom: 40px; }

.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;
}


/* ============================================================
   HEADER — 스티키. 스크롤하면 흰색 바로 전환된다.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background-color 0.32s var(--ease),
              border-color 0.32s var(--ease),
              box-shadow 0.32s var(--ease),
              backdrop-filter 0.32s var(--ease);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img {
  height: 24px; width: auto;
  transition: filter 0.32s var(--ease), opacity 0.2s var(--ease);
}
.logo-link:hover img { opacity: 0.78; }

.tagline {
  font-family: var(--font-en); font-weight: 400; font-size: 10.5px;
  color: var(--text-tertiary); white-space: nowrap;
  transition: color 0.32s var(--ease);
}

.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-right a {
  position: relative;
  font-family: var(--font-en); font-size: 13.5px; letter-spacing: -0.15px;
  color: var(--text-secondary); white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav-right a:hover { color: var(--text-primary); }

/* 현재 페이지 표시 — 밑줄이 좌→우로 자란다 */
.nav-right a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: currentColor; border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.36s var(--ease-out);
}
.nav-right a.is-active { color: var(--text-primary); }
.nav-right a.is-active::after { transform: scaleX(1); }

/* ── 스크롤 후 흰색 상태 ── */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.90);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px -18px rgba(0, 0, 0, 0.35);
}
/* 흰 바탕에서는 흰색 로고가 보이지 않으므로 반전시킨다 */
.site-header.is-solid .logo-link img { filter: invert(1); }
.site-header.is-solid .tagline { color: #7a808a; }
.site-header.is-solid .nav-right a { color: #4b525c; }
.site-header.is-solid .nav-right a:hover,
.site-header.is-solid .nav-right a.is-active { color: #08090a; }
.site-header.is-solid .nav-toggle span { background: #08090a; }
.site-header.is-solid :focus-visible { outline-color: rgba(0, 0, 0, 0.55); }

/* ── 햄버거 버튼 (모바일) ── */
.nav-toggle {
  display: none;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; cursor: pointer;
  position: relative; flex-shrink: 0;
}
.nav-toggle span {
  position: absolute; left: 8px; width: 18px; height: 1.5px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.34s var(--ease-out), opacity 0.2s var(--ease),
              background-color 0.32s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  border-top: none;
  padding: clamp(96px, 14vw, 199px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
  background: radial-gradient(ellipse 1200px 550px at 50% -12%, rgba(255, 255, 255, 0.043) 0%, rgba(255, 255, 255, 0) 60%);
}
.hero h1 {
  font-family: var(--font-kr); font-weight: 600;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.16;
  letter-spacing: -1.624px;
}
.hero h1 span { display: block; }
.hero h1 .line-1 { color: var(--text-secondary); }
.hero h1 .line-2 { color: var(--text-primary); }
.hero p.sub {
  font-family: var(--font-kr); font-weight: 400;
  font-size: clamp(15px, 1.7vw, 17px); line-height: 1.7; letter-spacing: -0.15px;
  color: var(--text-secondary); max-width: 540px;
  margin-top: 21px; margin-bottom: clamp(32px, 5vw, 51px);
}
.scatter-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; position: relative;
}
.scatter-box svg { width: 100%; height: auto; display: block; }
.scatter-cap {
  position: absolute; left: 20px; bottom: 15px;
  font-family: var(--font-en); font-size: 11.5px; letter-spacing: 0.23px;
  color: var(--text-tertiary); white-space: nowrap;
}


/* ============================================================
   SECTION SHELL
   ============================================================ */

section { border-top: 1px solid var(--border); padding: clamp(72px, 9vw, 120px) 0; }
.card-shadow { box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04); }


/* ── 서브페이지 헤더 (team / news) ── */
.page-hero {
  border-top: none;
  padding: clamp(72px, 11vw, 148px) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(ellipse 1000px 460px at 50% -20%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 62%);
}
.page-hero .eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: 12px;
  letter-spacing: 0.96px; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-en); font-weight: 600;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.14; letter-spacing: -1.2px;
}
.page-hero p.sub {
  font-family: var(--font-kr); font-size: clamp(14.5px, 1.7vw, 16.5px);
  line-height: 1.75; letter-spacing: -0.15px;
  color: var(--text-secondary); max-width: 560px; margin-top: 18px;
}
.page-body { border-top: 1px solid var(--border); padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 120px); }


/* ============================================================
   TECH
   ============================================================ */

.tech-block { display: grid; grid-template-columns: 1fr 1.10fr; gap: 14px; }
.tb-text, .tb-viz { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; }
.tb-text { padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; }
.tb-text .label-en { font-family: var(--font-en); font-weight: 700; font-size: 20px; line-height: 32px; letter-spacing: -0.3px; color: var(--text-primary); }
.tb-text .label-sub { font-family: var(--font-en); font-weight: 500; font-size: 12.5px; letter-spacing: 0.5px; color: var(--text-tertiary); margin-top: 4px; margin-bottom: 14px; }
.tb-text p { font-family: var(--font-kr); font-size: 14.5px; line-height: 1.75; letter-spacing: -0.15px; color: var(--text-secondary); }
.tb-viz { display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 17px; }
.tb-viz svg { width: 100%; height: auto; }
.branch-line { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; }
.branch-line svg { width: 100%; height: auto; }
.tech-children { display: flex; gap: 14px; }
.child-card { flex: 1; min-width: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 30px; overflow: hidden; }
.child-card .cc-label { font-family: var(--font-en); font-weight: 600; font-size: 12px; line-height: 19.2px; letter-spacing: 0.96px; color: var(--text-tertiary); }
.child-card h3 { font-family: var(--font-en); font-weight: 700; font-size: 18.7px; line-height: 30.4px; letter-spacing: -0.285px; color: var(--text-primary); margin-top: 2px; }
.child-card p { font-family: var(--font-kr); font-size: 14px; line-height: 1.75; letter-spacing: -0.15px; color: var(--text-secondary); margin-top: 4px; }
.cc-viz { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 17px; }
.cc-viz svg { width: 100%; height: auto; display: block; }


/* ============================================================
   PRODUCT
   ============================================================ */

.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.prod-card {
  min-width: 0; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
              transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.prod-shot { background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: clamp(56px, 8vw, 88px) 20px; position: relative; }
.prod-shot::before { content: ''; position: absolute; inset: 14px; border: 1px dashed var(--border-dashed); border-radius: 8px; transition: border-color 0.3s var(--ease); }
.prod-shot span { font-family: var(--font-en); font-size: 11.5px; letter-spacing: 0.345px; color: var(--text-tertiary); text-align: center; }
.prod-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-family: var(--font-en); font-weight: 600; font-size: 11.5px; letter-spacing: 0.805px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.prod-body h3 { font-family: var(--font-en); font-weight: 700; font-size: 19px; letter-spacing: -0.19px; color: var(--text-primary); margin-bottom: 9px; }
.prod-body p.desc { font-family: var(--font-kr); font-size: 13.5px; line-height: 1.65; letter-spacing: -0.15px; color: var(--text-secondary); }
.prod-list { margin-top: 18px; }
.prod-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--border); padding: 7px 0; font-family: var(--font-kr); font-size: 13px; letter-spacing: -0.15px; }
.prod-list li span.k { color: var(--text-secondary); white-space: nowrap; }
.prod-list li span.v { color: var(--text-primary); font-weight: 500; text-align: right; }
.prod-link {
  margin-top: 14px; align-self: flex-start;
  border-bottom: 1px solid var(--border-underline); padding-bottom: 2px;
  font-family: var(--font-en); font-weight: 500; font-size: 13px; letter-spacing: -0.15px;
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease);
}
.prod-link:hover { border-bottom-color: var(--text-primary); }


/* ============================================================
   BUSINESS
   ============================================================ */

.biz-list { border-top: 1px solid var(--border); }
.biz-row {
  /* 번호·제목을 오른쪽 내용 블록 높이에 맞춰 세로 가운데로 */
  display: flex; align-items: center; gap: 24px;
  padding: 27px 4px 28px; border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease);
}
.biz-row .num { width: 56px; flex-shrink: 0; font-family: var(--font-en); font-size: 13px; letter-spacing: -0.15px; color: var(--text-tertiary); }
.biz-row h3 { width: 230px; flex-shrink: 0; font-family: var(--font-en); font-weight: 600; font-size: 17px; letter-spacing: -0.17px; color: var(--text-primary); }
.biz-row .biz-content { flex: 1; min-width: 0; }
.biz-row .desc { font-family: var(--font-kr); font-size: 14px; line-height: 1.65; letter-spacing: -0.15px; color: var(--text-secondary); margin-bottom: 14px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags span {
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px;
  font-family: var(--font-kr); font-size: 12.5px; letter-spacing: -0.15px; color: var(--text-secondary);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.biz-row:hover .biz-tags span { border-color: var(--border-hover); color: var(--text-primary); }
/* ── 파트너사 · 고객사 로고 (모노톤) ──
   brightness(0) 으로 실루엣만 남기고 invert(1) 로 흰색화한다. 알파는 보존되므로
   배경이 투명한 PNG 면 그대로 누끼가 유지된다.
   평소 55% 로 물러나 있다가 호버하면 또렷해진다. */
.partners { margin-top: 96px; }
.partner-grid {
  /* 칸을 균등하게 나누면(grid) 로고 폭이 제각각이라 좁은 로고 양옆에만 여백이
     더 남아 간격이 어긋난다(실측 142 / 174 / 198px).
     칸이 아니라 '남는 공간'을 균등 배분해 로고 사이 간격을 같게 만든다. */
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: flex-end;
  gap: 0;
}
.partner-item {
  flex: 0 0 auto;
  /* 로고마다 높이가 달라 가운데 정렬하면 아랫변이 어긋난다 — 하단 기준으로 맞춘다 */
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 84px; padding: 6px 0;
}
.partner-item img {
  width: auto; height: auto;
  /* 표시 높이는 로고마다 다르다 — index.html 에 --h 로 심어둔다.
     높이만 맞추면 가로로 긴 로고가 과하게 넓어지므로 면적 기준으로 정규화했다. */
  max-height: var(--h, 46px); max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.partner-item:hover img { opacity: 1; }

/* Partners 블록과 흐르는 고객사 줄 사이 간격 */
.clients { margin-top: 80px; }
.clients-label { font-family: var(--font-en); font-weight: 600; font-size: 12px; line-height: 19.2px; letter-spacing: 0.96px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 16px; }
/* ── 고객사: 가로로 흐르는 한 줄 ──
   같은 그룹 두 벌을 이어 붙이고 트랙을 -50%(= 정확히 한 그룹 폭) 이동시킨다.
   두 벌이 동일하므로 끝나는 순간과 시작이 겹쳐 이음매가 보이지 않는다. */
.marquee {
  position: relative;
  overflow: hidden;
  /* 양 끝을 페이드시켜 잘리는 느낌을 없앤다 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  /* 주기는 트랙 폭에 맞춰 잡는다 — 로고를 늘리거나 간격을 넓히면
     같은 시간에 더 먼 거리를 가야 해서 체감 속도가 빨라진다.
     실측 기준: 트랙 한 벌 4125px / 92s = 초당 약 45px */
  animation: marquee-scroll 92s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; gap: 120px; padding-right: 120px; }

.client-item { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.client-item span {
  font-family: var(--font-kr); font-size: 15px; letter-spacing: -0.15px;
  color: var(--text-secondary); opacity: 0.8;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.client-item img {
  width: auto; height: auto;
  /* 표시 높이는 로고마다 다르다 — index.html 에 --h 로 심어둔다 (면적 기준 정규화).
     max-width 는 주지 않는다. 마퀴 항목은 폭이 내용으로 정해지는 flex 항목이라
     백분율이 순환 참조가 되어 0 으로 풀린다. 폭은 높이×비율로 알아서 정해진다. */
  max-height: var(--h, 32px);
  object-fit: contain;
  /* 이미 흰색으로 구워둔 실루엣이라 색 변환은 필요 없다 */
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}
.client-item:hover span { color: var(--text-primary); opacity: 1; }
.client-item:hover img { opacity: 1; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================================
   TEAM
   ============================================================ */

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.member-card {
  min-width: 0; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
              transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.member-photo { background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: clamp(72px, 10vw, 105px) 20px; position: relative; }
.member-photo::before { content: ''; position: absolute; inset: 12px; border: 1px dashed var(--border-dashed); border-radius: 8px; transition: border-color 0.3s var(--ease); }
.member-photo span { font-family: var(--font-en); font-size: 11.5px; letter-spacing: -0.15px; color: var(--text-tertiary); }
.member-body { padding: 19px 22px 22px; }
.member-body h3 { font-family: var(--font-kr); font-weight: 700; font-size: 16px; line-height: 25.6px; letter-spacing: -0.15px; color: var(--text-primary); }
.member-role { font-family: var(--font-en); font-size: 12.5px; letter-spacing: -0.15px; color: var(--text-secondary); margin-top: 2px; }
.member-body ul { margin-top: 10px; }
.member-body li { border-top: 1px solid var(--border); padding: 5px 0; font-family: var(--font-kr); font-size: 12.5px; line-height: 1.6; letter-spacing: -0.15px; color: var(--text-secondary); }

/* 카드 공통 호버 — 테두리가 밝아지며 살짝 떠오른다 */
.prod-card:hover, .member-card:hover {
  border-color: var(--border-hover);
  background: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.prod-card:hover .prod-shot::before,
.member-card:hover .member-photo::before { border-color: var(--border-dashed-strong); }


/* ============================================================
   NEWS
   ============================================================ */

.news-list { border-top: 1px solid var(--border); }
.news-item {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 4px; border-bottom: 1px solid var(--border);
  transition: padding-left 0.34s var(--ease-out), background-color 0.3s var(--ease);
}
.news-item .press { width: 176px; flex-shrink: 0; font-family: var(--font-kr); font-weight: 600; font-size: 13.5px; letter-spacing: -0.15px; color: var(--text-primary); }
.news-item .headline { flex: 1; min-width: 0; font-family: var(--font-kr); font-size: 14px; line-height: 1.6; letter-spacing: -0.15px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s var(--ease); }
.news-item .date { width: 100px; flex-shrink: 0; text-align: right; font-family: var(--font-en); font-size: 12.5px; letter-spacing: -0.15px; color: var(--text-tertiary); }
.news-item:hover { background: rgba(255, 255, 255, 0.02); padding-left: 14px; }
.news-item:hover .headline { color: var(--text-primary); }


/* ============================================================
   CTA
   ============================================================ */

.cta {
  position: relative; overflow: hidden;
  padding: clamp(88px, 13vw, 156px) 0 clamp(80px, 11vw, 140px);
  background: radial-gradient(ellipse 1240px 750px at 50% 115%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 62%);
}
.cta .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { font-family: var(--font-kr); font-weight: 600; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.3; letter-spacing: -0.792px; max-width: 560px; }
.cta .mail-link { display: inline-block; margin-top: 40px; border-bottom: 1px solid var(--border-underline); padding-bottom: 12px; transition: border-color 0.3s var(--ease); }
.cta .mail-link span { font-family: var(--font-en); font-weight: 600; font-size: clamp(21px, 3.2vw, 30px); line-height: 1.5; letter-spacing: -0.6px; color: var(--text-primary); }
.cta .mail-link:hover { border-bottom-color: var(--text-primary); }
.cta .sub-link { margin-top: 14px; font-family: var(--font-en); font-size: 14px; line-height: 22.4px; letter-spacing: -0.15px; color: var(--text-secondary); transition: color 0.2s var(--ease); }
.cta .sub-link:hover { color: var(--text-primary); }


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { border-top: 1px solid var(--border); padding: 44px 0 52px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.foot-logo { display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.foot-logo img { height: 16px; width: auto; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-family: var(--font-en); font-size: 12.5px; letter-spacing: -0.15px; color: var(--text-secondary); transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--text-primary); }
.foot-legal { font-family: var(--font-kr); font-size: 12.5px; line-height: 1.9; letter-spacing: -0.15px; color: var(--text-tertiary); }


/* ============================================================
   ANIMATION — 스크롤 진입 / 로드 진입
   .js 가드: 자바스크립트가 죽으면 전부 그냥 보인다.
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* 히어로는 관찰자를 기다리지 않고 로드 즉시 순차 진입 */
.js .hero-in { opacity: 0; transform: translateY(22px); }
.js .is-loaded .hero-in,
.js body.is-loaded .hero-in {
  opacity: 1; transform: none;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* 모바일 메뉴 패널 */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .tagline { display: none; }

  .nav-right {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.34s var(--ease-out), visibility 0.28s;
  }
  .site-header.nav-open .nav-right {
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-right a {
    font-size: 16px;
    padding: 15px 2px;
    color: #4b525c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
  .nav-right a:last-child { border-bottom: none; }
  .nav-right a:hover, .nav-right a.is-active { color: #08090a; }
  .nav-right a::after { display: none; }
  /* 메뉴가 열려 있는 동안엔 헤더도 흰색으로 고정 */
  .site-header.nav-open { background: rgba(255, 255, 255, 0.97); border-bottom-color: rgba(0, 0, 0, 0.08); }
  .site-header.nav-open .logo-link img { filter: invert(1); }
  .site-header.nav-open .nav-toggle span { background: #08090a; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
}

@media (max-width: 900px) {
  /* 4개를 한 줄에 두기엔 좁다 — 2x2 그리드로 접는다 */
  .partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .partner-item { padding: 6px 10px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-row h3 { width: 180px; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero h1 span { white-space: normal; }
  .hero p.sub { max-width: 100%; }
  .tech-block { display: flex; flex-direction: column; }
  .tech-children { flex-direction: column; }
  .tb-text { padding: 28px 24px; }
  .cc-viz { width: 100% !important; }
  .biz-row { flex-wrap: wrap; gap: 0 16px; }
  .biz-row .num { width: 42px; }
  .biz-row h3 { width: calc(100% - 58px); margin-bottom: 12px; }
  .biz-row .biz-content { flex: 1 1 100%; }
  .marquee-group { gap: 92px; padding-right: 92px; }
  .news-item { flex-wrap: wrap; gap: 6px 16px; }
  .news-item .press { width: auto; }
  .news-item .headline { flex: 1 1 100%; order: 3; white-space: normal; }
  .news-item .date { width: auto; margin-left: auto; text-align: right; }
  .news-item:hover { padding-left: 8px; }
  .child-card { padding: 24px; }
  .scatter-cap { left: 14px; bottom: 10px; font-size: 10.5px; }
}

@media (max-width: 620px) {
  .partner-grid { gap: 12px; }
  .partner-item { min-height: 62px; padding: 4px; }
  .partner-item img { max-height: calc(var(--h, 46px) * 0.85); }
  .prod-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .marquee-group { gap: 68px; padding-right: 68px; }
  /* 좁은 화면은 간격이 좁아 트랙도 짧다 — 초당 속도를 맞추려면 주기도 줄인다 */
  .marquee-track { animation-duration: 70s; }
  .client-item span { font-size: 14px; }
  .foot-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  /* 링크 높이가 18px 라 손가락으로 누르기 어렵다 — 세로 여백으로 탭 영역을 넓힌다 */
  .foot-links { gap: 2px 20px; }
  .foot-links a { padding: 9px 0; }
  .prod-list li { flex-wrap: wrap; gap: 0 12px; }
  .member-photo { padding: 84px 20px; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .marquee-group { gap: 52px; padding-right: 52px; }
  .partner-item img { max-height: calc(var(--h, 46px) * 0.78); }
  /* 한 줄로는 캡션이 상자를 넘어 잘린다 — 양쪽을 물려 두 줄로 흐르게 한다 */
  .scatter-cap { right: 14px; white-space: normal; line-height: 1.35; }
  .logo-link img { height: 21px; }
  .biz-row h3 { font-size: 15.5px; }
}


/* ============================================================
   접근성 — 모션 최소화 설정을 켠 사용자에겐 애니메이션을 끈다
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .hero-in { opacity: 1 !important; transform: none !important; }
  /* 흐르는 줄은 멈추고, 대신 직접 밀어서 볼 수 있게 한다 */
  .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; }
}

/* 인쇄 */
@media print {
  .site-header, .nav-toggle, .cta { display: none; }
  body { background: #fff; color: #000; }
}
