/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --color-bg:        #f5f4f0;
  --color-off:       #efefeb;
  --color-white:     #ffffff;
  --color-dark:      #141414;
  --color-header:    #0f1f10;      /* 다크 그린-블랙 헤더 */
  --color-dg:        #142318;      /* 진한 그린 섹션 */
  --color-accent:    #2d6a35;      /* 포레스트 그린 */
  --color-cta:       #1f8a46;      /* 밝은 그린 CTA */
  --color-text:      #1e1e1e;
  --color-muted:     #6b6b6b;
  --font:            'Pretendard', -apple-system, sans-serif;
  --max-w:           1320px;
  --tr:              0.32s ease;
  --header-h:        69px; /* .header-inner(68px) + border-bottom(1px). 헤더 실제 높이가
                               바뀌면 이 값도 같이 바꿔야 스크롤 스냅 시 흰 틈이 안 생김 */
}

html { scroll-behavior: smooth; font-size: 16px; }
/* 모든 섹션이 min-height:100vh로 한 화면에 확실히 들어오도록 보장했으므로
   진짜 풀페이지 스크롤 느낌을 위해 mandatory 사용 (섹션이 뷰포트를 넘으면
   다시 문제가 생기니, 새 섹션 추가 시 반드시 1366×768에서 한 화면에
   들어오는지 확인할 것) */
html.snap-page { scroll-snap-type: y mandatory; }

body {
  font-family: var(--font);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--color-white);
}

/* 메인 페이지 섹션 단위 스크롤 스냅 — page-dots 목록과 동일한 섹션들.
   scroll-margin-top은 헤더 높이보다 2px 작게 둬서 섹션이 헤더 아래로
   살짝(2px) 들어가게 함 — 정확히 맞추면 배율/서브픽셀 반올림에 따라
   헤더가 못 덮는 실선이 생길 수 있어 안전 여유를 준 것 */
#hero, #about, #history, #products-sec, #projects, #process, #certification, #skills, #inquiry-status {
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--header-h) - 2px);
}
/* 푸터도 스냅 지점으로 지정 — 안 그러면 mandatory 스냅이 마지막 섹션에서
   더 못 내려가게 붙잡아버림(푸터가 뷰포트보다 짧을 때 특히) */
#footer { scroll-snap-align: end; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 52px;
}
.container-fluid { width: 100%; }

.sec {
  padding: 100px 0 80px;
  overflow: hidden;
}
.bg-white { background: var(--color-white); }
.bg-off   { background: var(--color-off); }
.bg-dark-green { background: var(--color-dg); }

/* 풀페이지 스크롤(index.php)에서만 "섹션 = 한 화면"이 되도록 강제.
   다른 페이지의 .sec/#skills에는 영향 없음(html.snap-page로 범위 한정) */
html.snap-page .sec,
html.snap-page #certification,
html.snap-page #skills {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 90vh로 완화했다가 롤백함 — mandatory 스냅에서 섹션 박스를 화면보다
   작게 만들면, 스냅 시 남는 부분에 다음 섹션이 그대로 노출되는 더 눈에
   띄는 문제가 생김(화면 크기에 따라 노출 폭이 들쭉날쭉해짐). 여백 문제는
   박스 높이를 줄이는 산술적 방법이 아니라, 각 섹션 콘텐츠 자체를 더
   여유 있게 디자인(스크롤 등장 효과 작업 때 함께)하는 방향으로 해결 예정.
   지금은 100vh 유지로 "다음 섹션 노출" 문제부터 확실히 없앰 */

/* 1366×768급 노트북처럼 세로 공간이 좁은 화면에서는 섹션 여백을 줄여
   내용이 한 화면 안에 최대한 자연스럽게 들어오도록 함 (내용이 넘치면
   min-height 기반이라 잘리지 않고 그대로 스크롤됨) */
@media (max-height: 820px) {
  .sec { padding: 64px 0 52px; }
  .sec-head { margin-bottom: 36px; }
  .combo-block { padding: 64px 0 52px; }
  .combo-dark { padding-bottom: 40px; }
  #hero { min-height: 600px; }
}


/* ============================================================
   SECTION HEADER (공통)
   ============================================================ */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
}
.sec-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sec-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}
.sec-label.light { color: rgba(255,255,255,0.45); }

.sec-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}
.sec-title.light { color: #fff; }

.sec-desc {
  margin-top: 14px;
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
}

.link-more {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  white-space: nowrap;
  transition: opacity var(--tr);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-accent);
}
.link-more:hover { opacity: 0.65; }


/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(5,16,6,0.52) 0%, rgba(5,16,6,0.28) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.0);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
#header.scrolled {
  background: var(--color-header);
  border-bottom-color: rgba(255,255,255,0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.logo-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  line-height: 1;
}

.gnb {
  display: flex;
  justify-content: center;
}
.gnb ul {
  display: flex;
  align-items: center;
}
.gnb ul li a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  letter-spacing: 0.01em;
  transition: color var(--tr);
  position: relative;
  white-space: nowrap;
}
.gnb ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px; right: 20px;
  height: 2px;
  background: var(--color-cta);
  transform: scaleX(0);
  transition: transform var(--tr);
}
.gnb ul li a:hover,
.gnb ul li a.active { color: #fff; }
.gnb ul li a.active::after,
.gnb ul li a:hover::after { transform: scaleX(1); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 24px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background var(--tr);
}
.header-cta:hover { background: #167d3c; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: var(--tr);
}

.mobile-nav {
  display: none;
  background: #0f1f10;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav ul { padding: 10px 0; }
.mobile-nav ul li a {
  display: block;
  padding: 13px 52px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.mobile-nav.open { display: block; }


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden; /* 배경 확대(zoom) 시 가로 스크롤 방지용 안전 장치 */
}

/* 배경 즉시 노출 + 6초간 105%→100% 축소(켄번즈). transform만 사용해
   레이아웃(섹션 높이)에 영향 없음 — .hero-bg가 absolute+overflow:hidden으로
   감싸고 있어 확대되어도 밖으로 새어나가지 않음 */
.hero-img {
  object-position: center 60%;
  animation: heroZoomOut 6s ease-out both;
}
@keyframes heroZoomOut {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(4,12,5,0.88) 0%,
    rgba(4,12,5,0.62) 38%,
    rgba(4,12,5,0.22) 68%,
    rgba(4,12,5,0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding-top: 68px; /* 헤더 높이 */
}

/* LEFT */
.hero-left {
  flex: 1;
  max-width: 680px;
}

/* 등장 순서: 보조문구 → 제목 → 설명 → 버튼, 0.2초 간격 스태거.
   각 0.6초, opacity+translateY(16px), animation-fill-mode:both로
   시작 전엔 "from" 상태(투명) 유지, 끝난 뒤엔 "to" 상태 유지 —
   반복 없이 딱 한 번만 실행됨. JS 의존 없음(애니메이션 미지원
   브라우저에서도 기본값은 opacity:1이라 콘텐츠가 가려지지 않음) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow,
.hero-title,
.hero-tagline,
.hero-btn {
  animation: heroFadeUp 0.6s ease-out both;
}
.hero-eyebrow { animation-delay: 0.15s; }
.hero-title   { animation-delay: 0.35s; }
.hero-tagline { animation-delay: 0.55s; }
.hero-btn     { animation-delay: 0.75s; }

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-eyebrow,
  .hero-title,
  .hero-tagline,
  .hero-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-cta);
}

.hero-title {
  font-size: clamp(32px, 5.2vw, 64px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  margin-bottom: 44px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 3px;
  transition: background var(--tr), gap var(--tr);
}
.hero-btn:hover { background: #167d3c; gap: 14px; }
.hero-btn span { font-size: 18px; line-height: 1; }

/* RIGHT — 피처 패널 */
.hero-right {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(5,15,6,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 6px;
  overflow: hidden;
}

.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--tr);
}
.hero-feat:last-child { border-bottom: none; }
.hero-feat:hover { background: rgba(255,255,255,0.05); }

.feat-icon {
  color: var(--color-cta);
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-body { flex: 1; }

.feat-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.feat-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.feat-badge {
  display: inline-block;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-cta);
  border: 1px solid var(--color-cta);
  padding: 2px 8px;
  border-radius: 2px;
}

/* 뉴스 티커 */
.news-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  background: rgba(5,15,6,0.88);
  border-top: 1px solid rgba(255,255,255,0.08);
  height: 44px;
}

.news-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 52px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  overflow: hidden;
}

.news-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-cta);
  text-transform: uppercase;
  flex-shrink: 0;
  padding: 3px 9px;
  border: 1px solid var(--color-cta);
  border-radius: 2px;
}

.news-ticker-wrap {
  overflow: hidden;
  flex: 1;
  height: 20px;
  position: relative;
}

.news-ticker-list {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  /* 실제 회전은 js/main.js가 transform을 직접 제어함(아이템 개수가
     고정이 아니라서). 여기 CSS 애니메이션을 같이 두면 서로 충돌하므로
     제거 — 과거에 쓰던 걸 지우지 않았던 흔적 */
}

.news-ticker-list li {
  height: 20px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.news-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
}
.news-hours {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 8px;
}

/* 스크롤 인디케이터 */
.hero-scroll {
  position: absolute;
  bottom: 56px;
  right: 52px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; opacity: 0.6; }
}


/* ============================================================
   ABOUT — 브랜드 포스터 스타일
   ============================================================ */
.about-new {
  background: var(--color-off);
}

/* 포스터 */
.about-poster {
  position: relative;
  padding: 40px 0 0;
  overflow: hidden;
}

.about-poster-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: stretch;
  padding-bottom: 56px;
}

.about-poster-text {
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.about-badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.about-lead-sm {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  opacity: 0.65;
  margin-bottom: 4px;
}

.about-lead-big {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 26px;
}
.about-lead-big span { color: var(--color-accent); }

.about-desc-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.about-desc-block p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.85;
}

/* 서명 — 손글씨 폰트 텍스트(항상 접근 가능한 실제 텍스트) + SVG 획 애니메이션.
   기본(JS/애니메이션 미실행) 상태는 완성된 모습 그대로 노출되도록
   clip-path/stroke-dashoffset의 "정상값"을 기본 CSS로 잡아두고,
   .about-poster.sign-play가 붙는 순간부터만 keyframe이 재생됨 */
.about-sign-wrap {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  padding-bottom: 14px;
}
.sign-flourish-svg {
  position: absolute;
  left: -4px;
  bottom: 0;
  width: calc(100% + 8px);
  height: 26px;
  overflow: visible;
  pointer-events: none;
}
.sign-flourish {
  fill: none;
  stroke: var(--color-dg);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.4;
  stroke-dasharray: 165;
  stroke-dashoffset: 0; /* 기본값: 다 그려진 상태 */
  vector-effect: non-scaling-stroke;
}
.sign-pen {
  fill: var(--color-cta);
  opacity: 0; /* 기본값: 재생 안 할 땐 안 보임 */
  offset-path: path('M2,16 C15,22 25,8 40,14 C55,20 65,6 80,12 C88,15 94,20 98,14');
  offset-distance: 100%;
}

.sign-text {
  position: relative;
  display: inline-block;
  font-family: 'Nanum Pen Script', 'Pretendard', cursive;
  font-size: 30px;
  line-height: 1;
  color: var(--color-dg);
  letter-spacing: 0.01em;
  clip-path: inset(0 0 0 0); /* 기본값: 전체 노출 */
}

.about-poster.sign-play .sign-flourish {
  animation: signDraw 1.7s ease-out both;
}
.about-poster.sign-play .sign-pen {
  animation: signPenMove 2.3s ease-in-out both;
}
.about-poster.sign-play .sign-text {
  animation: signReveal 2.3s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes signDraw {
  from { stroke-dashoffset: 165; }
  to   { stroke-dashoffset: 0; }
}
@keyframes signPenMove {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes signReveal {
  0%   { clip-path: polygon(0 0, 0 0,   0 25%,   0 55%,   0 80%,   0 100%,   0 100%); }
  16%  { clip-path: polygon(0 0, 22% 0, 18% 25%, 24% 55%, 20% 80%, 22% 100%, 0 100%); }
  34%  { clip-path: polygon(0 0, 40% 0, 36% 25%, 43% 55%, 38% 80%, 40% 100%, 0 100%); }
  52%  { clip-path: polygon(0 0, 58% 0, 55% 25%, 61% 55%, 56% 80%, 58% 100%, 0 100%); }
  70%  { clip-path: polygon(0 0, 76% 0, 73% 25%, 79% 55%, 74% 80%, 76% 100%, 0 100%); }
  88%  { clip-path: polygon(0 0, 94% 0, 92% 25%, 97% 55%, 93% 80%, 94% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 25%, 100% 55%, 100% 80%, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .about-poster.sign-play .sign-flourish,
  .about-poster.sign-play .sign-pen,
  .about-poster.sign-play .sign-text {
    animation: none;
  }
}

/* 오른쪽 — 시공 전후 비교 슬라이더 */
.about-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-poster-photo {
  position: relative;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.about-poster-photo:focus-visible { outline: 2px solid var(--color-cta); outline-offset: 3px; }

.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.compare-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 0); /* 기본값(JS 미실행 시): 시공 후 이미지가 그대로 보임 */
  will-change: clip-path;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%; /* 기본값: 시공 후가 다 보이는 상태와 맞춤 */
  width: 2px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--color-dg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.compare-tag {
  position: absolute;
  top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(5,15,6,0.55);
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
}
.compare-tag--before { left: 14px; }
.compare-tag--after  { right: 14px; }

.compare-caption { padding: 0 2px; }
.compare-hint {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.compare-credit {
  font-size: 11px;
  color: var(--color-muted);
  opacity: 0.7;
}



/* ============================================================
   HISTORY — 회사 연혁 타임라인
   ============================================================ */
.hist-head {
  margin-bottom: 64px;
}

/* 예전엔 오른쪽 상단에 따로 떠 있는 2줄짜리 문구였는데, 제목과 안 이어져 보여서
   다른 섹션들처럼 제목 바로 아래 흐르는 한 줄 부제로 정리함 */
.hist-desc {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 480px;
}

.hist-track {
  position: relative;
  display: flex;
  gap: 0;
}

.hist-line {
  position: absolute;
  top: 6px;
  left: 8.3%;
  right: 8.3%;
  height: 0;
  border-top: 2px solid #dcdcd5; /* 연한 회색 — 진행 전 기본 상태 */
}

/* 진행선(초록) — JS가 진행 중인 점의 실제 위치까지 폭을 채워나감.
   left/width는 JS가 각 연도 dot의 실측 좌표로 매 프레임 갱신하므로
   화면 크기가 바뀌어도 실제 점 중심과 항상 맞음 */
.hist-line-fill {
  position: absolute;
  top: 6px;
  left: 8.3%;
  width: 0;
  height: 0;
  border-top: 2px solid var(--color-cta);
}

/* 흐르는 진행 점 — 연한 초록 바깥 원 + 진한 초록 안쪽 점.
   left는 JS가 매 프레임 갱신. 재생 전(.hist-progress-run 없음)엔
   숨겨둬서 정적 상태에는 아무 영향이 없도록 함 */
.hist-progress-ring {
  position: absolute;
  top: 6px;
  left: 8.3%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(31,138,70,0.18);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: width 0.28s ease, height 0.28s ease, opacity 0.2s ease;
}
.hist-progress-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-cta);
}
.hist-track.hist-progress-run .hist-progress-ring { opacity: 1; }
.hist-progress-ring.is-hit { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  .hist-progress-ring { transition: none; }
}

.hist-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 13px;
}

.hist-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-off);
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  transition: all var(--tr);
}
.is-current .hist-dot {
  width: 20px;
  height: 20px;
  background: var(--color-cta);
  border-color: var(--color-off);
  box-shadow: 0 0 0 5px rgba(31,138,70,0.16);
}

.hist-year {
  font-size: 21px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  transition: color var(--tr), transform var(--tr);
}
/* 그린은 "지금 여기"를 가리키는 한 곳에만 — 나머지 연도는 중립 톤 */
.is-current .hist-year { color: var(--color-accent); }

/* 연도 → 카드로 내려오는 가는 선 — 타임라인 점에서 카드까지 하나의 흐름으로 이어줌.
   색도 거의 안 보일 만큼 은은하게(장식이 아니라 흐름 표시 용도) */
.hist-connector {
  display: block;
  width: 1px;
  height: 26px;
  margin: 14px auto;
  background: rgba(20,35,20,0.12);
}
.is-current .hist-connector { background: rgba(45,106,53,0.3); }

/* 진행 점이 지나가는 순간 연도·카드가 잠깐 강조됐다 원래대로 돌아옴 */
.hist-item.is-hit .hist-year {
  color: var(--color-accent);
  transform: translateY(-2px);
}
.hist-item.is-hit .hist-card {
  box-shadow: 0 6px 18px rgba(31,138,70,0.12);
  transform: translateY(-2px);
}

.hist-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(20,35,20,0.07);
  padding: 28px 22px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 2px 10px rgba(20,35,20,0.035);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  /* .hist-item이 .hist-track(flex)로 가장 긴 카드 높이까지 이미 늘어나 있어서,
     카드 자신도 flex:1로 그 공간을 채워야 카드마다 테두리 크기가 맞음.
     내용은 위에서부터 정렬(justify-content:flex-start)해서, 내용량이 달라도
     전부 같은 기준선에서 시작하는 "정렬된 표" 느낌을 줌 */
  flex: 1;
}
/* 가장 최근 연도는 카드 테두리 색 하나만 아주 살짝 다르게 — 배경이나 굵은 선 같은
   눈에 띄는 장식은 쓰지 않음("미세하게만 강조") */
.is-current .hist-card { border-color: rgba(45,106,53,0.28); }

.hist-entry {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.55;
}

/* 보조 내용(인증·등록 등 부가 항목) — 별도 장식 없이 크기·굵기·색만으로
   핵심 항목보다 한 단계 낮은 위계임을 드러냄 */
.hist-entry--sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px solid rgba(20,35,20,0.06);
}


/* ============================================================
   CERTIFICATION — 주요 자격 및 인증현황
   다온프로세스 다음, 핵심역량 앞에 있는 독립 섹션(사업역량 메뉴 그룹).
   예전엔 마퀴(가로 자동 스크롤)로 회사소개 안에 욱여넣었었는데,
   이제 한 화면 전체를 쓸 수 있어서 정적인 그리드로 가지런히 배열함
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-items: center;
  gap: 28px 16px;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

/* 실제 인증서 문서 비율(A4 계열, 약 1:1.414)로 미리 확보 —
   이미지 로딩 전에도 폭이 고정돼 있어 로딩 중 요소가 밀리지 않음 */
.cert-item-thumb {
  position: relative;
  height: 132px;
  aspect-ratio: 1 / 1.4142;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.cert-item-thumb img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform var(--tr);
}
.cert-item:hover .cert-item-thumb img,
.cert-item:focus-visible .cert-item-thumb img {
  transform: scale(1.04);
}

.cert-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(45,106,53,0.25);
  background: #fff;
}
.cert-thumb-placeholder svg { width: 18px; height: 18px; }

.cert-item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  max-width: 108px;
  line-height: 1.4;
}

/* 1366×768급 노트북(세로 공간이 좁은 화면)에서는 헤더+제목+그리드가
   한 화면에 다 들어오도록 썸네일과 여백을 한 번 더 줄임 */
@media (max-height: 820px) {
  .cert-item-thumb { height: 104px; }
  .cert-grid { gap: 20px 16px; }
}

/* 인증서 확대 모달 */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  background: rgba(10,15,10,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cert-modal.open { opacity: 1; pointer-events: auto; }

.cert-modal-inner {
  position: relative;
  max-width: min(640px, 90vw);
  max-height: 74vh;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.cert-modal-placeholder { color: rgba(45,106,53,0.25); }

.cert-modal-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.cert-modal-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.cert-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr);
}
.cert-modal-close:hover { background: rgba(255,255,255,0.22); }


/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}
.projects-loading,
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.proj-card { cursor: pointer; }

.proj-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 14px;
}

.proj-thumb img { transition: transform 0.55s ease; }
.proj-card:hover .proj-thumb img { transform: scale(1.06); }
.proj-thumb-empty { width: 100%; height: 100%; background: var(--color-off); }

.proj-hover {
  position: absolute;
  inset: 0;
  background: rgba(15,31,16,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr);
}
.proj-hover span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 18px;
}
.proj-card:hover .proj-hover { opacity: 1; }

.proj-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-accent);
  padding: 4px 10px;
  border-radius: 2px;
}

.proj-info { padding: 0 2px; }

.proj-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  margin-bottom: 5px;
}

.proj-meta {
  font-size: 12px;
  color: var(--color-muted);
}


/* ============================================================
   PRODUCTS — 주요 제품 카드
   ============================================================ */
.bg-prod { background: #f0f0ec; }

.prod-head { margin-bottom: 40px; }

.prod-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-top: 8px;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 카드 전체 — 기본은 사진(위) + 검정 패널(아래), 호버하면 사진 영역이 카드 전체를
   덮도록 grid-template-rows를 애니메이션. 카드 자체 높이는 고정이라 그리드가 안 흔들림 */
.prod-card {
  position: relative;
  cursor: pointer;
  display: grid;
  grid-template-rows: 210px 150px;
  height: 360px;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 10px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, grid-template-rows 0.55s cubic-bezier(.4,0,.2,1);
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.22);
  /* 1fr 대신 고정 px로 애니메이션 — fr 단위는 브라우저마다 보간이 매끄럽지
     않을 수 있어서, 카드 높이(360px)에서 패널 높이(64px)를 뺀 값을 그대로 씀 */
  grid-template-rows: 296px 64px;
}

.prod-thumb {
  position: relative;
  overflow: hidden;
}
.prod-thumb img { transition: transform 0.55s cubic-bezier(.4,0,.2,1); }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }

/* 아이콘 링 — 사진/패널 경계에 걸쳐있는 위치를 두 상태 각각에 맞춰 고정하고
   그 사이를 부드럽게 이동시킴 (기본 210px 경계 → 호버 시 296px 경계).
   제목 텍스트는 왼쪽 정렬이라, 아이콘은 오른쪽에 둬서 겹치지 않게 함 */
.prod-icon-ring {
  position: absolute;
  top: 186px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: top 0.55s cubic-bezier(.4,0,.2,1), background var(--tr);
}
.prod-card:hover .prod-icon-ring { top: 272px; background: var(--color-cta); }

.prod-body {
  position: relative;
  background: #1a1a1a;
  padding: 12px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prod-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.prod-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  flex: 1;
  transition: opacity 0.25s ease;
}

.prod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  transition: color var(--tr), gap var(--tr), opacity 0.25s ease;
}
.prod-link:hover { color: #fff; gap: 10px; }
.prod-link span { font-size: 15px; }

/* 호버 시 사진이 커지는 대신 설명·링크는 살짝 사라져 좁아진 패널 안에서 제목만 남김 */
.prod-card:hover .prod-desc,
.prod-card:hover .prod-link {
  opacity: 0;
  pointer-events: none;
}



/* ============================================================
   SPLIT CARDS
   ============================================================ */
.split-cards {
  display: flex;
  height: clamp(340px, 44vh, 480px);
  overflow: hidden;
  margin-top: 48px;
}

.split-card {
  position: relative;
  flex: 0 0 76px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.65s cubic-bezier(0.4,0,0.2,1);
}
.split-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,20,8,0.55);
  transition: background var(--tr);
}
.split-card.active {
  flex: 1 1 auto;
}
.split-card.active::before {
  background: rgba(5,20,8,0.35);
}

.split-num {
  position: absolute;
  top: 28px;
  left: 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.6);
  z-index: 2;
}

.split-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(-90deg);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
  z-index: 2;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.split-card.active .split-label { opacity: 0; pointer-events: none; }

.split-body {
  position: absolute;
  bottom: 44px;
  left: 44px;
  right: 44px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s 0.2s, transform 0.4s 0.2s;
}
.split-card.active .split-body {
  opacity: 1;
  transform: translateY(0);
}

.split-ko {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.split-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.split-desc {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.8;
}


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 52px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
  margin-top: 12px;
}
.gallery-track::-webkit-scrollbar { height: 3px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 2px; }

.gallery-item {
  flex: 0 0 380px;
  height: 260px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 4px;
}
.gallery-item img { transition: transform 0.55s ease; }
.gallery-item:hover img { transform: scale(1.05); }


/* ============================================================
   PROCESS + 핵심역량 통합 섹션
   ============================================================ */
.sec-combo { overflow: hidden; }

.combo-block { padding: 100px 0 80px; }
.combo-dark  {
  background: var(--color-dg);
  padding-bottom: 76px;
  /* 모니터 화면 비율(해상도)에 상관없이 항상 한 화면 높이를 채우도록 고정 —
     콘텐츠 높이에만 맡기면 뷰포트 높이에 따라 다음 섹션이 들쭉날쭉 비쳐 보임 */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.combo-light { background: var(--color-white); padding-top: 76px; }


/* ============================================================
   PROCESS — 좌→우로 이어지는 타임라인
   ============================================================ */
.proc-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

/* 카드 사이를 잇는 얇은 라인 — 마지막 단계(강조 그린)로 갈수록 밝아짐 */
.proc-line {
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.16), var(--color-cta));
  z-index: 0;
}

.proc-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

/* 리듬감을 위한 엇갈림 배치 */
.proc-off .proc-card { margin-top: 34px; }
.proc-up  .proc-card { margin-top: -8px; }

/* 라인 위에 놓이는 원형 아이콘 노드 */
.proc-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-dg);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
  transition: background var(--tr), border-color var(--tr);
}
.proc-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 30px 22px 26px;
  transition: transform var(--tr), background var(--tr), box-shadow var(--tr);
}
.proc-card:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 18px 36px rgba(0,0,0,0.3);
}

/* 카드 뒤로 크게 깔리는 반투명 스텝 넘버 */
.proc-bignum {
  position: absolute;
  top: -16px;
  right: 6px;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 0;
}

.proc-title, .proc-desc { position: relative; z-index: 1; }

.proc-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.proc-title span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.proc-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* 5번(도착점)도 더 이상 항상 초록이 아니라, 1~4번과 똑같이 평소엔 dark이고
   마우스를 올렸을 때만 다온 그린으로 강조됨(5개 카드 전부 동일 동작) */
.proc-step:hover .proc-node {
  background: var(--color-cta);
  border-color: var(--color-cta);
}
.proc-card:hover {
  background: var(--color-cta);
  border-color: var(--color-cta);
  box-shadow: 0 18px 36px rgba(31,138,70,0.35);
}
.proc-card:hover .proc-bignum { color: rgba(255,255,255,0.16); }
.proc-card:hover .proc-title span { color: rgba(255,255,255,0.75); }
.proc-card:hover .proc-desc { color: rgba(255,255,255,0.85); }


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--color-header);
  color: rgba(255,255,255,0.5);
  padding: 64px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 180px;
  gap: 60px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-cta {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 3px;
  transition: background var(--tr), color var(--tr);
}
.footer-cta:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.footer-info p {
  font-size: 13px;
  line-height: 2;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-contact-item svg { flex-shrink: 0; opacity: 0.8; }

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav ul li a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  transition: color var(--tr);
}
.footer-nav ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 12.5px; }
.footer-bottom ul { display: flex; gap: 18px; }
.footer-bottom ul li a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  transition: color var(--tr);
}
.footer-bottom ul li a:hover { color: rgba(255,255,255,0.7); }


/* ============================================================
   PAGE DOTS
   ============================================================ */
.page-dots {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(45,106,53,0.4); /* 밝은 배경에서도 잘 보이도록 브랜드 그린 톤 */
  display: block;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.page-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.4);
}
body.on-dark .page-dot { border-color: rgba(255,255,255,0.4); }
body.on-dark .page-dot.active { background: #fff; border-color: #fff; }


/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1100px) {
  /* 1100px 이하부터는 회사소개가 좌우 2단→위아래로 쌓이면서 세로 길이가
     크게 늘어남(사진 min-height + 인증현황까지 더해짐). 이 폭에서도 휠
     한 틱 = 한 화면 강제 이동(js/main.js)이 계속 켜져 있으면, 화면보다
     길어진 섹션의 아랫부분(인증현황 등)이 자연 스크롤로도 못 보게
     막혀버림 — 그래서 강제 이동 스크롤 스냅을 여기서부터 끔.
     js/main.js의 휠 핸들러도 반드시 같은 1100px 기준으로 맞춰야 함 */
  html.snap-page { scroll-snap-type: none; }

  .container { padding: 0 32px; }
  .header-inner { padding: 0 28px; }
  .gnb ul li a { padding: 0 14px; font-size: 13.5px; }
  .hero-inner { padding: 0 32px; padding-top: 68px; }
  .news-bar-inner { padding: 0 32px; }

  .hero-right { width: 260px; }
  .about-poster { padding: 32px 0 0; }
  .about-poster-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .about-poster-photo { min-height: 320px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery-track { padding: 0 32px 20px; }
}

@media (max-width: 900px) {
  .proc-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 12px;
  }
  .proc-line { display: none; }
  .proc-off .proc-card, .proc-up .proc-card { margin-top: 0; }

  .hist-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 12px;
  }
  .hist-line,
  .hist-line-fill,
  .hist-progress-ring { display: none; } /* 가로 한 줄 타임라인이 아닌 그리드로 바뀌는 구간 — 흐름선 애니메이션 대상 아님 */
  .hist-card { max-width: none; }
}


/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* scroll-snap-type 해제는 1100px 기준으로 위(태블릿 브레이크포인트)에서
     이미 처리됨 — 여기서 다시 끌 필요 없음 */
  .page-dots { display: none; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .gnb { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { grid-template-columns: auto auto; }
  .header-right { gap: 8px; }

  #hero { min-height: 100svh; }
  .combo-dark { min-height: 0; display: block; }
  html.snap-page .sec,
  html.snap-page #certification,
  html.snap-page #skills { min-height: 0; display: block; }
  .hero-inner {
    padding: 68px 20px 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
  }
  .hero-right { width: 100%; }
  .hero-left { max-width: 100%; }
  .hero-scroll { display: none; }
  .news-bar-inner { padding: 0 20px; }
  .news-hours { display: none; }

  .sec { padding: 72px 0 56px; }

  .about-poster { padding: 24px 0 0; }
  .about-lead-big { font-size: 30px; }
  .about-poster-photo { min-height: 240px; }
  .sign-text { font-size: 26px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .prod-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .prod-card { height: 300px; grid-template-rows: 170px 130px; }
  .prod-card:hover { grid-template-rows: 242px 58px; }
  .prod-icon-ring { top: 146px; width: 40px; height: 40px; }
  .prod-card:hover .prod-icon-ring { top: 218px; }

  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }

  .split-cards { height: 380px; }
  .split-card { flex: 0 0 44px; }
  .split-title { font-size: 22px; }

  .proc-track { grid-template-columns: 1fr 1fr; }
  .hist-track { grid-template-columns: 1fr 1fr; }

  .gallery-track { padding: 0 20px 16px; }
  .gallery-item { flex: 0 0 260px; height: 190px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
