:root {
  /* 포테스캡의 실제 브랜드 레드(로고에서 추출한 색상)를 중심으로 한 팔레트.
     --ink은 기존 네이비를 대체하는 다크 뉴트럴로 헤더/히어로/표 헤더 등
     상시 노출되는 영역에 쓰고, --red는 포인트 컬러로 절제해서 사용한다. */
  --ink: #1a1a1a;
  --ink-soft: #2e2c2b;
  --red: #dc2228;
  --red-dark: #a8181e;
  --bg: #f6f5f4;
  --text: #1f2a37;
  --muted: #5b6b7c;
  --border: #e2e8f0;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-top: 4px solid var(--red);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }

/* ACUSYS 로고를 중심으로 한 배지 - 흰 원판 위에 실제 어큐시스 아이콘을 올리고,
   그 둘레로 모션 제어를 상징하는 점선 궤도 + 궤도점이 서서히 회전한다. */
.brand-badge {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.brand:hover .brand-badge { transform: scale(1.06); }
.brand-badge-bg {
  position: absolute;
  inset: 4px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28);
}
.brand-icon {
  position: absolute;
  inset: 4px;
  margin: auto;
  width: 26px;
  height: auto;
  z-index: 2;
}
.brand-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.5);
  animation: lg-spin 11s linear infinite;
}
.brand-orbit {
  position: absolute;
  inset: 0;
  animation: lg-spin-rev 4.5s linear infinite;
}
.brand-orbit-dot {
  position: absolute;
  top: -1.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 4px rgba(255,138,61,0.8);
}
@keyframes lg-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lg-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand-name-kr { font-weight: 600; font-size: 0.82rem; color: #e9e6e4; margin-left: 6px; }
.brand-tagline { color: #b6afab; font-size: 0.72rem; font-weight: 500; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #e9e6e4;
  padding: 9px 13px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.search-toggle:hover { background: rgba(255,255,255,0.22); color: #fff; }
.search-toggle svg { flex-shrink: 0; }

/* 한국어/영문 언어 전환 토글 — 헤더 검색 버튼과 동일한 톤의 캡슐형 스위치 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  padding: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-switch a, .lang-switch-current {
  padding: 6px 9px;
  border-radius: 6px;
  line-height: 1;
}
.lang-switch a {
  color: #b6afab;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lang-switch-current { background: var(--red); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background .2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.2); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
/* 열림 상태에서 3개의 막대가 X 모양으로 자연스럽게 회전/전환된다 */
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav > .nav-list > li { position: relative; }
.main-nav a {
  color: #e9e6e4;
  padding: 10px 14px;
  display: block;
  border-radius: 6px;
  font-size: 0.94rem;
  white-space: nowrap;
}
.main-nav > .nav-list > li > a:hover,
.main-nav > .nav-list > li.active > a {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

/* 영업 사이트에서 가장 중요한 도착지인 "문의하기"는 다른 메뉴와 구분되는
   버튼 스타일로 강조한다 (nav-cta). */
.main-nav > .nav-list > li.nav-cta { margin-left: 4px; }
.main-nav > .nav-list > li.nav-cta > a {
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.main-nav > .nav-list > li.nav-cta > a:hover { background: var(--red-dark); }
.has-dropdown .dropdown {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown .dropdown a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
}
.has-dropdown .dropdown a:hover {
  background: var(--bg);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.crumb-sep { margin: 0 4px; color: #c7c0bb; }

/* Hero */
.page-inner { max-width: 1180px; margin: 0 auto; padding: 14px 20px 60px; }
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: 16px 0 32px;
  background: linear-gradient(120deg, var(--ink), var(--red-dark), var(--ink));
  background-size: 220% 220%;
  min-height: 220px;
  animation: hero-in .7s ease both, hero-glow 14s ease-in-out infinite;
}
.hero img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  opacity: 0.55;
}
.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(20,18,17,0.92), rgba(20,18,17,0));
  color: var(--white);
}
.hero.hero-noimg .hero-caption,
.hero-noimg { position: static; padding: 34px 32px; }
.hero.hero-noimg { color: var(--white); }
/* hero-noimg의 position:static은 모티프 의사요소 배치 기준점을 없애버리므로,
   모티프 클래스가 함께 붙은 경우에는 다시 position:relative로 되돌린다
   (의사요소 클리핑을 위해 overflow도 함께 지정) */
.hero.hero-noimg[class*="hero-motif-"] { position: relative; overflow: hidden; }
.hero-caption h1 { margin: 0 0 6px; font-size: 1.9rem; }
.hero-caption p { margin: 0; max-width: 760px; color: #ede9e7; font-size: 1rem; }

/* Home hero variant */
.home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--ink), var(--red-dark), var(--ink));
  background-size: 220% 220%;
  color: var(--white);
  padding: 56px 36px;
  margin: 16px 0 40px;
  animation: hero-in .7s ease both, hero-glow 14s ease-in-out infinite;
}
.home-hero h1 { font-size: 2.1rem; margin: 0 0 12px; }
.home-hero p { max-width: 720px; color: #ede9e7; font-size: 1.05rem; margin: 0; }
.home-hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffb199;
  margin: 0 0 14px;
}
.home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}
.home-hero-cta .btn-primary,
.home-hero-cta .btn-ghost { margin-top: 0; }
.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.home-hero-stats div { min-width: 118px; }
.home-hero-stats strong { display: block; font-size: 1.5rem; color: var(--white); line-height: 1.2; }
.home-hero-stats span { display: block; font-size: 0.82rem; color: #d8d2d0; margin-top: 3px; }

/* =========================================================================
   페이지별 모션 모티프 — 포테스캡의 '정밀 모션 제어' 정체성을 페이지 성격에
   맞게 다르게 표현한다. 모두 히어로 배경 위 장식용 ::before/::after 의사요소로만
   구성되어 있어 레이아웃에 영향을 주지 않으며, prefers-reduced-motion에서는
   아래쪽에서 전부 비활성화된다.
   - orbit(홈): 궤도를 도는 두 개의 점선 링
   - heritage(역사): 시계 문자반을 연상시키는 느린 회전 링 + 은은한 광원 펄스
   - grid(모터의 개념·개발 키트): 청사진 그리드 위를 스캔하는 하이라이트 바
   - radar(항공우주): 확장하는 레이더 핑 + 회전하는 스캔 웨지
   - rotor(브러시리스 DC): 매끄럽게 고속 회전하는 로터 블레이드
   - spark(브러시 DC): 불규칙하게 명멸하는 브러시 접점 스파크
   - step(스테퍼): steps() 타이밍으로 한 칸씩 점등하는 스텝 인디케이터
   - pulse(PMD): 배선을 따라 흐르는 신호 펄스
   - progress(모터 선정 가이드): 컨베이어처럼 흐르는 진행 표시선
   ========================================================================= */
.hero-motif-orbit,
.hero-motif-heritage,
.hero-motif-grid,
.hero-motif-radar,
.hero-motif-rotor,
.hero-motif-spark,
.hero-motif-step,
.hero-motif-pulse,
.hero-motif-progress { position: relative; }

.hero-motif-orbit::before, .hero-motif-orbit::after,
.hero-motif-heritage::before, .hero-motif-heritage::after,
.hero-motif-radar::before, .hero-motif-radar::after,
.hero-motif-rotor::before,
.hero-motif-spark::before,
.hero-motif-step::before,
.hero-motif-pulse::before,
.hero-motif-progress::before,
.hero-motif-grid::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* --- orbit: 홈 --- */
.hero-motif-orbit::before {
  width: 320px; height: 320px; right: -90px; top: -110px;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,0.22);
  animation: motif-spin 32s linear infinite;
}
.hero-motif-orbit::after {
  width: 190px; height: 190px; right: 30px; top: -20px;
  border-radius: 50%; border: 1px dashed rgba(255,255,255,0.32);
  animation: motif-spin-rev 17s linear infinite;
}

/* --- heritage: 포테스캡 역사 (시계 문자반 모티프) --- */
.hero-motif-heritage::before {
  width: 260px; height: 260px; right: -60px; top: 50%; margin-top: -130px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.05);
  animation: motif-spin 90s linear infinite;
}
.hero-motif-heritage::before { background:
  repeating-conic-gradient(rgba(255,255,255,0.16) 0deg 1deg, transparent 1deg 30deg); }
.hero-motif-heritage::after {
  width: 10px; height: 10px; right: 64px; top: 50%; margin-top: -5px;
  border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 14px 3px rgba(255,138,61,0.65);
  animation: motif-pulse-dot 3.4s ease-in-out infinite;
}

/* --- grid: 모터의 개념 / 개발 키트 (청사진 스캔) --- */
.hero-motif-grid::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-motif-grid::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 46%;
  top: -46%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
  animation: motif-scan 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* --- radar: 항공우주 --- */
.hero-motif-radar::before {
  width: 30px; height: 30px; right: 60px; top: 50%; margin-top: -15px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.55);
  animation: motif-ping 3.2s ease-out infinite;
}
.hero-motif-radar::after {
  width: 30px; height: 30px; right: 60px; top: 50%; margin-top: -15px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.55);
  animation: motif-ping 3.2s ease-out infinite 1.1s;
}

/* --- rotor: 브러시리스 DC (고속 회전) --- */
.hero-motif-rotor::before {
  width: 150px; height: 150px; right: -20px; top: -40px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,0.28) 0deg 8deg, transparent 8deg 45deg);
  animation: motif-spin 3.2s linear infinite;
}

/* --- spark: 브러시 DC (접점 스파크 명멸) --- */
.hero-motif-spark::before {
  width: 4px; height: 4px; border-radius: 50%; right: 90px; top: 40%;
  background: #fff;
  box-shadow: 96px -18px 0 0 rgba(255,255,255,0.9), 40px 34px 0 0 rgba(255,255,255,0.7);
  animation: motif-flicker 1.7s steps(1) infinite;
}

/* --- step: 스테퍼 모터 (한 칸씩 점등) --- */
.hero-motif-step::before {
  width: 8px; height: 8px; border-radius: 2px; right: 140px; top: 50%; margin-top: -4px;
  background: rgba(255,255,255,0.9);
  box-shadow: 26px 0 0 0 rgba(255,255,255,0.9), 52px 0 0 0 rgba(255,255,255,0.9), 78px 0 0 0 rgba(255,255,255,0.9), 104px 0 0 0 rgba(255,255,255,0.9);
  animation: motif-step 2.4s steps(5) infinite;
}

/* --- pulse: PMD (신호 펄스) --- */
.hero-motif-pulse::before {
  left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 8px, transparent 8px 18px),
    radial-gradient(circle, #ff8a3d 0%, rgba(255,138,61,0.6) 40%, transparent 70%);
  background-size: 100% 100%, 60px 60px;
  background-position: 0 0, -60px 0;
  animation: motif-pulse-travel 2.6s linear infinite;
}

/* --- progress: 모터 선정 가이드 (컨베이어 진행) --- */
.hero-motif-progress::before {
  left: 0; right: 0; bottom: 22px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.7) 0 16px, transparent 16px 30px);
  animation: motif-conveyor 1.4s linear infinite;
}

@keyframes motif-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes motif-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes motif-pulse-dot { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes motif-scan { 0% { top: -46%; } 100% { top: 100%; } }
@keyframes motif-ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(3.6); opacity: 0; }
}
@keyframes motif-flicker {
  0%, 100% { opacity: 0.25; } 8% { opacity: 1; } 16% { opacity: 0.3; }
  45% { opacity: 0.9; } 55% { opacity: 0.2; } 78% { opacity: 1; } 86% { opacity: 0.25; }
}
@keyframes motif-step {
  0% { box-shadow: 26px 0 0 0 rgba(255,255,255,0.9), 52px 0 0 0 rgba(255,255,255,0.35), 78px 0 0 0 rgba(255,255,255,0.35), 104px 0 0 0 rgba(255,255,255,0.35); background: rgba(255,138,61,0.95); }
  25% { box-shadow: 26px 0 0 0 rgba(255,255,255,0.35), 52px 0 0 0 rgba(255,255,255,0.9), 78px 0 0 0 rgba(255,255,255,0.35), 104px 0 0 0 rgba(255,255,255,0.35); background: rgba(255,255,255,0.35); }
  50% { box-shadow: 26px 0 0 0 rgba(255,255,255,0.35), 52px 0 0 0 rgba(255,255,255,0.35), 78px 0 0 0 rgba(255,255,255,0.9), 104px 0 0 0 rgba(255,255,255,0.35); background: rgba(255,255,255,0.35); }
  75% { box-shadow: 26px 0 0 0 rgba(255,255,255,0.35), 52px 0 0 0 rgba(255,255,255,0.35), 78px 0 0 0 rgba(255,255,255,0.35), 104px 0 0 0 rgba(255,255,255,0.9); background: rgba(255,255,255,0.35); }
  100% { box-shadow: 26px 0 0 0 rgba(255,255,255,0.9), 52px 0 0 0 rgba(255,255,255,0.35), 78px 0 0 0 rgba(255,255,255,0.35), 104px 0 0 0 rgba(255,255,255,0.35); background: rgba(255,138,61,0.95); }
}
@keyframes motif-pulse-travel { from { background-position: 0 0, -60px 0; } to { background-position: 0 0, 340px 0; } }
@keyframes motif-conveyor { from { background-position: 0 0; } to { background-position: -46px 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-motif-orbit::before, .hero-motif-orbit::after,
  .hero-motif-heritage::before, .hero-motif-heritage::after,
  .hero-motif-grid::after,
  .hero-motif-radar::before, .hero-motif-radar::after,
  .hero-motif-rotor::before,
  .hero-motif-spark::before,
  .hero-motif-step::before,
  .hero-motif-pulse::before,
  .hero-motif-progress::before {
    animation: none !important;
  }
}

/* Content sections */
.content-section { margin: 34px 0; scroll-margin-top: 96px; }
.content-section h2 {
  font-size: 1.35rem;
  border-left: 5px solid var(--red);
  padding-left: 12px;
  margin-bottom: 14px;
  color: var(--ink);
}
.content-section h3 { font-size: 1.05rem; color: var(--ink-soft); margin: 20px 0 8px; }
.content-section p { color: var(--text); }
.feature-list { padding-left: 20px; margin: 10px 0; }
.feature-list li { margin-bottom: 6px; }

/* 기술 우수성 어필용 수치 강조 카드 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.stat-card {
  background: var(--ink);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.stat-card .stat-number {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.15;
}
.stat-card .stat-number em { color: var(--red); font-style: normal; }
.stat-card .stat-label {
  font-size: 0.8rem;
  color: #cfc9c0;
  line-height: 1.45;
}
.diff-callout {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 20px 0;
}
.diff-callout p { color: #e7e3dc; margin: 0; }
.diff-callout strong { color: #fff; }

/* ---------------- 인터랙티브 모터 원리 다이어그램 (모터의 개념 페이지) ---------------- */
.motor-diagram {
  background: var(--ink);
  border-radius: 14px;
  padding: 20px 20px 26px;
  margin: 18px 0;
}
.motor-diagram-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.motor-diagram-tab {
  font-family: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: #cfc9c0; transition: all .15s ease;
}
.motor-diagram-tab:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.motor-diagram-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.motor-diagram-stage { display: flex; justify-content: center; padding: 10px 0; }
.motor-diagram-svg { width: 100%; max-width: 300px; height: auto; }

.motor-outer-ring { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 1; stroke-dasharray: 3 5; }

.motor-coil rect { fill: rgba(120,170,255,0.18); }
.motor-coils { transition: opacity .2s ease; }

.motor-brush-mark rect { fill: rgba(255,255,255,0.14); }
.motor-brush-mark { transition: opacity .2s ease; opacity: 0; }

.rotor-group { transform-origin: 120px 120px; }
.rotor-body { fill: #3a3634; stroke: rgba(255,255,255,0.25); stroke-width: 1; }
.rotor-pole-n { fill: var(--red); }
.rotor-pole-s { fill: #55504c; }
.rotor-label { fill: #fff; font-size: 20px; font-weight: 800; font-family: inherit; text-anchor: middle; }

.motor-diagram-captions { margin-top: 14px; min-height: 3.6em; }
.motor-diagram .motor-diagram-caption { display: none; color: #d8d3cb; font-size: 0.86rem; line-height: 1.6; margin: 0 auto; text-align: center; max-width: 520px; }
.motor-diagram .motor-diagram-caption.active { display: block; }

/* 회전자: 브러시 DC·BLDC는 매끄러운 연속 회전, 스테퍼는 steps()로 뚝뚝 끊어지는 회전 */
.motor-diagram[data-motor-type="brush"] .rotor-group,
.motor-diagram[data-motor-type="bldc"] .rotor-group {
  animation: diagram-spin 3s linear infinite;
}
.motor-diagram[data-motor-type="stepper"] .rotor-group {
  animation: diagram-spin 3.2s steps(8) infinite;
}

/* 고정자 코일: BLDC는 회전을 뒤따라 부드럽게 순차 점등(전자적 커뮤테이션),
   스테퍼는 같은 순서를 딱딱 끊어서 점등(권선 쌍 순차 여자), 브러시 DC는 코일 자체가 없음 */
.motor-diagram[data-motor-type="brush"] .motor-coils { opacity: 0.35; }
.motor-diagram[data-motor-type="bldc"] .motor-coil rect,
.motor-diagram[data-motor-type="stepper"] .motor-coil rect {
  animation: diagram-coil-pulse 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.375s);
}
.motor-diagram[data-motor-type="stepper"] .motor-coil rect {
  animation-duration: 3.2s;
  animation-delay: calc(var(--i) * 0.4s);
  animation-timing-function: steps(1);
}

/* 브러시 DC: 코일 대신 고정된 브러시 접점 두 곳이 스파크처럼 명멸 */
.motor-diagram[data-motor-type="brush"] .motor-brush-mark { opacity: 1; }
.motor-diagram[data-motor-type="brush"] .motor-brush-left rect { animation: diagram-spark 1.5s steps(1) infinite; }
.motor-diagram[data-motor-type="brush"] .motor-brush-right rect { animation: diagram-spark 1.5s steps(1) infinite .75s; }

@keyframes diagram-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes diagram-coil-pulse {
  0%, 87.5%, 100% { fill: rgba(120,170,255,0.18); }
  3% { fill: #7ea8ff; }
}
@keyframes diagram-spark {
  0%, 80%, 100% { fill: rgba(255,255,255,0.14); }
  90% { fill: #ff8a3d; }
}

@media (prefers-reduced-motion: reduce) {
  .rotor-group, .motor-coil rect, .motor-brush-mark rect { animation: none !important; }
}

/* 개발 키트 매뉴얼에서 가져온 도면·배선도·치수도 등 기술 도면 */
.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.diagram-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(26,26,26,0.06);
  display: flex;
  flex-direction: column;
}
.diagram-figure.full-width { grid-column: 1 / -1; }
.diagram-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.diagram-figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.diagram-figure figcaption strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 0.88rem; }
.diagram-source-note { font-size: 0.78rem; color: var(--muted); margin: 4px 0 18px; }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; }
/* table-layout: fixed로 열 너비를 컨테이너 폭 안에서만 계산하도록 강제한다.
   auto 레이아웃은 셀 내용(및 사용자 시스템의 한글 폰트 지표)에 따라 표가
   컨테이너보다 넓어져 가로 스크롤/잘림이 생길 수 있어, 폰트 환경에 관계없이
   표가 항상 페이지 폭 안에 들어오도록 고정 레이아웃을 사용한다. */
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; table-layout: fixed; }
thead { background: var(--ink); color: var(--white); }
th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  vertical-align: top;
}
/* 항목/범위·항목/사양처럼 2열 표는 첫 열(라벨)을 좁게, 둘째 열(값)을 넓게 배분한다. */
table.cols-2 tr > :first-child { width: 32%; }
tbody tr:nth-child(even) { background: #faf9f8; }
tbody tr { transition: background-color .15s ease; }
tbody tr:hover { background: #f5f1f0; }

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

/* ---------------- 모델 사양 비교 도구 ---------------- */
th.compare-col, td.compare-col { width: 40px; padding: 8px 6px; text-align: center; }
table.has-compare tbody tr.is-picked { background: #fdeceb; }
.compare-checkbox { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.compare-check {
  position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer;
}
.compare-box {
  display: block; width: 19px; height: 19px; border-radius: 5px;
  border: 1.5px solid var(--muted); background: var(--white); transition: all .15s ease;
}
.compare-check:checked + .compare-box {
  background: var(--red); border-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}
.compare-check:focus-visible + .compare-box { outline: 2px solid var(--red); outline-offset: 2px; }

/* 하단에 떠 있는 비교함 트레이 — 담긴 항목이 있을 때만 나타난다 */
.compare-tray {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 130%);
  z-index: 400; background: var(--ink); color: #fff; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
  padding: 10px 12px 10px 18px;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 28px);
  transition: transform .28s ease;
}
.compare-tray.is-open { transform: translate(-50%, 0); }
.compare-tray-label { font-size: 0.88rem; white-space: nowrap; }
.compare-tray-label strong { color: #ff8a3d; }
.compare-tray-thumbs { display: flex; gap: 6px; flex-wrap: wrap; max-width: 40vw; }
.compare-tray-chip {
  background: rgba(255,255,255,0.1); border-radius: 999px; padding: 4px 10px 4px 12px;
  font-size: 0.78rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.compare-tray-chip button {
  background: none; border: none; color: #cfc9c0; cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0;
}
.compare-tray-chip button:hover { color: #fff; }
.compare-tray-actions { display: flex; gap: 8px; margin-left: auto; }
.compare-tray-btn {
  border: none; border-radius: 8px; padding: 9px 14px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.compare-tray-btn.primary { background: var(--red); color: #fff; }
.compare-tray-btn.primary:hover { background: var(--red-dark); }
.compare-tray-btn.ghost { background: transparent; color: #cfc9c0; }
.compare-tray-btn.ghost:hover { color: #fff; }

/* 비교 결과 전체 화면 모달 */
.compare-modal {
  position: fixed; inset: 0; z-index: 500; display: none;
  background: rgba(15,13,12,0.72); padding: 24px 16px;
  overflow-y: auto;
}
.compare-modal.is-open { display: block; }
.compare-modal-inner {
  max-width: 1100px; margin: 0 auto; background: var(--bg);
  border-radius: 16px; padding: 24px 24px 32px; position: relative;
}
.compare-modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--border); color: var(--ink);
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.compare-modal-close:hover { background: #d7cfc8; }
.compare-modal h2 { margin: 0 22px 4px 0; color: var(--ink); font-size: 1.3rem; }
.compare-modal-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 20px; }
.compare-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 22px;
}
.compare-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; position: relative;
}
.compare-card-remove {
  position: absolute; top: 10px; right: 10px; border: none; background: none;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 4px;
}
.compare-card-remove:hover { color: var(--red); }
.compare-card h3 { margin: 0 4px 10px 0; font-size: 1.02rem; color: var(--ink); padding-right: 20px; }
.compare-card-source { font-size: 0.76rem; color: var(--muted); margin: -6px 0 12px; }
.compare-card-source a { color: var(--muted); text-decoration: underline; }
.compare-card dl { margin: 0; }
.compare-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.85rem; }
.compare-card dl div:last-child { border-bottom: none; }
.compare-card dl dt { color: var(--muted); flex-shrink: 0; }
.compare-card dl dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.compare-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.compare-modal-cta {
  border-top: 1px solid var(--border); padding-top: 18px; margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.compare-modal-cta p { margin: 0; color: var(--muted); font-size: 0.85rem; max-width: 480px; }

@media (max-width: 640px) {
  .compare-tray { left: 12px; right: 12px; transform: translateY(130%); width: auto; max-width: none; flex-wrap: wrap; }
  .compare-tray.is-open { transform: translateY(0); }
  .compare-tray-thumbs { max-width: 100%; order: 3; width: 100%; }
  .compare-tray-actions { margin-left: 0; }
}
@media print { .compare-tray, .compare-modal-close { display: none !important; } }

/* ---------------- 모터 모델 검색 ---------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 600; display: none;
  background: rgba(15,13,12,0.78); padding: 6vh 16px 16px;
  overflow-y: auto;
}
.search-overlay.is-open { display: block; }
.search-box {
  max-width: 860px; margin: 0 auto; background: var(--bg);
  border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}
.search-box-head {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 26px; border-bottom: 1px solid var(--border); background: var(--white);
}
.search-box-icon { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1 1 auto; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1.5rem; color: var(--ink); padding: 8px 0;
}
.search-input::placeholder { color: var(--muted); }
.search-box-close {
  border: none; background: var(--border); color: var(--ink); width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; flex-shrink: 0;
}
.search-box-close:hover { background: #d7cfc8; }
.search-results { max-height: 68vh; overflow-y: auto; padding: 10px; }
.search-hint, .search-empty { color: var(--muted); font-size: 1rem; text-align: center; padding: 46px 20px; margin: 0; }
.search-more { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 10px 16px 6px; margin: 0; }
.search-result-list { list-style: none; margin: 0; padding: 0; }
.search-result-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-radius: 10px; color: var(--ink);
}
.search-result-item:hover { background: #f5f1f0; text-decoration: none; }
.search-result-model { font-weight: 700; font-size: 1.08rem; }
.search-result-page { color: var(--muted); font-size: 0.86rem; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 640px) {
  .search-overlay { padding: 5vh 10px 10px; }
  .search-box-head { padding: 16px 16px; gap: 10px; }
  .search-input { font-size: 1.15rem; }
  .search-result-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 14px; }
}
@media print { .search-overlay, .search-toggle { display: none !important; } }

/* ---------------- 사이트맵 페이지 ---------------- */
.sitemap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 8px;
}
.sitemap-section {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
}
.sitemap-section h2 { margin: 0 0 10px; font-size: 1.02rem; }
.sitemap-section h2 a { color: var(--ink); }
.sitemap-section h2 a:hover { color: var(--red-dark); }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { padding: 5px 0; border-top: 1px dashed var(--border); }
.sitemap-list li:first-child { border-top: none; font-weight: 600; }
.sitemap-list a { color: var(--muted); }
.sitemap-list li:first-child a { color: var(--red-dark); }
.sitemap-list a:hover { color: var(--ink); }
.sitemap-section-single { display: flex; align-items: center; align-self: start; }
.sitemap-section-single h2 { margin: 0; }

/* ---------------- FAQ 아코디언 ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 4px 18px; transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--red); }
.faq-item summary {
  cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; color: var(--ink);
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--muted); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; color: var(--red); }
.faq-answer { padding: 0 0 18px; color: var(--text); font-size: 0.92rem; line-height: 1.7; }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--red-dark); font-weight: 600; }

/* ---------------- 문의하기 페이지 ---------------- */
.contact-type-card h4 { color: var(--ink); }
.contact-type-grid { margin-top: 16px; }
.contact-info-block {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 24px; font-size: 0.95rem; line-height: 2;
}
.contact-info-title { margin: 0; font-weight: 700; color: var(--ink); }
.contact-info-name { margin: 0 0 6px; color: var(--text); }
.contact-info-block a { color: var(--red-dark); font-weight: 600; }
.contact-info-block .dot-sep { margin: 0 8px; color: var(--muted); }

/* Category grid on home */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(26,26,26,0.16); text-decoration: none; }
.card img { height: 150px; width: 100%; object-fit: cover; object-position: right center; background: #efece9; transition: transform .35s ease; }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.1rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.sub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.sub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sub-card:hover { border-color: var(--red); text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,0.08); transform: translateY(-3px); }
.sub-card h4 { margin: 0 0 6px; color: var(--ink); }
.sub-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.note-box {
  background: #f5f1f0;
  border: 1px solid #e4dedc;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 16px 0;
}

.wizard-cta {
  background: linear-gradient(120deg, var(--ink), var(--red-dark));
  color: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
}
.wizard-cta h2 { color: var(--white); border-left-color: #fff; }
.wizard-cta p { color: #ede9e7; }
.wizard-button {
  display: inline-block;
  margin-top: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
}
/* 흰 배경(content-section) 위에서 쓰는 레드 CTA 버튼 - wizard-button은 어두운 그라데이션
   배경 전용이라 흰 배경에서는 보이지 않아 별도 클래스로 분리한다. */
.btn-primary {
  display: inline-block;
  margin-top: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background .2s ease;
}
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }
.wizard-button:hover { text-decoration: none; opacity: 0.9; }
/* 어두운 배경(히어로, wizard-cta 등) 위에서 .btn-primary/.wizard-button과 나란히 쓰는
   보조(outline) 버튼 — 같은 배경 위에서 덜 강조되는 두 번째 선택지가 필요할 때 사용한다. */
.btn-ghost {
  display: inline-block;
  margin-top: 10px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 9px 19px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.55);
  transition: background .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; text-decoration: none; }

/* Wizard page */
.wizard-wrap { max-width: 820px; margin: 0 auto; }
.wizard-step { display: none; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin-bottom: 20px; }
.wizard-step.active { display: block; }
.wizard-step h2 { margin-top: 0; font-size: 1.2rem; color: var(--ink); }
.wizard-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.wizard-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--bg);
  font-size: 0.92rem;
  transition: all .12s ease;
}
.wizard-option:hover { border-color: var(--red); }
.wizard-option.selected { border-color: var(--red); background: #f7ecec; font-weight: 700; }
.wizard-field { margin: 14px 0; }
.wizard-field label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.wizard-field input[type="range"] { width: 100%; }
.wizard-field .range-value { font-weight: 700; color: var(--ink); }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 18px; }
.wizard-nav button {
  border: none; border-radius: 8px; padding: 10px 20px; font-size: 0.92rem; cursor: pointer;
}
.wizard-nav .btn-next { background: var(--red); color: #fff; }
.wizard-nav .btn-next:disabled { background: #c7c0bb; cursor: not-allowed; }
.wizard-nav .btn-prev { background: var(--border); color: var(--text); }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.wizard-progress span.done { background: var(--red); }
.result-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px;
}
.result-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.05rem; }
.result-card .result-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.result-card .result-specs { font-size: 0.88rem; margin-bottom: 8px; }
.result-count { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.no-results { color: var(--muted); padding: 20px; text-align: center; }

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 10px 0 20px;
}
.image-strip figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.image-strip img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #f0ede9;
  padding: 8px;
}
.image-strip figcaption {
  padding: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
/* PDF 링크 등 표 안 링크도 열 폭이 좁으면 자연스럽게 줄바꿈되도록 nowrap을 강제하지 않는다. */

/* 역사 페이지 - 사진과 글이 좌우로 번갈아 배치되는 타임라인 블록 */
.history-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 30px 0;
}
.history-block.reverse { flex-direction: row-reverse; }
.history-block.text-only .history-copy {
  border-left: 3px solid var(--red);
  padding-left: 20px;
}
.history-figure {
  flex: 0 0 260px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}
.history-figure img {
  display: block;
  width: auto;
  height: auto;
  min-width: 150px;
  max-width: 100%;
  max-height: 230px;
  margin: 0 auto;
  background: #f0ede9;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(26,26,26,0.08);
  box-sizing: border-box;
}
/* 원본 스캔 자료가 대비가 낮아 흐릿하게 보이는 사진을 위한 보정 */
.history-figure.enhance img {
  background: #ded5c6;
  filter: contrast(1.55) brightness(0.9) saturate(1.05);
}
.history-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}
.history-copy { flex: 1; min-width: 0; }
.history-year {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.history-copy h3 { margin: 0 0 6px; color: var(--ink); }
.history-copy p { margin: 0; color: var(--text); }

.founder-block {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}
.founder-photo { flex: 0 0 180px; margin: 0; }
.founder-photo img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  height: 220px;
}
.founder-photo figcaption { font-size: 0.76rem; color: var(--muted); margin-top: 6px; text-align: center; }
.founder-copy { flex: 1; min-width: 0; }
.founder-copy h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.1rem; }

@media (max-width: 720px) {
  .history-block, .history-block.reverse { flex-direction: column; }
  .history-figure { flex-basis: auto; width: 100%; }
  .founder-block { flex-direction: column; }
  .founder-photo { flex-basis: auto; width: 160px; margin: 0 auto; }
}

/* Footer */
.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.site-footer p { margin: 4px 0; }
.original-link a { word-break: break-all; }
.footer-caption { margin-top: 18px; }

/* 한국 총판(어큐시스) 정보 블록 */
.distributor-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-wrap: wrap;
}
.distributor-logo { height: 40px; width: auto; flex-shrink: 0; }
.distributor-info { font-size: 0.85rem; }
.distributor-title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}
.distributor-name { margin: 0 0 6px; color: var(--text); }
.distributor-links { margin: 0 0 4px; }
.distributor-links a { color: var(--red-dark); font-weight: 600; }
.distributor-links .dot-sep { margin: 0 8px; color: var(--muted); }
.distributor-phone { margin: 0 0 4px; color: var(--muted); }
.distributor-email { margin: 0 0 6px; }
.distributor-email a { color: var(--red-dark); font-weight: 600; }
.distributor-sitemap { margin: 0; }
.distributor-sitemap a { color: var(--muted); font-size: 0.82rem; text-decoration: underline; }
.distributor-sitemap a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .distributor-block { padding: 16px; gap: 12px; }
  .distributor-phone { line-height: 1.9; }
}

/* ---------------- 오른쪽에 항상 따라다니는 제품 문의 / PMD 안내 위젯 ---------------- */
.float-stack {
  position: fixed;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.contact-fab, .info-fab { position: relative; }
.contact-fab-toggle, .info-fab-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  padding: 14px 10px;
  cursor: pointer;
  box-shadow: -2px 3px 12px rgba(26,26,26,0.2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: inherit;
  transition: background 0.15s ease, padding-right 0.15s ease;
}
/* info-fab 라벨이 "Portescap 전용 모터 제어 솔루션"으로 길어졌기 때문에
   세로쓰기(writing-mode: vertical-rl) 상태에서 너무 길게 늘어지지 않도록
   글자 크기·자간을 contact-fab보다 한 단계 줄인다. */
.info-fab-toggle { background: var(--ink-soft); font-size: 0.68rem; letter-spacing: 0.01em; padding: 12px 8px; }
.contact-fab-toggle:hover { background: var(--red-dark); }
.info-fab-toggle:hover { background: var(--ink); }
.contact-fab-icon, .info-fab-icon { writing-mode: horizontal-tb; display: flex; }
.contact-fab-panel, .info-fab-panel {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(12px);
  width: 264px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26,26,26,0.2);
  padding: 22px 18px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.contact-fab.open .contact-fab-panel,
.info-fab.open .info-fab-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
.contact-fab-close, .info-fab-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}
.contact-fab-close:hover, .info-fab-close:hover { color: var(--ink); }
.contact-fab-title { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 0.92rem; }
.contact-fab-name { color: var(--text); margin: 0 0 12px; font-size: 0.88rem; }
.contact-fab-links { margin: 0 0 8px; font-size: 0.82rem; }
.contact-fab-links a { color: var(--red-dark); font-weight: 600; text-decoration: none; }
.contact-fab-links a:hover { text-decoration: underline; }
.contact-fab-links .dot-sep { margin: 0 6px; color: var(--muted); }
.contact-fab-phone { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.contact-fab-email {
  display: block;
  font-size: 0.85rem;
  color: var(--red-dark);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  word-break: break-all;
}
.contact-fab-email:hover { text-decoration: underline; }
.contact-fab-cta, .info-fab-cta { display: block; text-align: center; }
.info-fab-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; font-size: 0.92rem; line-height: 1.4; }
.info-fab-body { color: var(--text); margin: 0 0 12px; font-size: 0.82rem; line-height: 1.6; }
.info-fab-list { margin: 0 0 16px; padding-left: 18px; font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.info-fab-list li { margin-bottom: 2px; }

@media (max-width: 720px) {
  .float-stack { top: auto; bottom: 18px; right: 14px; transform: none; flex-direction: column-reverse; }
  .contact-fab-toggle, .info-fab-toggle {
    writing-mode: horizontal-tb;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26,26,26,0.28);
  }
  .contact-fab-toggle .contact-fab-label, .info-fab-toggle .info-fab-label { display: none; }
  .contact-fab-panel, .info-fab-panel {
    position: fixed;
    right: 14px;
    left: 14px;
    top: auto;
    bottom: 86px;
    width: auto;
    transform: translateY(10px);
  }
  .contact-fab.open .contact-fab-panel,
  .info-fab.open .info-fab-panel { transform: translateY(0); }
}

/* ---------------- 동적 애니메이션 ---------------- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 스크롤 시 콘텐츠가 살짝 아래에서 위로, 투명에서 불투명으로 자연스럽게 나타난다.
   html.js-anim 클래스가 있을 때만 적용되므로(자바스크립트가 성공적으로 준비됐을 때만),
   자바스크립트가 없거나 실패해도 콘텐츠는 항상 정상적으로 보인다. */
html.js-anim .content-section,
html.js-anim .card,
html.js-anim .sub-card,
html.js-anim .table-wrap,
html.js-anim .image-strip {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js-anim .content-section.in-view,
html.js-anim .card.in-view,
html.js-anim .sub-card.in-view,
html.js-anim .table-wrap.in-view,
html.js-anim .image-strip.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 사용자가 동작 최소화를 선호하면 모든 애니메이션/전환을 사실상 즉시 완료시킨다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js-anim .content-section,
  html.js-anim .card,
  html.js-anim .sub-card,
  html.js-anim .table-wrap,
  html.js-anim .image-strip {
    opacity: 1;
    transform: none;
  }
}

/* 인쇄/PDF 저장 시에는 스크롤이 발생하지 않아 아직 화면에 나타나지 않은
   콘텐츠가 투명한 채로 인쇄될 수 있으므로, 인쇄 시에는 모든 콘텐츠를
   무조건 보이는 상태로 강제한다. */
@media print {
  html.js-anim .content-section,
  html.js-anim .card,
  html.js-anim .sub-card,
  html.js-anim .table-wrap,
  html.js-anim .image-strip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero, .home-hero { animation: none !important; }
  .float-stack { display: none !important; }
}

/* ---------------- Mobile / responsive ---------------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; }
  .nav-toggle { display: flex; order: 2; }

  .main-nav {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0;
    transition: max-height .35s ease, opacity .25s ease, margin-top .35s ease, padding-top .35s ease;
  }
  .main-nav.open {
    max-height: 900px;
    opacity: 1;
    margin-top: 10px;
    padding-top: 10px;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  .main-nav > .nav-list > li { width: 100%; }
  .main-nav a { padding: 12px 10px; white-space: normal; }

  /* 드롭다운을 hover 대신 펼쳐진 상태로 표시 (터치 기기 대응) */
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    margin: 2px 0 6px;
    padding: 4px;
    display: block;
  }
  .has-dropdown .dropdown a { color: #e9e6e4; }
  .has-dropdown .dropdown a:hover { background: rgba(255,255,255,0.12); }

  .page-inner { padding: 14px 16px 48px; }
  .card-grid, .sub-card-grid, .image-strip { gap: 12px; }
  table { font-size: 0.85rem; }
  th, td { padding: 8px 9px; }
}

@media (max-width: 720px) {
  .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-caption h1, .home-hero h1 { font-size: 1.4rem; }
  .hero-caption { padding: 20px 18px; }
  .hero.hero-noimg, .hero.hero-noimg .hero-caption { padding: 24px 18px; }
  .home-hero { padding: 32px 20px; }
  .home-hero-cta { gap: 10px; }
  .home-hero-cta a { width: 100%; text-align: center; }
  .home-hero-stats { gap: 18px 26px; margin-top: 24px; padding-top: 18px; }
  .content-section h2 { font-size: 1.15rem; }
  .wizard-step { padding: 18px 16px; }
  .wizard-options { grid-template-columns: 1fr; }
  .wizard-nav { flex-wrap: wrap; gap: 10px; }
  .wizard-nav button { flex: 1 1 auto; }
  .card img { height: 120px; }
}

@media (max-width: 480px) {
  .brand-badge { width: 34px; height: 34px; }
  .brand-icon { width: 21px; }
  .brand-name { font-size: 0.92rem; }
  .brand-name-kr { font-size: 0.74rem; margin-left: 4px; }
  .brand-tagline { font-size: 0.64rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 6px 5px; }
  /* 6열 이상인 조밀한 표(모델 스펙표 등)는 초소형 화면에서 폰트를 한 단계 더 줄여
     불필요한 가로 스크롤 폭을 최소화한다. */
  table.cols-many { font-size: 0.72rem; }
  table.cols-many th, table.cols-many td { padding: 5px 4px; }
  .hero-caption h1, .home-hero h1 { font-size: 1.2rem; }
}
