/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  color: #333;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Variables */
:root {
  --primary: #c81c2a;
  --primary-dark: #a01522;
  --dark: #1a1a2e;
  --text: #333;
  --text-light: #777;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border: #e5e5e5;
  --font-en: 'Montserrat', sans-serif;
  --font-ko: 'Noto Sans KR', sans-serif;
  --container: 1200px;
  --transition: 0.3s ease;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.logo-mark { color: #fff; transition: color var(--transition); }
.logo-amp { color: var(--primary); margin: 0 1px; }
.header.scrolled .logo-mark { color: var(--dark); }

/* GNB Desktop */
.gnb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.gnb ul {
  display: flex;
  gap: 36px;
}
.gnb a {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
  padding: 8px 0;
}
.gnb a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.gnb a:hover { color: #fff; }
.gnb a:hover::after { width: 100%; }
.header.scrolled .gnb a { color: var(--text); }
.header.scrolled .gnb a:hover { color: var(--primary); }
.gnb-close { display: none; }
.gnb-brand { display: none; }
.gnb-copyright { display: none; }
.gnb-auth { display: none; }

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Profile */
.profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.profile svg {
  stroke: #fff;
  transition: stroke var(--transition);
}
.header.scrolled .profile svg { stroke: var(--dark); }
.profile:hover svg { stroke: var(--primary); }


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--transition);
}
.header.scrolled .hamburger span { background: var(--dark); }

/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-color: #1a1a2e;
  overflow: hidden;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 6s ease-out;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero-slide.active { opacity: 1; }
.hero-slide.active::after {
  transform: scale(1.15);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-sub {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.3s;
}
.hero-title {
  font-family: var(--font-en);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.6s;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.9s;
}
.hero-slide.active .hero-sub {
  opacity: 0.7;
  transform: translateY(0);
}
.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}
.hero-slide.active .hero-desc {
  opacity: 0.75;
  transform: translateY(0);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-prev, .hero-next {
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  transition: color var(--transition);
}
.hero-prev:hover, .hero-next:hover { color: #fff; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background var(--transition), transform var(--transition);
}
.hero-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Quick Menu */
.quick-menu {
  padding: 60px 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.quick-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(200,28,42,0.1);
  transform: translateY(-4px);
}
.quick-icon {
  width: 48px; height: 48px;
  color: var(--text-light);
  transition: color var(--transition);
}
.quick-item:hover .quick-icon { color: var(--primary); }
.quick-item span {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Slogan */
.slogan {
  padding: 80px 0;
  background: var(--dark);
  text-align: center;
  color: #fff;
}
.slogan-title {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.slogan-title span {
  font-weight: 700;
  color: var(--primary);
}
.slogan-desc {
  font-size: 0.95rem;
  opacity: 0.6;
  font-weight: 300;
}

/* About Us */
.about {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}
.about-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}
.about-tab {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 14px 32px;
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.about-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.about-tab:hover { color: var(--dark); }
.about-tab.active {
  color: var(--primary);
}
.about-tab.active::after {
  transform: scaleX(1);
}

/* About Panels */
.about-panels { text-align: left; }
.about-panel {
  display: none;
}
.about-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.about-panel-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Company Panel */
.about-panel-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.about-headline {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}
.about-panel-text p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 12px;
}
.about-panel-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* History Panel - Timeline */
.about-timeline {
  position: relative;
  padding-left: 32px;
}
.about-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 7px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  z-index: 1;
}
.timeline-year {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 60px;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

/* Organization Panel */
.org-chart {
  text-align: center;
  padding: 20px 0;
}
.org-top {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}
.org-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.org-ceo {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-size: 1rem;
}
.org-line {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin: 0 auto;
}
.org-departments {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}
.org-departments::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--border);
}
.org-departments .org-box {
  position: relative;
  margin-top: 24px;
}
.org-departments .org-box::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: var(--border);
}

/* Client Panel */
.client-intro {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 32px;
  text-align: center;
}

/* Client Gallery */
.client-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.client-gallery-item {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.client-gallery-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(200,28,42,0.1);
  transform: translateY(-4px);
}
.client-gallery-item:nth-child(5),
.client-gallery-item:nth-child(6),
.client-gallery-item:nth-child(7) {
  /* 하단 3개는 가운데 정렬을 위해 별도 처리 */
}
.client-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background-position: center;
}
/* Client Table */
.client-table-wrap {
  overflow-x: auto;
}
.client-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.client-table td {
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.client-table tr:nth-child(odd) {
  background: var(--bg-light);
}
.client-table tr:hover {
  background: #eef2f7;
}

/* Location Panel */
.location-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.location-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.location-block p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}
.location-tel {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}
.location-map {
  flex: 1.2;
}
.location-map img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Section Common */
.section-title {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 48px;
}

/* Business */
.business {
  padding: 100px 0;
  background: var(--bg-light);
  text-align: center;
}

/* Business Tabs */
.biz-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}
.biz-tab {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 14px 40px;
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.biz-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.biz-tab:hover { color: var(--dark); }
.biz-tab.active { color: var(--primary); }
.biz-tab.active::after { transform: scaleX(1); }

/* Business Panels */
.biz-panel {
  display: none;
}
.biz-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Process Infographic */
.process-infographic {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.process-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icon Area - 점선 박스 */
.process-icon-area {
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 2px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  transition: border-color var(--transition);
}
.process-card:hover .process-icon-area {
  border-color: var(--primary);
}
.process-icon {
  width: 44px; height: 44px;
  color: var(--text-light);
  transition: color var(--transition);
}
.process-card:hover .process-icon {
  color: var(--primary);
}

/* Ribbon 화살표 */
.process-ribbon {
  width: calc(100% + 20px);
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px -10px 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.process-card:first-child .process-ribbon {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  border-radius: 4px 0 0 4px;
}
.process-ribbon span {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

/* 그라데이션 색상 step별 */
.process-card[data-step="1"] .process-ribbon { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.process-card[data-step="2"] .process-ribbon { background: linear-gradient(135deg, #818cf8, #6366f1); }
.process-card[data-step="3"] .process-ribbon { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.process-card[data-step="4"] .process-ribbon { background: linear-gradient(135deg, #34d399, #10b981); }
.process-card[data-step="5"] .process-ribbon { background: linear-gradient(135deg, #2dd4bf, #14b8a6); }

.process-card[data-step="1"] .process-icon-area { border-color: #c4b5fd; }
.process-card[data-step="2"] .process-icon-area { border-color: #a5b4fc; }
.process-card[data-step="3"] .process-icon-area { border-color: #93c5fd; }
.process-card[data-step="4"] .process-icon-area { border-color: #6ee7b7; }
.process-card[data-step="5"] .process-icon-area { border-color: #5eead4; }

.process-card[data-step="1"] .process-icon { color: #8b5cf6; }
.process-card[data-step="2"] .process-icon { color: #6366f1; }
.process-card[data-step="3"] .process-icon { color: #3b82f6; }
.process-card[data-step="4"] .process-icon { color: #10b981; }
.process-card[data-step="5"] .process-icon { color: #14b8a6; }

/* 하단 설명 */
.process-desc {
  text-align: center;
  padding: 16px 8px 0;
}
.process-desc h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.process-desc p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 840px;
  margin: 0 auto;
}
.business-card {
  background: #fff;
  padding: 48px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.business-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.business-card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  color: var(--primary);
}
.business-card h3 {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.business-card-sub {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}
.business-card-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
}

.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Portfolio */
.portfolio {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

/* Portfolio Tabs */
.pf-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}
.pf-tab {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 14px 28px;
  position: relative;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.pf-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.pf-tab:hover { color: var(--dark); }
.pf-tab.active { color: var(--primary); }
.pf-tab.active::after { transform: scaleX(1); }

/* Portfolio Panels */
.pf-panel {
  display: none;
}
.pf-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Portfolio Sub Tabs */
.pf-subtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.pf-subtab {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.pf-subtab:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pf-subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Portfolio Sub Panels */
.pf-subpanel {
  display: none;
}
.pf-subpanel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Portfolio Grid */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pf-item {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.pf-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.pf-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.pf-thumb span {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}
.pf-caption {
  padding: 14px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
  border-top: 1px solid var(--border);
}

/* Smart Series */
.smartseries {
  padding: 100px 0;
  background: var(--bg-light);
  text-align: center;
}

/* SS Tabs */
.ss-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--border);
}
.ss-tab {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 14px 28px;
  position: relative;
  transition: color var(--transition);
}
.ss-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.ss-tab:hover { color: var(--dark); }
.ss-tab.active { color: var(--primary); }
.ss-tab.active::after { transform: scaleX(1); }

/* SS Panels */
.ss-panel {
  display: none;
}
.ss-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* SS Content - 좌 이미지 / 우 정보 */
.ss-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.ss-visual {
  flex: 1;
}
.ss-thumb {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.ss-thumb span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}
.ss-info {
  flex: 1.2;
}
.ss-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ss-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}
.ss-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ss-features li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.ss-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* SS Product Grid (스마트2단팩 등) */
.ss-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.ss-product {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.ss-product:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.ss-product-thumb {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f4f8;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ss-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ss-product-thumb span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}
.ss-product-name {
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  text-align: center;
  border-top: 1px solid var(--border);
}
.ss-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.ss-page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.ss-page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.ss-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Product Modal */
.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-modal-overlay.open {
  display: flex;
}
.product-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
}
.product-modal-close {
  display: block;
  margin-left: auto;
  font-size: 1.8rem;
  color: #333;
  background: none;
  transition: color var(--transition);
  line-height: 1;
  margin-bottom: 8px;
  cursor: pointer;
}
.product-modal-close:hover { color: var(--primary); }
.product-modal-main {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.product-modal-main img {
  width: 100%;
  height: auto;
  display: block;
}
.product-modal-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}
.product-modal-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition);
  background: var(--bg-light);
}
.product-modal-thumbs img:hover {
  border-color: var(--text-light);
}
.product-modal-thumbs img.active {
  border-color: var(--primary);
}

/* Footer */
/* Order */
.order-section {
  padding: 80px 0;
  background: var(--bg-light);
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 0.95rem;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.order-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.order-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.order-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.order-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Order Modal */
.order-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.order-modal-overlay.open {
  display: flex;
}
.order-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  position: relative;
  padding: 32px;
  margin: auto;
}
.order-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #333;
  background: none;
  z-index: 1;
  transition: color 0.2s;
  line-height: 1;
}
.order-modal-close:hover { color: var(--primary); }
.order-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}
/* Step 1: 카테고리 선택 */
.order-step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: left;
}
.order-cat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.order-cat-btn {
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ko);
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.order-cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff5f5;
}
/* Step 2: 뒤로가기 */
.order-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  font-family: var(--font-ko);
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
  text-align: left;
}
.order-back-btn:hover { color: var(--primary); }
/* 샘플 보기 버튼 */
.order-sample-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  margin-top: -4px;
}
.order-sample-btn {
  padding: 6px 14px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: #fff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-ko);
  cursor: pointer;
  transition: all 0.2s;
}
.order-sample-btn:hover {
  background: var(--primary);
  color: #fff;
}
/* 샘플 팝업 */
.sample-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10001;
  justify-content: center;
  align-items: center;
}
.sample-popup-overlay.open { display: flex; }
.sample-popup {
  position: relative;
  max-width: 490px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.sample-popup img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}
.sample-popup-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #333;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1;
}
.sample-popup-close:hover { background: #eee; }
.order-form {
  text-align: left;
}
.order-form-group {
  margin-bottom: 16px;
  flex: 1;
}
.order-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.order-form-group label .required {
  color: var(--primary);
}
.order-form-group input[type="text"],
.order-form-group input[type="email"],
.order-form-group input[type="tel"],
.order-form-group select,
.order-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-ko);
  transition: border-color 0.2s;
}
.order-form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-ko);
}
.order-form-group input:focus,
.order-form-group select:focus,
.order-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.order-section-divider {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.order-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.order-form-group input[type="file"] {
  font-size: 0.82rem;
}
.order-form-row {
  display: flex;
  gap: 16px;
}
.order-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.order-form-group .order-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 0;
}
.order-radio input[type="radio"] {
  accent-color: var(--primary);
}
.order-privacy {display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding:14px 16px;background:#f9f9f9;border:1px solid var(--border);border-radius:6px;}
.order-privacy-label {display:flex;align-items:center;gap:8px;font-size:13px;color:#333;cursor:pointer;}
.order-privacy-label input[type="checkbox"] {width:16px;height:16px;accent-color:var(--primary);cursor:pointer;}
.order-privacy-view {font-size:12px;color:#888;text-decoration:underline;background:none;border:none;cursor:pointer;transition:color 0.2s;}
.order-privacy-view:hover {color:var(--primary);}
.order-form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.order-btn-cancel,
.order-btn-submit {
  padding: 12px 36px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ko);
  cursor: pointer;
  transition: all 0.2s;
}
.order-btn-cancel {
  background: #f5f5f5;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.order-btn-cancel:hover { background: #eee; }
.order-btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
}
.order-btn-submit:hover { background: #a81624; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15px;
}
.footer-logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.footer-logo .logo-mark { color: #fff; }
.footer-logo .logo-amp { color: var(--primary); }
.footer-addr p {
  line-height: 1.8;
}
.footer-powered {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.6);
}
.footer-powered a {
  color: #fff;
  text-decoration: none;
}
.footer-powered a:hover {
  color: var(--primary);
}
.footer-contact {
  text-align: right;
  align-self: flex-end;
}
.footer-contact-title {font-size:1.4rem;font-weight:700;color:rgba(255,255,255,0.5);margin-bottom:8px;}
.footer-contact p {
  line-height: 1.8;
}
.footer-policy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.footer-policy .footer-logo {
  margin-bottom: 0;
}
.footer-policy-links {
  display: flex;
  gap: 24px;
}
.footer-policy-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-policy-links a:hover {
  color: #fff;
}
.footer-policy .footer-contact {
  text-align: right;
  align-self: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 15px 0 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .business-grid { gap: 20px; }
  .business-card { padding: 36px 24px; }
  .company-stats { gap: 32px; }
  .quick-grid { gap: 16px; }
  .order-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .hamburger { display: flex; }
  .profile { display: none; }
  .gnb {
    position: fixed;
    top: 0; right: -100%;
    left: auto;
    transform: none;
    width: 280px; height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    padding: 22px 32px 40px;
    transition: right 0.35s ease;
    z-index: 2000;
  }
  .gnb.open { right: 0; }
  .gnb-brand {
    display: flex;
    gap: 2px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 800;
  }
  .gnb-brand .logo-mark,
  .header.scrolled .gnb-brand .logo-mark { color: #fff; }
  .gnb-brand .logo-amp { color: var(--primary); }
  .gnb ul {
    flex-direction: column;
    gap: 0;
  }
  .gnb a,
  .header.scrolled .gnb a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .gnb a::after { display: none; }
  .gnb a:hover,
  .header.scrolled .gnb a:hover { color: var(--primary); }
  .gnb-close {
    display: block;
    position: absolute;
    top: 26px; right: 20px;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.6);
    line-height: 1;
  }
  .gnb-auth {
    display: flex;
    gap: 8px;
    padding: 20px 0 0;
  }
  .gnb-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
  }
  .gnb-auth a { display: flex; align-items: center; justify-content: center; padding: 8px 0; border-bottom: none; }
  .gnb-auth-login { background: var(--primary); color: #fff; }
  .gnb-auth-login:hover { opacity: 0.85; }
  .gnb-auth-signup { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
  .gnb-auth-signup:hover { background: rgba(255,255,255,0.2); }
  .gnb-copyright {
    display: block;
    margin-top: auto;
    padding: 15px 0 0;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-en);
  }

  /* About */
  .about { padding: 60px 0; }
  .about-tabs { gap: 0; flex-wrap: wrap; }
  .about-tab { padding: 12px 20px; font-size: 0.85rem; }
  .about-panel-stats { flex-wrap: wrap; gap: 24px; }
  .org-departments { flex-wrap: wrap; gap: 12px; }
  .org-departments::before { display: none; }
  .org-departments .org-box::before { display: none; }
  .client-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
  .client-table td { padding: 10px 8px; font-size: 0.75rem; white-space: normal; }
  .about-headline { font-size: 1rem; }
  .timeline-year { font-size: 1.1rem; }
  .location-wrap { flex-direction: column; gap: 24px; }

  /* Hero */
  .hero { min-height: 400px; max-height: 600px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.85rem; }
  .hero-desc { font-size: 0.9rem; }

  /* Quick Menu */
  .quick-menu { padding: 40px 0; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .quick-item { padding: 24px 12px; }

  /* Slogan */
  .slogan { padding: 60px 0; }
  .slogan-title { font-size: 1.1rem; letter-spacing: 0.04em; }

  /* Business */
  .business { padding: 60px 0; }
  .biz-tab { padding: 12px 24px; font-size: 0.85rem; }
  .business-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-infographic {
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  .process-card {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .process-icon-area {
    width: 64px;
    min-width: 64px;
    aspect-ratio: 1;
    border-radius: 8px;
  }
  .process-icon { width: 28px; height: 28px; }
  .process-ribbon {
    width: auto;
    min-width: 100px;
    height: 36px;
    margin: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  }
  .process-card:first-child .process-ribbon {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  }
  .process-ribbon span { font-size: 0.75rem; }
  .process-desc {
    flex: 1;
    text-align: left;
    padding: 0 0 0 12px;
  }
  .process-desc h4 { font-size: 0.85rem; }
  .process-desc p { font-size: 0.78rem; }
  .business-card { padding: 36px 24px; }
  .section-title { font-size: 1.6rem; }
  .section-sub { margin-bottom: 32px; }

  /* Company */
  .company { padding: 60px 0; }
  .company-headline { font-size: 1.1rem; }
  .company-stats { flex-wrap: wrap; gap: 24px; }
  .stat-number { font-size: 1.6rem; }

  /* Notice */
  /* Portfolio */
  .portfolio { padding: 60px 0; }
  .pf-tabs { flex-wrap: wrap; }
  .pf-tab { padding: 10px 16px; font-size: 0.8rem; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pf-subtabs { gap: 6px; }
  .pf-subtab { padding: 6px 12px; font-size: 0.75rem; }

  /* Smart Series */
  .smartseries { padding: 60px 0; }
  .ss-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-modal { padding: 16px; }
  .product-modal-main { min-height: 200px; }
  .product-modal-thumbs img { width: 56px; height: 56px; }
  .ss-tabs { flex-wrap: wrap; }
  .ss-tab { padding: 10px 16px; font-size: 0.82rem; }
  .ss-content { flex-direction: column; gap: 24px; }
  .ss-thumb { aspect-ratio: 4 / 3; }
  .ss-info h3 { font-size: 1.2rem; }

  /* Order */
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .order-form-row { flex-direction: column; gap: 0; }
  .order-modal { padding: 24px 20px; }
  .order-cat-list { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  .footer-brand { text-align: center; }
  .footer-logo { display: flex; justify-content: center; }
  .footer-contact {
    text-align: center;
    align-self: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-desc { font-size: 0.82rem; }
  .slogan-title { font-size: 0.95rem; }
  .company-headline { font-size: 1rem; }
  .quick-item span { font-size: 0.78rem; }
  .quick-icon { width: 36px; height: 36px; }

  /* Process: Step 세로 배치 */
  .process-card {
    flex-direction: column !important;
    text-align: center;
  }
  .process-icon-area {
    margin: 0 auto;
  }
  .process-ribbon {
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%) !important;
    margin: 0 auto;
  }
  .process-card:first-child .process-ribbon {
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%) !important;
  }
  .process-desc {
    text-align: center !important;
    padding: 0 !important;
  }
}