/* ===================================================================
   Biber studio (비버스튜디오) — AI 숏폼 · 쇼츠 영상 제작  v4
   밝은 본문 + 다크 시네마틱 히어로/포트폴리오
=================================================================== */

:root {
  --blue:        #3182F6;
  --blue-strong: #1B64DA;
  --blue-press:  #1957C2;
  --blue-tint:   #E8F1FF;

  --ink:    #191F28;
  --muted:  #4E5968;
  --gray:   #8B95A1;

  --bg:     #FFFFFF;
  --soft:   #F7F8FA;
  --soft2:  #F2F4F6;
  --line:   #E5E8EB;

  /* 다크 섹션 */
  --dark:      #0B1220;
  --dark2:     #111A2C;
  --dark-line: rgba(255,255,255,.10);
  --dark-txt:  rgba(255,255,255,.72);

  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow:    0 2px 8px rgba(17,24,39,.04), 0 1px 2px rgba(17,24,39,.04);
  --shadow-md: 0 8px 24px rgba(17,24,39,.07);
  --shadow-lg: 0 16px 40px rgba(17,24,39,.10);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; letter-spacing: -0.01em;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.accent { color: var(--blue); }
.br-pc { display: inline; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .18s, color .18s, border-color .18s;
  white-space: nowrap; line-height: 1;
}
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); font-weight: 800; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: linear-gradient(180deg, #4A90FF 0%, #3182F6 100%); color: #fff; box-shadow: 0 8px 18px rgba(49,130,246,.32), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { background: linear-gradient(180deg, #3D86FB 0%, #1B64DA 100%); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(49,130,246,.42); }
.btn--primary:active { transform: translateY(0); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

.btn--kakao { background: #FEE500; color: #191600; }
.btn--kakao:hover { background: #F2DA00; transform: translateY(-2px); }

.btn--insta { background: #F2F4F6; color: var(--ink); }
.btn--insta:hover { background: #E5E8EB; transform: translateY(-2px); }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; border-radius: 16px; }
.btn--block { width: 100%; }

/* 다크 섹션 위의 고스트 버튼 */
.hero .btn--ghost, .work .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06);
}
.hero .btn--ghost:hover, .work .btn--ghost:hover {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); color: #fff;
}
.work .btn--dark { background: #fff; color: var(--ink); }
.work .btn--dark:hover { background: #E8F1FF; color: var(--blue-strong); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav.scrolled {
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(17,24,39,.05);
}
.nav__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand__logo { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter .25s; }
.nav.scrolled .brand__logo { filter: none; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,.78); transition: color .18s; }
.nav__links a:hover { color: #fff; }
.nav.scrolled .nav__links a { color: var(--muted); }
.nav.scrolled .nav__links a:hover { color: var(--blue); }
.nav__toggle span { background: #fff; }
.nav.scrolled .nav__toggle span { background: var(--ink); }
.nav__cta {
  padding: 11px 20px; background: var(--blue); color: #fff !important; border-radius: 999px;
  font-weight: 700 !important; box-shadow: 0 6px 14px rgba(49,130,246,.28);
}
.nav__cta:hover { background: var(--blue-strong); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s, background .25s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (다크 시네마틱) ===== */
.hero {
  position: relative; overflow: hidden; padding: 150px 0 0;
  background: var(--dark); color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(49,130,246,.34), transparent 62%),
    radial-gradient(600px 400px at 88% 22%, rgba(96,165,250,.14), transparent 60%),
    linear-gradient(180deg, #0B1220 0%, #101A2C 55%, #0B1220 100%);
}
.hero__inner { position: relative; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9);
}
.hero__badge b { color: #7FB2FF; font-weight: 800; }
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.hero__title {
  margin-top: 26px; font-size: clamp(2.15rem, 5.6vw, 4rem); font-weight: 900;
  line-height: 1.18; letter-spacing: -0.045em;
}
.hero__title .accent {
  background: linear-gradient(100deg, #60A5FA 0%, #3182F6 55%, #93C5FD 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--dark-txt); line-height: 1.72; }
.hero__actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.88rem; color: rgba(255,255,255,.45); }

/* 히어로 썸네일 마퀴 */
.hero__strip { margin-top: 56px; position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hero__track { display: flex; gap: 16px; width: max-content; animation: slide 42s linear infinite; padding-bottom: 8px; }
.hero__shot {
  flex: 0 0 auto; width: 152px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.hero__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__strip:hover .hero__track { animation-play-state: paused; }

/* ===== Proof ===== */
.proof { background: var(--dark); padding: 44px 0 64px; color: #fff; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof__item {
  text-align: center; padding: 24px 12px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05); border: 1px solid var(--dark-line);
}
.proof__item strong { display: block; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; color: #fff; }
.proof__item strong .u { font-size: 0.5em; font-weight: 700; margin-left: 2px; color: #7FB2FF; }
.proof__item span { font-size: 0.9rem; color: rgba(255,255,255,.55); }
.proof__note { margin-top: 22px; text-align: center; font-size: 0.92rem; color: rgba(255,255,255,.5); }
.proof__note b { color: rgba(255,255,255,.82); font-weight: 700; }

/* ===== Clients marquee ===== */
.clients { background: var(--dark); padding: 0 0 24px; overflow: hidden; }
.clients__label { text-align: center; font-size: 0.82rem; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.38); margin-bottom: 22px; }
.clients__marquee { position: relative; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: slide 68s linear infinite; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.cl { display: flex; align-items: center; height: 26px; flex: 0 0 auto; }
.cl img {
  height: 100%; width: auto; display: block; opacity: .5;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.cl:hover img { opacity: 1; transform: scale(1.04); }
.cl--word {
  font-size: 1.14rem; font-weight: 800; color: rgba(255,255,255,.44); white-space: nowrap;
  letter-spacing: -0.025em; transition: color .22s;
}
.cl--word:hover { color: #fff; }

/* ===== Section base ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--soft); }
.section__head { max-width: 700px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: .16em; color: var(--blue); margin-bottom: 14px; }
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.3; }
/* 한글이 단어 중간에서 잘리지 않게 */
h1, h2, h3, .hero__title, .phero__title, .section__title, .wcard__title, .wcard__brand, .card p, .step p { word-break: keep-all; }
.section__lead { margin-top: 16px; font-size: 1.05rem; color: var(--muted); line-height: 1.75; }

/* ===== WORK (다크) ===== */
.work { background: var(--dark); color: #fff; }
.work .section__title { color: #fff; }
.work .section__lead { color: rgba(255,255,255,.6); }
.work .eyebrow { color: #7FB2FF; }

/* ----- 트랙 블록 (AI 영상 / 쇼츠 편집) ----- */
.wblock + .wblock { margin-top: 86px; padding-top: 76px; border-top: 1px solid var(--dark-line); }
.wblock__head { text-align: center; margin-bottom: 28px; }
.wblock__title {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 900; letter-spacing: -0.04em; color: #fff;
}
.wblock__icon {
  width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(127,178,255,.14); border: 1px solid rgba(127,178,255,.24); font-size: 1.15rem;
}
.wblock__title em {
  font-style: normal; font-size: 0.92rem; font-weight: 800; color: #93C5FD;
  background: rgba(147,197,253,.12); border-radius: 999px; padding: 5px 13px; letter-spacing: 0;
}
.wblock__desc { margin-top: 12px; font-size: 1rem; color: rgba(255,255,255,.58); line-height: 1.7; }
.wblock__more { margin-top: 30px; display: flex; justify-content: center; }
.wblock__more[hidden] { display: none; }
.btn--more { font-size: 0.95rem; padding: 14px 26px; }
.wcard.is-more[hidden] { display: none; }

.wfilter { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 34px; }
.wfilter__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip b { font-weight: 800; opacity: .55; font-size: 0.82em; margin-left: 2px; }
.chip.is-on b { opacity: .5; }
.chip {
  padding: 9px 17px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.12);
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.chip:hover { background: rgba(255,255,255,.13); color: #fff; }
.chip.is-on { background: #fff; color: var(--dark); border-color: #fff; font-weight: 700; }
.chip--lg { padding: 12px 24px; font-size: 0.98rem; font-weight: 700; }
.chip--lg.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(49,130,246,.35); }

/* 모든 타일 9:16 통일 — 가로·정방형 원본은 블러 패딩된 썸네일을 씁니다.
   덕분에 어떤 필터를 걸어도 그리드에 빈칸이 생기지 않습니다. */
.wgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wcard { min-width: 0; }
.wcard[hidden] { display: none; }
.wcard__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.wcard__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9/16; overflow: hidden;
  border-radius: var(--radius-lg); background: #1A2438; border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.wcard__btn:hover .wcard__frame,
.wcard__btn:focus-visible .wcard__frame {
  transform: translateY(-6px); border-color: rgba(127,178,255,.5);
  box-shadow: 0 22px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(127,178,255,.25);
}
.wcard__poster, .wcard__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.wcard__video { opacity: 0; transition: opacity .35s var(--ease); z-index: 1; }
.wcard__video.is-on { opacity: 1; }
.wcard__grad {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,18,32,0) 46%, rgba(11,18,32,.3) 72%, rgba(11,18,32,.55) 100%);
}
.wcard__play {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%,-50%) scale(.9); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.3);
  opacity: 0; transition: opacity .25s, transform .25s var(--ease);
}
.wcard__play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-left: 15px solid var(--blue); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.wcard__btn:hover .wcard__play, .wcard__btn:focus-visible .wcard__play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
/* 작업물 원본에 자막이 박혀 있는 경우가 많아, 라벨 영역에 자체 스크림을 둡니다 */
.wcard__info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 2px; padding: 26px 16px 16px; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,.82) 34%, rgba(11,18,32,.96) 100%);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.wcard__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; color: #93C5FD; }
.wcard__brand { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; }
.wcard__title { font-size: 0.85rem; color: rgba(255,255,255,.72); line-height: 1.4; }
.wcard__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.wcard__tag {
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.9);
}
.wgrid__empty { text-align: center; padding: 60px 0; color: rgba(255,255,255,.5); }

/* 가로형 그리드 (모션그래픽) — 16:9 프레임, 라벨은 프레임 아래로 빼서 화면을 가리지 않음 */
.wgrid.wgrid--wide { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
.wcard--wide .wcard__frame { aspect-ratio: 16/9; border-radius: var(--radius); }
.wcard--wide .wcard__grad { display: none; }
.wcard--wide .wcard__info {
  position: static; padding: 14px 2px 0; background: none; text-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: baseline;
}
.wcard--wide .wcard__cat { display: none; }
.wcard--wide .wcard__brand { grid-column: 1; font-size: 1.08rem; }
.wcard--wide .wcard__title { grid-column: 1; }
.wcard--wide .wcard__tags { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-content: flex-end; margin-top: 2px; }
.wcard--wide .wcard__tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.wcard--wide .wcard__btn:hover .wcard__frame,
.wcard--wide .wcard__btn:focus-visible .wcard__frame { transform: translateY(-4px); }
@media (max-width: 1024px) { .wgrid.wgrid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .wgrid.wgrid--wide { grid-template-columns: 1fr; gap: 28px; } }
.work__more { margin-top: 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Cards (services) ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 26px;
  box-shadow: var(--shadow); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #D7DEE6; }
.card__icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.03em; }
.card p { margin-top: 11px; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.card__points { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.card__points li { position: relative; padding-left: 20px; font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.card__points li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 5px; height: 9px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(42deg);
}

/* ===== Why ===== */
.why { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.why__list { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 20px; }
.why__list li { padding-left: 30px; position: relative; }
.why__list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-tint); box-shadow: inset 0 0 0 2px var(--blue);
}
.why__list strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; }
.why__list span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.why__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px;
}
.why__card b { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.03em; }
.why__card small { font-size: 0.85rem; color: var(--gray); }
.why__card--1 { transform: translateY(-14px); }
.why__card--4 { transform: translateY(14px); }
.why__card--2 { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 14px 30px rgba(49,130,246,.28); }
.why__card--2 small { color: rgba(255,255,255,.8); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 26px; box-shadow: var(--shadow); }
.step__num { font-size: 0.95rem; font-weight: 900; color: var(--blue); letter-spacing: .05em; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.03em; }
.step p { margin-top: 9px; font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

/* ===== FAQ ===== */
.faq__list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #C9DCFB; box-shadow: var(--shadow-md); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; position: relative;
  font-size: 1.03rem; font-weight: 700; letter-spacing: -0.025em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px;
  border-right: 2.2px solid var(--gray); border-bottom: 2.2px solid var(--gray);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease), border-color .2s;
}
.faq__item[open] summary::after { transform: translateY(-20%) rotate(225deg); border-color: var(--blue); }
.faq__a { padding: 0 24px 24px; }
.faq__a p { font-size: 0.97rem; color: var(--muted); line-height: 1.78; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__channels { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.contact__info { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 11px; font-size: 0.96rem; color: var(--muted); }
.contact__info a { color: var(--blue-strong); font-weight: 600; }
.contact__info a:hover { text-decoration: underline; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 7px; }
.field .opt { color: var(--gray); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.97rem; color: var(--ink); background: var(--soft); transition: border-color .18s, background .18s;
}
.field select { appearance: none; 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='none' stroke='%238B95A1' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 108px; }
.form__status { margin-top: 14px; font-size: 0.9rem; text-align: center; color: var(--muted); min-height: 20px; }
.form__note { margin-top: 10px; font-size: 0.83rem; text-align: center; color: var(--gray); line-height: 1.6; }

/* ===== 상담 질문지 (문의 접수 후 2단계) ===== */
.intake, .intake__thanks {
  grid-column: 1 / -1; margin-top: 34px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 40px; box-shadow: var(--shadow-md);
}
.intake[hidden], .intake__thanks[hidden] { display: none; }
.intake__head { text-align: center; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.intake__done {
  display: inline-block; padding: 9px 18px; border-radius: 999px; margin-bottom: 18px;
  background: #E7F8F0; color: #0F9960; font-weight: 700; font-size: 0.92rem;
}
.intake__head h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 900; letter-spacing: -0.035em; }
.intake__lead { margin-top: 12px; font-size: 0.97rem; color: var(--muted); line-height: 1.75; }
.qgroup { padding: 24px 0; border-bottom: 1px dashed var(--line); }
.qgroup:last-of-type { border-bottom: 0; }
.qgroup__t {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px;
}
.qgroup__t span {
  font-size: 0.76rem; font-weight: 900; color: var(--blue);
  background: var(--blue-tint); border-radius: 7px; padding: 4px 8px; letter-spacing: .04em;
}
.qgroup__t em, .field label em { font-style: normal; color: #E03131; }
.qgroup__d { font-size: 0.89rem; color: var(--gray); line-height: 1.6; margin-bottom: 16px; }
.qgroup .field { margin-bottom: 13px; }
.opts { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { position: absolute; left: -9999px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--soft); font-size: 0.92rem; font-weight: 600; transition: border-color .18s, background .18s, color .18s;
}
.opt input { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; margin: 0; }
.opt:hover { border-color: #C9DCFB; background: #fff; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-strong); }
.intake__skip { margin-top: 16px; text-align: center; }
.intake__skip button {
  background: none; border: 0; color: var(--gray); font: inherit; font-size: 0.88rem;
  text-decoration: underline; cursor: pointer;
}
.intake__skip button:hover { color: var(--muted); }
.intake__thanks { text-align: center; }
.intake__thanks p { color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.form__status.ok { color: #0F9960; font-weight: 700; }
.form__status.err { color: #E03131; font-weight: 700; }

/* ===== 포트폴리오 페이지 헤더 ===== */
.phero { background: var(--dark); color: #fff; padding: 128px 0 36px; }
.crumb { font-size: 0.86rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.crumb a { color: rgba(255,255,255,.72); }
.crumb a:hover { color: #fff; text-decoration: underline; }
.crumb span { margin: 0 7px; opacity: .5; }
.crumb b { color: #fff; font-weight: 700; }
.phero__title { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.28; }
.phero__lead { margin-top: 16px; font-size: 1.05rem; color: var(--dark-txt); line-height: 1.75; max-width: 720px; }
.phero__actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.minilabel {
  display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: .13em;
  color: rgba(255,255,255,.36); margin-bottom: 12px;
}
.phero__cats { display: flex; flex-wrap: wrap; gap: 9px; }
.phero__catsWrap { margin-top: 30px; }
.wfilter__label { text-align: center; }
/* 포트폴리오 헤더 바로 뒤에 오는 섹션은 위 여백을 줄입니다 */
.phero + .section { padding-top: 34px; }
.pcat {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,.78); transition: background .18s, color .18s, border-color .18s;
}
.pcat:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.pcat b { font-size: 0.78rem; font-weight: 800; color: #93C5FD; }

/* 업종 페이지 본문 (SEO 텍스트) */
.catbody { max-width: 780px; margin: 70px auto 0; color: rgba(255,255,255,.72); }
.catbody h2 { font-size: 1.32rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin: 34px 0 14px; }
.catbody h2:first-child { margin-top: 0; }
.catbody p { font-size: 1rem; line-height: 1.85; }
.catbody ul { margin: 12px 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.catbody li { position: relative; padding-left: 20px; font-size: 0.98rem; line-height: 1.7; }
.catbody li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: #3182F6; }
.catbody__kw { margin-top: 26px; font-size: 0.85rem; color: rgba(255,255,255,.38); }

.othercats { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--dark-line); text-align: center; }
.othercats__h { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 18px; }
.othercats__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.othercats__links a {
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68);
}
.othercats__links a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8,12,20,.86); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; animation: lbFade .22s var(--ease); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lightbox__stage video { max-height: 78vh; max-width: 100%; width: auto; border-radius: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.6); background: #000; }
.lightbox__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lightbox__caption { color: rgba(255,255,255,.9); font-size: 0.98rem; font-weight: 700; }
.lightbox__copy {
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: background .18s;
}
.lightbox__copy:hover { background: rgba(255,255,255,.24); color: #fff; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.13);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .3s var(--ease);
}
.lightbox__close { top: 20px; right: 24px; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; }
.lightbox__close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; padding-bottom: 5px; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ===== 플로팅 상담 버튼 ===== */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 62px; height: 62px; border-radius: 50%; background: #FEE500; color: #191600;
  font-size: 1.35rem; font-weight: 800; box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.fab span { font-size: 0.62rem; font-weight: 800; letter-spacing: -0.02em; }
.fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 34px rgba(0,0,0,.28); }

/* ===== Footer ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 70px 0 34px; }
.footer__top { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.footer__logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer__desc { margin-top: 18px; font-size: 0.94rem; line-height: 1.75; color: rgba(255,255,255,.52); }
.footer__links { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,.72); }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__h { font-size: 0.82rem; font-weight: 800; letter-spacing: .12em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer__catlinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.footer__catlinks a { font-size: 0.92rem; color: rgba(255,255,255,.6); }
.footer__catlinks a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: rgba(255,255,255,.4); }
.footer__bottom a { color: rgba(255,255,255,.6); }
.footer__bottom a:hover { color: #fff; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1240px) {
  .nav__links { gap: 22px; }
}
@media (max-width: 1024px) {
  .wgrid { grid-template-columns: repeat(3, 1fr); }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 44px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .wgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .br-pc { display: none; }
  html { scroll-padding-top: 74px; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-145%); transition: transform .32s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a, .nav.scrolled .nav__links a { width: 100%; padding: 15px 24px; color: var(--muted); }
  .nav__links a:hover, .nav.scrolled .nav__links a:hover { color: var(--blue); }
  .nav__cta, .nav.scrolled .nav__cta { margin: 8px 24px; text-align: center; border-radius: var(--radius); color: #fff; }
  .nav__toggle { display: flex; }

  .hero { padding: 112px 0 0; }
  .hero__title { font-size: clamp(1.72rem, 7.6vw, 2.4rem); }
  .hero__sub { font-size: 0.98rem; }
  .hero__actions .btn { width: 100%; }
  .hero__strip { margin-top: 40px; }
  .hero__shot { width: 120px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .proof__item strong { font-size: 1.6rem; }
  .proof__item span { font-size: 0.82rem; }
  .why__visual { grid-template-columns: 1fr 1fr; }
  .why__card--1, .why__card--4 { transform: none; }
  .contact__form { padding: 26px; }
  .phero { padding: 108px 0 46px; }
  .footer__catlinks { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__stage video { max-height: 70vh; }
  .fab { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
