/*==============================================================
  WEGO — Dark Tech Theme  v2
  style.css 뒤에 로드되어 색 / 레이아웃 / 모션을 덮어씁니다.
  되돌리려면 index.html 에서 이 파일 <link> 한 줄만 제거하세요.
==============================================================*/

/*--------------------------------------------------------------
  1. 토큰
--------------------------------------------------------------*/
:root {
  /* 배경 */
  --bg-0: #050710;
  --bg-1: #0a0d1a;
  --bg-2: #101528;

  /* 텍스트 */
  --ink:   #f2f6fb;
  --ink-2: #b9c6d8;
  --ink-3: #7e8ea3;

  /* 액센트 — 파랑 하나로만 가면 단조로워서 4색 스펙트럼으로 */
  --c-cyan:   #22d3ee;
  --c-blue:   #4ea8de;
  --c-violet: #7b5cff;
  --c-pink:   #ff5c8a;

  --grad:  linear-gradient(115deg, var(--c-cyan) 0%, var(--c-blue) 28%, var(--c-violet) 64%, var(--c-pink) 100%);
  --grad-2: linear-gradient(135deg, var(--c-violet), var(--c-pink));

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --glass:       linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
  --glass-hover: linear-gradient(155deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;

  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95);

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gap: 24px;
  --section-y: 130px;
}

/*--------------------------------------------------------------
  2. 베이스
--------------------------------------------------------------*/
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-2);
  background-color: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Noto Sans KR", "Raleway", sans-serif;
  color: var(--ink);
  letter-spacing: -0.025em;
}

a { color: var(--c-blue); }
a:hover { color: #8fd0ea; }

::selection { background: rgba(123, 92, 255, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-cyan), var(--c-violet), var(--c-pink));
  border-radius: 10px;
  border: 3px solid var(--bg-0);
}

/* 배경 영상은 질감 수준으로만 */
video.bg-video { opacity: 0.28; filter: saturate(0.55) contrast(1.1); }

/* 필름 그레인 — 평평한 다크를 덜 밋밋하게 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/*--------------------------------------------------------------
  3. 유틸리티
--------------------------------------------------------------*/

/* 스크롤 진행 바 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  z-index: 1000;
  will-change: transform;
}

/* 커서 글로우 */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle, rgba(78, 168, 222, 0.18) 0%, rgba(123, 92, 255, 0.10) 42%, transparent 70%);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* 스크롤 진입 리빌 — [data-reveal] 요소에 붙는다 */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* 마스크로 위에서 내려오며 드러나는 텍스트 */
[data-reveal="mask"] {
  transform: none;
  filter: none;
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal="mask"].is-in { clip-path: inset(0 0 -10% 0); }

/* 흐르는 띠 */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.07), rgba(123, 92, 255, 0.07), rgba(255, 92, 138, 0.07));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 3;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__group span {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 0 22px;
  white-space: nowrap;
}
.marquee__group b {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 13px;
  padding: 0 2px;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 양끝 페이드 */
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 14%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-0), transparent); }

/* 회전하는 그라데이션 테두리에 쓰는 각도 변수 */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-angle {
  to { --angle: 360deg; }
}

/* 버튼 */
.btn-grad {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #060a14;
  background: var(--grad);
  background-size: 200% 100%;
  border: 0;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-position 0.6s var(--ease);
  box-shadow: 0 18px 46px -20px rgba(123, 92, 255, 0.9);
  will-change: transform;
}
.btn-grad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn-grad:hover {
  color: #060a14;
  background-position: 100% 0;
  box-shadow: 0 26px 60px -20px rgba(255, 92, 138, 0.85);
}
.btn-grad:hover::after { transform: translateX(130%); }
.btn-grad i { font-size: 20px; transition: transform 0.4s var(--ease); }
.btn-grad:hover i { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: 100px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease);
  will-change: transform;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(123, 92, 255, 0.7);
  background: rgba(123, 92, 255, 0.14);
}

/*--------------------------------------------------------------
  4. 헤더
--------------------------------------------------------------*/
#header {
  background: transparent;
  padding: 24px 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
#header.header-transparent { background: transparent; }
#header.header-scrolled {
  padding: 10px 0;
  background: rgba(6, 9, 18, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 44px -28px rgba(0, 0, 0, 1);
}
#header .logo img {
  transition: max-height 0.5s var(--ease);
  filter: drop-shadow(0 2px 14px rgba(78, 168, 222, 0.45));
}
#header.header-scrolled .logo img { max-height: 30px; }

.navbar a, .navbar a:focus {
  color: var(--ink-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 10px 2px;
  margin: 0 15px;
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}
.navbar a:hover::after,
.navbar .active::after,
.navbar li:hover > a::after { transform: scaleX(1); transform-origin: left center; }
.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a { color: #fff; }

.mobile-nav-toggle { color: var(--ink); }
.navbar-mobile { background: rgba(4, 6, 12, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.navbar-mobile ul { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.navbar-mobile a, .navbar-mobile a:focus { color: var(--ink-2); }
.navbar-mobile a::after { display: none; }
.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a { color: var(--c-blue); }

/*--------------------------------------------------------------
  5. 히어로
--------------------------------------------------------------*/
#wego {
  background: var(--bg-0);
  overflow: hidden;
}

/* 떠다니는 오로라 3덩어리 — 다크의 단조로움을 깨는 핵심 */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  will-change: transform;
}
.hero-aurora span:nth-child(1) {
  width: 620px; height: 620px;
  background: var(--c-violet);
  top: -12%; left: -8%;
  animation: drift-a 22s ease-in-out infinite;
}
.hero-aurora span:nth-child(2) {
  width: 540px; height: 540px;
  background: var(--c-cyan);
  bottom: -18%; right: -6%;
  animation: drift-b 26s ease-in-out infinite;
}
.hero-aurora span:nth-child(3) {
  width: 460px; height: 460px;
  background: var(--c-pink);
  top: 32%; left: 46%;
  opacity: 0.34;
  animation: drift-c 30s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(140px, 90px) scale(1.18); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-160px, -70px) scale(1.12); }
}
@keyframes drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-110px, 70px) scale(1.2); }
  66%      { transform: translate(90px, -90px) scale(0.9); }
}

/* 격자 오버레이 */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 78%);
}

#wego .hero-container {
  background: radial-gradient(ellipse at 50% 45%, rgba(5, 7, 16, 0.30) 0%, rgba(5, 7, 16, 0.72) 55%, rgba(5, 7, 16, 0.93) 100%);
  padding: 0 20px;
  z-index: 2;
}

/* 상단 배지 */
#wego h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
  text-shadow: none;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}
#wego h3::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  animation: wg-pulse 2.4s infinite;
}
@keyframes wg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.65); }
  70%  { box-shadow: 0 0 0 11px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

/* 타이틀 */
#wego h1 {
  font-size: clamp(46px, 9vw, 118px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: none;
  text-shadow: none;
  margin: 0 0 6px 0;
  perspective: 900px;
  color: var(--ink);
}
/* 단어 단위 줄바꿈 — 안쪽 .ch 가 inline-block 이라 글자 사이에서
   줄이 끊기는 걸 막는다. 줄바꿈은 단어 사이 공백에서만 일어난다. */
#wego h1 .word {
  display: inline-block;
  white-space: nowrap;
}
/* 그라데이션은 반드시 .ch 에 — background-clip:text 를 h1 에 두면
   자식 span 의 opacity 가 부모가 그린 글자에 먹지 않아 페이드인이 사라진다. */
#wego h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotateX(-55deg);
  animation: wg-char 0.9s var(--ease-out) forwards;
  background: linear-gradient(175deg, #ffffff 12%, #b7c6da 62%, #7e8ea3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes wg-char { to { opacity: 1; transform: none; } }

/* 돌아가는 문구 — "여기 맡기면 뭘 해주는지" 를 바로 보여준다 */
.hero-rotator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 1.6em;
  margin: 14px 0 26px;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: clamp(17px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-rotator__static { color: var(--ink-3); }
.hero-rotator__slot {
  position: relative;
  display: inline-block;
  height: 1.6em;
  overflow: hidden;
  vertical-align: bottom;
  transition: width 0.6s var(--ease-out);
}
.hero-rotator__list {
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.hero-rotator__list i {
  display: block;
  height: 1.6em;
  line-height: 1.6em;
  white-space: nowrap;
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#wego h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--ink-3);
  text-shadow: none;
  margin-bottom: 42px;
}

#wego .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 스크롤 인디케이터 */
#wego .btn-get-started {
  width: 40px; height: 40px;
  font-size: 22px;
  line-height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.03);
  top: auto;
  bottom: 30px;
  animation: wg-float 2.6s ease-in-out infinite;
}
#wego .btn-get-started:hover {
  padding-top: 0;
  color: #fff;
  border-color: var(--c-blue);
  background: rgba(78, 168, 222, 0.16);
}
@keyframes wg-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/*--------------------------------------------------------------
  6. 섹션 공통
--------------------------------------------------------------*/
section { padding: var(--section-y) 0; position: relative; }

.section-bg { background-color: transparent; }

.about, .services, .counts, .portfolio, .contact {
  background: linear-gradient(180deg, rgba(5, 7, 16, 0.92) 0%, rgba(5, 7, 16, 0.96) 100%);
}

/* 섹션마다 떠 있는 색 덩어리 */
.about::before, .services::after, .portfolio::after, .contact::after {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}
.about::before    { background: var(--c-blue);   top: -300px;    left: -240px;  animation: drift-a 24s ease-in-out infinite; }
.services::after  { background: var(--c-violet); bottom: -340px; right: -260px; animation: drift-b 28s ease-in-out infinite; }
.portfolio::after { background: var(--c-cyan);   top: -320px;    right: -280px; animation: drift-c 32s ease-in-out infinite; }
.contact::after   { background: var(--c-pink);   bottom: -360px; left: -280px;  animation: drift-a 26s ease-in-out infinite; }

.about .container, .services .container, .counts .container,
.portfolio .container, .contact .container, .cta .container { position: relative; z-index: 3; }

/* 섹션 타이틀 */
.section-title { padding-bottom: 64px; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title h2 {
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
  color: var(--ink);
}
/* 원본의 PNG 장식 제거 */
.section-title h2::after { content: none; }

.section-title p {
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
  7. About
--------------------------------------------------------------*/
.about { background-color: transparent; }

.about .content h3 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}
.about .content p { color: var(--ink-3); font-size: 15.5px; line-height: 1.95; }

.about .content .about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 13px 26px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  transition: all 0.4s var(--ease);
}
/* 원본은 i 를 position:absolute + top/right 픽셀값으로 붙여놨다.
   패딩이 바뀌면 바로 어긋나므로 flex 흐름으로 되돌린다. */
.about .content .about-btn i {
  position: static;
  top: auto;
  right: auto;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}
.about .content .about-btn:hover {
  border-color: rgba(123, 92, 255, 0.7);
  background: rgba(123, 92, 255, 0.14);
  color: #fff;
}
.about .content .about-btn:hover i { transform: translateX(4px); }

/* .icon-box 는 컬럼 그 자체라 배경을 직접 칠하면 옆 칸과 맞닿는다.
   안쪽으로 물린 ::before 를 배경면으로 쓰고, 그 여백이 칸 사이 간격이 된다. */
.about .icon-boxes .icon-box {
  position: relative;
  padding: 32px 28px;
  background: transparent;
  border: 0;
  transition: transform 0.5s var(--ease);
}
.about .icon-boxes .icon-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  z-index: 0;
}
.about .icon-boxes .icon-box:hover { transform: translateY(-7px); }
.about .icon-boxes .icon-box:hover::before {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.about .icon-boxes .icon-box > * { position: relative; z-index: 1; }

.about .icon-boxes .icon-box i {
  font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.about .icon-boxes .icon-box:hover i { transform: scale(1.12) rotate(-6deg); }
.about .icon-boxes .icon-box h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  letter-spacing: 0.09em;
  color: var(--ink);
}
.about .icon-boxes .icon-box p { color: var(--ink-3); font-size: 13.5px; line-height: 1.85; }

/*--------------------------------------------------------------
  8. Services — 벤토 그리드
     Bootstrap 컬럼을 그리드 아이템으로 갈아끼운다.
     6열 기준: 앞 2장은 3칸(=2개/줄), 나머지는 2칸(=3개/줄).
--------------------------------------------------------------*/
.services { background-color: transparent; }

#services-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  margin: 0;
}
#services-row > * {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0;
  grid-column: span 2;
}
#services-row > *:nth-child(1),
#services-row > *:nth-child(2) { grid-column: span 3; }

.services .icon-box {
  position: relative;
  width: 100%;
  padding: 36px 32px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
/* 원본의 흰색 슬라이드 필(::before)을 회전하는 그라데이션 테두리로 갈아끼운다.
   inset 이 top/right/bottom/left 를 전부 덮어쓰므로 원본 값은 자동으로 무효. */
.services .icon-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg),
              var(--c-cyan), var(--c-violet), var(--c-pink), var(--c-cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 3;
}
.services .icon-box:hover::before { opacity: 1; animation: spin-angle 4s linear infinite; }

/* 카드 번호 */
.services .icon-box .card-index {
  position: absolute;
  top: 26px; right: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  opacity: 0.5;
  transition: opacity 0.4s ease, color 0.4s ease;
  z-index: 1;
}
.services .icon-box:hover .card-index { opacity: 1; color: var(--c-blue); }

.services .icon { position: static; margin-bottom: 24px; }
.services .icon i {
  font-size: 26px;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(78, 168, 222, 0.22), rgba(123, 92, 255, 0.12));
  border: 1px solid var(--line);
  transition: all 0.45s var(--ease);
}
.services .icon-box:hover .icon i {
  color: #060a14;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-4px) rotate(-8deg) scale(1.06);
  box-shadow: 0 16px 34px -14px rgba(123, 92, 255, 0.95);
}

.services .title { margin-bottom: 13px; }
.services .title a {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.services .description { color: var(--ink-3); font-size: 14.5px; line-height: 1.9; }
.services .icon-box:hover .title a { color: #fff; }
.services .icon-box:hover .description { color: var(--ink-2); }

/* 앞 2장(와이드)은 조금 더 크게 */
#services-row > *:nth-child(1) .icon-box,
#services-row > *:nth-child(2) .icon-box { padding: 44px 40px; }
#services-row > *:nth-child(1) .title a,
#services-row > *:nth-child(2) .title a { font-size: 25px; }
#services-row > *:nth-child(1) .icon i,
#services-row > *:nth-child(2) .icon i { width: 66px; height: 66px; font-size: 30px; }

.services_a { color: var(--c-blue); font-weight: 500; }
.services_a:hover { color: #a5dcf0; }

@media (max-width: 991px) {
  #services-row { grid-template-columns: repeat(2, 1fr); }
  #services-row > *,
  #services-row > *:nth-child(1),
  #services-row > *:nth-child(2) { grid-column: span 1; }
  #services-row > *:nth-child(1) .icon-box,
  #services-row > *:nth-child(2) .icon-box { padding: 32px 28px; }
  #services-row > *:nth-child(1) .title a,
  #services-row > *:nth-child(2) .title a { font-size: 20px; }
}
@media (max-width: 575px) {
  #services-row { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
  9. Counts — 칸칸 박스 대신 하나의 지표 띠
--------------------------------------------------------------*/
.counts { background-color: transparent; padding-top: 0; }

#counts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}
#counts-row > * {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0;
  border-right: 1px solid var(--line);
}
#counts-row > *:nth-child(4) { border-right: 0; }

.counts .count-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 40px 34px;
  overflow: hidden;
  transition: background 0.45s var(--ease);
}
.counts .count-box:hover { background: rgba(255, 255, 255, 0.04); }
/* 아래에서 차오르는 그라데이션 밑줄 */
.counts .count-box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
  z-index: 2;
}
.counts .count-box:hover::before { transform: scaleX(1); }

.counts .count-box i {
  float: none;
  line-height: 1;
  font-size: 20px;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(78, 168, 222, 0.13);
  border: 1px solid var(--line);
  transition: all 0.45s var(--ease);
}
.counts .count-box:hover i {
  color: #060a14;
  background: var(--grad);
  border-color: transparent;
}
.counts .count-box span {
  margin-left: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #ffffff 15%, var(--c-cyan) 55%, var(--c-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counts .count-box p {
  margin: 0;
  padding: 0;
  color: var(--ink-3);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 13.5px;
  line-height: 1.7;
}
.counts .count-box p strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 5px;
}
/* 기준일 문구 — 띠 전체를 가로지르는 마지막 줄 */
#counts-row > span {
  grid-column: 1 / -1;
  border-right: 0;
  border-top: 1px solid var(--line);
  padding: 13px;
  color: var(--ink-3) !important;
  font-size: 12px;
}
.counts .count-box > * { position: relative; z-index: 1; }

@media (max-width: 991px) {
  #counts-row { grid-template-columns: repeat(2, 1fr); }
  #counts-row > *:nth-child(2) { border-right: 0; }
  #counts-row > *:nth-child(1), #counts-row > *:nth-child(2) { border-bottom: 1px solid var(--line); }
  .counts .count-box { padding: 30px 24px; }
}
@media (max-width: 575px) {
  #counts-row { grid-template-columns: 1fr; }
  #counts-row > * { border-right: 0; border-bottom: 1px solid var(--line); }
}

/*--------------------------------------------------------------
  10. CTA — 유일한 밝은 구간. 다크 일변도의 리듬을 끊는다.
--------------------------------------------------------------*/
.cta {
  background: var(--grad);
  background-size: 220% 220%;
  animation: cta-shift 14s ease infinite;
  padding: 110px 0;
  border: 0;
  overflow: hidden;
}
@keyframes cta-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}
.cta h3 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #08101f;
}
.cta p { color: rgba(8, 16, 31, 0.78); font-size: 16px; line-height: 1.9; font-weight: 500; }
.cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 100px;
  padding: 17px 40px;
  margin-top: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  background: #08101f;
  box-shadow: 0 20px 46px -18px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* transform 은 자석 효과(JS 인라인)가 쓰므로 여기서 건드리지 않는다 */
.cta .cta-btn:hover {
  color: #fff;
  background: #08101f;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.75);
}

/*--------------------------------------------------------------
  11. Portfolio
--------------------------------------------------------------*/
.portfolio { background-color: transparent; }

.portfolio #portfolio-flters {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.portfolio #portfolio-flters li {
  padding: 10px 22px;
  border-radius: 100px;
  color: var(--ink-3);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.07em;
  margin-bottom: 0;
  transition: all 0.4s var(--ease);
}
.portfolio #portfolio-flters li:hover { color: var(--ink); }
.portfolio #portfolio-flters li.filter-active {
  color: #060a14;
  background: var(--grad);
  box-shadow: 0 10px 24px -10px rgba(123, 92, 255, 0.9);
}

.portfolio .portfolio-item { margin-bottom: 0; }
.portfolio .portfolio-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.portfolio .portfolio-wrap img {
  transition: transform 0.9s var(--ease), filter 0.6s ease;
  filter: saturate(0.8) brightness(0.86);
}
.portfolio .portfolio-wrap:hover img { transform: scale(1.09); filter: saturate(1.08) brightness(1); }
.portfolio .portfolio-wrap::before {
  background: linear-gradient(180deg, rgba(5, 7, 16, 0) 28%, rgba(5, 7, 16, 0.5) 62%, rgba(5, 7, 16, 0.93) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.portfolio .portfolio-wrap:hover::before { opacity: 1; }
.portfolio .portfolio-wrap .portfolio-links a {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease);
}
.portfolio .portfolio-wrap .portfolio-links a:hover {
  color: #060a14;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-4px);
}
.portfolio .portfolio-wrap .portfolio-count-badge {
  background: rgba(5, 7, 16, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  color: var(--ink-2);
}

/*--------------------------------------------------------------
  12. Contact
--------------------------------------------------------------*/
.contact { background-color: transparent; }

.contact .info-box {
  position: relative;
  overflow: hidden;
  color: var(--ink-2);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  padding: 34px 22px;
  height: 100%;
  transform-style: preserve-3d;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.contact .info-box:hover {
  border-color: rgba(123, 92, 255, 0.45);
  background: var(--glass-hover);
}
.contact .info-box i {
  font-size: 24px;
  color: var(--c-blue);
  border: 1px solid var(--line);
  background: rgba(78, 168, 222, 0.13);
  border-radius: 15px;
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.45s var(--ease);
}
.contact .info-box:hover i { color: #060a14; background: var(--grad); border-color: transparent; }
.contact .info-box h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 9px;
}
.contact .info-box p { color: var(--ink); font-size: 15px; }
.contact .info-box > * { position: relative; z-index: 1; }

.contact .php-email-form {
  background: var(--glass) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  padding: 40px !important;
  box-shadow: var(--shadow) !important;
}
/* 폼 내부의 .row 는 위쪽 gutter 를 상속받으면 안 된다.
   (.contact .row 의 --bs-gutter-y 때문에 mt-md-0 이 걸린 email 칸만
   margin-top 이 0 이 되어 name 칸과 높이가 어긋나던 문제) */
.contact .php-email-form .row { --bs-gutter-y: 0; }
.contact .php-email-form .form-group { margin-bottom: 0; }

.contact .php-email-form input,
.contact .php-email-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: var(--ink);
  padding: 14px 17px;
  font-size: 14.5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.contact .php-email-form textarea { resize: vertical; min-height: 180px; }
.contact .php-email-form input:hover,
.contact .php-email-form textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder { color: var(--ink-3); opacity: 0.8; }
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.2);
}
.contact .php-email-form button[type=submit] {
  background: var(--grad);
  background-size: 200% 100%;
  color: #060a14;
  border-radius: 100px;
  padding: 14px 40px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(123, 92, 255, 0.9);
  transition: transform 0.4s var(--ease), background-position 0.6s var(--ease), box-shadow 0.4s var(--ease);
}
.contact .php-email-form button[type=submit]:hover {
  background: var(--grad);
  background-size: 200% 100%;
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 24px 52px -18px rgba(255, 92, 138, 0.9);
}

.contact iframe {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  filter: invert(0.91) hue-rotate(180deg) grayscale(0.35) contrast(0.92) brightness(0.95);
  transition: filter 0.6s ease;
  min-height: 420px;
}
.contact iframe:hover { filter: invert(0.88) hue-rotate(180deg) grayscale(0.1) contrast(0.95) brightness(1); }

/*--------------------------------------------------------------
  13. 푸터
--------------------------------------------------------------*/
#footer {
  background: linear-gradient(180deg, var(--bg-0) 0%, #02040a 100%);
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
#footer .footer-top .footer-info {
  background: var(--glass);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 38px 26px;
}
#footer .footer-top .footer-info h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.07em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#footer .footer-top .footer-info p { color: var(--ink-3); }
#footer .footer-top .social-links a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-2);
  transition: all 0.4s var(--ease);
}
#footer .footer-top .social-links a:hover {
  color: #060a14;
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-4px);
}
#footer .footer-top h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
}
#footer .footer-top .footer-links ul i { color: var(--c-blue); }
#footer .footer-top .footer-links ul a { color: var(--ink-2); font-size: 14px; }
#footer .footer-top .footer-links ul a:hover { color: var(--c-blue); }
#footer .footer-top .footer-newsletter form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  overflow: hidden;
}
#footer .footer-top .footer-newsletter form input[type=email] {
  background: transparent;
  color: var(--ink);
  outline: 0;
}
#footer .footer-top .footer-newsletter form input[type=email]::placeholder { color: var(--ink-3); }
#footer .footer-top .footer-newsletter form input[type=submit] {
  border-radius: 100px;
  background: var(--grad);
  color: #060a14;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  right: 6px; top: 6px; bottom: 6px;
  padding: 0 24px;
}
#footer .footer-top .footer-newsletter form input[type=submit]:hover { background: var(--grad); opacity: 0.9; }
#footer .copyright { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/*--------------------------------------------------------------
  14. Back to top
--------------------------------------------------------------*/
.back-to-top {
  background: var(--grad);
  color: #060a14;
  border-radius: 15px;
  box-shadow: 0 18px 40px -16px rgba(123, 92, 255, 0.9);
  transition: transform 0.4s var(--ease);
}
.back-to-top i { color: #060a14; }
.back-to-top:hover { background: var(--grad); transform: translateY(-5px); }

/*--------------------------------------------------------------
  15. 그리드 간격
     주의: `no-gutters` 는 Bootstrap 4 클래스이고 이 프로젝트는 BS5 라
     아무 효과가 없다. 간격은 --bs-gutter-x/y 로만 잡는다.
--------------------------------------------------------------*/
.portfolio .portfolio-container,
.about .icon-boxes .row,
.contact .row {
  --bs-gutter-x: var(--gap);
  --bs-gutter-y: var(--gap);
}
.about .icon-boxes .icon-box { margin-top: var(--bs-gutter-y); }

/* .row 는 --bs-gutter-y 만큼 음수 margin-top 을 갖는다.
   그래서 행이 연달아 오면 그 음수가 앞 행과의 간격을 그대로 먹는다.
   두 번째 행부터는 명시적으로 간격을 다시 준다. */
.contact .row + .row { margin-top: calc(var(--gap) * 2); }

/*--------------------------------------------------------------
  16. 반응형 / 접근성
--------------------------------------------------------------*/
@media (max-width: 991px) {
  :root { --section-y: 88px; }
  .section-title { padding-bottom: 44px; }
  .contact iframe { min-height: 320px; }
}
@media (max-width: 768px) {
  #wego h1 { font-size: clamp(36px, 12vw, 60px); line-height: 1.0; }
  #wego h2 { letter-spacing: 0.3em; }
  .hero-rotator { flex-direction: column; gap: 2px; height: auto; }
}
@media (max-width: 575px) {
  :root { --gap: 16px; }
}

/* 모바일에서만 줄을 끊고 싶을 때 쓰는 <br class="br-mobile"> */
.br-mobile { display: none; }
@media (max-width: 767px) {
  .br-mobile { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #wego h1 .ch { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .cursor-glow { display: none; }
  .marquee__track { animation: none; }
}

/*--------------------------------------------------------------
  17. 스포트라이트 — 카드 위 마우스 위치를 따라 빛이 번진다
      (interactions.js 가 --mx / --my 를 채워준다)
--------------------------------------------------------------*/
.services .icon-box::after,
.counts .count-box::after,
.contact .info-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
              rgba(78, 168, 222, 0.22), rgba(123, 92, 255, 0.12) 38%, transparent 68%);
}
.services .icon-box:hover::after,
.counts .count-box:hover::after,
.contact .info-box:hover::after { opacity: 1; }

/* 카드 내용은 빛보다 위에 */
.services .icon-box > *,
.contact .info-box > * { position: relative; z-index: 1; }

/*--------------------------------------------------------------
  N. 서비스 상세 팝업 (service-detail.js)
--------------------------------------------------------------*/
/* 눌러볼 수 있는 카드 — 우하단 원형 화살표 버튼으로 알린다.
   ::after 는 위 17번 스포트라이트가 이미 쓰고 있으므로
   화살표는 service-detail.js 가 넣는 실제 요소(.svc-go)로 만든다. */
.services .icon-box.has-detail { cursor: pointer; }

/* 버튼이 설명 문구를 덮지 않도록 아래 여백 확보.
   #services-row 를 함께 써야 아래쪽 nth-child 패딩 규칙을 이긴다. */
#services-row .icon-box.has-detail { padding-bottom: 96px; }
#services-row > *:nth-child(1) .icon-box.has-detail,
#services-row > *:nth-child(2) .icon-box.has-detail { padding-bottom: 104px; }

.services .icon-box .svc-go {
  position: absolute;
  right: 30px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-2);
  font-size: 21px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}

#services-row > *:nth-child(1) .icon-box .svc-go,
#services-row > *:nth-child(2) .icon-box .svc-go { right: 38px; bottom: 34px; }

.services .icon-box.has-detail:hover .svc-go,
.services .icon-box.has-detail:focus-visible .svc-go {
  background: var(--grad);
  border-color: transparent;
  color: #06080f;
  transform: translateX(5px);
  box-shadow: 0 14px 30px -12px rgba(123, 92, 255, .9);
}

.services .icon-box.has-detail:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }

@media (max-width: 991px) {
  #services-row .icon-box.has-detail,
  #services-row > *:nth-child(1) .icon-box.has-detail,
  #services-row > *:nth-child(2) .icon-box.has-detail { padding-bottom: 86px; }
  .services .icon-box .svc-go,
  #services-row > *:nth-child(1) .icon-box .svc-go,
  #services-row > *:nth-child(2) .icon-box .svc-go {
    right: 26px; bottom: 24px; width: 44px; height: 44px; font-size: 19px;
  }
}

body.svc-modal-open { overflow: hidden; }

.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.svc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}

.svc-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px 46px 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #121729 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(26px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.svc-modal.is-open .svc-modal__backdrop { opacity: 1; }
.svc-modal.is-open .svc-modal__dialog { opacity: 1; transform: none; }

.svc-modal__dialog::-webkit-scrollbar { width: 8px; }
.svc-modal__dialog::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

.svc-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-2);
  font-size: 22px;
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.svc-modal__close:hover { color: #fff; background: var(--glass-hover); transform: rotate(90deg); }

.svc-modal__head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.svc-modal__icon i {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--grad);
  color: #06080f;
  font-size: 29px;
}

.svc-modal__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.svc-modal__head h3 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
}

.svc-modal__lead { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-3); }

/* --- 아코디언 --- */
.svc-acc__item { border-bottom: 1px solid var(--line); }
.svc-acc__item:first-child { border-top: 1px solid var(--line); }

.svc-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 4px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.svc-acc__head:hover { color: var(--ink); }
.svc-acc__item.is-open .svc-acc__head { color: #fff; }

.svc-acc__head i {
  flex: none;
  font-size: 22px;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.svc-acc__item.is-open .svc-acc__head i { transform: rotate(180deg); color: var(--c-cyan); }

.svc-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.svc-acc__item.is-open .svc-acc__panel { grid-template-rows: 1fr; }

.svc-acc__inner { overflow: hidden; }
.svc-acc__item.is-open .svc-acc__inner { padding-bottom: 26px; }

/* --- 진행 단계 --- */
.svc-steps { list-style: none; margin: 0; padding: 6px 0 0; }

.svc-steps__item {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 22px;
}
.svc-steps__item:last-child { padding-bottom: 0; }

.svc-steps__item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.svc-steps__item:last-child::before { display: none; }

.svc-steps__num {
  flex: none;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-blue);
}

.svc-steps__body h5 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 7px 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.svc-steps__body h5 em {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(34, 211, 238, .07);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  color: var(--c-cyan);
}

.svc-steps__body p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--ink-3); }

/* --- 비용 카드 --- */
.svc-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 6px;
}

.svc-plan {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  transition: border-color .28s var(--ease), background .28s var(--ease);
}
.svc-plan:hover { border-color: var(--line-strong); background: var(--glass-hover); }

.svc-plan h5 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }

.svc-plan__price {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-plan__note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }

.svc-plan ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}

.svc-plan li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.svc-plan li:last-child { margin-bottom: 0; }
.svc-plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-blue);
}

.svc-plans__foot {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-left: 2px solid var(--c-violet);
  border-radius: 0 8px 8px 0;
  background: rgba(123, 92, 255, .07);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

/* --- 목록 --- */
.svc-list { list-style: none; margin: 0; padding: 6px 0 0; }
.svc-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
.svc-list li:last-child { margin-bottom: 0; }
.svc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: var(--c-cyan);
}

/* --- 질문/답변 --- */
.svc-qa { margin: 0; padding: 6px 0 0; }
.svc-qa dt {
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.svc-qa dt::before { content: "Q. "; color: var(--c-cyan); }
.svc-qa dd {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-3);
}
.svc-qa dd:last-child { margin-bottom: 0; }

/* --- 하단 CTA --- */
.svc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.svc-modal__foot p { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.svc-modal__cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--grad);
  color: #06080f;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc-modal__cta:hover {
  color: #06080f;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(78, 168, 222, .75);
}

@media (max-width: 767px) {
  .svc-modal { padding: 0; }
  .svc-modal__dialog {
    max-height: 100vh;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: 34px 22px 30px;
  }
  .svc-modal__head { flex-direction: column; gap: 16px; }
  .svc-modal__icon i { width: 52px; height: 52px; font-size: 25px; }
  .svc-modal__head h3 { font-size: 22px; }
  .svc-plans { grid-template-columns: 1fr; }
  .svc-modal__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .svc-modal__cta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-modal__backdrop,
  .svc-modal__dialog,
  .svc-acc__panel { transition: none; }
}

/*--------------------------------------------------------------
  N+1. 포트폴리오 상세 라이트박스 (GLightbox)
  기본 스킨(glightbox-clean)의 캡션은 흰 배경이라, 사이트 글자색
  (연한 회청색)이 그 위에 얹혀 거의 안 보였다. 다크 테마에 맞춰
  이미지와 캡션을 하나의 카드처럼 보이게 다시 정리한다.
  캡션 가로폭은 portfolio-loader.js 가 이미지 폭에 맞춰 준다.
--------------------------------------------------------------*/
.glightbox-clean .goverlay {
  background: rgba(3, 5, 12, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.glightbox-clean .gslide-media { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); }

.glightbox-clean .gslide-image img {
  border-radius: 16px 16px 0 0;
  background: var(--bg-2);
  /* 이미지 + 캡션이 화면 안에 여유 있게 들어오도록 */
  max-height: calc(100vh - 200px) !important;
}

.glightbox-clean .gslide-description.description-bottom {
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #141a2e 0%, #0b0f1c 100%);
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.glightbox-clean .gslide-description.description-bottom::-webkit-scrollbar { width: 6px; }
.glightbox-clean .gslide-description.description-bottom::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 6px;
}

.glightbox-clean .gdesc-inner { padding: 24px 28px 26px; }

.glightbox-clean .gslide-title {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

.glightbox-clean .gslide-title::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 3px;
  background: var(--grad);
}

/* 본문 — 여기가 잘 안 보이던 부분. 어두운 배경 위에서 확실히 읽히는 밝기로. */
.glightbox-clean .gslide-desc {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: -.01em;
  color: #dbe4f0;
}

.glightbox-clean .gslide-desc a { color: var(--c-cyan); }

/* 닫기 / 이전 / 다음 — 사이트의 원형 버튼 톤에 맞춘다 */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  width: 46px;
  height: 46px;
  opacity: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.06);
}

.glightbox-clean .gclose svg,
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg {
  width: 18px;
  height: 18px;
  fill: #e8eef7;
}

@media (max-width: 767px) {
  .glightbox-clean .gslide-image img { max-height: calc(100vh - 170px) !important; }
  .glightbox-clean .gslide-description.description-bottom { max-height: 150px; }
  .glightbox-clean .gdesc-inner { padding: 18px 20px 20px; }
  .glightbox-clean .gslide-title { font-size: 17px; }
  .glightbox-clean .gslide-desc { font-size: 14px; line-height: 1.8; }
  .glightbox-clean .gclose,
  .glightbox-clean .gnext,
  .glightbox-clean .gprev { width: 40px; height: 40px; }
}
