/* =========================================================
   컨설팅 상세 페이지 이펙트
   ========================================================= */

/* 헤더: 히어로 위 투명 */
body[data-page="consulting"] .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
body[data-page="consulting"] .site-header:not(.scrolled) .logo img { filter: brightness(0) invert(1); }
body[data-page="consulting"] .site-header:not(.scrolled) .gnb > li > a { color: rgba(255,255,255,.85); }
body[data-page="consulting"] .site-header:not(.scrolled) .gnb > li.active > a { color: #fff; background: rgba(255,255,255,.14); }
body[data-page="consulting"] .site-header:not(.scrolled) .gnb > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
body[data-page="consulting"] .site-header:not(.scrolled) .btn-primary { background: #fff; color: var(--blue-700); }
body[data-page="consulting"] .site-header:not(.scrolled) .menu-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.c-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  margin-top: calc(-1 * var(--header-h)); min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  background:
    radial-gradient(800px 520px at 78% 40%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(26,134,214,.45), transparent 60%),
    linear-gradient(140deg, #041a33 0%, var(--blue-900) 40%, var(--blue-800) 100%);
}
.c-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }
.c-hero .hero-glow { position: absolute; z-index: 0; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); transform: translate3d(var(--gx, 75vw), var(--gy, 40vh), 0) translate(-50%, -50%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.c-hero-bgword {
  position: absolute; z-index: 0; left: 0; bottom: 4%; white-space: nowrap; pointer-events: none;
  font-size: clamp(80px, 15vw, 240px); font-weight: 900; letter-spacing: -.03em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12);
  animation: bgword 40s linear infinite;
}
@keyframes bgword { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.c-hero .container { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: calc(var(--header-h) + 48px); padding-bottom: 96px; }
.c-index { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.c-index b { font-size: 44px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.c-index i { width: 48px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.c-hero .crumbs { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.6); }
.c-hero .crumbs a:hover { color: #fff; }
.c-hero h1 { margin-top: 10px; font-size: clamp(42px, 6.4vw, 88px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.c-hero h1 .en { display: block; margin-top: 14px; font-size: .28em; font-weight: 700; letter-spacing: .2em; color: transparent; background: linear-gradient(90deg, #a7ecff, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.c-hero .lead { margin-top: 26px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); }
.c-hero .hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* 큰 아이콘: 선이 그려지는 애니메이션 */
.c-emblem { position: relative; width: min(440px, 100%); aspect-ratio: 1; justify-self: center; translate: var(--px, 0) var(--py, 0); transition: translate .5s ease-out; }
.c-emblem .halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.c-emblem .halo.h2 { inset: 12%; border-style: dashed; border-color: rgba(255,255,255,.22); animation: spin 50s linear infinite; }
.c-emblem .halo.h3 { inset: 26%; border: 0; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); filter: blur(6px); animation: breathe 4s ease-in-out infinite; }
.c-emblem .orbiter { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.c-emblem .orbiter::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px 4px var(--accent); }
.c-emblem .orbiter.o2 { inset: 12%; animation-duration: 22s; animation-direction: reverse; }
.c-emblem .orbiter.o2::before { width: 8px; height: 8px; margin-left: -4px; top: -4px; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.8); }
.c-emblem svg { position: absolute; inset: 30%; width: 40%; height: 40%; color: #fff; stroke-width: 1.1; filter: drop-shadow(0 0 18px var(--accent)) drop-shadow(0 0 4px rgba(255,255,255,.6)); }
.c-emblem svg * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.65,0,.35,1) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { rotate: 360deg; } }

.c-hero .scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 36px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; }
.c-hero .scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* 등장 */
.rise { opacity: 0; transform: translateY(40px); filter: blur(6px); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.reveal { transition-delay: var(--rd, 0s); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { transform: none; }

/* 서브탭: 어두운 톤으로 */
body[data-page="consulting"] .sub-tabs { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }

/* ---------- 스크롤하면 글자가 켜지는 소개 ---------- */
.c-statement { padding: 140px 0 100px; }
.c-statement .eyebrow { color: var(--accent-ink); }
.c-statement p.big { margin-top: 18px; font-size: clamp(24px, 3.1vw, 42px); font-weight: 800; line-height: 1.5; letter-spacing: -.02em; }
.c-statement p.big .w { color: #d5dde7; transition: color .35s; }
.c-statement p.big .w.lit { color: var(--ink-900); }
.c-statement p.big .w.lit.hl { color: transparent; background: linear-gradient(90deg, var(--blue-700), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.c-keywords { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.c-keywords span { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; font-size: 17px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); border: 1px solid #d6e6f6; transition: background .25s, color .25s, transform .25s; }
.c-keywords span:hover { background: var(--blue-700); color: #fff; transform: translateY(-3px); }

/* ---------- 프로세스: 스크롤하면 채워지는 타임라인 ---------- */
.c-process { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #041a33, var(--blue-900) 50%, #08345f); }
.c-process::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 60px 60px; }
.c-process .container { position: relative; }
.c-process .eyebrow { color: var(--accent); }
.c-process .section-title { color: #fff; }
.c-process .track-tabs { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.c-process .track-tabs button { color: rgba(255,255,255,.7); }
.c-process .track-tabs button.active { background: #fff; color: var(--blue-800); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 70px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; }
.timeline::before { background: rgba(255,255,255,.14); }
.timeline::after { right: auto; width: calc(75% * var(--p, 0)); background: linear-gradient(90deg, var(--sky-400), var(--accent)); box-shadow: 0 0 16px var(--accent); }
.t-step { position: relative; padding: 34px 26px 28px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .4s, border-color .4s, transform .4s; }
.t-step::before { content: ""; position: absolute; top: -56px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #0b2a4a; border: 3px solid rgba(255,255,255,.3); transition: background .4s, border-color .4s, box-shadow .4s; }
.t-step.on { background: rgba(255,255,255,.1); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.t-step.on::before { background: var(--accent); border-color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 24px var(--accent); }
.t-step:hover { transform: translateY(-6px); }
.t-step .no { display: block; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); transition: color .4s, -webkit-text-stroke-color .4s; }
.t-step.on .no { color: transparent; -webkit-text-stroke: 0; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.t-step h3 { margin-top: 16px; font-size: 21px; font-weight: 800; }
.t-step ul { margin-top: 16px; display: grid; gap: 9px; }
.t-step li { position: relative; padding-left: 18px; font-size: 15px; color: rgba(255,255,255,.78); }
.t-step li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- 우수사례 ---------- */
.c-cases { overflow-x: clip; }
.c-cases .eyebrow { color: var(--accent-ink); }
.c-cases .case-card { box-shadow: 0 20px 60px rgba(6,42,77,.08); transition: transform .4s, box-shadow .4s; }
.c-cases .case-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(6,42,77,.16); }
.c-cases .case-head { background: linear-gradient(90deg, var(--blue-900), var(--blue-700)); border-bottom: 0; color: #fff; padding: 26px 32px; }
.c-cases .case-head .label { background: #fff; color: var(--blue-700); }
.c-cases .case-head h3 { font-size: 24px; }
.c-cases .case-col.consult { background: linear-gradient(150deg, var(--blue-700), var(--blue-800)); }
.c-cases .case-arrow svg { color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---------- 다른 분야: 큰 카드 ---------- */
.c-others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.c-other { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, color .35s, border-color .35s; isolation: isolate; }
.c-other::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, var(--blue-900), var(--blue-700)); opacity: 0; transition: opacity .35s; }
.c-other:hover { transform: translateY(-6px); color: #fff; border-color: transparent; box-shadow: 0 24px 60px rgba(6,42,77,.25); }
.c-other:hover::before { opacity: 1; }
.c-other .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); transition: background .35s, color .35s; }
.c-other:hover .ic { background: rgba(255,255,255,.14); color: #fff; }
.c-other .ic svg { width: 26px; height: 26px; }
.c-other small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--sky-400); }
.c-other b { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 19px; font-weight: 800; }
.c-other b svg { width: 18px; height: 18px; transition: transform .3s; }
.c-other:hover b svg { transform: translateX(4px); }

/* ---------- CTA ---------- */
.c-cta .cta-box { background-size: 200% 200%; animation: flow 10s ease infinite; background-image: radial-gradient(500px 300px at 90% 0%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%), linear-gradient(120deg, #041a33, var(--blue-700), #0a86d8, var(--blue-800)); }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 1080px) {
  .c-hero .container { grid-template-columns: 1fr; }
  .c-emblem { width: 300px; order: -1; justify-self: start; }
  .timeline { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
  .timeline::before, .timeline::after, .t-step::before { display: none; }
  .c-others { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .c-hero { min-height: 0; }
  .c-hero .container { padding-top: calc(var(--header-h) + 28px); padding-bottom: 80px; gap: 12px; }
  .c-emblem { width: 180px; }
  .c-index b { font-size: 34px; }
  .c-hero .hero-actions .btn { flex: 1; }
  .c-statement { padding: 80px 0 60px; }
  .c-keywords span { height: 42px; padding: 0 18px; font-size: 15px; }
  .timeline, .c-others { grid-template-columns: 1fr; }
  .t-step .no { font-size: 48px; }
  .c-other { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; filter: none; }
  .c-emblem svg * { animation: none; stroke-dashoffset: 0; }
  .c-hero-bgword, .c-emblem .halo, .c-emblem .orbiter, .c-cases .case-arrow svg, .c-cta .cta-box, .c-hero .scroll-cue span { animation: none; }
}
