/* ============================================================
   카이앤컴퍼니 (KAI COMPANY) — 전체 스타일
   STAYWEB 톤 이식: 화이트/니어블랙 모노크롬 + 단일 오렌지 포인트
   디자인 토큰은 CSS 변수로 관리
   ============================================================ */

/* ---------- 디자인 토큰 (CSS 변수) ---------- */
:root {
  /* 컬러: 화이트 베이스 + 니어블랙 + 단일 오렌지 포인트 (stayweb) */
  --color-bg: #0a0a0a;
  --color-bg-soft: #171717;
  --color-surface: #ffffff;
  --color-surface-alt: #fafafa;
  --color-text: #0a0a0a;
  --color-text-muted: #6b6b73;
  --color-text-invert: #fafafa;
  --color-text-invert-muted: #a1a1aa;
  --color-border: #e6e6e6;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* 포인트: 비비드 오렌지 (stayweb #ff5f1f) — 단일 액센트 */
  --brand: #ff5f1f;
  --brand-dark: #e0521a;
  --brand-soft: #fff3ec;
  --kakao: #fee500;
  /* 레거시 별칭 (기존 마크업 호환) */
  --brand-1: #ff5f1f;
  --brand-2: #ff5f1f;
  --brand-3: #ff5f1f;
  --gradient-brand: linear-gradient(120deg, #ff5f1f 0%, #ff8a3d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 95, 31, 0.10), rgba(255, 138, 61, 0.10));

  /* 타이포 — Pretendard Variable */
  --font-base: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --fs-hero: clamp(2.25rem, 6.5vw, 5rem);
  --fs-display: clamp(2rem, 4.8vw, 3.8rem);
  --fs-h2: clamp(1.8rem, 4vw, 3rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.45rem);
  --fs-lead: clamp(1.02rem, 1.6vw, 1.25rem);

  /* 간격 / 라운드 / 그림자 */
  --space-section: clamp(4.5rem, 9vw, 9rem);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 16px 40px rgba(10, 10, 10, 0.10);
  --shadow-glow: 0 18px 48px rgba(255, 95, 31, 0.28);

  --header-h: 76px;
  --maxw: 1200px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 리셋 / 기본 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 레이아웃 유틸 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space-section); position: relative; }

.section--dark {
  background: var(--color-bg);
  color: var(--color-text-invert);
}

.section--alt { background: var(--color-surface-alt); }

.section__head { max-width: 820px; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }

/* eyebrow = stayweb 브래킷 섹션 라벨  [ 01 / THE PROBLEM ] */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.2rem;
  font-feature-settings: "tnum";
}
.section--dark .eyebrow { color: var(--brand); }

.section__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section__lead {
  margin-top: 1.1rem;
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  word-break: keep-all;
  text-wrap: pretty;
}

.section--dark .section__lead { color: var(--color-text-invert-muted); }

/* text-gradient = stayweb 단일 오렌지 강조 */
.text-gradient {
  color: var(--brand);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-3px); box-shadow: 0 24px 60px rgba(255, 95, 31, 0.42); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-3px); }

.btn--outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn--outline:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

/* ============================================================
   헤더 / 네비게이션
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.brand__name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: 1.05rem;
}

/* 데스크톱 네비 */
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav__link {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transition: color var(--transition);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.32rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
/* stayweb LET'S TALK — 아웃라인 pill (투명 + 흰 border/50, hover opacity) */
.nav__link--cta {
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  margin-left: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: transparent; color: #ffffff; opacity: 0.6; transform: none; }

/* 햄버거 버튼 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  border-radius: 12px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  margin-inline: auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + clamp(1rem, 3vw, 2rem)) clamp(1.5rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--color-bg);
  color: var(--color-text-invert);
  overflow: hidden;
  border-bottom: 1px solid #171717;
}

/* 은은한 오렌지 글로우 배경 (stayweb 미니멀) */
.hero__bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(40% 40% at 78% 18%, rgba(255, 95, 31, 0.30), transparent 62%),
    radial-gradient(46% 46% at 16% 88%, rgba(255, 95, 31, 0.14), transparent 60%);
  filter: blur(18px);
  animation: heroFloat 18s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -3%) scale(1.06); }
  100% { transform: translate(-2%, 2%) scale(1.03); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  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: 60px 60px;
}

/* three.js 파티클 캔버스 (콘텐츠 뒤, 인터랙션 비방해) */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.hero__topline { display: flex; justify-content: space-between; align-items: center; }

/* 브래킷 라벨 (stayweb [ ... EXPERIMENTAL ]) */
.hero__badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0;
  transform: translateY(16px);
}
.hero.is-in .hero__badge { animation: lineUp 0.8s ease forwards; animation-delay: 0.05s; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 31, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 95, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 31, 0); }
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;          /* stayweb font-bold */
  letter-spacing: -0.04em;
  line-height: 1.15;          /* stayweb leading-[1.15] */
  text-wrap: balance;         /* stayweb text-balance */
}
.hero__title .line { display: block; overflow: hidden; }

/* 줄별 페이드업 (main.js가 .hero.is-in 부여) */
.reveal-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}
.hero.is-in .reveal-line {
  animation: lineUp 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes lineUp {
  to { opacity: 1; transform: translateY(0); }
}

/* 중앙 헤드라인 영역 */
.hero__main { display: flex; flex-direction: column; justify-content: center; flex: 1; }

/* 하단 좌우 row: 좌 서브카피 / 우 CTA */
.hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.6rem, 4vw, 2.4rem);
  opacity: 0;
  transform: translateY(20px);
}
.hero.is-in .hero__bottom { animation: lineUp 0.9s ease forwards; animation-delay: 0.85s; }
@media (min-width: 1024px) {
  .hero__bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.hero__lead-wrap { max-width: 38rem; }
.hero__sub {
  margin: 0;
  font-size: var(--fs-lead);
  color: var(--color-text-invert-muted);
  word-break: keep-all;
  line-height: 1.6;
}
.hero__note {
  margin: 1.1rem 0 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
  word-break: keep-all;
  line-height: 1.5;
}

/* 히어로 CTA — pill 2개 (흰/다크 + 화살표) */
.hero__cta { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; }
@media (min-width: 600px) { .hero__cta { width: auto; min-width: 320px; } }
.hero-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.hero-btn__arrow { font-size: 1.1rem; transition: transform var(--transition); }
.hero-btn:hover .hero-btn__arrow { transform: translateX(4px); }
.hero-btn--light { background: #ffffff; color: #0a0a0a; }
.hero-btn--light:hover { transform: translateY(-2px); background: #efefef; }
.hero-btn--dark { background: #171717; color: #ffffff; border-color: #2a2a2a; }
.hero-btn--dark:hover { transform: translateY(-2px); border-color: #555555; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero__scroll .mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 7px;
  background: var(--brand);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   스크롤 리빌 공통 (IntersectionObserver)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__body p {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  margin: 0 0 1.2rem;
  word-break: keep-all;
  text-wrap: pretty;
  line-height: 1.7;
}
.about__catch {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  word-break: keep-all;
  text-wrap: balance;
  line-height: 1.4;
}
.about__pillars {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.pillar {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
}
.pillar:hover { border-color: var(--brand); transform: translateY(-3px); }
.pillar__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  font-size: 1.3rem;
}
.pillar > div { min-width: 0; }
.pillar h4 { font-size: 1rem; margin-bottom: 0.2rem; word-break: keep-all; }
.pillar p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; word-break: keep-all; text-wrap: pretty; line-height: 1.5; }

/* ============================================================
   STATS (카운트업)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.stat {
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  background: rgba(255, 255, 255, 0.03);
  contain: layout style;
}
.stat__num {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__num .suffix {
  font-size: 0.5em;
  margin-left: 0.15em;
  color: var(--brand);
  white-space: nowrap;
  word-break: keep-all;
}
.stat__label { margin-top: 0.7rem; font-size: 0.95rem; color: var(--color-text-invert-muted); }

/* ============================================================
   STRENGTH
   ============================================================ */
.strength__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.strength__visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--brand);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.strength__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 82% 18%, rgba(255, 255, 255, 0.22), transparent 60%);
}
.strength__visual h3 { position: relative; font-size: var(--fs-display); font-weight: 800; word-break: keep-all; line-height: 1.18; }
.strength__visual p { position: relative; margin-top: 1rem; opacity: 0.94; word-break: keep-all; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
  grid-template-columns: 1fr;
}
.service-card {
  position: relative;
  padding: clamp(1.7rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card__no {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.service-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  margin: 0.8rem 0 1.1rem;
  box-shadow: var(--shadow-sm);
}
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.service-card p { color: var(--color-text-muted); font-size: 0.98rem; margin: 0; }

/* ============================================================
   WORK (포트폴리오)
   ============================================================ */
.work__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* 필터 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* 포트폴리오 그리드 — 컴팩트 4-카드 */
.work-grid {
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.1rem);
  grid-template-columns: 1fr;
}
@media (min-width: 540px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.35s cubic-bezier(.22,.61,.36,1),
              opacity 0.4s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 10, 10, .16);
}
.work-card.is-hidden { display: none; }

.work-card__media { position: absolute; inset: 0; }
.work-card__media img,
.work-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.work-card:hover .work-card__media img,
.work-card:hover .work-card__media video { transform: scale(1.06); }

.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem 1rem 1rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0) 80%);
  color: #fff;
}
.work-card__cat {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  margin-bottom: 0.4rem;
}
.work-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.work-card__desc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.work-card__play {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
}
.work-card:hover .work-card__play { opacity: 1; transform: scale(1); }

@media (max-width: 540px) {
  .work-card { aspect-ratio: 5 / 4; }
  .work-card__overlay { padding: 0.85rem 0.9rem 0.95rem; }
  .work-card__title { font-size: 1rem; }
}

/* ============================================================
   포트폴리오 모달
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 90vh;
  background: #111111;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal__media {
  background: #000;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}
.modal__media video,
.modal__media img { width: 100%; height: 100%; object-fit: contain; }
.modal__info { padding: 1.3rem 1.6rem 1.6rem; color: #fff; }
.modal__cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; color: var(--brand); text-transform: uppercase; }
.modal__title { font-size: 1.5rem; font-weight: 800; margin: 0.3rem 0; }
.modal__desc { color: var(--color-text-invert-muted); font-size: 0.96rem; }
.modal__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--transition), transform var(--transition);
}
.modal__close:hover { background: var(--brand); transform: rotate(90deg); }

/* ============================================================
   OUTRO (stayweb 시그니처: 대형 선언문 + 세로 스택 텍스트)
   ============================================================ */
.outro {
  background: var(--color-bg);
  color: var(--color-text-invert);
  padding-block: clamp(5rem, 12vw, 10rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.outro__statement {
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  word-break: keep-all;
}
.outro__statement em { font-style: normal; color: var(--brand); }
.outro__stack {
  margin-top: clamp(2.4rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.05em 0;
  max-width: 880px;
  margin-inline: auto;
  font-size: clamp(0.95rem, 2.4vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text-invert-muted);
  line-height: 1.9;
}
/* 문장 사이 강제 줄바꿈 (flex 컨테이너에서 줄 분리) */
.outro__stack .outro__brk { flex-basis: 100%; width: 100%; height: 0; }
.outro__stack .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: chUp 0.5s ease forwards;
  animation-play-state: paused;
}
.outro.is-visible .outro__stack .ch { animation-play-state: running; }
@keyframes chUp { to { opacity: 1; transform: none; } }

/* ============================================================
   플로팅 CTA (stayweb LET'S TALK / 카카오)
   ============================================================ */
.float-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(255, 95, 31, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.float-cta:hover { transform: translateY(-3px) scale(1.03); background: var(--brand-dark); box-shadow: 0 18px 40px rgba(255, 95, 31, 0.5); }
.float-cta__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }

/* ============================================================
   커스텀 커서 + 필름 그레인 (stayweb 동일)
   ============================================================ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: normal;       /* difference 합성 시 사라지는 문제 → normal + 외곽선으로 항상 보이게 */
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.35), 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease,
              width 0.25s cubic-bezier(.22,.61,.36,1),
              height 0.25s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover { width: 56px; height: 56px; }   /* 인터랙티브 요소 위 확대 */
.cursor-dot.is-hover-sm { width: 18px; height: 18px; } /* 메뉴바(헤더) 위 — 작게 */
.cursor-dot.is-down  { width: 22px; height: 22px; }    /* 클릭 시 축소 */

/* JS 동작(=커서 활성) + 정밀 포인터에서만 네이티브 커서 숨김 */
@media (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * { cursor: none !important; }
}

/* 필름 그레인 오버레이 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: difference;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0%   { background-position: 0 0; }
  100% { background-position: 18px -22px; }
}

/* ============================================================
   stayweb 인터랙션 액션 (js/actions.js)
   ============================================================ */
/* 1) 텍스트 마스크 슬라이드업 리빌 */
.sw-rise { display: block; overflow: hidden; }
.sw-rise__inner {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  padding-bottom: 0.12em;   /* descender 클리핑 방지 */
  margin-bottom: -0.12em;
}
.sw-rise.is-in .sw-rise__inner { transform: none; }
.section__title.sw-rise .sw-rise__inner { transition-delay: 0.07s; }
.section__lead.sw-rise .sw-rise__inner { transition-delay: 0.14s; }
@media (prefers-reduced-motion: reduce) {
  .sw-rise__inner { transform: none !important; transition: none; }
}

/* 2) 카드 마우스 스포트라이트 + 3D 틸트 */
.sw-spot { position: relative; transform-style: preserve-3d; }
.sw-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px circle at var(--mx, -200px) var(--my, -200px), rgba(255, 255, 255, 0.09), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sw-spot:hover::after { opacity: 1; }
.sw-spot > * { position: relative; z-index: 1; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.contact__aside p { color: var(--color-text-invert-muted); margin: 1rem 0 1.6rem; }
.contact__channels { display: grid; gap: 0.9rem; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition);
}
.contact-channel:hover { border-color: var(--brand); }
.contact-channel .ic { font-size: 1.3rem; }
.contact-channel b { display: block; font-size: 0.8rem; color: var(--color-text-invert-muted); font-weight: 600; }
.contact-channel a, .contact-channel span { color: #fff; font-weight: 700; }

/* 폼 */
.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--color-text); }
.field label .req { color: var(--brand); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-alt);
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 95, 31, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field__error {
  font-size: 0.8rem;
  color: var(--brand);
  min-height: 1em;
  font-weight: 600;
}
.field.invalid input,
.field.invalid textarea { border-color: var(--brand); }

.form-note { font-size: 0.82rem; color: var(--color-text-muted); }
.form-status {
  font-weight: 700;
  color: #1a9e54;
  padding: 0.6rem 0.2rem;
  min-height: 1.4em;
}

/* ============================================================
   푸터
   ============================================================ */
.footer {
  background: #050505;
  color: var(--color-text-invert-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--color-border-dark);
}
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__brand img { width: 44px; height: 44px; object-fit: contain; }
.footer__brand strong { color: #fff; font-size: 1.1rem; display: block; }
.footer__brand span { font-size: 0.85rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer__nav a { font-size: 0.92rem; transition: color var(--transition); }
.footer__nav a:hover { color: var(--brand); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
}
.footer__addr {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  word-break: keep-all;
}
.footer__addr a { color: inherit; transition: color var(--transition); }
.footer__addr a:hover { color: var(--brand); }
.footer__sep { color: rgba(255,255,255,0.25); margin: 0 0.15rem; }

@media (max-width: 640px) {
  .footer { padding-block: 2.2rem 1.6rem; }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding-bottom: 1.4rem;
  }
  .footer__brand { gap: 0.7rem; }
  .footer__brand img { width: 38px; height: 38px; }
  .footer__brand strong { font-size: 1rem; }
  .footer__brand span {
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: keep-all;
    display: block;
  }
  .footer__nav {
    gap: 0.5rem 1.1rem;
    font-size: 0.86rem;
    width: 100%;
  }
  .footer__nav a { font-size: 0.86rem; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    padding-top: 1rem;
  }
  .footer__bottom a { word-break: break-all; }
  .footer__addr {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    line-height: 1.5;
  }
  .footer__sep { display: none; }
}

/* ============================================================
   WORK 페이지 전용 (work.html)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--color-bg);
  color: var(--color-text-invert);
  position: relative;
  overflow: hidden;
}
.page-hero .hero__bg { animation-duration: 22s; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.03em; margin-top: 0.6rem; }
.page-hero p { color: var(--color-text-invert-muted); font-size: var(--fs-lead); margin-top: 0.8rem; max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-invert-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.2rem 1.6rem;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-dark);
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: 0.4rem 0 0; text-align: center; }
}

@media (min-width: 720px) {
  .about__layout { grid-template-columns: 1.3fr 1fr; }
  .about__pillars { grid-template-columns: 1fr 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__layout { grid-template-columns: 0.9fr 1.1fr; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .strength__layout { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__top { flex-wrap: nowrap; }
}

/* 접근성: 모션 줄이기 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero__sub, .hero__actions, .reveal-line, .outro__stack .ch { opacity: 1 !important; transform: none !important; }
}

/* 화면에서만 숨김 (스크린리더 노출) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
