/* service.css — 서비스 독립 랜딩(히어로 + 섹션 리듬). site.css 토큰 재사용.
   히어로 배경효과: CSS·SVG만(WebGL 금지), 1회 재생 후 은은한 대기, 텍스트 뒤 흐리게.
   prefers-reduced-motion / JS 없음 → 최종(완성) 정지 상태(초기 숨김·드로잉은 no-preference 미디어 안에서만). */

/* ── 독립 히어로 — 글자(좌)·그래픽(우) 완전 분리 2열. 태블릿·모바일은 글자→그래픽 세로 ── */
.svc-land { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding-block: clamp(40px, 7vw, 76px); }
.svc-land__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; width: 100%; }
@media (min-width: 861px) { .svc-land__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
/* 그래픽: 자기 열 안에 완전히 들어오도록 in-flow(절대배치·풀블리드 아님) → 글자 영역 침범 불가 */
.svc-land__bg { position: relative; z-index: 0; pointer-events: none; order: 2; }
.svc-land__bg svg { display: block; width: 100%; height: auto; max-height: 440px; }
.svc-land__bg .d { fill: none; stroke: var(--blue, #A9D4F5); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-land__bg .d.dim { stroke: var(--blue-deep, #4E7EA6); }
.svc-land__bg .ink { fill: var(--blue, #A9D4F5); opacity: .12; }
.svc-land__bg .acc { fill: var(--accent, #FF5A1F); }
.svc-land__bg .acc-line { fill: none; stroke: var(--accent, #FF5A1F); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-land__bg text { fill: var(--paper-dim, #93A6BA); font-family: var(--font); }
.svc-land__inner { position: relative; z-index: 1; order: 1; }
.svc-land__label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.svc-land__label::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.svc-land__h1 { font-size: clamp(30px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.16; word-break: keep-all; text-wrap: balance; }
.svc-land__lead { font-size: clamp(15px, 2vw, 19px); color: var(--paper-dim); margin-top: 18px;
  max-width: 56ch; word-break: keep-all; font-weight: 500; }
.svc-land__lead b { color: var(--paper); }
.svc-land .btn-row { margin-top: 28px; }
.svc-land__aux { margin-top: 16px; font-size: 13.5px; color: var(--paper-dim); display: flex; gap: 14px; flex-wrap: wrap; }
.svc-land__aux a { color: var(--paper); }
@media (max-width: 860px) { .svc-land__bg { opacity: .9; max-width: 480px; } .svc-land__bg svg { max-height: 360px; } }

/* ── 3기둥(AI 스튜디오) ── */
.pillars { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.pillar__k { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.pillar__t { font-size: 20px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.pillar__d { color: var(--paper-dim); font-size: 14.5px; margin-top: 8px; word-break: keep-all; }
.pillar ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pillar li { position: relative; padding-left: 20px; font-size: 14px; color: var(--paper); word-break: keep-all; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--accent); }

/* ── 원칙 노트 ── */
.principles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { display: flex; gap: 12px; align-items: flex-start; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.principle__i { color: var(--accent); font-weight: 800; flex: none; font-size: 18px; line-height: 1.4; }
.principle b { font-size: 15px; }
.principle p { color: var(--paper-dim); font-size: 13.5px; margin: 4px 0 0; word-break: keep-all; }

/* ── 서비스 상호 연결 배너 ── */
.svc-link { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.svc-link__t { font-weight: 700; color: var(--paper); word-break: keep-all; }
.svc-link__t small { display: block; color: var(--paper-dim); font-weight: 500; font-size: 13px; margin-top: 3px; }

/* ── 제작 과정(설명형 그림, 반응형 · 모바일 2열) ── */
.svc-flow { display: flex; flex-wrap: wrap; gap: 16px 10px; }
.svc-flow__step { position: relative; text-align: center; flex: 1 1 0; min-width: 128px; }
.svc-flow__ic svg { width: 50px; height: 50px; margin: 0 auto; display: block; overflow: visible; }
.svc-flow__cap b { display: block; font-weight: 700; font-size: 13.5px; color: var(--paper); margin-top: 10px; word-break: keep-all; }
.svc-flow__cap small { display: block; color: var(--paper-dim); font-size: 11.5px; margin-top: 2px; }
@media (min-width: 760px) {
  .svc-flow__step:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -6px;
    width: 10px; height: 10px; border-top: 2px solid var(--blue-deep, #4E7EA6); border-right: 2px solid var(--blue-deep, #4E7EA6);
    transform: rotate(45deg); opacity: .6; }
}

/* ── 히어로 배경 애니메이션(초기 숨김·드로잉은 여기 안에서만 → reduced-motion=최종 정지) ── */
@media (prefers-reduced-motion: no-preference) {
  .svc-land__bg .h-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: h-draw 1.3s cubic-bezier(.22,1,.36,1) forwards; }
  .svc-land__bg .h-fade { opacity: 0; animation: h-fade .7s ease forwards; }
  .svc-land__bg .h-rise { opacity: 0; animation: h-rise .7s cubic-bezier(.22,1,.36,1) forwards; }
  .svc-land__bg .h-idle { animation: h-idle 3.6s ease-in-out infinite; }
  .svc-land__bg .h-caret { animation: h-caret 1s steps(1) infinite; }
  .svc-land__bg .d1 { animation-delay: .1s; }
  .svc-land__bg .d2 { animation-delay: .35s; }
  .svc-land__bg .d3 { animation-delay: .6s; }
  .svc-land__bg .d4 { animation-delay: .9s; }
  .svc-land__bg .d5 { animation-delay: 1.2s; }
  .svc-land__bg .d6 { animation-delay: 1.5s; }
  .svc-land__bg .h-idle.d3 { animation-delay: .6s; }
}
@keyframes h-draw { to { stroke-dashoffset: 0; } }
@keyframes h-fade { to { opacity: 1; } }
@keyframes h-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes h-idle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes h-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ── 모바일 서비스 고정 CTA ── */
.svc-mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,9,13,.92); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.svc-mcta a { flex: 1; text-align: center; padding: 12px 8px; border-radius: 8px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid var(--line-2); color: var(--paper); }
.svc-mcta a.is-primary { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.svc-mcta a.is-kakao { background: #FEE500; border-color: #FEE500; color: #191600; }
@media (max-width: 720px) { .svc-mcta { display: flex; } body.has-mcta { padding-bottom: 72px; } }
/* 서비스 랜딩에서는 전역 플로팅 CTA를 숨기고 하단 고정 CTA(svc-mcta)로 대체 */
body.has-mcta .float-cta { display: none; }

/* ── AI 스튜디오: AI로 만든 결과물 갤러리(실사 컷 + 목업 틀) ── */
.ai-gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (min-width: 720px) { .ai-gallery { grid-template-columns: repeat(4, 1fr); } }
.ai-gallery figure { margin: 0; }
.ai-gallery figcaption { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--paper-dim); text-align: center; }
.ai-mock__tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  color: #0a0a0a; background: var(--accent); border-radius: 100px; padding: 4px 9px; }
/* 실사 컷 */
.ai-shot img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
/* 휴대폰 숏폼 목업 */
.ai-phone { position: relative; margin: 0 auto; max-width: 190px; border: 2px solid var(--line-2); border-radius: 26px;
  background: #05070b; padding: 8px; box-shadow: 0 20px 44px rgba(0,0,0,.42); }
.ai-phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 54px; height: 6px; border-radius: 4px; background: var(--line-2); z-index: 3; }
.ai-phone__screen { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 9/16; }
.ai-phone__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-play { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 50%; background: rgba(0,0,0,.42); backdrop-filter: blur(2px); }
.ai-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
/* 상세페이지 목업 */
.ai-detail { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-2); padding-bottom: 14px; }
.ai-detail img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ai-detail img + img { margin-top: 10px; }
/* 카드뉴스 목업 */
.ai-card { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.ai-card img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ai-card__cap { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
/* 공통: 목업 안 텍스트 자리 표시 막대 */
.ai-bar { display: block; height: 9px; border-radius: 5px; background: var(--line-2); margin: 12px 14px 0; }
.ai-detail .ai-bar { margin: 12px 14px 0; }
.ai-bar--lg { width: 78%; height: 12px; background: var(--paper-dim); opacity: .5; }
.ai-bar--sm { width: 46%; }
.ai-card__cap .ai-bar { margin: 0; }
