/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --bg:      #eff2f5;
  --dark:    #3a444d;
  --accent:  #0066ff;
  --text:    #1a1a1a;
  --white:   #ffffff;
  --border:  #d4dae0;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.75rem;

  --radius:  4px;
  --trans:   0.22s ease;

  --container: clamp(320px, 90vw, 1160px);
  --pad-x:     clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Noto Sans KR', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section-pad {
  padding-block: var(--section-y);
}

.bg-dark  { background: var(--dark); color: var(--white); }
.bg-white { background: var(--white); }
.bg-bg    { background: var(--bg); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.heading-xl {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.heading-lg {
  font-size: clamp(var(--fs-xl), 2.8vw, var(--fs-3xl));
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.heading-md {
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-dark   { color: var(--dark) !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: box-shadow var(--trans);
}
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(58,68,77,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-symbol {
  width: 40px;
  height: 40px;
}
.logo-text {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-yk {
  color: var(--accent);
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark);
  transition: color var(--trans);
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--trans);
  transform-origin: left;
}
.header-nav a:hover { color: var(--accent); }
.header-nav a:hover::after { transform: scaleX(1); }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--pad-x);
  z-index: 899;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-text-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0;
}

/* 히어로 이미지 슬라이드 */
.hero-img-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-img-slide.active {
  opacity: 1;
}
.hero-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 이미지 위 다크 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 28, 36, 0.52);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-h1-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.h1-line {
  display: block;
}

.h1-accent {
  color: var(--accent);
}

.hero-sub {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-sub-em {
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 16px rgba(0,0,0,0.35);
}

.hero-sub-detail {
  font-size: clamp(var(--fs-sm), 1.4vw, var(--fs-base));
  font-weight: 400;
  color: rgba(58,68,77,0.55);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 사진 위에서 잘 보이도록 히어로 버튼 강조 */
.hero-cta .btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.hero-cta .btn-primary:hover {
  background: var(--white);
  color: var(--accent);
  outline: none;
}

/* ============================================================
   CASES SECTION
   ============================================================ */
#cases {
  background: var(--bg);
}

.cases-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* 이 제목만 살짝 작게 (줄바꿈 없이 한 줄 처리) */
.cases-heading {
  font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-2xl));
}

.cases-label {
  margin-bottom: 16px;
}

.cases-intro {
  margin-top: 16px;
  font-size: clamp(var(--fs-base), 1.4vw, var(--fs-md));
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.case-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
}

/* Slider */
.case-slider {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
  border-radius: 12px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 세로 사진 블러 배경 */
.slide-blur-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slide-blur-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.1);
  opacity: 1;
}
.slide-blur-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* 사진 없을때 placeholder */
.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}
.slide-placeholder svg {
  opacity: 0.18;
  width: 48px;
  height: 48px;
}

/* Slider controls — hidden */
.slider-btn { display: none; }

/* 사조참치집 — 위 간판만 보이게 크게 확대, 좌우 훑기 */
@keyframes bgPanHoriz {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}
.slide-pan-bg {
  width: 100%;
  height: 100%;
  background-size: auto 200%;
  background-position: 30% 8%;
  animation: bgPanHoriz 4s ease-in-out infinite alternate;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background var(--trans), transform var(--trans);
}
.slider-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Case caption */
.case-caption {
  padding: 20px 0 0;
}
.case-caption-location {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #7a8896;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.case-caption-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

/* Video case item */
.case-video-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--dark);
  border-radius: 12px;
}
.case-video-wrap video,
.case-video-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.cases-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 56px);
}

/* 그룹 구분 막대 — 데스크톱에선 숨김, 모바일에서만 노출 */
.cases-divider {
  display: none;
}

/* 지역별 세부 시공사례 */
.region-cases {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.region-cases--full {
  grid-template-columns: repeat(3, 1fr);
}

.region-case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.region-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.case-detail-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  border-radius: 12px;
}

.region-case-card .case-detail-slider,
.region-case-card [data-slider] {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.region-case-card .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.region-case-info {
  padding: 16px 20px 20px;
}

.region-case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.region-case-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.region-case-more {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   BRAND STORY
   ============================================================ */
#brand-story {
  background: var(--dark);
}

.brand-inner {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-line {
  display: block;
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.brand-line-accent {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.brand-accent-bar {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}

.brand-visual {
  position: relative;
  height: clamp(260px, 40vw, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a3540;
}

/* 브랜드 스토리 배경 사진 자리 */
.brand-visual-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.brand-visual-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
#products {
  background: var(--white);
}

.products-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58,68,77,0.12);
  border-color: var(--accent);
}

.product-thumb {
  aspect-ratio: 4/3;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.04);
}
.product-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  opacity: 0.9;
}
.product-thumb-placeholder svg {
  opacity: 0.2;
  width: 40px; height: 40px;
}

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.product-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.product-name-en {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.product-desc {
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.7;
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--dark);
  margin-top: 4px;
  transition: color var(--trans);
}
.product-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--trans);
}
.product-card:hover .product-link {
  color: var(--accent);
}
.product-card:hover .product-link svg {
  transform: translateX(4px);
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  background: var(--white);
}

.faq-header {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(18px, 2.5vw, 24px) 0;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-toggle:hover .faq-text { color: var(--accent); }

.faq-mark {
  flex-shrink: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: 'Pretendard', sans-serif;
}

.faq-text {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  flex: 1;
  transition: color var(--trans);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5ae;
  transition: transform var(--trans), color var(--trans);
  font-style: normal;
}
.faq-accordion.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  display: none;
  padding: 0 0 clamp(18px, 2.5vw, 24px) calc(14px + var(--fs-md) + 14px);
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.9;
}
.faq-accordion.open .faq-a { display: block; }

/* ============================================================
   CTA SECTION
   ============================================================ */
#cta {
  background: var(--accent);
  padding-block: clamp(56px, 8vw, 100px);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-headline {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta-sub {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.78);
  font-weight: 400;
}

/* CTA 버튼 — 흰색 + hover 시 테두리 accent 효과 */
.btn-cta-white {
  background: var(--white);
  color: var(--accent);
  padding: 16px 40px;
  font-size: var(--fs-md);
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cta-white:hover {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--dark);
  padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Sitemap icons row */
.footer-sitemap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity var(--trans);
}
.footer-nav-item:hover { opacity: 0.7; }

.footer-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.footer-nav-item:hover .footer-icon {
  background: var(--accent);
}
.footer-icon svg {
  width: 18px; height: 18px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-nav-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-area .logo-wordmark .ko { color: var(--white); }
.footer-logo-area .logo-wordmark .en { color: rgba(255,255,255,0.35); }

.footer-info {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  text-align: right;
  line-height: 1.8;
}

/* ============================================================
   CONSULT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,38,46,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  border-radius: 16px 16px 0 0;
  padding: clamp(28px, 4vw, 48px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto -8px;
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}
.modal-sub {
  font-size: var(--fs-sm);
  color: #7a8896;
  text-align: center;
  margin-top: -12px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: var(--fs-md);
  font-weight: 700;
  transition: background var(--trans), transform var(--trans);
}
.modal-btn:active { transform: scale(0.98); }
.modal-btn-call {
  background: var(--dark);
  color: var(--white);
}
.modal-btn-call:hover { background: var(--accent); }
.modal-btn-sms {
  background: var(--bg);
  color: var(--dark);
  border: 1.5px solid var(--border);
}
.modal-btn-sms:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.modal-btn svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa5ae;
  transition: color var(--trans);
}
.modal-close:hover { color: var(--dark); }
.modal-close svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ============================================================
   SUBPAGE COMMONS
   ============================================================ */
.subpage-hero {
  background: var(--dark);
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  margin-top: 64px;
}
.subpage-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
}
.breadcrumb a {
  color: inherit;
  transition: color var(--trans);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep {
  opacity: 0.4;
}

/* Cases subpage */
.cases-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.cases-filter-btn.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  font-weight: 600;
}

.cases-all-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.case-all-item {
  border-radius: var(--radius);
  overflow: hidden;
}
.case-all-thumb {
  aspect-ratio: 4/3;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.case-all-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.case-all-item:hover img { transform: scale(1.04); }
.case-all-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  z-index: 1;
}
.case-all-caption-loc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 4px;
}
.case-all-caption-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
}

/* Brand story subpage */
.brand-story-content {
  max-width: 720px;
  margin-inline: auto;
}
.brand-story-content p {
  font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}

/* Product single */
.product-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.product-single-thumb {
  aspect-ratio: 4/3;
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.product-single-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-single-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}
.product-single-thumb-placeholder svg { opacity: 0.15; width: 60px; height: 60px; }

.product-single-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.product-single-name-en {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.product-single-desc {
  font-size: var(--fs-base);
  line-height: 1.85;
  color: #4a5560;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.feature-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}
.feature-text {
  font-size: var(--fs-sm);
  color: var(--dark);
  line-height: 1.6;
}

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.sitemap-col h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}
.sitemap-col li {
  margin-bottom: 10px;
}
.sitemap-col a {
  font-size: var(--fs-sm);
  color: #5a6773;
  transition: color var(--trans);
}
.sitemap-col a:hover { color: var(--accent); }

/* ============================================================
   SECTION INTRO PARAGRAPHS (cases / products)
   ============================================================ */
.cases-intro-desc {
  margin-top: 14px;
  max-width: 760px;
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.9;
}

.products-intro {
  margin-top: 16px;
  max-width: 760px;
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.9;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}
.process-intro {
  margin-top: 16px;
  max-width: 680px;
  margin-inline: auto;
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.9;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.process-step {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(22px, 2.4vw, 30px) clamp(18px, 2vw, 24px);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58,68,77,0.12);
  border-color: var(--accent);
}

.process-num {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.process-step-title {
  margin-top: 12px;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.process-step-desc {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: #5a6773;
  line-height: 1.85;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .region-cases,
  .region-cases--full {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-info { text-align: center; }
  .footer-bottom { justify-content: center; }
  .cases-all-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-single-grid {
    grid-template-columns: 1fr;
  }
  .product-single-thumb {
    position: static;
  }
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }

  /* 모바일 좌우 여백 24px로 통일 */
  :root { --pad-x: 24px; }

  /* 모바일: 히어로 높이를 화면의 약 2/3로 (100svh는 너무 길고 짧으면 답답) */
  #hero {
    min-height: 68svh;
    aspect-ratio: auto;
    box-sizing: border-box;
    /* 내용을 하단 쪽으로 내림 (고정 헤더에도 안 가림) */
    align-items: flex-end;
    padding-top: 64px;
    padding-bottom: clamp(48px, 13vw, 96px);
  }
  .hero-content {
    gap: 22px;
  }
  .hero-h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }
  .hero-sub-em {
    font-size: var(--fs-base);
  }
  .hero-cta .btn-primary {
    font-size: var(--fs-base) !important;
    padding: 13px 28px !important;
  }

  /* 모바일에서만 이 제목 아주 살짝 크게 */
  .cases-heading {
    font-size: 1.5rem;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 0;
  }

  /* 그룹 구분: 양 끝이 흐려지는 선 + 가운데 포인트(다이아몬드) */
  .cases-divider {
    display: block;
    position: relative;
    width: 96px;
    height: 1px;
    margin: 40px auto;
    background: linear-gradient(to right, transparent, rgba(58,68,77,0.30), transparent);
  }
  .cases-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 5px var(--bg);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  /* 모바일: 시공안내 5개 카드를 가로 스와이프로 (세로 스크롤 절약) */
  .process-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0;
    padding-bottom: 6px;
    scrollbar-width: none;          /* Firefox: 스크롤바 숨김 */
  }
  .process-grid::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
  .process-step {
    flex: 0 0 80%;                  /* 다음 카드가 살짝 보여 스와이프 유도 */
    scroll-snap-align: start;
  }

  .cases-all-grid {
    grid-template-columns: 1fr;
  }
  .region-cases,
  .region-cases--full {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 0;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .btn { padding: 12px 24px; font-size: var(--fs-sm); }
  .btn-cta-white { padding: 14px 28px; }
  .hero-cta { gap: 12px; }
  /* 더 좁은 화면에선 카드 폭을 키워 가독성 확보 */
  .process-step {
    flex-basis: 84%;
  }
}
