/* ============ TOKENS ============ */
:root {
  --white: #ffffff;
  --ink: #0e1120;
  --blue: #0a33ff;
  --blue-deep: #0726c9;
  --navy: #0b1026;
  --line: rgba(14, 17, 32, 0.12);

  --font-display: "Anton", sans-serif;
  --font-display-kr: "Black Han Sans", "Pretendard Variable", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, sans-serif;
  --font-hand: "Nanum Pen Script", "Gaegu", cursive;
  --font-mono: "IBM Plex Mono", monospace;

  --space-section: clamp(5rem, 4rem + 6vw, 11rem);
  --pad-x: clamp(1.25rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.72;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }

h1, h2, h3 { letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.blue { color: var(--blue); }
.mono { font-family: var(--font-mono); }

/* ============ SCROLL PROGRESS ============ */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--pad-x);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 1.7rem; width: auto; display: block; }
.nav-menu {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-menu a { position: relative; padding: 0.2rem 0; }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { transform: scaleX(1); }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-deep); transform: translateY(-2px); }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 0.4rem; }
  .nav-menu {
    order: 3;
    width: 100%;
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-size: 0.82rem;
    padding-bottom: 0.2rem;
  }
  .nav-menu::-webkit-scrollbar { display: none; }
  .nav-menu a {
    flex-shrink: 0;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
  }
  .nav-menu a::after { display: none; }
  .nav-menu a:active { background: var(--blue); color: #fff; border-color: var(--blue); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(1.5rem, 4vh, 3rem) var(--pad-x) var(--space-section);
  overflow: hidden;
}
/* blueprint grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 51, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 51, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 35% 15%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 35% 15%, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero > * { position: relative; }
@media (hover: none) {
  .hero-glow { animation: glowDrift 16s ease-in-out infinite alternate; }
  @keyframes glowDrift {
    0% { transform: translate(8vw, -100px); }
    50% { transform: translate(55vw, 60px); }
    100% { transform: translate(20vw, 220px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none !important; }
}
.hero-glow {
  position: absolute !important;
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 51, 255, 0.1), transparent 65%);
  transform: translate(30vw, -140px);
  pointer-events: none;
  will-change: transform;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 17, 32, 0.55);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.6rem, 3.5vw, 3rem);
}
.hero-hand {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.4rem);
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: clamp(1rem, 2vw, 2rem);
  animation: heroRise 0.9s var(--ease-out) both;
}
.hero-hand { min-height: 2.8em; }
.hero-hand .hh2 { display: block; color: var(--blue); }
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: var(--blue);
  margin-left: 3px;
  vertical-align: -0.08em;
  animation: caretBlink 0.8s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-title {
  animation: heroRise 0.9s var(--ease-out) 0.12s both;
}
/* 로고: 폰트 타이포 + 손그림 마크, wipe-reveal 왼→오 (선이 이어지듯) */
.hero-logo-type {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2.4vw, 2rem);
  font-family: 'Black Han Sans', var(--font-display), sans-serif;
  font-weight: 400;
  color: var(--blue);
  font-size: clamp(3.4rem, 14.5vw, 11rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  clip-path: inset(0 100% 0 0);
  animation: wipeIn 1.2s var(--ease-out) 1s forwards;
}
.hero-mark {
  width: clamp(60px, 9.5vw, 142px);
  height: auto;
  transform: translateY(-4%);
}
@keyframes wipeIn { to { clip-path: inset(0 0 0 0); } }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(44px); }
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.hero-copy p {
  max-width: 36rem;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.6;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 1.8rem;
}
.hero-chips li {
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  transition: background 0.25s, color 0.25s;
}
.hero-chips li:hover, .hero-chips li:active { background: var(--blue); color: #fff; }
.reveal .hero-chips li { opacity: 0; transform: translateY(10px); }
.reveal.in .hero-chips li {
  animation: chipIn 0.45s var(--ease-out) both;
  animation-delay: calc(0.25s + var(--i, 0) * 70ms);
}
@keyframes chipIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal .hero-chips li { opacity: 1; transform: none; animation: none; }
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-tags {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 2.2;
}

/* buttons */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 2.4rem;
  border-radius: 4px;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 51, 255, 0.35);
}
.btn-primary:active { transform: translateY(-1px) scale(0.97); }
.btn-primary.big { font-size: 1.1rem; padding: 1.1rem 3rem; }
.btn-line {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 0.7rem 2.2rem;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn-line:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.btn-line.big { font-size: 1.1rem; padding: 1rem 2.8rem; }

/* ============ MARQUEE ×2 ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}
.marquee.alt {
  background: var(--white);
  color: var(--blue);
  border-top: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.marquee.alt .marquee-track {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  animation-direction: reverse;
  animation-duration: 38s;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION COMMON ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.section-head h2 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-desc {
  max-width: 26rem;
  font-size: 0.95rem;
  color: rgba(14, 17, 32, 0.72);
}

/* ============ SERVICES ============ */
.services { padding: var(--space-section) var(--pad-x); }

.service-table { border-top: 2px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: 3.5rem 11rem 1fr 6rem 11rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s var(--ease-out);
}
.service-row:not(.head):hover {
  background: rgba(10, 51, 255, 0.05);
  padding-left: 1.2rem;
}
.service-row.head {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 17, 32, 0.5);
  padding: 0.8rem 0.4rem;
}
.service-row .num { font-size: 0.95rem; font-weight: 600; color: var(--blue); }
.service-row .name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.service-row .name .sub {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(14, 17, 32, 0.55);
  margin-top: 0.25rem;
}
.service-row .desc { font-size: 0.92rem; color: rgba(14, 17, 32, 0.75); }
.service-row .term { font-weight: 600; font-size: 0.9rem; }
.service-row .tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-align: right;
}

@media (max-width: 900px) {
  .service-row { grid-template-columns: 2.5rem 1fr 6rem; }
  .service-row .desc { grid-column: 2 / -1; }
  .service-row .tag { display: none; }
  .service-row.head { display: none; }
}

/* ============ ABOUT ============ */
.about {
  padding: var(--space-section) var(--pad-x);
  border-top: 1px solid var(--line);
}
.about-title {
  font-size: clamp(2.2rem, 1.6rem + 3.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.about-sub {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3rem, 5vw, 5rem);
  align-items: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 3rem + 3vw, 6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.stat > span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(14, 17, 32, 0.65);
}
.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 2px solid var(--ink);
}
.stat.small strong { font-size: clamp(2.2rem, 2rem + 1.4vw, 3.4rem); }

.about-visual { text-align: center; }
.sketch { width: 100%; max-width: 420px; }
.sk-line { stroke: var(--blue); stroke-width: 3; fill: none; stroke-linecap: round; }
.sk-fill { fill: var(--blue); opacity: 0.9; }
.sk-solid { fill: var(--blue); }
.sk-note {
  font-family: var(--font-hand);
  font-size: 22px;
  fill: var(--blue);
  text-anchor: middle;
}
.doodle-caption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--blue);
  margin-top: 0.5rem;
}
.about-copy p { font-size: 0.95rem; color: rgba(14, 17, 32, 0.8); margin-bottom: 1.2rem; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

/* ============ PROCESS ============ */
.process {
  padding: var(--space-section) var(--pad-x);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem 0.4rem;
  flex-wrap: wrap;
}

/* elastic pop entrance (staggered) */
.process-steps .reveal { transition: none; }
.process-steps .pstep.in {
  animation: popIn 0.75s var(--ease-pop) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes popIn {
  0% { opacity: 0; transform: translateY(36px) scale(0.5); }
  70% { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
/* arrows draw themselves */
.step-arrow .draw {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
}
.step-arrow.in { opacity: 1; transform: none; }
.step-arrow.in .draw {
  animation: drawline 0.7s ease forwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

.pstep {
  width: clamp(120px, 10vw, 144px);
  text-align: center;
}
.pchar {
  width: 100%;
  height: auto;
  max-width: 164px;
  aspect-ratio: 1;
  object-fit: cover;
  mix-blend-mode: multiply; /* 영상 흰 배경을 섹션 배경에 심리스 합성 */
  pointer-events: none;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s var(--ease-out);
}
.pstep:hover .pchar { transform: rotate(-4deg) scale(1.06); }
/* 모바일·모션 최소화: 영상 대신 경량 스틸 */
.pchar-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  video.pchar { display: none; }
  .pchar-still { display: block; }
}

/* character parts */
.ch-body { fill: #fff; stroke: var(--blue); stroke-width: 5; stroke-linejoin: round; }
.ch-line { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ch-line.thin { stroke-width: 3.2; }
.ch-fill { fill: var(--blue); stroke: none; }
.ch-fillsolid { fill: var(--blue); stroke: none; }
.ch-blush { fill: rgba(10, 51, 255, 0.16); }
.ch-bubble { fill: #fff; stroke: var(--blue); stroke-width: 3.2; stroke-linejoin: round; }
.ch-soft { fill: rgba(10, 51, 255, 0.12); stroke: var(--blue); stroke-width: 3.2; }

/* micro animations — each character "works" */
.pdot { animation: blink 1.3s infinite; }
.pdot.p1 { animation-delay: 0s; }
.pdot.p2 { animation-delay: 0.18s; }
.pdot.p3 { animation-delay: 0.36s; }
@keyframes blink {
  0%, 55%, 100% { opacity: 0.25; }
  25% { opacity: 1; }
}
.wline { stroke-dasharray: 16; animation: write 2.4s infinite; }
.wline.w1 { animation-delay: 0s; }
.wline.w2 { animation-delay: 0.35s; }
.wline.w3 { animation-delay: 0.7s; }
@keyframes write {
  0% { stroke-dashoffset: 16; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.bulb {
  transform-box: fill-box;
  transform-origin: center;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}
.check { stroke-dasharray: 26; animation: drawcheck 2.6s infinite; }
@keyframes drawcheck {
  0% { stroke-dashoffset: 26; }
  40% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 1.8s ease-in-out infinite;
}
.spark.s2 { animation-delay: 0.5s; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.5); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 1; }
}
.refresh {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.zipl { animation: zip 1.4s infinite; transform-box: fill-box; }
.zipl.z1 { animation-delay: 0s; }
.zipl.z2 { animation-delay: 0.15s; }
.zipl.z3 { animation-delay: 0.3s; }
@keyframes zip {
  0% { opacity: 0; transform: translateX(-3px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateX(3px); }
}

.pstep h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  margin: 0.75rem 0 0.4rem;
}
.pstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.pstep p { font-size: 0.78rem; color: rgba(14, 17, 32, 0.68); line-height: 1.55; }
.step-arrow {
  width: clamp(20px, 2.2vw, 38px);
  flex-shrink: 0;
  margin-top: 3.2rem;
}

@media (max-width: 1240px) {
  .step-arrow { display: none; }
}
@media (max-width: 900px) {
  .process-steps { gap: 2rem 1.2rem; }
  .pstep { width: 46%; max-width: 190px; }
}
.swipe-hint { display: none; }
@media (max-width: 700px) {
  .process-steps {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0 0.4rem;
    padding: 0.5rem 6vw 1rem;
  }
  .process-steps::-webkit-scrollbar { display: none; }
  .pstep {
    flex: 0 0 64vw;
    width: auto;
    max-width: none;
    scroll-snap-align: center;
  }
  .pstep .pchar { max-width: 200px; }
  .step-arrow { display: block; width: 30px; margin-top: 5.4rem; }
  .swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(14, 17, 32, 0.45);
    margin-top: 0.2rem;
  }
}

/* ============ WORK ============ */
.work { padding: var(--space-section) var(--pad-x); }

.work-item {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
  padding: clamp(1.8rem, 3vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.work-item:last-of-type { border-bottom: 1px solid var(--line); }

.work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7.5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.work-visual::before {
  content: attr(data-idx);
  position: absolute;
  top: 0.9rem;
  left: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
}
/* shine sweep on hover */
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.work-visual:hover::after { transform: translateX(130%); }
.work-visual:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11, 16, 38, 0.28);
}
.wv-1 { background: linear-gradient(120deg, #0b1026 0%, #16204d 55%, #0a33ff 130%); }
.wv-2 { background: linear-gradient(135deg, #101322 0%, #2a1a4d 60%, #6a3df0 140%); }
.wv-3 { background: linear-gradient(115deg, #071a12 0%, #0e3b2a 60%, #17b978 150%); }
.work-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease-out);
}
.work-visual:hover .work-shot { transform: scale(1.045); }
.work-logo {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.5);
  padding: 0.2em 0.6em;
}
.work-info h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  line-height: 1.2;
}
.work-sub { font-weight: 600; margin: 0.35rem 0 1.4rem; }
.work-tags {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(14, 17, 32, 0.65);
  line-height: 1.9;
  margin-bottom: 1.6rem;
}
.btn-explore {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.5rem;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.btn-explore:hover { background: var(--blue-deep); transform: translateX(4px); }

/* portfolio slideshow */
.work-more { margin-top: clamp(3rem, 5vw, 5rem); }
.work-more-label {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem);
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.work-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.work-marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: scroll 45s linear infinite;
}
.work-marquee:hover .work-marquee-track,
.work-marquee:active .work-marquee-track { animation-play-state: paused; }
.pcard {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: clamp(200px, 22vw, 260px);
  flex-shrink: 0;
}
.pcard-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--ease-out);
}
.pcard:hover .pcard-thumb { transform: translateY(-5px); }
.pc1 { background: linear-gradient(125deg, #0a33ff, #0b1026); }
.pc2 { background: linear-gradient(125deg, #0e7a6a, #06231f); }
.pc3 { background: linear-gradient(125deg, #b8541c, #2b1206); }
.pc4 { background: linear-gradient(125deg, #6a3df0, #170b38); }
.pc5 { background: linear-gradient(125deg, #d81b60, #33061a); }
.pc6 { background: linear-gradient(125deg, #37474f, #0c1114); }
.pc7 { background: linear-gradient(125deg, #f4a300, #4a3100); }
.pc8 { background: linear-gradient(125deg, #8d1c1c, #260707); }
.pcard-meta {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}
.pcard-meta em {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 500;
  color: rgba(14, 17, 32, 0.5);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; }
}

/* ============ CONTACT ============ */
.contact {
  padding: var(--space-section) var(--pad-x) clamp(4rem, 8vw, 8rem);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-mascot {
  display: block;
  width: clamp(96px, 12vw, 148px);
  height: auto;
  margin: 0 auto 0.8rem;
  mix-blend-mode: multiply;
  cursor: pointer;
}
@keyframes wiggle {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-7deg) scale(1.06); }
  55% { transform: rotate(6deg) scale(1.05); }
  80% { transform: rotate(-3deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}
.wiggle { animation: wiggle 0.55s var(--ease-out) 1; }
@media (prefers-reduced-motion: reduce) {
  .wiggle { animation: none; }
}
.contact-eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem);
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 13rem);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
/* Right now!! → hover 시 화살표로 변신 */
.rn { position: relative; display: inline-block; }
.rn .t1 {
  display: inline-block;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.rn .t2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.rn:hover .t1,
.rn:focus-visible .t1 { opacity: 0; transform: translateX(70px); }
.rn:hover .t2,
.rn:focus-visible .t2 { opacity: 1; transform: translateX(0); }
.contact-sub {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--blue);
}
/* 문의 폼 */
.contact-form {
  max-width: 560px;
  margin: clamp(2rem, 4vw, 3.2rem) auto 0;
  display: grid;
  gap: 0.9rem;
  text-align: left;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 560px) {
  .cf-row { grid-template-columns: 1fr; }
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 51, 255, 0.12);
}
.contact-form button { justify-self: center; min-width: 240px; cursor: pointer; border: none; }
.contact-form button[disabled] { opacity: 0.55; cursor: wait; }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cf-status { text-align: center; font-size: 0.9rem; font-weight: 700; min-height: 1.2em; }
.cf-status.ok { color: var(--blue); }
.cf-status.err { color: #d43535; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.contact-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(14, 17, 32, 0.55);
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(14, 17, 32, 0.6);
}
.footer nav { display: flex; gap: 1.5rem; font-weight: 600; }
.footer nav a:hover { color: var(--blue); }
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.footer-mascot { mix-blend-mode: multiply; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track,
  .work-marquee-track { animation: none !important; }
  .hero-hand, .hero-title { animation: none; }
  .hero-logo-type { clip-path: none; animation: none; }
  .process-steps .pstep.in { animation: none; opacity: 1; }
  .step-arrow .draw { stroke-dashoffset: 0; animation: none !important; }
  .pdot, .wline, .bulb, .check, .spark, .refresh, .zipl { animation: none !important; }
}


/* ============ REVIEWS (메인) ============ */
.reviews { padding: var(--space-section) var(--pad-x); background: #f6f7fc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; max-width: 1080px; margin: 0 auto; }
.rv-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 1.4rem 1.4rem 1.2rem; transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s; }
.rv-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 36px rgba(10, 51, 255, 0.1); }
.rv-stars { color: var(--blue); letter-spacing: 0.15em; font-size: 0.85rem; margin-bottom: 0.6rem; }
.rv-quote { font-size: 0.93rem; line-height: 1.75; margin-bottom: 0.9rem; }
.rv-who { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.rv-who span { font-size: 0.8rem; font-weight: 700; color: rgba(14, 17, 32, 0.6); }
.rv-tag { flex-shrink: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; color: var(--blue); background: rgba(10, 51, 255, 0.08); border-radius: 999px; padding: 0.2rem 0.7rem; }
.rv-more { text-align: center; margin-top: 1.6rem; }
.svc-link { display: inline-block; margin-top: 0.35rem; margin-right: 0.25rem; font-size: 0.78rem; font-weight: 800; color: var(--blue); border: 1.5px solid rgba(10, 51, 255, 0.35); border-radius: 999px; padding: 0.12rem 0.65rem; transition: background 0.2s, color 0.2s; }
.svc-link:hover, .svc-link:active { background: var(--blue); color: #fff; }


/* ============ 실시간 상담 위젯 ============ */
.chatw { position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: clamp(0.9rem, 3vw, 1.6rem); z-index: 999; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.chatw-btn { display: inline-flex; align-items: center; gap: 0.45rem; border: none; cursor: pointer; background: var(--blue); color: #fff; font: inherit; font-weight: 800; font-size: 0.92rem; padding: 0.8rem 1.25rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(10, 51, 255, 0.35); transition: transform 0.25s var(--ease-out), background 0.25s; }
.chatw-btn svg { width: 22px; height: 22px; }
.chatw-btn:hover { background: var(--blue-deep); transform: translateY(-3px); }
.chatw-btn:active { transform: scale(0.96); }
.chatw-panel { width: min(330px, calc(100vw - 2rem)); background: #fff; border: 1.5px solid var(--line); border-radius: 20px; box-shadow: 0 28px 60px rgba(11, 16, 38, 0.22); overflow: hidden; }
.chatw-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1rem; background: var(--blue); color: #fff; }
.chatw-head img { width: 30px; height: 30px; background: #fff; border-radius: 50%; padding: 2px; }
.chatw-head b { font-size: 0.92rem; flex: 1; }
.chatw-x { border: none; background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.chatw-body { max-height: 260px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; background: #f6f7fc; }
.chatw-bub { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.86rem; line-height: 1.55; }
.chatw-bub.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chatw-bub.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chatw-form { padding: 0.7rem; display: grid; gap: 0.5rem; border-top: 1px solid var(--line); background: #fff; }
.chatw-form input, .chatw-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; font: inherit; font-size: 0.85rem; resize: none; }
.chatw-form input:focus, .chatw-form textarea:focus { outline: none; border-color: var(--blue); }
.chatw-row { display: flex; gap: 0.5rem; align-items: stretch; }
.chatw-row button { flex-shrink: 0; width: 44px; border: none; border-radius: 10px; background: var(--blue); color: #fff; font-size: 1rem; cursor: pointer; }
.chatw-row button:hover { background: var(--blue-deep); }
.chatw-row button[disabled] { opacity: 0.5; }
@media (max-width: 700px) {
  .chatw-btn span { display: none; }
  .chatw-btn { padding: 0.85rem; }
}
