/* ============================================================= */
/*  DN CREW — style.css  (2026 redesign)                         */
/*  화이트 베이스 + 다크 히어로 / 절제된 레드 포인트            */
/* ============================================================= */

/* ---------- 변수 ---------- */
:root {
  --hero-bg:    #111114;   /* 깊은 다크 뉴트럴 (히어로 전용) */
  --hero-bg-2:  #16161A;
  --white:      #FFFFFF;
  --offwhite:   #FAFAF8;   /* 섹션 베이스 */
  --grey:       #F4F4F5;   /* 교차 섹션 */
  --card:       #FFFFFF;

  --text:       #1A1A1E;   /* 진한 다크 그레이 */
  --text-mid:   #55555C;
  --text-dim:   #76767E;
  --text-faint: #A6A6AE;

  --red:        #E63946;   /* 정제된 레드 (주황기 없음) */
  --red-dark:   #D32F3C;

  --line:       rgba(0,0,0,0.08);
  --line-2:     rgba(0,0,0,0.14);

  --radius:     16px;
  --maxw:       1200px;
  --section-pad: 120px;    /* 섹션 위아래 공통 패딩 */
  --head-gap:    60px;     /* 섹션 헤드 아래 공통 간격 */
  --col-gap:     60px;     /* 2단 레이아웃 공통 간격 */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm:  0 2px 10px rgba(20,20,30,0.05);
  --shadow-md:  0 10px 30px rgba(20,20,30,0.08);
  --shadow-lg:  0 24px 60px rgba(20,20,30,0.14);
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;          /* 고정 네비 보정 (앵커 스크롤) */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.text-red { color: var(--red); }

/* ---------- 버튼 (마이크로 인터랙션) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 26px; border-radius: 50px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap; cursor: pointer; will-change: transform;
}
.btn--lg { padding: 17px 36px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.28);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.38);
}
.btn--primary:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 12px rgba(230,57,70,0.3); }

/* ghost: 기본은 라이트 섹션용(어두운 글씨) */
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--red); color: var(--red);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:active { transform: translateY(0) scale(0.98); }

/* ghost: 다크 히어로 위에선 흰 글씨 */
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.06); }

/* ============================================================= */
/*  0. 네비게이션 — 스크롤 시 다크→화이트 자연 전환             */
/* ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* 화이트 섹션 위로 스크롤되면 */
.nav.is-light {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}

.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-dn   { color: var(--red); }
.nav__logo-crew { color: #fff; transition: color 0.4s var(--ease); }
.nav.is-light .nav__logo-crew { color: var(--text); }
/* 로고 이미지: 다크 히어로 위=흰색(invert), 화이트 네비=검정. 전환 자연스럽게 */
.nav__logo-img {
  height: 34px; width: auto; display: block;
  filter: invert(1);
  transition: filter 0.4s var(--ease);
}
.nav.is-light .nav__logo-img { filter: invert(0); }

.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.78);
  position: relative; transition: color 0.3s var(--ease); padding: 4px 0;
}
.nav.is-light .nav__link { color: var(--text-mid); }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width 0.3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav.is-light .nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

/* 견적 문의 + 카카오톡 버튼 그룹 */
.nav__cta-group { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; }
.nav__cta-group .nav__cta { margin: 0; }
.nav__kakao {
  background: #FEE500; color: #3A1D1D; padding: 14px 20px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.nav__kakao:hover { background: #FFE94D; color: #3A1D1D; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.nav__kakao:active { transform: translateY(0) scale(0.97); }
.nav__kakao-ico { width: 16px; height: 16px; flex-shrink: 0; }

/* 햄버거 */
.nav__toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav__toggle span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px;
  transition: all 0.35s var(--ease);
}
.nav.is-light .nav__toggle span { background: var(--text); }
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 0; }
.nav__toggle.is-open span { background: #fff; }
.nav__toggle.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ============================================================= */
/*  1. 히어로 — 다크, 영상이 주인공                              */
/* ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--hero-bg); color: #fff;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #16161A 0%, #111114 55%, #0E0E10 100%);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  /* 좌측(카피 영역)과 하단을 살짝 어둡게 → 가독성 확보, 영상은 그대로 보이게 */
  background:
    linear-gradient(90deg, rgba(12,12,14,0.66) 0%, rgba(12,12,14,0.34) 50%, rgba(12,12,14,0.14) 100%),
    linear-gradient(180deg, rgba(12,12,14,0.20) 0%, rgba(12,12,14,0.10) 45%, rgba(12,12,14,0.55) 100%);
}
.hero__content { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; width: 100%; }

.hero__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--red);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(40px, 7.2vw, 88px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.025em; margin-bottom: 28px;
}
/* 키네틱 타이포: 줄 단위 떠오름 */
.hero__title .line { display: block; overflow: visible; }
.hero__title .line__inner,
.hero__title .hero__rotator-wrap {
  display: inline-block;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
body.is-loaded .hero__title .line__inner,
body.is-loaded .hero__title .hero__rotator-wrap { opacity: 1; transform: translateY(0); }
body.is-loaded .hero__title .line:nth-child(1) .line__inner { transition-delay: 0.20s; }
body.is-loaded .hero__title .line:nth-child(2) .hero__rotator-wrap,
body.is-loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.34s; }
body.is-loaded .hero__title .line:nth-child(3) .line__inner { transition-delay: 0.48s; }

/* 키워드 회전 (영역 고정, 출렁임 없음) */
.hero__rotator-wrap {
  position: relative; overflow: hidden; vertical-align: bottom;
  height: 1.15em; min-width: 6em;
}
.hero__rotator {
  display: inline-block; color: var(--red);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.hero__rotator.is-out { transform: translateY(-100%); opacity: 0; }
.hero__rotator.is-in  { transform: translateY(0); opacity: 1; }

.hero__desc { font-size: clamp(15px, 1.8vw, 19px); color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll-line {
  width: 1px; height: 46px; background: linear-gradient(var(--red), transparent);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
.hero__scroll-text { font-size: 11px; letter-spacing: 0.25em; color: rgba(255,255,255,0.4); }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================= */
/*  키워드 마퀴 — 라이트 스트립, 레드 점만 포인트              */
/* ============================================================= */
.marquee {
  background: var(--grey); color: var(--text); overflow: hidden; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.marquee__track { display: inline-flex; align-items: center; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: 18px; font-weight: 700; letter-spacing: 0.01em; padding: 0 22px; color: var(--text); }
.marquee__dot { font-size: 7px; color: var(--red); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================= */
/*  공통 섹션 — 오프화이트/그레이 교차, 넉넉한 여백            */
/* ============================================================= */
.section { padding: var(--section-pad) 0; background: var(--offwhite); }
.section:nth-of-type(even) { background: var(--grey); }

.section__head { max-width: 760px; margin-bottom: var(--head-gap); }
.section__label {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--red); margin-bottom: 16px;
}
.section__title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; color: var(--text); }
.section__sub { margin-top: 18px; color: var(--text-dim); font-size: 17px; }

/* ============================================================= */
/*  2. 서비스                                                    */
/* ============================================================= */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 34px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.3s var(--ease);
  transform-style: preserve-3d;
}
.service-card:hover {
  border-color: rgba(230,57,70,0.3);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  font-size: 32px; margin-bottom: 22px;
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230,57,70,0.08); border: 1px solid rgba(230,57,70,0.16);
  transition: all 0.4s var(--ease);
}
.service-card:hover .service-card__icon { background: rgba(230,57,70,0.14); transform: scale(1.06); }
.service-card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text); letter-spacing: -0.01em; }
.service-card__desc { color: var(--text-dim); font-size: 15px; line-height: 1.65; }
/* 호버 미세 글로우 (절제) */
.service-card__glow {
  position: absolute; top: -30%; right: -25%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(230,57,70,0.10), transparent 70%);
  opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none;
}
.service-card:hover .service-card__glow { opacity: 1; }

/* ============================================================= */
/*  3. 강점 — 스티키 핀 + 단계 전환 (Apple 스타일)             */
/* ============================================================= */
.strengths-pin { position: relative; height: 300vh; background: var(--offwhite); }
.strengths-pin__sticky {
  position: sticky; top: 0; height: 100vh; min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
}
.strengths-pin__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--col-gap); align-items: center; width: 100%;
}

.strengths-pin__head .section__title { margin-top: 16px; }
.strengths-pin__lead { margin-top: 18px; color: var(--text-dim); font-size: 16px; max-width: 340px; }
.strengths-pin__progress { display: flex; gap: 12px; margin-top: 36px; }
.strg-dot {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text-faint);
  font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.strg-dot:hover { border-color: var(--red); color: var(--red); }
.strg-dot.is-active {
  background: var(--red); border-color: var(--red); color: #fff;
  box-shadow: 0 8px 18px rgba(230,57,70,0.28); transform: scale(1.04);
}

.strengths-pin__steps { position: relative; display: flex; flex-direction: column; gap: 8px; }
.strg-step {
  position: relative; display: flex; gap: 22px; align-items: flex-start;
  padding: 20px 0 20px 28px;
  opacity: 0.24; transform: scale(0.93); transform-origin: left center; filter: saturate(0.6);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.strg-step.is-active { opacity: 1; transform: scale(1); filter: none; }
.strg-step::before {
  content: ''; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
  background: var(--red); opacity: 0; transform: scaleY(0.3); transform-origin: top;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.strg-step.is-active::before { opacity: 1; transform: scaleY(1); }
.strg-step__num {
  font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1;
  color: var(--text-faint); transition: color 0.4s var(--ease); flex-shrink: 0; min-width: 1.6em;
}
.strg-step.is-active .strg-step__num { color: var(--red); }
.strg-step__icon { font-size: 38px; line-height: 1; flex-shrink: 0; }
.strg-step__title {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 8px;
  color: var(--text); letter-spacing: -0.02em;
}
.strg-step__desc { color: var(--text-dim); font-size: 16px; max-width: 540px; }

/* 모바일: 핀 해제 → 순차 등장 */
@media (max-width: 768px) {
  .strengths-pin { height: auto; padding: var(--section-pad) 0; }
  .strengths-pin__sticky { position: static; height: auto; min-height: 0; display: block; overflow: visible; }
  .strengths-pin__inner { grid-template-columns: 1fr; gap: 34px; }
  .strengths-pin__progress { display: none; }
  .strengths-pin__steps { gap: 22px; }
  .strg-step {
    opacity: 0; transform: translateY(26px); filter: none; padding: 0 0 0 22px;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .strg-step::before { opacity: 1; transform: scaleY(1); }
  .strg-step.in-view { opacity: 1; transform: none; }
  .strg-step:nth-child(2).in-view { transition-delay: 0.12s; }
  .strg-step:nth-child(3).in-view { transition-delay: 0.24s; }
  .strg-step__num { color: var(--red); }
}

/* 모션 최소화: 모두 또렷하게, 핀 해제 */
@media (prefers-reduced-motion: reduce) {
  .strengths-pin { height: auto; }
  .strengths-pin__sticky { position: static; height: auto; min-height: 0; }
  .strg-step { opacity: 1 !important; transform: none !important; filter: none !important; }
  .strg-step::before { opacity: 1 !important; transform: scaleY(1) !important; }
}

/* ============================================================= */
/*  4. 포트폴리오                                                */
/* ============================================================= */
.portfolio__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border-radius: 50px; font-size: 14px; font-weight: 600;
  color: var(--text-mid); border: 1px solid var(--line-2); background: transparent;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--red); border-color: var(--red); }
.filter-btn.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px solid var(--line); display: block; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.3s var(--ease);
  transform-style: preserve-3d;
}
.work-card.is-hidden { display: none; }
.work-card:hover { border-color: rgba(230,57,70,0.3); box-shadow: var(--shadow-lg); }
.work-card__thumb {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  background: repeating-linear-gradient(45deg, #ECECEE 0 18px, #F4F4F5 18px 36px);
  display: flex; align-items: center; justify-content: center;
}
.work-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.work-card:hover .work-card__thumb img { transform: scale(1.06); }
.work-card__ph { font-size: 13px; letter-spacing: 0.2em; color: var(--text-faint); font-weight: 600; }
.work-card__thumb::after {
  content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff; background: rgba(20,20,24,0);
  opacity: 0; transition: all 0.4s var(--ease);
}
.work-card:hover .work-card__thumb::after { opacity: 1; background: rgba(20,20,24,0.34); }
.work-card__meta { padding: 20px 22px; }
.work-card__cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--red); margin-bottom: 8px;
}
.work-card__title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

.portfolio__more { text-align: center; margin-top: 50px; }

/* ============================================================= */
/*  5. 안심 보장 + 카운트업                                      */
/* ============================================================= */
.guarantee__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guarantee__point {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.guarantee__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 17px;
}
.guarantee__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: -0.01em; }
.guarantee__desc { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

.guarantee__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px;
  border-top: 1px solid var(--line); padding-top: 56px; text-align: center;
}
.stat__num {
  display: block; font-size: clamp(42px, 6vw, 66px); font-weight: 800; line-height: 1;
  color: var(--text); letter-spacing: -0.02em;
}
.stat__num span.unit { color: var(--red); }
.stat__label { color: var(--text-dim); font-size: 15px; margin-top: 12px; display: block; }

/* ============================================================= */
/*  6. 회사 소개 · 연혁                                          */
/* ============================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.about__vision { font-size: clamp(20px, 2.3vw, 26px); font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; margin-bottom: 30px; color: var(--text); }
.about__vision:last-of-type { margin-bottom: 40px; }
.about__sub { display: block; margin-top: 10px; font-size: 16px; font-weight: 400; line-height: 1.65; letter-spacing: -0.005em; color: var(--text-dim); }
.about__info { border-top: 1px solid var(--line); }
.about__info li {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.about__info li span { flex-shrink: 0; width: 90px; color: var(--text-faint); }
.about__info li strong { font-weight: 600; color: var(--text); }

/* 타임라인 */
.about__timeline { position: relative; padding-left: 28px; }
.about__timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2);
}
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(230,57,70,0.14);
}
.timeline__year { display: block; font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.timeline__body h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text); letter-spacing: -0.01em; }
.timeline__body p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ===== STUDIO — 서울 협업 스튜디오 (독립 섹션) ===== */
.studio-block {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--col-gap); align-items: center;
}
.studio-block__text .section__title { margin-top: 16px; }
.studio-block__desc { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin: 18px 0 26px; }
.studio-block__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.studio-block__media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, #1b1b20, #0e0e10);
  display: flex; align-items: center; justify-content: center;
}
.studio-block__media span { font-size: 13px; letter-spacing: 0.22em; color: rgba(255,255,255,0.5); font-weight: 600; }
@media (max-width: 768px) {
  .studio-block { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== 포트폴리오 '사진' 박스 — 갤러리 모달 트리거 ===== */
.work-card--photo .work-card__thumb {
  background: linear-gradient(135deg, #20202a, #101015);
}
.work-card--photo .work-card__ph { color: rgba(255,255,255,0.55); }
.work-card--photo .work-card__thumb::after { content: '⊞'; font-size: 30px; }

/* ===== 사진 갤러리 모달 ===== */
.modal__dialog--wide { width: min(94vw, 860px); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 6px; }
.gallery-item { margin: 0; }
.gallery-ph {
  display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; position: relative;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #e7e7ea 0 14px, #efeff1 14px 28px);
}
.gallery-ph::after { content: '📷'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; opacity: 0.3; }
.gallery-item figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-mid); }
.gallery-item figcaption::before { content: ''; display: inline-block; width: 12px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 7px; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== FAQ (문의 바로 위 · 같은 그레이 배경으로 연결) ===== */
/* 하단 패딩은 0 — 아래 CONTACT가 같은 배경으로 이어지며 적절한 간격만 줌 */
.faq { background: var(--grey); padding: var(--section-pad) 0 0; }
/* FAQ → CONTACT 연결: CONTACT 상단 패딩을 줄여 휑한 공백 제거(하단은 그대로) */
.section.contact { padding-top: 72px; }
.faq__list { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item:first-child { border-top: 1px solid var(--line-2); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 2px; text-align: left; background: none; cursor: pointer;
  font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; transition: color 0.3s var(--ease);
}
.faq__q:hover { color: var(--red); }
.faq__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--red); border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq__icon::before { left: 0; top: 8px; width: 18px; height: 2px; }   /* 가로 막대 */
.faq__icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }   /* 세로 막대 (+ → −) */
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a-inner { padding: 0 2px 24px; }
.faq__a p { color: var(--text-dim); font-size: 16px; line-height: 1.75; max-width: 760px; }
.faq__bridge { margin-top: 44px; text-align: center; color: var(--text-mid); font-size: 16px; }
.faq__bridge a { color: var(--red); font-weight: 700; }
.faq__bridge a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .faq__q { padding: 20px 2px; gap: 16px; }
  .faq__bridge { margin-top: 32px; font-size: 15px; }
  .section.contact { padding-top: 48px; }
}

/* ===== SNS 아이콘 링크 (문의·푸터) ===== */
.sns-ico { width: 17px; height: 17px; flex-shrink: 0; }
.contact__sns-link { display: inline-flex; align-items: center; gap: 7px; }
.footer__col a.footer__sns { display: flex; width: fit-content; align-items: center; gap: 7px; }

/* ============================================================= */
/*  7. 문의                                                      */
/* ============================================================= */
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--col-gap); align-items: start; }
.contact__info-title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 32px; color: var(--text); }
.contact__list { margin-bottom: 32px; }
.contact__list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__k { width: 70px; flex-shrink: 0; color: var(--text-faint); font-size: 14px; }
.contact__v { font-weight: 500; font-size: 15px; color: var(--text); }
.contact__sns { display: flex; gap: 12px; }
.contact__sns-link {
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 50px;
  border: 1px solid var(--line-2); transition: all 0.3s var(--ease);
}
.contact__sns-link:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }

/* 폼 */
.contact__form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; position: relative; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.form-optional { color: var(--text-faint); font-weight: 400; font-size: 12px; }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--offwhite); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease); width: 100%;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 4px rgba(230,57,70,0.12);
}
/* 입력 완료 체크 표시 */
.form-field.is-valid::after {
  content: '✓'; position: absolute; right: 14px; top: 38px;
  color: var(--red); font-weight: 800; font-size: 15px;
  animation: pop 0.3s var(--ease);
}
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.form-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2376767E' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-note { margin-top: 16px; font-size: 14px; color: var(--red); font-weight: 600; text-align: center; }

/* 개인정보 수집 동의 체크박스 */
.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 18px; cursor: pointer; font-size: 14px; color: var(--text-mid); }
.form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative;
  width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 6px;
  background: var(--offwhite); cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-consent input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.form-consent input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.form-consent__text { line-height: 1.55; }
.form-consent__more {
  color: var(--red); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.form-consent__more:hover { color: var(--red-dark); }
.form-consent.is-error { color: var(--red); }
.form-consent.is-error input[type="checkbox"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,0.16); }

/* ===== 모달 (개인정보처리방침) ===== */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(12,12,14,0.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: modalFade 0.3s var(--ease); }
.modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 640px); max-height: 86vh; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); display: flex; flex-direction: column; overflow: hidden;
  animation: modalPop 0.35s var(--ease);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal__close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--text-mid); background: transparent;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s var(--ease); z-index: 2;
}
.modal__close:hover { background: var(--grey); color: var(--red); }
.modal__body { overflow-y: auto; padding: 40px 38px; }
.modal__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.modal__meta { color: var(--text-faint); font-size: 13px; margin-top: 6px; }
.modal__intro { margin-top: 18px; color: var(--text-mid); font-size: 15px; line-height: 1.7; }
.modal__body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-top: 24px; margin-bottom: 8px; }
.modal__body h3::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--red); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.modal__body p { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.modal__body ul { margin: 4px 0 0; padding: 0; }
.modal__body li { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; padding-left: 14px; position: relative; }
.modal__body li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

/* 푸터 개인정보처리방침 링크 */
.footer__policy {
  color: rgba(255,255,255,0.55); font-size: 13px; cursor: pointer; margin-left: 8px;
  text-decoration: underline; text-underline-offset: 2px; transition: color 0.25s var(--ease);
}
.footer__policy:hover { color: var(--red); }

@media (max-width: 768px) {
  .modal__body { padding: 32px 22px; }
  .modal__title { font-size: 22px; }
}

/* ============================================================= */
/*  8. 푸터 — 다크로 마무리                                      */
/* ============================================================= */
.footer { background: var(--hero-bg); color: #fff; padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 52px; }
/* 푸터 로고: 다크 배경이므로 흰색(invert), 조금 작게 */
.footer__logo-img { height: 28px; width: auto; display: block; filter: invert(1); }
.footer__tag { color: rgba(255,255,255,0.6); font-size: 15px; margin-top: 16px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer__col a, .footer__col p { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 10px; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--red); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; }
.footer__bottom p { color: rgba(255,255,255,0.45); font-size: 13px; }

/* ============================================================= */
/*  스크롤 등장 (한 번만, 다시 사라지지 않음)                   */
/* ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* 카드 stagger — 0.1초 간격 순차 등장 */
.services__grid .reveal.is-visible:nth-child(2) { transition-delay: 0.10s; }
.services__grid .reveal.is-visible:nth-child(3) { transition-delay: 0.20s; }
.services__grid .reveal.is-visible:nth-child(4) { transition-delay: 0.30s; }
.services__grid .reveal.is-visible:nth-child(5) { transition-delay: 0.40s; }
.services__grid .reveal.is-visible:nth-child(6) { transition-delay: 0.50s; }
.strengths__grid .reveal.is-visible:nth-child(2) { transition-delay: 0.10s; }
.strengths__grid .reveal.is-visible:nth-child(3) { transition-delay: 0.20s; }
.guarantee__points .reveal.is-visible:nth-child(2) { transition-delay: 0.10s; }
.guarantee__points .reveal.is-visible:nth-child(3) { transition-delay: 0.20s; }

/* ============================================================= */
/*  포트폴리오 진입부 — 스크롤 연동 확장 (토스 스타일)          */
/* ============================================================= */
/* 포트폴리오 섹션: 영상 인트로가 맨 위 → 본문 패널이 그 위로 올라오며 연결 */
/* 하단 빈 회색 띠 제거: 더보기 버튼 아래 여백을 최소화하고 다음 섹션으로 바로 이어지게 */
.section.portfolio { padding-top: 0; padding-bottom: 0; }
.pf-body { padding-bottom: 56px; }
.pf-expand { position: relative; height: 210vh; margin-bottom: 0; }
.pf-expand__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pf-expand__media {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(11% 22% round 22px);     /* 시작: 좌우 좁게(세로는 거의 꽉 차게 → 떠보임 최소) */
  will-change: clip-path; background: #0e0e10;
}
.pf-expand__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-expand__ph {                            /* 다크 톤 자리표시자 */
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 70% 18%, #24242b 0%, #151518 46%, #0c0c0e 100%);
}
.pf-expand__media::after {                  /* 텍스트 가독용 오버레이 — 스크롤로 걷어냄 */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.16), rgba(0,0,0,0.42));
  opacity: var(--ov, 1);                    /* JS가 진행률에 맞춰 1 → 0 으로 */
}
.pf-expand__caption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; color: #fff; padding: 0 24px;
  transform-origin: center; will-change: transform, opacity;
}
.pf-expand__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--red); }
.pf-expand__title { font-size: clamp(26px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* 본문 패널 — 영상 위로 살짝 올라오며 자연스럽게 이어짐 */
.pf-body {
  position: relative; z-index: 2;
  background: var(--grey);                 /* 섹션 배경과 동일 → 색 튐 없음 */
  margin-top: -7vh;                        /* 풀스크린 영상 끝자락을 덮으며 상승 */
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -26px 50px rgba(0,0,0,0.18);
  padding-top: 64px;
}
.pf-body__lead {
  max-width: 760px; margin: 0 0 36px; color: var(--text-dim); font-size: 17px;
}

/* 모바일: 핀/확장 해제 → 적당한 크기의 둥근 배너 + 본문 패널 자연 연결 */
@media (max-width: 768px) {
  .pf-expand { height: auto; margin-bottom: 0; }
  .pf-expand__sticky { position: static; height: auto; overflow: visible; padding: 0 16px; }
  .pf-expand__media { position: relative; inset: auto; height: 58vw; min-height: 220px; border-radius: 16px; clip-path: none !important; }
  .pf-expand__title { font-size: clamp(22px, 6vw, 30px); }
  .pf-body { margin-top: 0; border-radius: 0; box-shadow: none; padding-top: 44px; }
  .pf-body__lead { font-size: 16px; margin-bottom: 28px; }
}

/* 모션 최소화: 확장 없이 정적인 배너 */
@media (prefers-reduced-motion: reduce) {
  .pf-expand { height: auto; }
  .pf-expand__sticky { position: static; height: auto; overflow: visible; padding: 0 24px; }
  .pf-expand__media { position: relative; inset: auto; height: 54vh; min-height: 260px; border-radius: 16px; clip-path: none !important; }
  .pf-body { margin-top: 0; border-radius: 0; box-shadow: none; }
}

/* ============================================================= */
/*  고객사 로고 띠 — 순백 배경, 무한 마퀴                        */
/* ============================================================= */
.clients { background: #FFFFFF; padding: var(--section-pad) 0; overflow: hidden; }
.clients__head { text-align: center; margin-bottom: var(--head-gap); }
.clients__head .section__sub { margin-left: auto; margin-right: auto; }

.clients__marquee {
  position: relative; overflow: hidden;
  /* 양 끝이 흰색으로 부드럽게 페이드 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.clients__track {
  display: flex; align-items: center; width: max-content;
  animation: clientsMarquee 130s linear infinite;   /* 천천히 */
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
/* 고정 슬롯 폭 → 한 화면에 5개 이하 + 넉넉한 간격. 여백 잘라낸 로고가 박스를 꽉 채움 */
.clients__logo {
  flex: 0 0 auto; width: 380px;
  display: flex; align-items: center; justify-content: center;
}
.clients__logo img {
  width: 260px; height: 86px; display: block; object-fit: contain;
  filter: grayscale(100%); opacity: 0.9;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.clients__logo img:hover { filter: none; opacity: 1; }

@keyframes clientsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 768px) {
  .clients__logo { width: 240px; }
  .clients__logo img { width: 170px; height: 60px; }
  .clients__track { animation-duration: 75s; }
}

@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .clients__logo { padding: 18px 24px; }
}

/* ============================================================= */
/*  카카오톡 상담 플로팅 버튼                                    */
/* ============================================================= */
.kakao-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 1500;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.kakao-fab__bob { animation: kakaoFloat 2.6s ease-in-out infinite; }
.kakao-fab__btn {
  width: 60px; height: 60px; border-radius: 50%; background: #FEE500;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kakao-fab__btn svg { width: 30px; height: 28px; color: #3A1D1D; }
.kakao-fab:hover .kakao-fab__btn { transform: scale(1.08); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
.kakao-fab:active .kakao-fab__btn { transform: scale(0.96); }
.kakao-fab__label {
  background: #fff; color: var(--text); font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 50px; box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  white-space: nowrap; opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.kakao-fab:hover .kakao-fab__label { opacity: 1; transform: translateX(0); }
@keyframes kakaoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 768px) {
  .kakao-fab { right: 16px; bottom: 16px; }
  .kakao-fab__btn { width: 54px; height: 54px; }
  .kakao-fab__btn svg { width: 27px; height: 25px; }
  .kakao-fab__label { display: none; }   /* 모바일: 원형 버튼만 */
}
@media (prefers-reduced-motion: reduce) {
  .kakao-fab__bob { animation: none; }
}

/* ============================================================= */
/*  반응형                                                       */
/* ============================================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; --head-gap: 40px; --col-gap: 36px; }
  .container { padding: 0 24px; }

  /* 모바일 네비 */
  .nav__toggle { display: block; z-index: 1100; }
  .nav__menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: #fff; padding: 0 40px; transform: translateX(100%);
    transition: transform 0.42s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,0.12);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { font-size: 20px; color: var(--text-mid) !important; }
  /* 모바일 메뉴: 카톡 + 견적 두 버튼을 한 줄에 균등 배치 */
  .nav__cta-group { width: 100%; gap: 10px; margin-left: 0; margin-top: 8px; }
  .nav__cta-group .nav__kakao, .nav__cta-group .nav__cta { flex: 1; justify-content: center; }

  /* 모든 그리드 1열 */
  .services__grid,
  .strengths__grid,
  .portfolio__grid,
  .guarantee__points,
  .guarantee__stats,
  .about__grid,
  .footer__inner,
  .footer__cols,
  .form-row { grid-template-columns: 1fr; }

  .guarantee__stats { gap: 36px; }
  .footer__bottom .container { flex-direction: column; gap: 14px; }
  .hero__title { font-size: clamp(34px, 11vw, 56px); }
  .hero__rotator-wrap { min-width: 5em; }
  .marquee__item { font-size: 15px; padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .contact__form { padding: 26px 22px; }
}

/* 모션 최소화 선호 사용자 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__title .line__inner, .hero__title .hero__rotator-wrap { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================= */
/*  3D 씬 — CSS perspective/transform (가볍게)                   */
/* ============================================================= */
.hero__scene {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden; perspective: 1200px;
}

/* 깊이 레이어(패럴랙스 블롭) */
.depth { position: absolute; will-change: transform; }
.depth--blob { border-radius: 50%; filter: blur(64px); }
.depth--blob-1 {
  width: 420px; height: 420px; right: 6%; top: 12%;
  background: radial-gradient(circle, rgba(230,57,70,0.22), transparent 70%);
}
.depth--blob-2 {
  width: 540px; height: 540px; left: -8%; bottom: -14%;
  background: radial-gradient(circle, rgba(150,160,190,0.14), transparent 70%);
}

/* 회전 오브젝트 컨테이너 */
.orb-wrap {
  position: absolute; top: 50%; left: 72%; transform: translate(-50%, -50%);
  perspective: 1000px;
}
.orb {
  position: relative; width: 340px; height: 340px;
  transform-style: preserve-3d;
  animation: orbSpin 30s linear infinite;   /* 마우스 없을 때(모바일) 기본 회전 */
}
@keyframes orbSpin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to   { transform: rotateX(8deg) rotateY(360deg); }
}

/* 조리개 링 3겹 */
.ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16); transform-style: preserve-3d;
}
.ring--1 { width: 340px; height: 340px; margin: -170px 0 0 -170px; animation: ringX 20s linear infinite; }
.ring--2 { width: 248px; height: 248px; margin: -124px 0 0 -124px; border-color: rgba(230,57,70,0.5); animation: ringY 15s linear infinite reverse; }
.ring--3 { width: 158px; height: 158px; margin: -79px 0 0 -79px; border-style: dashed; border-color: rgba(255,255,255,0.22); animation: ringZ 12s linear infinite; }
@keyframes ringX { from { transform: rotateX(70deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ringY { from { transform: rotateY(72deg) rotateZ(0deg); } to { transform: rotateY(72deg) rotateZ(360deg); } }
@keyframes ringZ { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }

/* 와이어프레임 큐브 (떠다니는 다면체) */
.cube {
  position: absolute; top: 50%; left: 50%; width: 78px; height: 78px;
  margin: -39px 0 0 -39px; transform-style: preserve-3d;
  animation: cubeSpin 18s linear infinite;
}
.cube__face {
  position: absolute; width: 78px; height: 78px;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.015);
}
.cube__face--front  { transform: translateZ(39px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(39px); }
.cube__face--right  { transform: rotateY(90deg) translateZ(39px); border-color: rgba(230,57,70,0.35); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(39px); }
.cube__face--top    { transform: rotateX(90deg) translateZ(39px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(39px); }
@keyframes cubeSpin {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

/* 중심 코어 */
.orb__core {
  position: absolute; top: 50%; left: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 22px 5px rgba(230,57,70,0.55);
}

/* 전경 포인트 도형 */
.shape--diamond {
  width: 26px; height: 26px; right: 22%; top: 26%;
  border: 1px solid rgba(230,57,70,0.6); transform: rotate(45deg);
}
.shape--ring-sm {
  width: 60px; height: 60px; left: 16%; bottom: 22%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
}

/* 데스크톱에서 JS가 마우스/스크롤로 제어할 때 자동회전 일시정지 */
.is-pointer-3d .orb { animation-play-state: paused; }

/* ===== 섹션 깊이감(스크롤 패럴랙스 장식) ===== */
.section { position: relative; }
.section--decor { overflow: hidden; }
.section--decor > .container { position: relative; z-index: 1; }
.section__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.decor-ring { position: absolute; border-radius: 50%; will-change: transform; }
.decor-ring--1 { width: 460px; height: 460px; right: -120px; top: -80px; border: 1px solid rgba(20,20,30,0.055); }
.decor-ring--2 { width: 520px; height: 520px; left: -140px; bottom: -160px; border: 1px solid rgba(20,20,30,0.05); }
.decor-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  left: 12%; top: 30%; background: rgba(230,57,70,0.5); will-change: transform;
}

/* 3D 씬 반응형: 모바일에선 약하게 + 마우스 효과 제거(JS) */
@media (max-width: 1024px) {
  .orb-wrap { left: 80%; transform: translate(-50%, -50%) scale(0.82); }
}
@media (max-width: 768px) {
  .orb-wrap { left: 50%; top: 26%; transform: translate(-50%, -50%) scale(0.6); opacity: 0.5; }
  .depth--blob-1 { opacity: 0.55; }
  .shape--diamond, .shape--ring-sm { display: none; }
  .decor-ring--1, .decor-ring--2 { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .ring, .cube { animation: none !important; }
}
