@charset "utf-8";

/* ============================================================
   MICETL — 스타일시트 (2026-11 개편)
   디자인의 중심 생각: 흩어진 일이 한 줄로 이어진다.
   첫 화면의 점과 선, 진행 표시, 구분선, 진행과정이 모두 같은 「선」입니다.
   색상·글자크기 등 대부분은 아래 :root 값만 바꾸면 전체에 반영됩니다.
   ============================================================ */

/* ---------- 한글 폰트 (나눔스퀘어) ---------- */
@font-face { font-family: 'NanumSquare'; src: url('../font/NanumSquare_acL.ttf') format('truetype');  font-weight: 300; font-display: swap; }
@font-face { font-family: 'NanumSquare'; src: url('../font/NanumSquare_acR.ttf') format('truetype');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'NanumSquare'; src: url('../font/NanumSquare_acB.ttf') format('truetype');  font-weight: 700; font-display: swap; }
@font-face { font-family: 'NanumSquare'; src: url('../font/NanumSquare_acEB.ttf') format('truetype'); font-weight: 800; font-display: swap; }

/* ---------- 디자인 토큰 (색은 로고에서 가져왔습니다) ---------- */
:root {
  --ink:        #10174A;   /* 가장 진한 남색 — 제목, 어두운 영역 */
  --navy:       #1D2A73;   /* 로고 남색 */
  --ink-soft:   #333D5E;   /* 본문 */
  --muted:      #545F7C;   /* 보조 설명 */
  --line:       #DCE3E6;   /* 구분선 */
  --bg:         #FFFFFF;
  --bg-alt:     #EEF4F3;   /* 옅은 배경 영역 */
  --teal:       #28ADB1;   /* 로고 청록 — 선, 버튼 */
  --green:      #2B943A;   /* 로고 녹색 — 선의 끝 */
  --teal-lt:    #7FDCD6;   /* 어두운 배경 위 강조 글자 */
  --accent:     #0A7478;   /* 밝은 배경 위 강조 글자 */
  --accent-dk:  #075A5D;
  --accent-10:  rgba(40, 173, 177, .14);
  --thread:     linear-gradient(90deg, var(--teal), var(--green));
  --thread-v:   linear-gradient(180deg, var(--teal), var(--green));

  --wrap:       1180px;    /* 콘텐츠 최대 너비 */
  --header-h:   76px;
  --measure:    64ch;      /* 본문 한 줄 최대 길이 */

  /* 화면 크기에 따라 부드럽게 변하는 글자 크기 */
  --fs-body:    clamp(15px, 0.4vw + 14px, 17px);
  --fs-lead:    clamp(19px, 0.7vw + 16px, 26px);
  --fs-desc:    clamp(15px, 0.4vw + 14px, 17px);
  --fs-h2:      clamp(26px, 2.4vw + 14px, 42px);
  --fs-h2-xl:   clamp(30px, 4.3vw, 62px);
  --fs-h3:      clamp(18px, 0.6vw + 16px, 22px);

  /* 화면 크기에 따라 부드럽게 변하는 영역 여백 */
  --pad-sec:    clamp(80px, 9vw, 150px);
  --pad-wrap:   clamp(20px, 3vw, 24px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --shadow-md: 0 10px 28px rgba(16, 23, 74, .12);
  --shadow-lg: 0 28px 64px rgba(16, 23, 74, .2);

  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: 'NanumSquare', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Malgun Gothic', 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: clip;        /* hidden 을 쓰면 첫 화면 고정(sticky)이 풀립니다 */
  word-break: keep-all;    /* 한글 단어 중간에서 안 끊기게 */
  overflow-wrap: break-word;
}

/* 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, h4, .sec-title, .hero__title, .about__lead { text-wrap: balance; }
p, .sec-desc, .svc__desc, .team__desc, .proc__desc { text-wrap: pretty; }

/* PC에서만 보이는 줄바꿈. 좁은 화면에서는 무시되어 문장이 자연스럽게 흐릅니다. */
.br-pc { display: none; }
@media (min-width: 900px) { .br-pc { display: inline; } }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* 키보드 사용자를 위한 포커스 표시 */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---------- 레이아웃 공통 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-wrap); }
.section { padding: var(--pad-sec) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: calc(var(--pad-sec) * .74) 0; }

.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }

.sec-title {
  font-size: var(--fs-h2);
  font-weight: 800; line-height: 1.3; letter-spacing: -.03em;
  color: var(--ink);
}
.sec-title--xl { font-size: var(--fs-h2-xl); line-height: 1.24; letter-spacing: -.035em; }
.sec-title--md { font-size: clamp(24px, 2.6vw, 38px); }
.sec-desc {
  margin-top: 20px;
  font-size: var(--fs-desc);
  color: var(--muted); line-height: 1.9;
  max-width: var(--measure);
}

/* 사진 틀 — 사진이 안에서 천천히 움직입니다 */
.frame { display: block; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-alt); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--teal); color: var(--ink); }
.btn--primary:hover { background: var(--teal-lt); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn--lg { height: 60px; padding: 0 34px; font-size: 17px; }

/* ============================================================
   헤더
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; height: 34px; }
.header__logo img { height: 100%; width: auto; transition: filter .35s var(--ease); }

/* 히어로 위에 떠 있을 때 = 투명 + 흰 글씨 */
.header:not(.is-solid) { background: transparent; }
.header:not(.is-solid) .header__logo img { filter: brightness(0) invert(1); }
.header:not(.is-solid) .nav__link { color: rgba(255,255,255,.9); }
.header:not(.is-solid) .nav__link:hover { color: #fff; }
.header:not(.is-solid) .burger span { background: #fff; }

/* 스크롤 후 = 흰 배경 + 진한 글씨 */
.header.is-solid {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .nav__link { color: var(--ink-soft); }
.header.is-solid .nav__link:hover { color: var(--accent); }
.header.is-solid .burger span { background: var(--ink); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link.is-active::after,
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { margin-left: 10px; height: 44px; padding: 0 22px; font-size: 15px; }

/* 모바일 햄버거 */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .35s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 모바일 메뉴 패널 */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff;
  padding: 32px 24px 48px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mnav.is-open { transform: translateX(0); visibility: visible; }
.mnav__link {
  padding: 18px 4px;
  font-size: 20px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav__foot { margin-top: 32px; }
.mnav__contact { margin-top: 28px; font-size: 15px; color: var(--muted); line-height: 2; }
.mnav__contact strong { display: block; color: var(--ink); font-weight: 700; }

/* ============================================================
   진행 표시 — 첫 화면의 그 선이 페이지를 따라 내려옵니다
   ============================================================ */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 110;
  height: 3px; pointer-events: none;
  background: var(--thread);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.rail {
  position: fixed; left: 32px; top: 0; bottom: 0; z-index: 80;
  width: 2px; pointer-events: none;
  background: rgba(130, 146, 170, .28);
  opacity: 0; transition: opacity .4s var(--ease);
  display: none;
}
.rail.is-on { opacity: 1; }
.rail__fill {
  position: absolute; inset: 0; background: var(--thread-v);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.rail__head {
  position: absolute; left: 1px; top: calc(var(--p, 0) * 100%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(40,173,177,.25);
}
.rail__head b {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
@media (min-width: 1400px) { .rail { display: block; } .progress { display: none; } }

/* ============================================================
   히어로 (영상 + 흩어진 점이 한 줄로 모이는 그래픽)
   ============================================================ */
.hero { position: relative; background: var(--ink); }
.hero__pin {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
/* 영상 위 어둡게 — 글씨가 항상 읽히도록. 스크롤할수록 더 어두워집니다 */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(16,23,74,.82) 0%, rgba(16,23,74,.62) 40%, rgba(16,23,74,.9) 100%),
    linear-gradient(90deg, rgba(16,23,74,.8) 0%, rgba(16,23,74,.3) 72%);
}
.hero__scrim::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  opacity: calc(var(--hp, 0) * .62);
}
.hero__net { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; z-index: 3; width: 100%; padding-top: var(--header-h); padding-bottom: 110px; }
.hero__title {
  color: #fff;
  font-size: clamp(38px, 6vw, 88px);
  line-height: 1.16; letter-spacing: -.04em;
}
.hero__title span:not(.w):not(.w > *) { font-weight: 300; }
.hero__title em { font-style: normal; font-weight: 800; }
.hero__title .w { font-weight: inherit; }
.hero__sub {
  margin-top: 30px;
  max-width: 46ch;
  color: rgba(255,255,255,.9);
  font-size: clamp(16px, .5vw + 14px, 19px);
  line-height: 1.85;
}
.hero__en {
  margin-top: 14px;
  color: rgba(255,255,255,.72);
  font-size: clamp(10px, .3vw + 9px, 13px);
  letter-spacing: .12em; font-weight: 700; line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* 한 팀이 맡는 일 — 여섯 단계가 한 줄로 이어집니다 (2026-11-08, 흩어진 점 그래픽 대신) */
.hero__steps {
  position: relative;
  display: flex; max-width: 660px;
  margin-top: 64px; padding-top: 26px;
  list-style: none;
}
.hero__steps::before {
  content: ''; position: absolute; top: 6px; height: 2px;
  left: calc(100% / 12); right: calc(100% / 12);
  background: var(--thread);
  transform-origin: left; transition: transform 1.2s var(--ease) .7s;
}
html.motion .hero__steps:not(.is-in)::before { transform: scaleX(0); }
.hero__steps li {
  position: relative; flex: 1 1 0;
  text-align: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.hero__steps li::before {
  content: ''; position: absolute; left: 50%; top: -26px;
  width: 14px; height: 14px; margin-left: -7px; box-sizing: border-box;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--teal-lt);
}

/* 아래로 스크롤 안내 */
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .22em; font-weight: 700;
  opacity: calc(1 - var(--hp, 0) * 6);
}
.hero__scroll i { width: 1px; height: 36px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  animation: scrolldot 2s var(--ease) infinite;
}
@keyframes scrolldot {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* 영상 멈춤/재생 */
.hero__vidbtn {
  position: absolute; right: 28px; bottom: 30px; z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(16,23,74,.5);
  color: #fff;
  transition: background .25s var(--ease);
}
.hero__vidbtn:hover { background: var(--navy); }

/* 모션이 켜졌을 때만 첫 화면을 붙잡아 둡니다 */
html.motion .hero { height: 150svh; }
html.motion .hero__pin { position: sticky; top: 0; height: 100svh; min-height: 0; }
html.motion .hero__media video { transform: scale(calc(1.1 - var(--hp, 0) * .1)); will-change: transform; }
@media (max-height: 640px) {
  html.motion .hero { height: auto; }
  html.motion .hero__pin { position: relative; height: auto; min-height: 100svh; }
}

/* ============================================================
   제목 — 줄 단위로 아래에서 올라옵니다
   ============================================================ */
.w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.w > i { display: inline-block; font-style: normal; }
html.motion [data-lines] .w > i {
  transform: translateY(112%);
  transition: transform .95s var(--ease);
  transition-delay: calc(var(--l, 0) * .13s + var(--base, 0s));
}
html.motion [data-lines].is-in .w > i { transform: none; }

/* ============================================================
   신뢰 지표
   ============================================================ */
.stats { background: var(--ink); color: #fff; padding: clamp(56px, 6vw, 88px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stats__item { position: relative; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.stats__item::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px;
  background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .1s;
}
.stats__item.is-in::before { transform: scaleX(1); }
html:not(.motion) .stats__item::before { transform: scaleX(1); }
.stats__num {
  font-size: clamp(44px, 6vw, 84px); font-weight: 300; letter-spacing: -.03em;
  color: #fff; line-height: 1.1;
}
.stats__num span { font-weight: 800; }
.stats__label { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.76); }

/* ============================================================
   회사소개 + 전담팀
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px);
  margin-top: clamp(44px, 6vw, 80px);
  align-items: start;
}
.about__lead {
  font-size: var(--fs-lead); font-weight: 700; line-height: 1.6;
  color: var(--ink); letter-spacing: -.02em;
  margin-bottom: 24px;
}
.about__body p { margin-bottom: 18px; color: var(--ink-soft); line-height: 1.95; max-width: var(--measure); }
.about__points { margin-top: 34px; display: grid; gap: 14px; }
.about__points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--ink); font-weight: 700;
}
.about__points svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent); }

/* 핵심 세 가지 (2026-11-08, 긴 단락 대신) */
.about__keys { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.about__key {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.about__num { font-size: 15px; font-weight: 800; color: var(--accent); letter-spacing: .04em; line-height: 1.6; }
.about__key-title { font-size: clamp(17px, .4vw + 15px, 20px); font-weight: 800; color: var(--ink); line-height: 1.45; letter-spacing: -.02em; }
.about__body .about__key p { margin: 8px 0 0; font-size: clamp(14px, .3vw + 13px, 15.5px); color: var(--muted); line-height: 1.75; }

.about__figures { position: relative; padding-bottom: 96px; }
.about__figure { position: relative; }
.about__figure--a { width: 78%; }
.about__figure--a .frame { aspect-ratio: 4 / 5; }
.about__figure--b { position: absolute; right: 0; bottom: 0; width: 46%; }
.about__figure--b .frame { aspect-ratio: 1 / 1; border: 6px solid #fff; box-sizing: content-box; }
.frame img[data-parallax] { height: 118%; margin-top: -9%; }
.about__badge {
  position: absolute; left: 0; top: 28px;
  background: var(--ink); color: #fff;
  padding: 16px 22px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.about__badge b { display: block; font-size: 34px; font-weight: 800; line-height: 1.15; }
.about__badge b span { font-size: 19px; color: inherit; }
.about__badge > span { font-size: 13px; color: rgba(255,255,255,.82); }

.teams { margin-top: clamp(72px, 9vw, 128px); }
.teams__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 7vw, 96px); align-items: end; }
.teams__head .sec-desc { margin-top: 0; }
.team__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 44px; padding-top: 30px;
}
/* 네 팀이 하나의 선에 매달립니다 */
.team__grid::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--thread);
  transform-origin: left; transition: transform 1.4s var(--ease);
}
html.motion .team__grid:not(.is-in)::before { transform: scaleX(0); }
.team { position: relative; }
.team::before {
  content: ''; position: absolute; left: 0; top: -36px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal);
}
.team__name { font-size: var(--fs-h3); font-weight: 800; color: var(--ink); line-height: 1.45; }
.team__tag {
  display: inline-block; margin-bottom: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent-10); color: var(--accent-dk);
  font-size: 13px; font-weight: 800; letter-spacing: -.01em; line-height: 1.4;
}
.team__desc { margin-top: 10px; font-size: clamp(14px, .3vw + 13px, 15.5px); color: var(--muted); line-height: 1.85; }

/* 현장 사진 띠 */
.band { position: relative; height: clamp(240px, 42vw, 600px); overflow: hidden; background: var(--ink); }
.band img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: 70% 50%; }

/* ============================================================
   서비스 — 왼쪽 제목은 붙어 있고 오른쪽 목록이 지나갑니다
   ============================================================ */
.svc__layout {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.svc__side { position: sticky; top: calc(var(--header-h) + 32px); }
.svc__photo { margin-top: 32px; aspect-ratio: 16 / 10; max-width: 460px; }
.svc {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 22px;
  padding: 34px 0;
}
.svc:first-child { padding-top: 0; }
.svc:first-child::before { display: none; }
.svc::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #C8D4D6;
}
.svc::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease);
}
.svc.is-in::after { transform: scaleX(1); }
.svc:first-child::after { display: none; }
.svc__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--accent); margin-top: -4px; }
.svc__title { font-size: var(--fs-h3); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.4; }
.svc__desc { margin-top: 10px; font-size: clamp(14px, .3vw + 13px, 15.5px); color: var(--muted); line-height: 1.8; }
.svc__list { display: grid; gap: 6px; align-content: start; padding-top: 3px; }
.svc__list li { position: relative; padding-left: 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.svc__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}

/* ============================================================
   포트폴리오 (홈)
   ============================================================ */
.pf { background: var(--ink); color: #fff; }
.pf .sec-title { color: #fff; }
.pf .sec-desc { color: rgba(255,255,255,.78); margin-top: 0; }
.pf__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.pf__side { display: grid; gap: 18px; justify-items: start; }
.pf-note, .pf-notice {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
}
.pf-note { margin-top: 36px; color: var(--teal-lt); }
.pf-note::before, .pf-notice::before {
  content: ''; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
}
.pf__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
  margin-top: 24px;
}
.pf-card { grid-column: span 3; display: block; }
.pf-card--wide { grid-column: span 6; }
.pf-card--half { grid-column: span 6; }
.pf-card__img {
  position: relative; display: block;
  height: clamp(240px, 25vw, 340px);
  overflow: hidden; border-radius: var(--r-sm);
  background: #DCE6E9;
}
.pf-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.pf-card:hover .pf-card__img img, .pf-card:focus-visible .pf-card__img img { transform: scale(1.05); }
.pf-card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  position: relative;
}
.pf-card__foot::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--thread);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.pf-card:hover .pf-card__foot::after, .pf-card:focus-visible .pf-card__foot::after { transform: scaleX(1); }
.pf-card__name { font-size: clamp(16px, .4vw + 15px, 19px); font-weight: 800; color: #fff; line-height: 1.4; }
.pf-card__count { flex: 0 0 auto; font-size: 13px; color: rgba(255,255,255,.72); }

.tag-sample {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  padding: 2px 9px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.6;
}

/* ============================================================
   진행 과정 — 선이 채워지며 단계가 켜집니다
   ============================================================ */
.proc { background: #fff; padding: var(--pad-sec) 0; }
.proc__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 7vw, 96px); align-items: end; }
.proc__head .sec-desc { margin-top: 0; }
.proc__grid {
  --n: 1;
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  margin-top: clamp(48px, 6vw, 84px);
}
.proc__grid::before, .proc__grid::after {
  content: ''; position: absolute; left: 0; right: 0; top: 43px; height: 2px;
  background: var(--line);
}
.proc__grid::after {
  background: var(--thread);
  transform: scaleX(var(--n)); transform-origin: left;
}
.proc__item { position: relative; z-index: 1; transition: opacity .5s var(--ease); }
.proc__dot {
  width: 88px; height: 88px; margin-bottom: 24px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.proc__dot svg { width: 36px; height: 36px; }
.proc__step { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.proc__title { margin-top: 8px; font-size: clamp(20px, 1vw + 16px, 26px); font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: -.02em; }
.proc__desc { margin-top: 10px; font-size: clamp(14px, .3vw + 13px, 15.5px); color: var(--muted); line-height: 1.85; max-width: 26ch; }

html.motion .proc__item:not(.is-on) { opacity: .42; }
html.motion .proc__item:not(.is-on) .proc__dot { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
html.motion .proc__item.is-now .proc__dot { background: var(--teal); color: var(--ink); box-shadow: 0 0 0 8px var(--accent-10); }

@media (min-width: 901px) and (min-height: 640px) {
  html.motion .proc { height: 300svh; padding: 0; }
  html.motion .proc__pin {
    position: sticky; top: 0; height: 100svh;
    display: flex; align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
  }
}

/* ============================================================
   고객사 로고
   ============================================================ */
.clients__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }
.clients__toggle {
  flex: 0 0 auto; padding: 8px 2px;
  font-size: 15px; font-weight: 700; color: var(--accent);
  border-bottom: 2px solid currentColor;
}
.clients__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden;
}
.clients__cell {
  background: #fff;
  display: grid; place-items: center;
  padding: 24px 16px;
  min-height: 112px;
  transition: background .3s var(--ease);
}
.clients__cell:hover { background: var(--bg-alt); }
.clients__cell img { max-width: 100%; height: auto; }
.clients__note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* 로고 흐름 — 원본 목록(alt 포함)은 화면 읽기 프로그램용으로 남겨 둡니다 */
.clients__grid.is-flowing {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); border: 0; padding: 0;
}
.clients__flow { display: grid; gap: 12px; overflow: hidden; }
.clients__row { overflow: hidden; }
.clients__track {
  display: flex; width: max-content;
  animation: flow var(--dur, 60s) linear infinite;
  animation-play-state: var(--play, paused);
  will-change: transform;
}
.clients__row:nth-child(even) .clients__track { animation-direction: reverse; }
.clients__flow:hover .clients__track { animation-play-state: paused; }
.clients__track .clients__cell { flex: 0 0 216px; min-height: 92px; padding: 16px 20px; }
@keyframes flow { to { transform: translateX(var(--shift, -50%)); } }

/* ============================================================
   문의
   ============================================================ */
.contact { background: var(--ink); color: #fff; }
.contact .sec-title { color: #fff; }
.contact .sec-desc { color: rgba(255,255,255,.76); }

.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; }

.cinfo__list { display: grid; gap: 28px; margin-top: 40px; }
.cinfo__row { display: flex; gap: 18px; }
.cinfo__ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28); color: var(--teal-lt);
}
.cinfo__k { font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.cinfo__v { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.6; }
.cinfo__v a:hover { color: var(--teal-lt); }
.cinfo__sub { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.7); }

.form { background: #fff; border-radius: var(--r-md); padding: 40px; color: var(--ink-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field__label {
  display: block; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.field__label .req { color: #D2332A; margin-left: 3px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 52px; padding: 0 16px;
  color: var(--ink);
  border: 1px solid #CAD4DA; border-radius: var(--r-sm);
  background: var(--bg-alt);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
/* 선택 상자 — 기본 화살표를 끄고 직접 그립니다 */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237488A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field textarea { height: auto; min-height: 130px; padding: 15px 16px; resize: vertical; line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px var(--accent-10);
}
.field input::placeholder, .field textarea::placeholder { color: #75819A; }

.agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.agree label { font-size: 14px; color: var(--muted); line-height: 1.6; }
.agree a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.form__msg {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; display: none;
}
.form__msg.is-ok  { display: block; background: #E9F7EF; color: #1B7F4B; }
.form__msg.is-err { display: block; background: #FDECEA; color: #C0392B; }
.form__msg-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* 스팸 거르기 칸 — 화면 밖으로 빼서 사람에게는 안 보이게 */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   푸터
   ============================================================ */
.footer { background: #0A0F36; color: rgba(255,255,255,.7); padding: 60px 0 44px; font-size: 14px; }
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer__logo img { height: 30px; filter: brightness(0) invert(1); opacity: .9; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { font-weight: 700; color: rgba(255,255,255,.8); }
.footer__nav a:hover { color: #fff; }
.footer__info { margin-top: 30px; line-height: 2; }
.footer__info span { display: inline-block; margin-right: 20px; }
.footer__copy { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.66); }
.footer__copy a { margin-left: 12px; color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }

/* 맨 위로 버튼 */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .35s var(--ease);
}
.totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--teal); color: var(--ink); }

/* ============================================================
   포트폴리오 갤러리 페이지 (portfolio.html)
   ============================================================ */
.pfh { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.pfh__title { font-size: clamp(38px, 6vw, 88px); font-weight: 800; color: #fff; line-height: 1.16; letter-spacing: -.04em; }
.pfh__desc { margin-top: 18px; max-width: 46ch; color: rgba(255,255,255,.84); font-size: clamp(16px, .5vw + 14px, 19px); line-height: 1.8; }
.pfh__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--thread); transform-origin: left; animation: lineIn 1.4s var(--ease) both; }
@keyframes lineIn { from { transform: scaleX(0); } }

.pf-bar { position: sticky; top: var(--header-h); z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.pf-bar__scroll { display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pf-bar__scroll::-webkit-scrollbar { display: none; }
.pf-chip {
  flex: 0 0 auto; height: 42px; padding: 0 16px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.pf-chip:hover { background: var(--bg-alt); color: var(--ink); }
.pf-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pf-chip small { margin-left: 5px; font-size: 12px; font-weight: 400; opacity: .78; }

.pf-main { padding-top: clamp(28px, 4vw, 44px); padding-bottom: var(--pad-sec); }
.pf-notice {
  padding: 14px 18px; margin-bottom: 28px;
  background: var(--bg-alt); color: var(--ink); border-radius: var(--r-sm);
}
.pf-heading { font-size: clamp(22px, 2vw + 12px, 32px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.3; margin-bottom: 24px; }
.pf-heading small { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.pf-item { display: block; width: 100%; text-align: left; }
.pf-item__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--bg-alt); }
.pf-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pf-item:hover .pf-item__img img, .pf-item:focus-visible .pf-item__img img { transform: scale(1.05); }
.pf-item__broken { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.pf-item__title { display: block; margin-top: 12px; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.pf-item__desc { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); line-height: 1.65; }
html.motion .pf-item { animation: pfIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes pfIn { from { opacity: 0; transform: translateY(16px); } }

.pf-empty { grid-column: 1 / -1; padding: 72px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--muted); }
.pf-empty b { display: block; margin-bottom: 6px; font-size: 18px; color: var(--ink); }

.pf-cta { background: var(--bg-alt); padding: clamp(48px, 6vw, 80px) 0; }
.pf-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pf-cta h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.3; }

/* 크게 보기 */
.lb {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-rows: 1fr auto;
  background: #0A0F36;
  color: #fff;
  animation: lbIn .25s ease both;
}
@keyframes lbIn { from { opacity: 0; } }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 72px clamp(16px, 8vw, 96px) 16px; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); animation: lbImg .35s var(--ease) both; }
@keyframes lbImg { from { opacity: 0; transform: translateX(calc(var(--dir, 0) * 28px)); } }
.lb__cap { padding: 14px clamp(16px, 8vw, 96px) 22px; display: grid; gap: 2px; max-width: 1180px; width: 100%; margin: 0 auto; }
.lb__title { font-size: 18px; font-weight: 800; line-height: 1.45; }
.lb__desc { font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.65; }
.lb__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,.76); margin-bottom: 4px; }
.lb__meta .tag-sample { position: static; background: var(--teal); color: var(--ink); }
.lb__btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lb__btn:hover { background: #fff; color: var(--ink); }
.lb__btn:focus-visible { outline-color: #fff; }
.lb__close { top: 14px; right: 16px; }
.lb__prev { left: 16px; top: 50%; margin-top: -26px; }
.lb__next { right: 16px; top: 50%; margin-top: -26px; }

/* ============================================================
   운영 사례 (관리자 업로드)
   ============================================================ */
.cases__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 48px;
}
.cases__filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--muted);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.case {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  border: 0;
  text-align: left;
  width: 100%;
}
.case__img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.case:hover .case__img img { transform: scale(1.07); }
.case__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,26,43,0) 35%, rgba(11,26,43,.88) 100%);
}
.case__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 24px; }
.case__tag {
  display: inline-block; margin-bottom: 10px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.case__title { display: block; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.45; letter-spacing: -.01em; }
.case__meta { display: block; margin-top: 6px; color: rgba(255,255,255,.62); font-size: 13px; }
.case__more {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.2); backdrop-filter: blur(4px);
  color: #fff;
  opacity: 0; transform: translateY(-6px);
  transition: all .35s var(--ease);
}
.case:hover .case__more { opacity: 1; transform: translateY(0); }

/* 사례가 아직 없을 때 표시되는 안내 */
.cases__empty {
  grid-column: 1 / -1;
  padding: 80px 24px; text-align: center;
  border: 2px dashed var(--line); border-radius: var(--r-lg);
  color: var(--muted);
}
.cases__empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 8px; }

/* 사례 상세 팝업 */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: 24px;
}
.modal.is-open { display: grid; }
.modal__bg { position: absolute; inset: 0; background: rgba(11,26,43,.82); backdrop-filter: blur(4px); }
.modal__box {
  position: relative;
  width: 100%; max-width: 940px; max-height: 88vh;
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden auto;
  box-shadow: var(--shadow-lg);
  animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,26,43,.6); color: #fff;
  backdrop-filter: blur(4px);
}
.modal__close:hover { background: var(--ink); }
.modal__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal__body { padding: 36px 40px 44px; }
.modal__tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-10); color: var(--accent);
  font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.modal__title { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.modal__meta {
  margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-size: 14px; color: var(--muted);
}
.modal__meta b { color: var(--ink); font-weight: 700; margin-right: 6px; }
.modal__desc { margin-top: 22px; line-height: 1.9; color: var(--ink-soft); }
.modal__gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modal__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }


/* ============================================================
   스크롤 등장 효과
   ============================================================ */
/* 모션 표시가 있을 때만 숨깁니다.
   (스크립트가 막히거나 실패하면 표시가 사라져 글이 전부 보입니다) */
html.motion .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.motion .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .36s; }
.reveal[data-d="3"] { transition-delay: .46s; }
.reveal[data-d="4"] { transition-delay: .56s; }
.reveal[data-d="5"] { transition-delay: .66s; }

/* 애니메이션을 끄도록 설정한 사용자 존중 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .svc::after { transform: scaleX(1); }
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1080px) {
  .about__grid { gap: 48px; }
  .svc__layout { grid-template-columns: 1fr; }
  .svc__side { position: static; }
  .svc__photo { max-width: 100%; aspect-ratio: 21 / 9; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .team:nth-child(n+3)::before { display: none; }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }

  .section { padding: 84px 0; }
  .section--tight { padding: 64px 0; }
  .sec-head { margin-bottom: 44px; }

  /* 휴대폰: 그래픽은 위, 글은 아래 */
  .hero__pin { align-items: flex-end; }
  .hero__inner { padding-top: 36svh; padding-bottom: 96px; }
  html.motion .hero__inner { padding-top: 0; }
  html.motion .hero { height: 130svh; }
  .hero__sub { margin-top: 20px; }
  .hero__actions { margin-top: 26px; }
  .hero__vidbtn { right: 16px; top: calc(var(--header-h) + 6px); bottom: auto; width: 42px; height: 42px; }
  .hero__scroll { display: none; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 14px; }

  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .teams__head, .proc__head { grid-template-columns: 1fr; gap: 16px; }

  .pf__head { grid-template-columns: 1fr; }
  .pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .pf-card, .pf-card--half { grid-column: span 1; }
  .pf-card--wide { grid-column: span 2; }
  .pf-card__img { height: clamp(170px, 46vw, 340px); }
  .pf-card--wide .pf-card__img { height: clamp(190px, 52vw, 400px); }

  /* 진행과정: 세로 선 */
  .proc__grid { grid-template-columns: 1fr; gap: 36px; }
  .proc__grid::before, .proc__grid::after { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .proc__grid::after { background: var(--thread-v); transform: scaleY(var(--n)); transform-origin: top; }
  .proc__item { padding-left: 86px; min-height: 64px; }
  .proc__dot { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: 0; }
  .proc__dot svg { width: 28px; height: 28px; }
  .proc__desc { max-width: none; }

  .cases__top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .hero__steps { margin-top: 40px; }
  .hero__steps li { font-size: 13px; }
  .about__key { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 20px 0; }
  .wrap { padding-left: 20px; padding-right: 20px; }   /* 위아래 여백은 건드리지 않습니다 */
  .hero__actions .btn { flex: 1 1 100%; height: 54px; }

  .team__grid { grid-template-columns: 1fr; gap: 26px; padding: 0 0 0 26px; margin-top: 32px; }
  .team__grid::before { right: auto; bottom: 0; width: 2px; height: auto; background: var(--thread-v); }
  html.motion .team__grid:not(.is-in)::before { transform: scaleY(0); }
  .team__grid::before { transform-origin: top; }
  .team::before, .team:nth-child(n+3)::before { display: block; left: -31px; top: 9px; }

  .svc { grid-template-columns: 40px minmax(0, 1fr); padding: 28px 0; }
  .svc__list { grid-column: 2; margin-top: 8px; }
  .svc__photo { aspect-ratio: 16 / 10; }

  .about__figures { padding-bottom: 64px; }
  .about__figure--a { width: 84%; }

  .clients__head { align-items: center; }
  .cases__grid { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__cell { min-height: 88px; padding: 18px 16px; }
  .clients__track .clients__cell { flex-basis: 168px; min-height: 76px; padding: 12px 16px; }

  .pf-grid { grid-template-columns: 1fr; gap: 28px; }
  .pf-main { padding-bottom: 72px; }
  .lb__stage { padding: 64px 12px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: 8px; margin: 0; width: 46px; height: 46px; }

  .modal__body { padding: 26px 22px 32px; }
  .modal__gallery { grid-template-columns: repeat(2, 1fr); }
  .modal__title { font-size: 21px; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__info span { display: block; margin-right: 0; }
  .totop { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ============================================================
   개인정보처리방침 (privacy.html)
   ============================================================ */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc__back { display: inline-block; margin-bottom: 32px; font-size: 14px; font-weight: 700; color: var(--accent); }
.doc h1 { font-size: var(--fs-h2); font-weight: 800; color: var(--ink); line-height: 1.34; letter-spacing: -.025em; }
.doc__lead { margin-top: 16px; color: var(--muted); }
.doc h2 { margin-top: 40px; font-size: var(--fs-h3); font-weight: 800; color: var(--ink); }
.doc p, .doc ul { margin-top: 10px; }
.doc li { position: relative; padding-left: 14px; }
.doc li::before { content: ''; position: absolute; left: 0; top: 13px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.doc mark { padding: 1px 6px; border-radius: 4px; background: #FFF1B8; color: var(--ink); font-weight: 700; }

/* ============================================================
   포트폴리오 대분류·중분류 (2026-11-06 추가)
   ============================================================ */
.pf-bar__scroll--sub { padding: 0 0 12px; gap: 4px; }
.pf-bar__scroll--sub[hidden] { display: none; }
.pf-chip--sub { height: 34px; padding: 0 12px; font-size: 13.5px; font-weight: 600; background: var(--bg-alt); }
.pf-chip--sub[aria-pressed="true"] { background: var(--teal); color: var(--ink); }
.pf-group {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  margin-top: 18px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.pf-group:first-child { margin-top: 0; }
.pf-group::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.22); }
.pf-card--full { grid-column: 1 / -1; }
.pf-card--full .pf-card__img { height: clamp(220px, 30vw, 420px); }

/* ============================================================
   포트폴리오 행사별 보기 · 카드 정렬 (2026-11-06 추가)
   ============================================================ */
/* 제목이 두 줄인 카드 옆 카드의 그림이 아래로 밀리지 않게(버튼은 내용을 세로 가운데에 둔다) */
.pf-item { align-self: start; }
.pf-chip--ev { margin-left: 10px; position: relative; }
.pf-chip--ev::before {
  content: ''; position: absolute; left: -7px; top: 50%; width: 1px; height: 18px;
  transform: translateY(-50%); background: var(--line, rgba(16,23,74,.15));
}
.pf-grid--ev { display: block; }
.pf-ev + .pf-ev { margin-top: 56px; }
.pf-ev__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid rgba(16,23,74,.12);
}
.pf-ev__title { font-size: clamp(18px, 1vw + 12px, 22px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.4; }
.pf-ev__meta { font-size: 14px; color: var(--muted); }
.pf-ev__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.pf-ev__row .pf-item__title { font-size: 15px; font-weight: 700; margin-top: 10px; }
@media (max-width: 1024px) { .pf-ev__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pf-ev__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .pf-ev + .pf-ev { margin-top: 40px; }
}
.pf-item--kit { grid-column: span 2; }
.pf-item--kit .pf-item__img { aspect-ratio: auto; height: 100%; min-height: 0; }
.pf-item--kit .pf-item__img img { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .pf-item--kit { grid-column: 1 / -1; } }

/* 홈 — 행사별로 보기 띠 */
.pf-ev-band {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm); color: #fff;
  transition: border-color .3s, background .3s;
}
.pf-ev-band:hover, .pf-ev-band:focus-visible { border-color: var(--teal); background: rgba(255,255,255,.04); }
.pf-ev-band__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: rgba(255,255,255,.06); }
.pf-ev-band__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pf-ev-band:hover .pf-ev-band__img img { transform: scale(1.04); }
.pf-ev-band__txt { display: grid; gap: 14px; justify-items: start; }
.pf-ev-band__kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--teal-lt); }
.pf-ev-band__title { font-size: clamp(22px, 1.6vw + 12px, 32px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.pf-ev-band__desc { color: rgba(255,255,255,.78); line-height: 1.8; }
.pf-ev-band__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-ev-band__chips span { padding: 4px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.85); }
.pf-ev-band__more { margin-top: 6px; font-weight: 800; color: var(--teal-lt); }
@media (max-width: 760px) { .pf-ev-band { grid-template-columns: 1fr; } }
.pfh__stats { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.72); letter-spacing: .01em; }
.pfh__stats b { color: var(--teal-lt); font-weight: 800; font-size: 17px; }
@media (min-width: 761px) { .pf-item--kit { grid-row: span 2; } }

/* ============================================================
   2026-11-08 서비스 정리 — 사장님: 「회사 소개~서비스 글이 많다, 휴대폰은 스크롤이 길다」
   홈은 요약 카드만, 항목 목록은 services.html 로 옮김.
   되돌리기: 05_기록/추가제작전_백업_20261106/style_서비스정리전_20261108.css
   ============================================================ */

/* 홈 — 서비스 머리 */
.svc__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 7vw, 96px); align-items: end; }
.svc__head .sec-desc { margin-top: 0; }

/* 홈 — 서비스 카드 (아이콘 · 이름 · 한 줄 요약) */
.svc-cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}
.svc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 228px; padding: 26px 24px 58px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* 위쪽 실선 — 마우스를 올리면 왼쪽부터 그어집니다 */
.svc-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--thread); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before, .svc-card:focus-visible::before { transform: scaleX(1); }
.svc-card__icon {
  width: 46px; height: 46px; margin-bottom: 8px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-10); color: var(--accent);
}
.svc-card__title { font-size: clamp(17px, .4vw + 15px, 20px); font-weight: 800; color: var(--ink); line-height: 1.4; letter-spacing: -.02em; }
.svc-card__sum { font-size: 14.5px; color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.svc-card__go {
  position: absolute; left: 24px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; color: var(--accent);
}
.svc-card__go svg { transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__go svg { transform: translateX(4px); }
.svc-card--all { background: var(--ink); border-color: var(--ink); justify-content: center; }
.svc-card--all .svc-card__title { color: #fff; font-size: clamp(19px, .6vw + 16px, 24px); }
.svc-card--all .svc-card__sum { color: rgba(255,255,255,.76); }
.svc-card--all .svc-card__go { color: var(--teal-lt); }

/* 현장 사진 띠 — PC 에서 조금 낮춤 */
.band { height: clamp(220px, 34vw, 460px); }

/* 서비스 세부 페이지 (services.html) */
.svd-bar .pf-chip { display: inline-flex; align-items: center; }
.svd-bar .pf-chip[aria-current="true"] { background: var(--ink); color: #fff; }
.svd { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.svd__photo { aspect-ratio: 21 / 8; margin-bottom: clamp(40px, 5vw, 64px); }
.svd .svc { scroll-margin-top: calc(var(--header-h) + 84px); }
.svd .svc:first-child { padding-top: 34px; }
.svd .svc:first-child::before { display: block; }
.svd .svc__title { font-size: clamp(20px, .8vw + 16px, 26px); }
.svd .svc__list li { font-size: 15px; }
.svd .svc__list li::before { top: 10px; }
.svc__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 800; color: var(--accent); }
.svc__link:hover { color: var(--accent-dk); }

@media (max-width: 1080px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card { min-height: 0; }
}
@media (max-width: 900px) {
  .svc__head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  /* 휴대폰 — 회사소개 사진 두 장을 나란히 */
  .about__figures { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; align-items: end; padding-bottom: 0; }
  .about__figure--a { width: auto; }
  .about__figure--b { position: static; width: auto; }
  .about__figure--b .frame { border: 0; }
  .about__badge { top: 14px; padding: 10px 14px; }
  .about__badge b { font-size: 24px; }
  .about__badge b span { font-size: 14px; }
  .about__badge > span { font-size: 11.5px; }

  /* 휴대폰 — 전담팀 2×2 */
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 0; margin-top: 28px; }
  .team__grid::before { display: none; }
  .team { padding-left: 14px; }
  .team::before, .team:nth-child(n+3)::before {
    display: block; left: 0; top: 2px; bottom: 2px; width: 2px; height: auto;
    border: 0; border-radius: 0; background: var(--thread-v);
  }
  .team__tag { margin-bottom: 8px; padding: 4px 9px; font-size: 11.5px; }
  .team__name { font-size: 17px; }
  .team__desc { margin-top: 6px; font-size: 13.5px; line-height: 1.7; }

  /* 휴대폰 — 서비스 카드 2열 */
  .svc-cards { gap: 10px; margin-top: 28px; }
  .svc-card { padding: 18px 15px 44px; gap: 6px; }
  .svc-card__icon { width: 38px; height: 38px; margin-bottom: 4px; }
  .svc-card__title { font-size: 15.5px; }
  .svc-card__sum { font-size: 13px; line-height: 1.6; }
  .svc-card__go { left: 15px; bottom: 15px; font-size: 12.5px; }
  .svc-card--all .svc-card__title { font-size: 17px; }

  .svd__photo { aspect-ratio: 16 / 9; }
  .svd .svc__list li { font-size: 14px; }
}

/* ============================================================
   2026-11-08 줄바꿈 정리 — 사장님: 「글이 많은 곳은 줄바꿈도 뜻 단위로」
   .nw 로 묶은 낱말 덩어리는 중간에서 끊기지 않고, 덩어리 사이에서만 줄이 바뀝니다.
   (「·」 는 브라우저가 줄을 바꾸는 자리로 보기 때문에 「기획·디자인」 같은 말도 .nw 로 묶습니다)
   되돌리기: 05_기록/추가제작전_백업_20261106/style_줄바꿈정리전_20261108.css
   ============================================================ */
.nw { white-space: nowrap; }
.br-mo { display: none; }
@media (max-width: 640px) { .br-mo { display: inline; } }
/* 첫 화면 둘째 줄(여러 업체에 … 책임집니다.)을 PC 에서 한 줄로 */
@media (min-width: 900px) { .hero__sub { max-width: none; } }
/* 문의 제목 — 「빠르게 답변드리겠습니다」가 PC 에서 한 줄에 들어가도록 조금 작게 (2026-11-08) */
.contact .sec-title { font-size: clamp(30px, 3.6vw, 52px); }
