/* ============================================
   YLZ MEDIA — Design System
   Dark / Minimalist / Ultramarine
============================================ */

/* ── Variables ── */
:root {
  --black: #ffffff;
  --black-2: #f9f9f9;
  --black-3: #f0f0f0;
  --black-4: #e5e5e5;
  --white: #080808;
  --white-60: rgba(8, 8, 8, 0.6);
  --white-30: rgba(8, 8, 8, 0.3);
  --white-10: rgba(8, 8, 8, 0.08);
  --ultramarine: #3B4EFF;
  --ultra-light: #6070FF;
  --ultra-dark: #2234CC;
  --ultra-glow: rgba(59, 78, 255, 0.25);
  --ultra-10: rgba(59, 78, 255, 0.1);

  --font-en: 'DM Sans', sans-serif;
  --font-ko: 'Noto Sans KR', sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ko);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: none;
  border: none;
  background: none;
}

input,
textarea {
  font-family: var(--font-ko);
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--ultramarine);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: normal;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--white-30);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

body.cursor-hover .cursor {
  width: 0;
  height: 0;
}

body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  border-color: var(--ultramarine);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 140px 0;
}

/* ── Typography ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ultramarine);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ultramarine);
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 64px;
}

.section-title em {
  font-style: italic;
  color: var(--ultramarine);
}

/* ── Reveal Animation ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
}

.nav-inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  /* 로고가 흰색일 경우를 위한 필터 — 이미 흰색이면 제거 가능 */
  filter: brightness(0);
}

.footer-logo-img {
  height: 24px;
}

.logo-dot {
  color: var(--ultramarine);
  font-size: 28px;
  line-height: 1;
  margin-top: -4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--white-60);
  position: relative;
  transition: color 0.3s;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ultramarine);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ultramarine);
  border: 1px solid var(--ultramarine);
  padding: 8px 20px;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--ultramarine);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.toggle-line {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open .toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.open .toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--ultra-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--white-60);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ultramarine);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
}

.hero-line {
  display: flex;
  align-items: baseline;
  gap: 20px;
  overflow: hidden;
}

.word {
  font-family: var(--font-en);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
}

.word.accent {
  color: var(--ultramarine);
}

.word.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.5);
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(8, 8, 8, 0.85);
  font-weight: 400;
  max-width: 460px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ko);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: var(--ultramarine);
  padding: 16px 32px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn-primary:hover {
  background: var(--ultra-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--ultra-glow);
}

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  left: 48px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: var(--white-10);
  position: relative;
  overflow: hidden;
}

.scroll-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--ultramarine);
  animation: scrollDown 1.8s infinite var(--ease);
}

@keyframes scrollDown {
  0% {
    top: -8px;
    opacity: 1;
  }

  80% {
    top: 56px;
    opacity: 0.3;
  }

  100% {
    top: -8px;
    opacity: 0;
  }
}

.scroll-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  border-top: 1px solid var(--white-10);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
}

.marquee-track .sep {
  color: var(--ultramarine);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── About ── */
.about {
  background: var(--black);
}

.section-header {
  margin-bottom: 80px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-label {
  justify-content: center;
}

.section-header.center .section-label::before {
  display: none;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Quote block */
.about-quote {
  margin-bottom: 40px;
}

.quote-icon {
  display: block;
  font-family: var(--font-en);
  font-size: 64px;
  line-height: 1;
  color: var(--ultramarine);
  margin-bottom: 16px;
  font-weight: 700;
}

.about-lead {
  font-size: 15px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-question {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

.about-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--white-60);
  font-weight: 300;
}

.about-desc strong {
  color: var(--white);
  font-weight: 600;
}

/* Big text */
.about-big-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.big-text-line {
  font-family: var(--font-en);
  font-size: clamp(52px, 6.5vw, 100px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.big-text-line.white {
  color: var(--white);
}

.big-text-line.blue {
  color: var(--ultramarine);
}

/* Platform Marquee */
.about-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.platform-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--white-10);
  border-radius: 12px;
  padding: 8px 0;
  background: var(--black-3);
}

.platform-marquee-row {
  overflow: hidden;
  padding: 12px 0;
  border-bottom: 1px solid var(--white-10);
}

.platform-marquee-row:last-child {
  border-bottom: none;
}

.platform-marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: platformForward 20s linear infinite;
}

.platform-marquee-track.reverse {
  animation: platformReverse 24s linear infinite;
}

.platform-marquee-track.slow {
  animation: platformForward 32s linear infinite;
}

.platform-marquee-track span {
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.3s;
}

.platform-marquee-track span:not(.psep):hover {
  color: var(--ultramarine);
}

.platform-marquee-track .psep {
  color: var(--ultramarine);
  font-size: 18px;
  font-weight: 400;
}

@keyframes platformForward {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes platformReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ── Problem ── */
.problem {
  background: var(--black-2);
}

.problem-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-stat {
  margin-bottom: 32px;
}

.stat-number {
  font-family: var(--font-en);
  font-size: clamp(96px, 12vw, 160px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

.stat-pct {
  font-size: clamp(56px, 7vw, 96px);
  color: var(--ultramarine);
}

.problem-stat-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--white-60);
  font-weight: 300;
}

.problem-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-card {
  border: 1px solid var(--ultramarine);
  border-radius: var(--radius);
  background: var(--ultra-10);
  padding: 24px 28px;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.problem-card:hover {
  background: rgba(59, 78, 255, 0.18);
  transform: translateX(6px);
}

.problem-card-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.problem-card-inner strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.problem-card-inner span {
  font-size: 13px;
  color: var(--white-60);
  font-weight: 300;
}

.accent-text {
  color: var(--ultramarine);
  font-weight: 700;
}

/* ── Solution ── */
.solution {
  background: var(--black-2);
}

.solution-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.solution-step {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--white-10);
  position: relative;
  transition: background 0.4s;
}

.solution-step:first-child {
  border-top: 1px solid var(--white-10);
}

.solution-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ultra-10);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  border-radius: var(--radius);
}

.solution-step:hover::before {
  opacity: 1;
}

.step-number {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ultramarine);
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.solution-step:hover .step-content h3 {
  color: var(--ultra-light);
}

.step-content p {
  font-size: 14px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  justify-content: center;
  color: var(--white-30);
  transition: color 0.3s, transform 0.3s;
}

.step-arrow.last {
  opacity: 0;
}

.solution-step:hover .step-arrow {
  color: var(--ultramarine);
  transform: translateX(4px);
}

/* ── Performance ── */
.performance {
  background: var(--black-3);
  position: relative;
  overflow: hidden;
}

.performance::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 78, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--white-10);
  border: 1px solid var(--white-10);
}

.perf-item {
  background: var(--black-3);
  padding: 56px 48px;
  position: relative;
  transition: background 0.3s;
}

.perf-item:hover {
  background: var(--black-4);
}

.perf-number {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 12px;
}

.perf-prefix {
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  color: var(--ultramarine);
  line-height: 1;
  padding-bottom: 6px;
}

.count {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.perf-unit {
  font-family: var(--font-en);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--ultramarine);
  line-height: 1;
  padding-bottom: 6px;
}

.perf-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.perf-desc {
  font-size: 13px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.8;
}

/* ── Services ── */
.services {
  background: var(--black);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--white-10);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.service-item:first-child {
  border-top: 1px solid var(--white-10);
}

.service-item::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ultra-10));
  transition: left 0.5s var(--ease);
}

.service-item:hover::before {
  left: 0;
}

.service-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--white-30);
  transition: color 0.3s;
}

.service-item:hover .service-num {
  color: var(--ultramarine);
}

.service-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.service-item:hover .service-info h3 {
  color: var(--ultra-light);
}

.service-info p {
  font-size: 13px;
  color: var(--white-60);
  font-weight: 300;
  line-height: 1.7;
}

.service-subtags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.service-subtags span {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ultramarine);
  border: 1px solid var(--ultramarine);
  padding: 4px 12px;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
}

.service-item:hover .service-subtags span {
  background: var(--ultramarine);
  color: var(--white);
}

.service-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  border: 1px solid var(--white-10);
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.service-item:hover .service-tag {
  color: var(--ultramarine);
  border-color: var(--ultramarine);
}

/* ── Portfolio ── */
.portfolio {
  background: var(--black-2);
}

/* 포트폴리오 섹션 수정 - 행별 분리 */
.portfolio-rows {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.portfolio-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.category-title {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
}

.category-arrow {
  font-size: 24px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.portfolio-category:hover .category-arrow {
  transform: translateX(5px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  cursor: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.portfolio-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-4);
  color: inherit;
}

/* 썸네일 영역 */
.portfolio-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--black-4);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.06);
}

/* 썸네일 없을 때 플레이스홀더 */
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

.portfolio-item:hover .portfolio-placeholder {
  background: var(--black-3);
}

.placeholder-icon {
  font-size: 36px;
  color: var(--white-10);
  transition: color 0.4s, transform 0.4s var(--ease);
}

.portfolio-item:hover .placeholder-icon {
  color: var(--ultramarine);
  transform: scale(1.15);
}

/* 호버 오버레이 */
.portfolio-hover {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  padding: 24px;
}

.portfolio-item:hover .portfolio-hover {
  opacity: 1;
}

/* 성과 수치 */
.hover-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ultramarine);
}

.stat-value {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hover-divider {
  width: 32px;
  height: 1px;
  background: var(--white-30);
}

.hover-platform {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-60);
}

.hover-cta {
  font-family: var(--font-ko);
  font-size: 12px;
  font-weight: 400;
  color: var(--ultramarine);
  border: 1px solid var(--ultramarine);
  padding: 7px 18px;
  border-radius: 2px;
  margin-top: 4px;
  transition: background 0.3s, color 0.3s;
}

.portfolio-link:hover .hover-cta {
  background: var(--ultramarine);
  color: var(--white);
}

/* 카드 하단 정보 */
.portfolio-info {
  padding: 20px 24px;
  background: var(--black-3);
  border-top: 1px solid var(--white-10);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.3s;
}

.portfolio-item:hover .portfolio-info {
  background: var(--black-4);
}

.portfolio-cat-tag {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ultramarine);
  margin-bottom: 4px;
}

.portfolio-client {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.3s;
}

.portfolio-item:hover .portfolio-client {
  color: var(--ultra-light);
}

.portfolio-project {
  font-size: 12px;
  color: var(--white-60);
  font-weight: 300;
}

/* 소개서 CTA */
.portfolio-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.portfolio-cta p {
  font-size: 14px;
  color: var(--white-60);
  font-weight: 300;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ko);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--white-30);
  padding: 12px 24px;
  border-radius: 2px;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.btn-outline:hover {
  border-color: var(--ultramarine);
  color: var(--ultramarine);
}

/* ══════════════════════════════
   ── Contact ──
══════════════════════════════ */
.contact {
  background: var(--black);
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

/* 2-컬럼 그리드 */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

/* ── 좌측 ── */
.contact-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 레이블 */
.contact-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

/* 메인 타이틀 */
.contact-title {
  font-family: var(--font-ko);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 48px;
}

.contact-title em {
  font-style: normal;
  color: var(--ultramarine);
}

/* 버튼 2개 */
.contact-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-kakao,
.btn-online {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ko);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: #1c1c1c;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease), box-shadow 0.22s;
  letter-spacing: -0.01em;
}

.btn-kakao:hover,
.btn-online:hover {
  background: #272727;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* 안내 문구 */
.contact-notice {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* 지금 문의하기 링크 버튼 */
.contact-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ko);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}

.contact-cta:hover {
  color: var(--ultramarine);
  border-color: var(--ultramarine);
}

/* ══════════════════════════════
   ── 우측: 폰 목업 ──
══════════════════════════════ */
.contact-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 폰 외형 */
.phone-mockup {
  width: 280px;
  height: 520px;
  background: #111111;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 44px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* 노치 */
.phone-notch {
  width: 90px;
  height: 24px;
  background: #111111;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* 화면 전체 */
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

/* 메시지 영역 */
.chat-messages {
  flex: 1;
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

/* 말풍선 행 */
.chat-row {
  display: flex;
  width: 100%;
}

.chat-row.left {
  justify-content: flex-start;
}

.chat-row.right {
  justify-content: flex-end;
}

/* 말풍선 공통 */
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-family: var(--font-ko);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

/* 왼쪽 (YLZ) */
.chat-row.left .chat-bubble {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 14px 14px 14px;
}

/* 오른쪽 (고객) */
.chat-row.right .chat-bubble {
  background: var(--ultramarine);
  border-radius: 14px 4px 14px 14px;
  color: #ffffff;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .contact-inner {
    gap: 56px;
  }

  .contact-title {
    font-size: clamp(36px, 5.5vw, 60px);
  }

  .phone-mockup {
    width: 250px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 0 100px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-right {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 460px;
  }

  .contact-title {
    font-size: clamp(34px, 8vw, 52px);
    margin-bottom: 36px;
  }

  .btn-kakao,
  .btn-online {
    padding: 13px 22px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-kakao,
  .btn-online {
    justify-content: center;
  }

  .contact-title {
    font-size: clamp(30px, 9vw, 44px);
  }
}

/* ── Footer ── */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--white-10);
  padding: 48px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-logo .logo-img {
  height: 22px;
}

.footer-tagline {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--white-30);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--white-10);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ko);
  font-size: 12px;
}

.footer-links a {
  color: var(--white-60);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--ultramarine);
}

.footer-biz {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
}

.footer-biz-info {
  font-family: var(--font-ko);
  font-size: 12px;
  line-height: 1.9;
  color: var(--white-30);
  font-weight: 300;
}

.footer-biz-info a {
  color: var(--white-30);
  transition: color 0.2s;
}

.footer-biz-info a:hover {
  color: var(--ultramarine);
}

.footer-sep {
  color: var(--white-10);
  margin: 0 8px;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--white-30);
  font-weight: 300;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-biz-info {
    line-height: 2;
  }
  .footer-sep {
    margin: 0 5px;
  }
}

/* ── Scroll Top ── */
.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: 50%;
  color: var(--white-60);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  cursor: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--ultramarine);
  border-color: var(--ultramarine);
  color: var(--white);
}

/* ── Text Split Animation ── */
.char {
  display: inline-block;
  overflow: hidden;
  line-height: 1;
}

.char-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.is-visible .char-inner {
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .nav-inner {
    padding: 0 32px;
  }

  .hero-inner {
    padding: 60px 32px;
  }

  .hero-scroll {
    left: 32px;
  }

  .section {
    padding: 100px 0;
  }

  .about-body {
    gap: 48px;
  }

  .problem-body {
    gap: 48px;
  }

  .contact-grid {
    gap: 64px;
  }

  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .hero-inner {
    padding: 40px 24px;
  }

  .hero-scroll {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    border-top: 1px solid var(--white-10);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 28px;
    font-weight: 500;
    color: var(--white-60);
  }

  .nav-cta {
    font-size: 14px;
    padding: 12px 28px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .word {
    font-size: clamp(40px, 12vw, 72px);
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-platforms {
    margin-top: 16px;
  }

  .platform-marquee-track span {
    font-size: 20px;
  }

  .problem-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .perf-item {
    padding: 40px 28px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-thumb {
    aspect-ratio: 16/9;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contact-cta-box {
    padding: 36px 28px;
  }

  .service-item {
    grid-template-columns: 48px 1fr;
    gap: 24px;
  }

  .service-tag {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-tagline {
    display: none;
  }

  .solution-step {
    grid-template-columns: 60px 1fr;
  }

  .step-arrow {
    display: none;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }

  button {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-info {
    padding: 16px 18px;
  }

  .stat-value {
    font-size: 28px;
  }

  .section-title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .scroll-top {
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }
}
/* ============================================
   V2 — Conversion Upgrade (성과 후킹 / 후기 / 배지)
============================================ */

/* Hero — 성과 강조 */
.hero-sub strong {
  color: var(--ultramarine);
  font-weight: 700;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-num {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  color: var(--ultramarine);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-family: var(--font-ko);
  font-size: 12px;
  color: var(--white-60);
  font-weight: 400;
}

/* Section sub */
.section-sub {
  font-family: var(--font-ko);
  font-size: 15px;
  color: var(--white-60);
  margin-top: 14px;
  font-weight: 300;
}

/* Reviews — 후기 masonry */
.reviews {
  background: var(--black-2);
}

.reviews-masonry {
  columns: 3;
  column-gap: 20px;
  margin-top: 48px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: var(--black);
  box-shadow: 0 6px 28px rgba(8, 8, 8, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 78, 255, 0.1);
}

.review-card img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .reviews-masonry { columns: 2; }
}

@media (max-width: 560px) {
  .reviews-masonry { columns: 1; }
  .review-card.hide-mobile { display: none; }
  .hero-stats { gap: 28px 36px; margin-top: 36px; }
  .hero-stat-num { font-size: 28px; }
}

/* Contact — 즉시성 배지 */
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 9px 16px;
  border: 1px solid var(--ultra-10);
  background: var(--ultra-10);
  border-radius: 100px;
  font-family: var(--font-ko);
  font-size: 13px;
  color: var(--ultra-dark);
  font-weight: 500;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ultramarine);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 78, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(59, 78, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 78, 255, 0); }
}

/* ============================================
   V2 — 인플루언서 마케팅 (Discovery 가로 스트립)
============================================ */
.infl-campaign { margin-top: 8px; }

.infl-campaign-head { margin-bottom: 22px; }

.infl-campaign-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.infl-campaign-title strong {
  font-family: var(--font-ko);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.infl-flag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ko);
  font-size: 12px;
  font-weight: 600;
  color: var(--ultramarine);
  background: var(--ultra-10);
  padding: 4px 11px;
  border-radius: 100px;
}

.infl-campaign-desc {
  margin-top: 10px;
  font-family: var(--font-ko);
  font-size: 14px;
  color: var(--white-60);
  font-weight: 400;
}

.infl-campaign-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 26px 0 32px;
  max-width: 620px;
}

.infl-stat { border-top: 2px solid var(--white); padding-top: 14px; }

.infl-stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.infl-stat-num em { color: var(--ultramarine); font-style: normal; }

.infl-stat-lbl {
  display: block;
  margin-top: 7px;
  font-family: var(--font-ko);
  font-size: 12.5px;
  color: var(--white-60);
  font-weight: 500;
}

.infl-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
}

.infl-strip::-webkit-scrollbar { height: 7px; }
.infl-strip::-webkit-scrollbar-thumb { background: var(--white-10); border-radius: 4px; }

.infl-card { flex: 0 0 auto; width: 210px; scroll-snap-align: start; }

.infl-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 26px rgba(8, 8, 8, 0.10);
}

.infl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.infl-card:hover .infl-thumb img { transform: scale(1.05); }

.infl-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.infl-cap {
  margin-top: 13px;
  font-family: var(--font-ko);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.infl-sub {
  margin-top: 3px;
  font-family: var(--font-ko);
  font-size: 12px;
  color: var(--white-30);
  font-weight: 500;
}

@media (max-width: 640px) {
  .infl-campaign-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .infl-stat-num { font-size: 26px; }
  .infl-card { width: 160px; }
}

/* ============================================
   섹션 2 — 주요 상품 (Primary Services, 미팔형)
============================================ */
.products-layout { display: flex; gap: 80px; align-items: flex-start; }
.products-head { flex: 0 0 300px; }
.products-list { flex: 1; border-top: 1px solid var(--white-10); }

.product-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--white-10);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}
.product-row:hover { background: var(--ultra-10); padding-left: 24px; padding-right: 24px; }

.product-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s;
}
.product-row:hover .product-name { color: var(--ultramarine); }

.product-value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-60);
  font-weight: 400;
}

.product-arrow {
  font-size: 22px;
  color: var(--white-30);
  justify-self: end;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.product-row:hover .product-arrow { color: var(--ultramarine); transform: translateX(6px); }

@media (max-width: 900px) {
  .products-layout { flex-direction: column; gap: 32px; }
  .products-head { flex: none; }
  .product-row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 24px 4px; }
  .product-value { grid-column: 1 / -1; }
  .product-name { font-size: 24px; }
  .product-row:hover { padding-left: 4px; padding-right: 4px; }
}

/* ============================================
   섹션 4 — 레퍼런스 (카테고리별 가로 스트립)
============================================ */
.ref-cat { margin-bottom: 72px; }
.ref-cat:last-child { margin-bottom: 0; }
.ref-cat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--white-10);
}
.ref-cat-head h3 { font-family: var(--font-ko); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.ref-cat-arrow { font-size: 22px; color: var(--white-30); }

.ref-strip { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.ref-strip::-webkit-scrollbar { height: 7px; }
.ref-strip::-webkit-scrollbar-thumb { background: var(--white-10); border-radius: 4px; }

.ref-card { flex: 0 0 auto; scroll-snap-align: start; }
.ref-cap { margin-top: 13px; font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.ref-sub { margin-top: 3px; font-size: 12.5px; color: var(--white-30); font-weight: 500; }

.ref-embed { width: 300px; }
.ref-embed .frame { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 8px 26px rgba(8,8,8,0.12); }
.ref-embed .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ref-photo { width: 210px; }
.ref-photo .img { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 8px 26px rgba(8,8,8,0.1); }
.ref-photo .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.ref-photo:hover .img img { transform: scale(1.05); }
.ref-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.58); color: #fff; font-family: var(--font-en); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px; backdrop-filter: blur(4px); }

.ref-ph { width: 210px; }
.ref-ph .img { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(150deg, #1a1c2e, #0a0a0a); color: #fff; }
.ref-ph .plat { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ultra-light); }
.ref-ph .pn { font-size: 19px; font-weight: 800; }
.ref-ph .go { font-size: 12px; color: #888; }

@media (max-width: 640px) {
  .ref-embed { width: 260px; }
  .ref-photo, .ref-ph { width: 160px; }
  .ref-cat-head h3 { font-size: 22px; }
}

/* ============================================
   섹션 6 — 신뢰(Clients) + 섹션 7 — 문의(A안 중앙)
============================================ */
.section-header.center { text-align: center; max-width: 900px; margin: 0 auto; }
.section-header.center .section-label { margin-left: auto; margin-right: auto; }
.clients-title {
  font-family: var(--font-ko);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 56px;
}
.clients-title em { font-style: normal; color: var(--ultramarine); }

.clients-reviews { margin-top: 72px; text-align: center; }
.clients-reviews-lead { font-size: 15px; color: var(--white-60); font-weight: 500; margin-bottom: 26px; }
.reviews-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.reviews-strip::-webkit-scrollbar { height: 7px; }
.reviews-strip::-webkit-scrollbar-thumb { background: var(--white-10); border-radius: 4px; }
.review-prev {
  flex: 0 0 auto; width: 220px; height: 300px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--white-10); box-shadow: 0 6px 24px rgba(8, 8, 8, 0.05);
}
.review-prev img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.reviews-more { margin-top: 34px; }

/* 문의 A안 */
.contact-hero { padding: 160px 0; background: var(--black-2); text-align: center; }
.contact-hero-inner { max-width: 780px; margin: 0 auto; }
.center-label { display: inline-flex; margin: 0 auto 26px; }
.center-label::before { display: none; }
.contact-hero-title {
  font-family: var(--font-en);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}
.contact-hero-title em { font-style: normal; color: var(--ultramarine); }
.contact-hero-sub { margin-top: 24px; font-size: 18px; color: var(--white-60); font-weight: 400; }
.contact-hero-btns { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-hero-notice { margin-top: 30px; font-size: 14px; color: var(--white-30); letter-spacing: 0.05em; }

@media (max-width: 640px) {
  .contact-hero { padding: 100px 0; }
  .review-prev { width: 180px; height: 250px; }
}

/* 케미스트릿 틱톡 폴백 카드 (임베드 비활성 영상용) */
.ref-tok { width: 300px; }
.ref-tok .frame {
  position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #010101, #161823);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 8px 26px rgba(8, 8, 8, 0.14);
  transition: transform 0.4s var(--ease);
}
.ref-tok:hover .frame { transform: translateY(-4px); }
.ref-tok .tok-logo { filter: drop-shadow(2px 0 0 #25F4EE) drop-shadow(-2px 0 0 #FE2C55); }
.ref-tok .tok-name { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.ref-tok .tok-cta { color: #9a9aa5; font-size: 12.5px; font-weight: 500; }

/* ============================================
   섹션 5 — 차별점 (Why, Solution+Performance 블렌드 A안)
============================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  border: 1px solid var(--white-10); border-radius: 16px; padding: 40px 32px;
  display: flex; flex-direction: column; background: var(--black);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.why-card:hover { transform: translateY(-5px); border-color: var(--ultramarine); box-shadow: 0 18px 44px rgba(59, 78, 255, 0.1); }
.why-no { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--ultramarine); letter-spacing: 0.05em; }
.why-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 16px 0 14px; color: var(--white); }
.why-card p { font-size: 15px; line-height: 1.7; color: var(--white-60); font-weight: 400; flex: 1; }
.why-stat { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--white-10); }
.why-num { display: block; font-family: var(--font-en); font-size: 40px; font-weight: 700; color: var(--ultramarine); letter-spacing: -0.02em; line-height: 1; }
.why-plus { font-size: 26px; }
.why-stat-label { display: block; margin-top: 10px; font-size: 13px; color: var(--white-60); font-weight: 500; line-height: 1.5; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* 차별점 선언 헤더 (미팔식) */
.why-header { text-align: center; max-width: 920px; margin: 0 auto 64px; }
.why-eyebrow { display: block; font-family: var(--font-ko); font-size: 13px; font-weight: 600; color: var(--ultramarine); letter-spacing: 0.02em; margin-bottom: 22px; }
.why-statement { font-family: var(--font-ko); font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; line-height: 1.42; letter-spacing: -0.02em; color: var(--white); }
.why-statement em { font-style: normal; color: var(--ultramarine); }

/* ============================================
   키컬러 배경 섹션 (media-palette식 배경 전환)
============================================ */
.bg-key { background: var(--ultramarine); }
.bg-key .section-label { color: #fff; }
.bg-key .section-label::before { background: #fff; }
.bg-key .section-title { color: #fff; }
.bg-key .section-title em { color: #fff; font-style: normal; }

/* 섹션2 주요 상품 (blue bg) */
.products.bg-key .products-list { border-top-color: rgba(255, 255, 255, 0.25); }
.products.bg-key .product-row { border-bottom-color: rgba(255, 255, 255, 0.22); }
.products.bg-key .product-name { color: #fff; }
.products.bg-key .product-value { color: rgba(255, 255, 255, 0.72); }
.products.bg-key .product-arrow { color: rgba(255, 255, 255, 0.55); }
.products.bg-key .product-row:hover { background: rgba(255, 255, 255, 0.10); }
.products.bg-key .product-row:hover .product-name { color: #fff; }
.products.bg-key .product-row:hover .product-arrow { color: #fff; }

/* 섹션5 차별점 (blue bg) — 헤더 흰색, 카드는 흰 배경 유지해 대비 */
.why-us.bg-key .why-eyebrow { color: rgba(255, 255, 255, 0.85); }
.why-us.bg-key .why-statement { color: rgba(255, 255, 255, 0.78); }
.why-us.bg-key .why-statement em { color: #fff; }

/* 차별점 — eyebrow 제거 + 문구 위로 */
.why-us { padding-top: 88px; }
.why-header.no-eyebrow { margin-bottom: 56px; }

/* 신뢰 — 플랫폼 실사 그리드 (마퀴 대체) */
.platform-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 48px auto 0; }
.pf-item { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 26px rgba(8, 8, 8, 0.08); }
.pf-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.pf-item figcaption {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
@media (max-width: 560px) { .platform-photos { gap: 12px; } }

/* ============================================
   서비스 상세 페이지 (services.html)
============================================ */
.svc-hero { padding: 150px 0 30px; }
.svc-hero h1 { font-family: var(--font-en); font-size: clamp(40px, 5vw, 66px); font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.05; }
.svc-hero p { margin-top: 22px; font-size: 18px; color: var(--white-60); max-width: 620px; line-height: 1.7; }

.svc-block { padding: 70px 0; }
.svc-block-head { margin-bottom: 44px; }
.svc-block-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.svc-block-head span { display: block; margin-top: 10px; font-size: 15px; color: var(--white-60); }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { border: 1px solid var(--white-10); border-radius: 18px; padding: 34px 28px; background: var(--black); display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.tier:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(8, 8, 8, 0.08); }
.tier.feat { border-color: var(--ultramarine); box-shadow: 0 18px 44px var(--ultra-glow); }
.tier .t-badge { align-self: flex-start; font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--ultramarine); padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.tier .t-en { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--ultramarine); }
.tier h3 { font-size: 24px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -0.01em; color: var(--white); }
.tier .t-tag { font-size: 14px; color: var(--white-60); margin-bottom: 22px; }
.tier ul { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier li { font-size: 14.5px; color: var(--white); padding-left: 26px; position: relative; line-height: 1.5; }
.tier li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--ultra-10); border-radius: 50%; }
.tier li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px; border-right: 2px solid var(--ultramarine); border-bottom: 2px solid var(--ultramarine); transform: rotate(40deg); }
.tier .t-cta { margin-top: 28px; text-align: center; border: 1px solid var(--white-10); border-radius: 100px; padding: 13px; font-weight: 700; font-size: 15px; color: var(--white); transition: all 0.2s; }
.tier .t-cta:hover { background: var(--white); color: var(--black); }
.tier.feat .t-cta { background: var(--ultramarine); color: #fff; border-color: var(--ultramarine); }
.tier.feat .t-cta:hover { background: var(--ultra-dark); }

.svc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc-card { border: 1px solid var(--white-10); border-radius: 18px; padding: 32px 28px; background: var(--black-2); display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(8, 8, 8, 0.06); }
.svc-card .sc-en { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--ultramarine); }
.svc-card h3 { font-size: 22px; font-weight: 800; margin: 8px 0 10px; color: var(--white); }
.svc-card p { font-size: 14.5px; color: var(--white-60); line-height: 1.65; flex: 1; }
.svc-card .sc-link { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ultramarine); display: inline-flex; gap: 6px; }

/* 홈 주요상품 — 서비스 자세히 보기 링크 */
.products-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 700; }
.bg-key .products-more { color: #fff; }
.products-more::after { content: "→"; transition: transform 0.25s var(--ease); }
.products-more:hover::after { transform: translateX(5px); }

@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } .svc-cards { grid-template-columns: 1fr; } }

/* 티어 가격 */
.t-price { margin: 4px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--white-10); }
.t-price-num { display: block; font-family: var(--font-en); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); line-height: 1.1; }
.t-price-num .t-won { font-family: var(--font-ko); font-size: 17px; font-weight: 600; margin-left: 2px; }
.t-price-vat { display: block; margin-top: 6px; font-size: 12.5px; color: var(--white-30); font-weight: 500; }

/* 티어 부제 (기능 설명) */
.tier .t-sub { display: inline-block; margin: 2px 0 12px; font-size: 13px; font-weight: 600; color: var(--ultramarine); background: var(--ultra-10); padding: 3px 11px; border-radius: 100px; }
.tier h3 { margin-bottom: 4px; }

/* 인스타 임베드 크롭 — 자체 UI(헤더/좋아요바) 숨기고 영상만 (틱톡 결) */
.ref-embed .frame iframe[src*="instagram"] { top: -54px; height: calc(100% + 132px); }

/* 레퍼런스 파랑 배경 — 텍스트 반전 */
.reference.bg-key .ref-cat-head h3 { color: #fff; }
.reference.bg-key .ref-cat-head { border-bottom-color: rgba(255, 255, 255, 0.22); }
.reference.bg-key .ref-cat-arrow { color: rgba(255, 255, 255, 0.55); }
.reference.bg-key .ref-cap { color: #fff; }
.reference.bg-key .ref-sub { color: rgba(255, 255, 255, 0.62); }
.reference.bg-key .ref-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.35); }
