@charset "utf-8";
/* ==========================================================================
   (주)해솔정보기술 — 공통 스타일시트
   Brand: #971B1E (CI 기본색 레드 — 「해솔정보기술 CI.ai」 규격)

   구성
     01 디자인 토큰        02 리셋 · 기본        03 레이아웃 유틸
     04 버튼 · 링크        05 상단 배너          06 헤더 · 내비게이션
     07 히어로 슬라이더    08 인트로 · 카운터    09 특징 카드
     10 솔루션             11 실적 캐러셀        12 회사 개요 배너
     13 뉴스룸             14 고객사             15 문의 폼
     16 플로팅 버튼        17 서브 히어로        18 서브 본문
     19 타임라인           20 조직도 · CI        21 사업소개 다이어그램
     22 게시판             23 자료실             24 지도
     25 CTA 배너           26 푸터               27 상단 이동
     28 등장 애니메이션    29 인쇄
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. 디자인 토큰
   -------------------------------------------------------------------------- */
:root {
  /* 브랜드 — 「해솔정보기술 CI.ai」 규격 그대로입니다.
     기본색상 : 레드 R151 G27 B30 (C25 M100 Y100 K25) · 먹 R5 G0 B0 (C60 M70 Y70 K95)
     아래 --brand 와 --ci-ink 두 개가 CI 지정색이고, 나머지는 화면용 파생 톤입니다. */
  --brand:        #971b1e;
  --ci-ink:       #050000;
  --brand-dark:   #711416;
  --brand-light:  #e0393d;
  --brand-glow:   #ff4b50;
  --brand-tint:   #fdf2f2;

  /* 다크 계열 — 히어로 · 솔루션 · 고객사 · 문의 섹션 배경 */
  --ink-0:        #0c0e11;
  --ink-1:        #14171c;
  --ink-2:        #1c2027;
  --ink-3:        #272c35;
  --ink-line:     rgba(255, 255, 255, .10);

  /* 밝은 계열 — 서브페이지 본문 */
  --paper:        #ffffff;
  --paper-soft:   #f6f7f9;
  --paper-line:   #e3e6ea;

  /* 텍스트 */
  --text:         #16181d;
  --text-2:       #4a5058;
  --text-3:       #767d87;
  --text-4:       #9aa1ab;
  --on-dark:      #ffffff;
  --on-dark-2:    rgba(255, 255, 255, .72);
  --on-dark-3:    rgba(255, 255, 255, .50);

  /* 타이포 */
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-en: "Montserrat", "Pretendard Variable", "Pretendard", system-ui, sans-serif;

  /* 레이아웃 */
  --container:    1280px;
  --container-narrow: 960px;
  --header-h:     80px;
  --banner-h:     44px;
  --radius:       10px;
  --radius-lg:    18px;
  --radius-xl:    28px;

  /* 효과 */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --shadow-md: 0 4px 10px -2px rgba(16, 24, 40, .10), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .22), 0 6px 14px -6px rgba(16, 24, 40, .10);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   02. 리셋 · 기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--paper);
  word-break: keep-all;          /* 한글은 단어 단위로 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 상단 배너가 떠 있는 동안에는 헤더가 그만큼 아래에서 시작합니다 */
body.has-banner { --offset-top: calc(var(--header-h) + var(--banner-h)); }
body { --offset-top: var(--header-h); }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.025em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
b, strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 300;
  padding: 12px 20px; background: var(--brand); color: #fff;
  border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   03. 레이아웃 유틸
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--soft { background: var(--paper-soft); }

/* 다크 섹션 — 이 안에서는 글자색이 전부 뒤집힙니다 */
.section--dark {
  background: var(--ink-1);
  color: var(--on-dark-2);
}
.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--darker { background: var(--ink-0); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-light);
}
.section--dark .eyebrow { color: var(--brand-glow); }

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.section-desc {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-3);
}
.section--dark .section-desc { color: var(--on-dark-2); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .container { padding-inline: 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
  .section-head { margin-bottom: 36px; }
}

/* --------------------------------------------------------------------------
   04. 버튼 · 링크
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--paper-line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-outline { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* 다크 배경 위 */
.on-dark .btn-ghost,
.section--dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.on-dark .btn-ghost:hover,
.section--dark .btn-ghost:hover { background: rgba(255, 255, 255, .10); border-color: #fff; }

/* 히어로 · 회사 개요 배너 위의 보조 버튼.
 *
 * 두 섹션 모두 배경이 어두운데 .on-dark / .section--dark 를 달고 있지 않아
 * 위의 다크 규칙이 적용되지 않았습니다. 그래서 밝은 배경용 .btn-ghost 가 그대로 먹어
 * 글자가 본문색(#16181d)으로 찍혔고, 검정에 가까운 배경 위라 호버 전에는 보이지 않았습니다.
 * (호버하면 var(--brand) 로 바뀌면서 그제야 붉은 글씨가 드러남)
 *
 * 흰 테두리 + 반투명 흰 배경으로 호버 없이도 읽히게 하되, 채워진 빨강 주 버튼보다는
 * 한 단계 약하게 두어 우선순위를 유지합니다. */
.hero .btn-ghost,
.overview .btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .88);
  border-width: 1.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover,
.overview .btn-ghost:hover {
  background: #fff;
  color: var(--ink-0);
  border-color: #fff;
}

.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 38px; font-size: 16px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--brand);
}
.arrow-link::after { content: "→"; transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
.section--dark .arrow-link { color: var(--brand-glow); }

/* --------------------------------------------------------------------------
   05. 상단 배너
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--banner-h);
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
}
.topbar[hidden] { display: none; }
.topbar__inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 28px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px;
}
.topbar__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__text b { font-weight: 700; }
.topbar__link {
  flex: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.topbar__close {
  flex: none; padding: 4px 10px;
  background: rgba(255, 255, 255, .16); border: 0; border-radius: 999px;
  color: #fff; font-size: 12px;
}
.topbar__close:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 720px) {
  .topbar__inner { padding-inline: 20px; gap: 10px; font-size: 13px; }
  .topbar__link { display: none; }
}

/* --------------------------------------------------------------------------
   06. 헤더 · 내비게이션
   -------------------------------------------------------------------------- */
.header {
  position: fixed; left: 0; right: 0; z-index: 110;
  top: 0;
  height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease), top .3s var(--ease);
  border-bottom: 1px solid transparent;
}
body.has-banner .header { top: var(--banner-h); }

.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}

/* 메인 최상단에서는 투명 + 흰 글자 (히어로 위에 얹힘) */
.header--transparent { background: transparent; color: #fff; }
/* CI 반전 규정: 어두운 배경 위에서는 심볼까지 전부 흰색 (심볼만 레드로 남기면 금지) */
.header--transparent .logo__symbol,
.header--transparent .logo__type { fill: #fff; }
.header--transparent .gnb__link { color: #fff; }
.header--transparent .header__cta a { color: #fff; border-color: rgba(255, 255, 255, .3); }
.header--transparent .nav-toggle span { background: #fff; }

/* 스크롤하면 흰 배경으로 */
.header.is-scrolled,
.header:not(.header--transparent) {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--paper-line);
  color: var(--text);
}
.header.is-scrolled .logo__symbol,
.header:not(.header--transparent) .logo__symbol { fill: var(--brand); }
.header.is-scrolled .logo__type,
.header:not(.header--transparent) .logo__type { fill: var(--ci-ink); }
.header.is-scrolled .gnb__link,
.header:not(.header--transparent) .gnb__link { color: var(--text); }
.header.is-scrolled .header__cta a,
.header:not(.header--transparent) .header__cta a { color: var(--brand); border-color: var(--paper-line); }
.header.is-scrolled .nav-toggle span,
.header:not(.header--transparent) .nav-toggle span { background: var(--text); }

/* 본문은 고정 헤더 높이만큼 내려옵니다. 메인 히어로는 예외(풀스크린) */
body:not([data-page="home"]) main { padding-top: var(--offset-top); }

/* 로고 — CI 「로고 국문조합」. 원본 비율 254.71 : 39.25 를 그대로 씁니다.
   높이만 지정하고 너비는 auto 로 두어 비율이 틀어지지 않게 합니다. */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__ci { display: block; height: 32px; width: auto; flex: none; }
.logo__symbol { fill: var(--brand); transition: fill .3s var(--ease); }
.logo__type   { fill: var(--ci-ink); transition: fill .3s var(--ease); }

@media (max-width: 480px) { .logo__ci { height: 26px; } }

/* GNB */
.gnb { flex: 1; }
.gnb__list { display: flex; align-items: center; gap: 4px; }
.gnb__item { position: relative; }

.gnb__link {
  display: block; padding: 12px 20px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em;
  color: var(--text);
  position: relative;
}
.gnb__link::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 4px;
  height: 2px; background: var(--brand-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.gnb__item:hover .gnb__link::after,
.gnb__item.is-active .gnb__link::after { transform: scaleX(1); }

/* 드롭다운 */
.gnb__sub {
  position: absolute; top: 100%; left: 8px; min-width: 190px;
  padding: 10px; margin-top: 6px;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub { opacity: 1; visibility: visible; transform: translateY(0); }

.gnb__sub a {
  display: block; padding: 10px 14px; border-radius: 7px;
  font-size: 15px; color: var(--text-2);
}
.gnb__sub a:hover { background: var(--brand-tint); color: var(--brand); }
.gnb__sub a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* 헤더 우측 전화번호 */
.header__cta { margin: 0; flex: none; }
.header__cta a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border: 1px solid var(--paper-line); border-radius: 999px;
  font-family: var(--font-en);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  color: var(--brand);
}
.header__cta a:hover { border-color: var(--brand); }

/* 햄버거 */
.nav-toggle {
  display: none; flex: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .gnb, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { justify-content: space-between; gap: 16px; }
  :root { --header-h: 68px; }
}

/* 모바일 드로어 */
.mnav {
  position: fixed; inset: 0; z-index: 105;
  padding: calc(var(--offset-top) + 24px) 24px 40px;
  background: var(--ink-1); color: var(--on-dark-2);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
body.nav-open { overflow: hidden; }

.mnav__group { padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.mnav__title {
  display: block; font-size: 19px; font-weight: 700; color: #fff;
  letter-spacing: -.02em;
}
.mnav__sub { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mnav__sub a {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 14.5px; color: var(--on-dark-2);
}
.mnav__sub a[aria-current="page"] { background: var(--brand); color: #fff; }

.mnav__contact { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.mnav__contact dt { font-size: 13px; color: var(--on-dark-3); }
.mnav__contact dd { margin: 0; font-weight: 600; color: #fff; }

/* --------------------------------------------------------------------------
   07. 히어로 슬라이더 (메인)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; min-height: 640px; max-height: 1000px;
  background: var(--ink-0);
  color: #fff;
  overflow: hidden;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

/* 슬라이드별 배경 — 사진 없이 그라디언트와 격자만으로 구성했습니다.
   실제 현장 사진이 생기면 각 .hero__bg 에 background-image 만 얹으면 됩니다. */
.hero__bg { position: absolute; inset: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 14, 17, .94) 0%, rgba(12, 14, 17, .70) 46%, rgba(12, 14, 17, .38) 100%);
}
.hero__slide:nth-child(1) .hero__bg {
  background: radial-gradient(120% 130% at 78% 22%, #6d1417 0%, #2a1013 42%, #0c0e11 78%);
}
.hero__slide:nth-child(2) .hero__bg {
  background: radial-gradient(120% 130% at 82% 78%, #1b3350 0%, #131c28 44%, #0c0e11 80%);
}
.hero__slide:nth-child(3) .hero__bg {
  background: radial-gradient(120% 130% at 20% 30%, #8a1519 0%, #2c1114 46%, #0c0e11 82%);
}
.hero__slide:nth-child(4) .hero__bg {
  background: radial-gradient(120% 130% at 70% 40%, #243a33 0%, #14201d 44%, #0c0e11 80%);
}

/* 격자 오버레이 — 제조 현장 도면 느낌 */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(90% 80% at 70% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 40%, #000 20%, transparent 78%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__body { max-width: 860px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-en);
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-glow);
}
.hero__eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7;
}

.hero__title {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.035em;
}
.hero__title em { font-style: normal; color: var(--brand-glow); }

.hero__en {
  margin: 0 0 20px;
  font-family: var(--font-en);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500; letter-spacing: .01em;
  color: rgba(255, 255, 255, .82);
}

.hero__desc {
  max-width: 620px; margin: 0;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.8;
  color: var(--on-dark-2);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* 슬라이드 인디케이터 */
.hero__nav {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 3;
}
.hero__nav-inner {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 28px;
  display: flex; align-items: center; gap: 20px;
}
.hero__dots { display: flex; align-items: center; gap: 6px; }
.hero__dot {
  width: 40px; height: 34px; padding: 0;
  background: none; border: 0;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .45);
  position: relative;
  transition: color .2s var(--ease);
}
.hero__dot::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px;
  height: 2px; background: rgba(255, 255, 255, .22);
}
.hero__dot[aria-current="true"] { color: #fff; }
.hero__dot[aria-current="true"]::after { background: var(--brand-glow); }

.hero__control {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .10); border: 0; border-radius: 50%;
  color: #fff;
}
.hero__control:hover { background: rgba(255, 255, 255, .22); }

/* Scroll Down */
.hero__scroll {
  position: absolute; right: 28px; bottom: 44px; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.hero__scroll::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent);
  animation: scroll-hint 2s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; max-height: none; padding: calc(var(--offset-top) + 72px) 0 128px; }
  .hero__slides { position: relative; }
  .hero__slide { position: absolute; }
  .hero__slide.is-active { position: relative; }
  .hero__scroll { display: none; }
  .hero__nav { bottom: 32px; }
  .hero__nav-inner { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after { animation: none; }
  .hero__slide { transition: none; }
}

/* --------------------------------------------------------------------------
   08. 인트로 · 카운터
   -------------------------------------------------------------------------- */
.intro { padding: 120px 0; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.intro__title { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.28; }
.intro__desc { font-size: 16.5px; line-height: 1.85; color: var(--text-3); }
.intro__desc + .intro__desc { margin-top: 18px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; margin-top: 72px;
  padding-top: 48px; border-top: 1px solid var(--paper-line);
}
.stat__num {
  display: flex; align-items: baseline; gap: 3px;
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 50px); font-weight: 700;
  line-height: 1; letter-spacing: -.03em;
  color: var(--brand);
}
.stat__num small { font-size: .42em; font-weight: 600; color: var(--text-3); }
.stat__label { display: block; margin-top: 12px; font-size: 14.5px; color: var(--text-3); }

@media (max-width: 900px) {
  .intro { padding: 72px 0; }
  .intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; margin-top: 48px; padding-top: 36px; }
}

/* --------------------------------------------------------------------------
   09. 특징 카드
   -------------------------------------------------------------------------- */
.card {
  display: block; padding: 34px 30px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 22px;
  background: var(--brand-tint); border-radius: 14px; color: var(--brand);
}
.card__title { font-size: 20px; margin-bottom: 12px; }
.card__desc { font-size: 15.5px; line-height: 1.75; color: var(--text-3); margin: 0; }
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--brand);
}
.card__more::after { content: "→"; transition: transform .2s var(--ease); }
a.card:hover .card__more::after { transform: translateX(4px); }

/* 다크 배경 위 카드 */
.section--dark .card {
  background: var(--ink-2); border-color: var(--ink-line);
}
.section--dark .card__desc { color: var(--on-dark-2); }
.section--dark .card__icon { background: rgba(224, 57, 61, .16); color: var(--brand-glow); }
.section--dark a.card:hover { border-color: var(--brand-light); }

/* 번호가 붙은 특징 카드 (Smart Factory 섹션) */
.feature-card { position: relative; padding: 40px 32px; }
.feature-card__no {
  display: block; margin-bottom: 20px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--brand-glow);
}
.feature-card__title { font-size: 21px; margin-bottom: 8px; }
.feature-card__en {
  display: block; margin-bottom: 16px;
  font-family: var(--font-en); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--on-dark-3);
}

/* 체크 목록 */
.feature-list { display: grid; gap: 22px; }
.feature-list > li {
  position: relative; padding-left: 34px;
  font-size: 15.5px; line-height: 1.75; color: var(--text-3);
}
.feature-list > li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23971b1e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.feature-list > li strong { color: var(--text); font-weight: 700; }
.section--dark .feature-list > li { color: var(--on-dark-2); }
.section--dark .feature-list > li strong { color: #fff; }

/* --------------------------------------------------------------------------
   10. 솔루션 섹션
   -------------------------------------------------------------------------- */
.solutions__grid {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px;
  align-items: start;
}
.solutions__aside { position: sticky; top: calc(var(--offset-top) + 48px); }
.solutions__title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.solutions__title em { font-style: normal; color: var(--brand-glow); }
.solutions__desc { margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--on-dark-2); }
.solutions__points { margin-top: 30px; display: grid; gap: 14px; }
.solutions__points li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--on-dark-2);
}
.solutions__points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 12px; height: 1px; background: var(--brand-glow);
}

.solution-list { display: grid; gap: 16px; }
.solution-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 24px;
  padding: 30px 32px;
  background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.solution-item:hover {
  border-color: var(--brand-light); background: var(--ink-3); transform: translateX(6px);
}
.solution-item__no {
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--brand-glow);
}
.solution-item__name { font-size: 20px; color: #fff; margin-bottom: 8px; }
.solution-item__desc { margin: 0; font-size: 15px; line-height: 1.72; color: var(--on-dark-2); }
.solution-item__go {
  flex: none; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-line); border-radius: 50%; color: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.solution-item:hover .solution-item__go { background: var(--brand); border-color: var(--brand); }

@media (max-width: 1024px) {
  .solutions__grid { grid-template-columns: 1fr; gap: 40px; }
  .solutions__aside { position: static; }
}
@media (max-width: 640px) {
  .solution-item { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding: 24px 22px; }
  .solution-item__go { display: none; }
}

/* --------------------------------------------------------------------------
   11. 실적 캐러셀
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex; gap: 22px;
  transition: transform .55s var(--ease-out);
}
.carousel__item {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
}
.carousel__controls { display: flex; gap: 10px; margin-top: 36px; justify-content: center; }
.carousel__btn {
  width: 46px; height: 46px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 50%;
  color: var(--text-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.carousel__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.carousel__btn:disabled { opacity: .35; cursor: default; }

.work-card {
  height: 100%; padding: 32px 28px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.work-card__year {
  font-family: var(--font-en); font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--brand);
}
.work-card__title {
  font-size: 17.5px; line-height: 1.5; color: var(--text);
  font-weight: 700; letter-spacing: -.02em;
}
.work-card__client {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--paper-line);
  font-size: 14px; color: var(--text-3);
}

@media (max-width: 1024px) { .carousel__item { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px)  { .carousel__item { flex-basis: 100%; } }

/* --------------------------------------------------------------------------
   12. 회사 개요 배너
   -------------------------------------------------------------------------- */
.overview {
  position: relative; overflow: hidden;
  padding: 132px 0;
  background:
    radial-gradient(90% 140% at 12% 20%, rgba(158, 11, 15, .40) 0%, transparent 62%),
    var(--ink-0);
  color: #fff;
}
.overview::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 90% at 80% 50%, #000 10%, transparent 76%);
  -webkit-mask-image: radial-gradient(80% 90% at 80% 50%, #000 10%, transparent 76%);
}
.overview .container { position: relative; z-index: 2; }
.overview__title { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.3; color: #fff; }
.overview__desc { margin-top: 22px; max-width: 640px; font-size: 16.5px; line-height: 1.8; color: var(--on-dark-2); }
.overview__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

@media (max-width: 720px) { .overview { padding: 80px 0; } }

/* --------------------------------------------------------------------------
   13. 뉴스룸 · 목록 패널
   -------------------------------------------------------------------------- */
.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 18px; margin-bottom: 8px;
  border-bottom: 2px solid var(--text);
}
.panel-title { font-size: 21px; }

.notice-list > li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--paper-line);
}
.notice-row__title {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15.5px; color: var(--text-2);
}
.notice-list a:hover .notice-row__title { color: var(--brand); }
.notice-list time {
  flex: none;
  font-family: var(--font-en); font-size: 13.5px; color: var(--text-4);
}

/* 뉴스 카드형 (메인 Newsroom) */
.news-card {
  display: flex; flex-direction: column; gap: 14px;
  height: 100%; padding: 34px 30px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.news-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card__date { font-family: var(--font-en); font-size: 13px; color: var(--brand); font-weight: 600; }
.news-card__title { font-size: 18px; line-height: 1.5; color: var(--text); }
.news-card__more { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--text-4); }

/* --------------------------------------------------------------------------
   14. 고객사
   -------------------------------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--ink-line); }
.clients > li {
  padding: 32px 24px; background: var(--ink-1);
  transition: background .25s var(--ease);
}
.clients > li:hover { background: var(--ink-2); }
.client__name { display: block; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.client__field { display: block; margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-3); }

@media (max-width: 1024px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .clients { grid-template-columns: repeat(2, 1fr); } .clients > li { padding: 22px 16px; } }

/* 텍스트 로고 스트립 (구축실적 페이지 등 밝은 배경용) */
.client-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.client-strip > li {
  padding: 12px 22px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   15. 문의 폼
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 72px; align-items: start; }
.contact__title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.contact__desc { margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--on-dark-2); }

.contact__info { margin-top: 36px; display: grid; gap: 18px; }
.contact__info dt {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-glow);
}
.contact__info dd { margin: 6px 0 0; font-size: 16px; color: #fff; }
.contact__info dd span { display: block; font-size: 14.5px; color: var(--on-dark-2); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-size: 13.5px; font-weight: 600; color: var(--on-dark-2);
}
.field .req { color: var(--brand-glow); margin-left: 3px; }

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%; padding: 15px 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  font: inherit; font-size: 15.5px; color: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .34); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand-light); background: rgba(255, 255, 255, .09);
}
.form textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--brand-glow); }

.field__error { font-size: 13px; color: var(--brand-glow); min-height: 0; }
.field__error:empty { display: none; }

/* 허니팟 — 사람 눈에는 보이지 않습니다 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  padding: 22px 24px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line);
  border-radius: var(--radius);
}
.consent__box {
  max-height: 132px; overflow-y: auto;
  font-size: 13px; line-height: 1.72; color: var(--on-dark-3);
}
.consent__box h4 { font-size: 13px; color: var(--on-dark-2); margin: 14px 0 4px; }
.consent__box h4:first-child { margin-top: 0; }
.consent__check {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-line);
  font-size: 14.5px; color: #fff; cursor: pointer;
}
.consent__check input { width: 18px; height: 18px; accent-color: var(--brand-light); flex: none; }

.form__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--on-dark-2); }
.form__status.is-error { color: var(--brand-glow); }

@media (max-width: 1024px) { .contact__grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 640px)  { .form__row { grid-template-columns: 1fr; } }

/* 접수 완료 모달 */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(12, 14, 17, .72);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: 100%; max-width: 400px; padding: 44px 34px 32px;
  background: #fff; border-radius: var(--radius-lg); text-align: center;
  transform: translateY(12px); transition: transform .28s var(--ease-out);
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__icon {
  width: 62px; height: 62px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border-radius: 50%; color: var(--brand);
}
.modal__title { font-size: 20px; margin-bottom: 10px; }
.modal__desc { font-size: 15px; color: var(--text-3); margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   16. 우측 플로팅 버튼
   -------------------------------------------------------------------------- */
.quick {
  position: fixed; right: 24px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: grid; gap: 8px;
}
.quick__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 82px; height: 82px; padding: 8px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.quick__item:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick__item svg { flex: none; }

@media (max-width: 1200px) { .quick { display: none; } }

/* --------------------------------------------------------------------------
   17. 서브페이지 히어로
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 76px;
  background:
    radial-gradient(100% 160% at 88% 10%, rgba(158, 11, 15, .42) 0%, transparent 60%),
    var(--ink-0);
  color: #fff;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(70% 100% at 85% 30%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 100% at 85% 30%, #000 5%, transparent 72%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero__eyebrow {
  display: block; margin-bottom: 14px;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand-glow);
}
.page-hero__title {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 50px);
  letter-spacing: -.035em;
}
.page-hero__desc { margin: 16px 0 0; font-size: 17px; color: var(--on-dark-2); }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 28px;
  font-size: 13.5px; color: var(--on-dark-3);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .28); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* 서브 메뉴 탭 */
.subnav { border-bottom: 1px solid var(--paper-line); background: #fff; }
.subnav__list { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: block; padding: 20px 26px; white-space: nowrap;
  font-size: 15.5px; font-weight: 600; color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.subnav__list a:hover { color: var(--text); }
.subnav__list a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

@media (max-width: 720px) {
  .page-hero { padding: 56px 0 48px; }
  .subnav__list a { padding: 16px 18px; font-size: 14.5px; }
}

/* --------------------------------------------------------------------------
   18. 서브페이지 본문
   -------------------------------------------------------------------------- */
.prose { max-width: 900px; }
.prose h3 {
  margin: 0 0 22px; padding-left: 16px;
  font-size: clamp(21px, 2.4vw, 27px);
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}
.prose h3 + p, .prose h3 + .lead { margin-top: 0; }
.prose h4 {
  margin: 44px 0 16px;
  font-size: 18px; color: var(--text);
}
.prose p { font-size: 16px; line-height: 1.85; color: var(--text-3); }
.prose .lead {
  font-size: 18.5px; line-height: 1.75; color: var(--text-2); font-weight: 500;
}
.prose b { color: var(--text); }
.prose section + section { margin-top: 76px; }

.quote {
  position: relative;
  margin: 0 0 40px; padding: 34px 0 0 0;
  font-size: clamp(20px, 2.6vw, 27px); line-height: 1.6;
  font-weight: 700; letter-spacing: -.03em; color: var(--text);
}
.quote::before {
  content: "“"; position: absolute; top: -10px; left: -6px;
  font-family: Georgia, serif; font-size: 88px; line-height: 1;
  color: var(--brand); opacity: .16;
}
.signature {
  margin-top: 40px; text-align: right;
  color: var(--text); font-weight: 700;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--paper-line); border-radius: var(--radius); }
.table-info { min-width: 520px; font-size: 15.5px; }
.table-info th, .table-info td { padding: 17px 22px; text-align: left; vertical-align: top; }
.table-info th {
  width: 180px; background: var(--paper-soft); color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--paper-line);
}
.table-info td { color: var(--text-3); border-bottom: 1px solid var(--paper-line); }
.table-info tr:last-child th, .table-info tr:last-child td { border-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 9px 17px;
  background: var(--paper-soft); border: 1px solid var(--paper-line); border-radius: 999px;
  font-size: 14.5px; color: var(--text-2);
}

/* --------------------------------------------------------------------------
   19. 연혁 타임라인
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: 4px; }
.timeline__year {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--paper-line);
}
.timeline__year:first-child { border-top: 0; padding-top: 0; }
.timeline__label {
  font-family: var(--font-en);
  font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--brand);
}
.timeline__events { display: grid; gap: 14px; }
.timeline__event { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.timeline__month {
  font-family: var(--font-en); font-size: 13.5px; font-weight: 600; color: var(--text-4);
}
.timeline__text { font-size: 15.5px; line-height: 1.7; color: var(--text-3); }
.timeline__text b { color: var(--text); }

@media (max-width: 640px) {
  .timeline__year { grid-template-columns: 1fr; gap: 14px; }
  .timeline__label { font-size: 25px; }
}

/* --------------------------------------------------------------------------
   20. 조직도 · CI
   -------------------------------------------------------------------------- */
.orgchart { text-align: center; overflow-x: auto; }
.orgchart__node {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 132px; padding: 15px 26px;
  border-radius: var(--radius); font-weight: 600; font-size: 15.5px;
}
.orgchart__node--head { background: var(--brand); color: #fff; font-size: 17px; padding: 17px 34px; }
.orgchart__node--dept { background: var(--ink-1); color: #fff; min-width: 176px; white-space: nowrap; }
.orgchart__node--team { background: var(--paper-soft); color: var(--text-2); border: 1px solid var(--paper-line); }

/* 부모 노드에서 자식 행으로 내려오는 세로 줄기 */
.orgchart__connector { width: 1px; height: 26px; margin: 0 auto; background: var(--paper-line); }

/* 자식들이 놓이는 가로 행 — 가로 연결선이 끊기지 않도록 gap 대신 가지 좌우 padding 을 씁니다 */
.orgchart__row { display: flex; justify-content: center; flex-wrap: nowrap; }

/* 각 가지 위쪽에 ┌─┬─┐ 형태의 트리 연결선(가로 버스 + 세로 낙하선)을 그립니다 */
.orgchart__branch { position: relative; padding: 24px 14px 0; }
.orgchart__branch > .orgchart__row { margin-top: 0; }

.orgchart__branch::before,
.orgchart__branch::after {
  content: ''; position: absolute; top: 0; right: 50%;
  width: 50%; height: 24px;
  border-top: 1px solid var(--paper-line);
}
.orgchart__branch::after {          /* 오른쪽 절반 + 가운데로 내려오는 낙하선 */
  right: auto; left: 50%;
  border-left: 1px solid var(--paper-line);
}
/* 양 끝 가지는 바깥쪽 가로선을 지우고, 끝 가지의 낙하선은 ::before 로 대신 그립니다 */
.orgchart__branch:first-child::before { border-top: 0; }
.orgchart__branch:last-child::after   { border: 0; }
.orgchart__branch:last-child::before  { border-right: 1px solid var(--paper-line); }
/* 자식이 하나뿐이면 가로선 없이 세로 낙하선만 */
.orgchart__branch:only-child::before  { display: none; }
.orgchart__branch:only-child::after   { border-top: 0; }

/* CI 로고 조합 — 원본 비율을 지키려고 너비는 auto 로 둡니다 */
.ci-lockups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ci-lockup { border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; }
.ci-lockup__stage {
  display: flex; align-items: center; justify-content: center;
  height: 132px; padding: 24px 28px; background: var(--paper-soft);
}
.ci-lockup__stage img { max-width: 100%; height: auto; }
.ci-lockup__stage--reverse { background: var(--ink-0); }
.ci-lockup__stage--brand { background: var(--brand); }
.ci-lockup__name { display: block; padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 860px) { .ci-lockups { grid-template-columns: 1fr; } }

.ci-colors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ci-color { border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; }
.ci-color__swatch { height: 108px; }
.ci-color__body { padding: 16px 18px; }
.ci-color__name { display: block; font-weight: 700; color: var(--text); font-size: 15px; }
.ci-color__code {
  display: block; margin-top: 5px;
  font-family: var(--font-en); font-size: 12.5px; color: var(--text-4);
}
@media (max-width: 640px) { .ci-colors { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   21. 사업소개 다이어그램
   -------------------------------------------------------------------------- */
.layer-diagram { display: grid; gap: 10px; margin: 32px 0; }
.layer { padding: 24px 28px; border-radius: var(--radius); border: 1px solid var(--paper-line); }
.layer--erp { background: var(--paper-soft); }
.layer--mes { background: var(--brand); border-color: var(--brand); color: #fff; }
.layer--pop { background: var(--ink-1); border-color: var(--ink-1); color: #fff; }
.layer__name { display: block; font-weight: 700; font-size: 16.5px; }
.layer--erp .layer__name { color: var(--text); }
.layer__desc { display: block; margin-top: 6px; font-size: 14.5px; opacity: .82; }
.layer--erp .layer__desc { color: var(--text-3); opacity: 1; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 24px 0; }
.flow--4 { grid-template-columns: repeat(4, 1fr); }
.flow__step {
  position: relative;
  padding: 22px 18px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  text-align: center;
}
.flow__step b { display: block; font-size: 15px; color: var(--text); }
.flow__step span { display: block; margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--text-4); }
.flow__step:not(:last-child)::after {
  content: "›"; position: absolute; right: -9px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; color: var(--text-4); z-index: 1;
}
@media (max-width: 900px) {
  .flow, .flow--4 { grid-template-columns: repeat(2, 1fr); }
  .flow__step::after { display: none; }
}
@media (max-width: 480px) { .flow, .flow--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   22. 게시판
   -------------------------------------------------------------------------- */
.board-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.board-count { margin: 0; font-size: 14.5px; color: var(--text-3); }
.board-count b { color: var(--brand); font-weight: 700; }
.board-filters { display: flex; gap: 10px; flex-wrap: wrap; }

.board-filters .field { position: relative; display: block; }
.board-filters select,
.board-filters input[type="search"] {
  padding: 11px 16px;
  border: 1px solid var(--paper-line); border-radius: var(--radius);
  font: inherit; font-size: 14.5px; color: var(--text);
  background: #fff;
}
.board-filters input[type="search"] { padding-left: 38px; min-width: 240px; }
.board-filters select:focus, .board-filters input:focus {
  outline: none; border-color: var(--brand);
}
.board-filters .field svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); pointer-events: none;
}

.board { font-size: 15.5px; }
.board thead th {
  padding: 15px 12px;
  border-top: 2px solid var(--text); border-bottom: 1px solid var(--paper-line);
  font-size: 14.5px; font-weight: 600; color: var(--text);
  background: var(--paper-soft);
}
.board td { padding: 17px 12px; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.board .col-num, .board .col-date { text-align: center; color: var(--text-4); font-size: 14px; }
.board .col-date { font-family: var(--font-en); }
.board .col-client { color: var(--text-3); font-size: 14.5px; }
.board .col-title { color: var(--text-2); }
.board tbody tr:hover { background: var(--paper-soft); }

.subject { color: var(--text-2); }
.row-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; background: none; border: 0; text-align: left;
}
.row-toggle:hover .subject { color: var(--brand); }
.row-toggle::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 1.6px solid var(--text-4); border-bottom: 1.6px solid var(--text-4);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.row-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.row-body td { background: var(--paper-soft); color: var(--text-3); font-size: 15px; line-height: 1.8; }

.badge {
  display: inline-block; margin-right: 8px; padding: 3px 9px;
  background: var(--brand); border-radius: 4px;
  font-size: 11.5px; font-weight: 700; color: #fff; vertical-align: 1px;
}

.board-empty { padding: 64px 20px; text-align: center; }
.board-empty strong { display: block; font-size: 16.5px; color: var(--text); margin-bottom: 6px; }
.board-empty span { font-size: 14.5px; color: var(--text-4); }

mark { background: rgba(224, 57, 61, .18); color: inherit; padding: 0 2px; border-radius: 2px; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 40px; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 8px;
  font-size: 14.5px; color: var(--text-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.pagination button:hover:not(:disabled):not([aria-current]) { border-color: var(--brand); color: var(--brand); }
.pagination button[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pagination button:disabled { opacity: .35; cursor: default; }

/* 모바일에서는 표를 카드로 */
@media (max-width: 720px) {
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board tr {
    padding: 16px 4px; border-bottom: 1px solid var(--paper-line);
  }
  .board tr:first-child { border-top: 2px solid var(--text); }
  .board td { padding: 3px 0; border: 0; }
  .board .col-num { display: none; }
  .board .col-title { font-size: 16px; color: var(--text); font-weight: 600; }
  .board .col-client { text-align: left; }
  .board .col-client::before { content: "발주처 "; color: var(--text-4); }
  .board .col-date { text-align: left; }
  .board-filters { width: 100%; }
  .board-filters input[type="search"] { min-width: 0; width: 100%; }
  .board-filters .field { flex: 1; }
}

/* --------------------------------------------------------------------------
   23. 자료실
   -------------------------------------------------------------------------- */
.resource-list { display: grid; gap: 14px; }
.resource-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 22px;
  padding: 24px 26px;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.resource-item:hover { border-color: var(--brand); box-shadow: var(--shadow-md); }
.resource-item__icon {
  width: 46px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-tint); border-radius: 12px; color: var(--brand);
}
.resource-item__title { font-size: 17px; color: var(--text); margin-bottom: 5px; }
.resource-item__meta { font-size: 13.5px; color: var(--text-4); }
.resource-item__meta span + span::before { content: "·"; margin: 0 8px; }

@media (max-width: 640px) {
  .resource-item { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
  .resource-item .btn { grid-column: 1 / -1; width: 100%; }
}

/* --------------------------------------------------------------------------
   24. 지도 · 오시는 길
   -------------------------------------------------------------------------- */
.map-frame {
  border: 1px solid var(--paper-line); border-radius: var(--radius-lg); overflow: hidden;
  min-height: 400px; background: var(--paper-soft);
}
.map-frame > div { width: 100% !important; height: 400px !important; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; }
.contact-item {
  padding: 28px 26px;
  background: var(--paper-soft); border-radius: var(--radius-lg);
}
.contact-item dt {
  font-family: var(--font-en); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.contact-item dd { margin: 0; font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
.contact-item dd + dd { margin-top: 6px; font-size: 14.5px; color: var(--text-4); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   25. CTA 배너
   -------------------------------------------------------------------------- */
.cta {
  padding: 96px 0; text-align: center;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 58%, #b31419 100%);
  color: #fff;
}
.cta__title { color: #fff; font-size: clamp(23px, 3vw, 34px); }
.cta__desc { margin: 16px auto 0; max-width: 620px; font-size: 16.5px; color: rgba(255, 255, 255, .82); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover { background: rgba(255, 255, 255, .88); color: var(--brand-dark); }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

@media (max-width: 720px) { .cta { padding: 64px 0; } }

/* --------------------------------------------------------------------------
   26. 푸터
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-0); color: var(--on-dark-3); padding: 72px 0 32px; font-size: 14.5px; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--ink-line);
}
.footer .logo__ci { height: 30px; }
.footer__tagline { margin-top: 20px; line-height: 1.75; color: var(--on-dark-3); max-width: 340px; }

.footer__col-title { font-size: 14.5px; color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer__links { display: grid; gap: 11px; }
.footer__links a:hover { color: #fff; }

.footer__contact { margin: 0; display: grid; gap: 12px; }
.footer__contact dt { font-size: 12.5px; color: rgba(255, 255, 255, .35); }
.footer__contact dd { margin: 3px 0 0; color: var(--on-dark-2); line-height: 1.6; }
.footer__contact dd a:hover { color: #fff; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 28px;
}
.footer__biz { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; }
.footer__copy { margin: 0; font-family: var(--font-en); font-size: 12.5px; color: rgba(255, 255, 255, .32); }

@media (max-width: 1024px) { .footer__top { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (max-width: 600px)  { .footer__top { grid-template-columns: 1fr; } .footer { padding: 52px 0 28px; } }

/* --------------------------------------------------------------------------
   27. 상단 이동 버튼
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); border: 0; border-radius: 50%;
  color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-dark); }

/* --------------------------------------------------------------------------
   28. 스크롤 등장 애니메이션
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   29. 인쇄
   -------------------------------------------------------------------------- */
@media print {
  .header, .mnav, .topbar, .quick, .to-top, .hero__nav, .hero__scroll,
  .cta, .subnav, .footer__links { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .intro { padding: 24px 0; }
  .page-hero, .section--dark, .overview, .footer { background: #fff !important; color: #000 !important; }
  .page-hero__title, .section--dark h2, .overview__title { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
