/* ============================================
   VDIRECTORS — style.css
   ============================================ */

/* ===== VARIABLES ===== */
:root {
  --white:  #FFFFFF;
  --black:  #111111;
  --g1:     #111111;
  --g2:     #555555;
  --g3:     #BBBBBB;
  --g4:     #CCCCCC;
  --g5:     #F0F0F0;
  --g6:     #F8F8F8;
  --grey-bg: #EFEFEF;
  --font:   'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease2:  cubic-bezier(0.87, 0, 0.13, 1);
  --reply-green: #2ecc71;
}

/* ===== CUSTOM CURSOR ===== */
/* 기본 커서 — 미니멀 thin 화살표 */
html, * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 1 L2 17 L6.5 12.5 L10.5 20 L13 18.8 L9 11.5 L15 11.5 Z' fill='%23111111' stroke='white' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, auto;
}

/* 포인터 커서 — 동일 화살표, stroke 두껍게 (클릭 가능 강조) */
a,
button,
[role="button"],
.filter-btn,
.portfolio-item,
.client-logo,
.hero-cta,
.text-link,
.submit-btn,
.nav-logo,
.nav-links a,
label,
select {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 1 L2 17 L6.5 12.5 L10.5 20 L13 18.8 L9 11.5 L15 11.5 Z' fill='%23111111' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, pointer;
}

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

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

@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.55s var(--ease) both;
}

body.is-leaving {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  animation: none;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== SCROLL PROGRESS ===== */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--black);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 60px;
  padding-top: max(32px, env(safe-area-inset-top));
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  padding: 20px 60px;
  padding-top: max(20px, env(safe-area-inset-top));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--g4);
}

/* 다크 hero 페이지 nav */
#nav.nav-light .nav-logo,
#nav.nav-light .nav-links a,
#nav.nav-light .nav-mobile-btn span { transition: color 0.4s ease, background 0.4s ease; }
#nav.nav-light:not(.scrolled) .nav-logo,
#nav.nav-light:not(.scrolled) .nav-links a { color: #fff; }
#nav.nav-light:not(.scrolled) .nav-links a:hover { color: rgba(255,255,255,0.6); }
#nav.nav-light:not(.scrolled) .nav-links a::after { background: #fff; }
#nav.nav-light:not(.scrolled) .nav-mobile-btn span { background: #fff; }

.nav-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--black);
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.5; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--g2);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.nav-mobile-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-btn.active span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-btn.active span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}
#nav.nav-light .nav-mobile-btn.active span {
  background: var(--black) !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 40px; }
.mobile-menu a { font-size: 32px; font-weight: 800; letter-spacing: 0.15em; color: var(--black); transition: opacity 0.2s ease; }
.mobile-menu a:hover { opacity: 0.4; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--g1);
  margin-bottom: 44px;
  will-change: transform, opacity;
}

.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--g3);
  flex-shrink: 0;
}

/* 단어별 stagger — JS로 .word span 생성 후 적용 */
.hero-label .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: wordUp 0.4s var(--ease) forwards;
}

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-label .word-to {
  animation-name: wordSlideRight;
  animation-duration: 0.2s;
  animation-delay: 0.95s !important;
  animation-fill-mode: both;
}
@keyframes impactShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.hero-label .word-impact {
  animation:
    wordImpact    0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both,
    impactShimmer 3.5s linear                             2.1s infinite;
  background: linear-gradient(
    90deg,
    var(--black) 35%,
    #888        50%,
    var(--black) 65%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform-origin: left center;
}
@keyframes wordSlideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wordImpact {
  from { opacity: 0; transform: translateX(-120px) scale(0.85); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.hero-headline {
  font-size: clamp(72px, 12vw, 200px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
}

.line-wrap { overflow: hidden; }

.line {
  display: block;
  clip-path: inset(100% 0 0 0);
  transform: translateY(20px);
}

.line.animated {
  animation: lineReveal 0.9s var(--ease) forwards;
}

.line-wrap:nth-child(2) .line {
  animation-delay: 0.15s !important;
}

@keyframes lineReveal {
  from { clip-path: inset(100% 0 0 0); transform: translateY(20px); }
  to   { clip-path: inset(0% 0 0 0);   transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--black);
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 5px;
  transition: gap 0.4s var(--ease), transform 0.4s var(--ease);
  min-height: 44px;
}
.hero-cta:hover { gap: 28px; }

.hero-bg-text {
  position: absolute;
  right: -20px;
  bottom: -80px;
  font-size: clamp(180px, 30vw, 480px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--g5);
  z-index: 1;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  animation: floatVD 9s ease-in-out infinite;
}

@keyframes floatVD {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-0.5deg); }
}


/* ===== MARQUEE ===== */
.marquee-wrap {
  display: block;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
  padding: 20px 0;
  background: #333;
  transition: background 0.25s;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 1 L2 17 L6.5 12.5 L10.5 20 L13 18.8 L9 11.5 L15 11.5 Z' fill='%23111111' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, pointer;
}
.marquee-wrap:hover { background: #111; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 25s linear infinite;
}


.marquee-track span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
}
.marquee-track .sep { color: #fff; letter-spacing: 0; font-weight: 400; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== SECTION COMMON ===== */
section { padding: 130px 60px; }

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

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #000;
  margin-bottom: 22px;
}

/* section-label — clip-path 와이프 리빌 */
.section-label.reveal {
  clip-path: inset(0 100% 0 0);
  opacity: 1;
  transform: none;
  transition: clip-path 0.6s var(--ease), opacity 0s;
  transition-delay: var(--delay, 0s);
}
.section-label.reveal.in-view {
  clip-path: inset(0 0% 0 0);
  opacity: 1;
  transform: none;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  padding-bottom: 80px;
  background: var(--white);
}

.portfolio-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.portfolio-header-left { flex: 1; }
.portfolio-header-left .section-title { margin-bottom: 0; }

.portfolio-filter {
  display: flex;
  gap: 0;
  align-self: flex-end;
  padding-bottom: 4px;
}

.filter-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--g3);
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 8px 20px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}
.filter-btn.active {
  color: var(--black);
  border-bottom-color: var(--black);
  background: var(--g5);
  border-radius: 2px;
}
.filter-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* Bento Grid */
/* ===== PORTFOLIO GRID — 균일 정사각형 ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.portfolio-grid:has(.portfolio-item:hover) .portfolio-item:not(:hover) {
  opacity: 0.35;
  transform: scale(0.97);
}
.portfolio-item:hover {
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

/* 포트폴리오 카드 stagger delay */
.portfolio-item:nth-child(1) { --delay: 0s;    }
.portfolio-item:nth-child(2) { --delay: 0.05s; }
.portfolio-item:nth-child(3) { --delay: 0.1s;  }
.portfolio-item:nth-child(4) { --delay: 0.15s; }
.portfolio-item:nth-child(5) { --delay: 0.2s;  }
.portfolio-item:nth-child(6) { --delay: 0.25s; }
.portfolio-item:nth-child(7) { --delay: 0.3s;  }
.portfolio-item:nth-child(8) { --delay: 0.35s; }
.portfolio-item:nth-child(9)  { --delay: 0.4s;  }
.portfolio-item:nth-child(10) { --delay: 0.45s; }
.portfolio-item:nth-child(11) { --delay: 0.5s;  }
.portfolio-item:nth-child(12) { --delay: 0.55s; }

.portfolio-thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--g6);
}
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.06); }

.card-idx {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.1);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  transition: opacity 0.3s ease;
  user-select: none;
}
.portfolio-item:hover .card-idx { opacity: 0; }

/* 이미지 없는 카드 — 중앙 프로젝트명 */
.portfolio-no-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.portfolio-no-thumb .no-thumb-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--g3);
}

.portfolio-no-thumb .no-thumb-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--g1);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Hover overlay — 다크 슬라이드업 */
.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(248, 248, 248, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { transform: translateY(0); }

.overlay-inner {
  padding: 20px 24px;
  transform: translateZ(0);
  transition: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.overlay-cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--g2);
  margin-bottom: 8px;
}

.overlay-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ===== CLIENTS (portfolio.html 하단 정적 그리드) ===== */
.clients-section {
  padding: 80px 60px;
  background: var(--g6);
  border-top: 1px solid var(--g4);
  border-bottom: 1px solid var(--g4);
}
.clients-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--black);
  text-align: center;
  margin-bottom: 48px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--g4);
  border-left: 1px solid var(--g4);
}
.client-logo {
  border-right: 1px solid var(--g4);
  border-bottom: 1px solid var(--g4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  height: 100px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.3s var(--ease), background 0.3s ease;
  transition-delay: var(--delay, 0s);
}
.client-logo.in-view {
  opacity: 1;
  transform: translateY(0);
}
.client-logo:hover { background: var(--white); transform: translateY(-4px); }

.client-logo:nth-child(1)  { --delay: 0s;    }
.client-logo:nth-child(2)  { --delay: 0.04s; }
.client-logo:nth-child(3)  { --delay: 0.08s; }
.client-logo:nth-child(4)  { --delay: 0.12s; }
.client-logo:nth-child(5)  { --delay: 0.16s; }
.client-logo:nth-child(6)  { --delay: 0.2s;  }
.client-logo:nth-child(7)  { --delay: 0.24s; }
.client-logo:nth-child(8)  { --delay: 0.28s; }
.client-logo:nth-child(9)  { --delay: 0.32s; }
.client-logo:nth-child(10) { --delay: 0.36s; }
.client-logo:nth-child(11) { --delay: 0.4s;  }
.client-logo:nth-child(12) { --delay: 0.44s; }
.client-logo:nth-child(13) { --delay: 0.48s; }
.client-logo:nth-child(14) { --delay: 0.52s; }
.client-logo:nth-child(15) { --delay: 0.56s; }
.client-logo:nth-child(16) { --delay: 0.6s;  }
.client-logo:nth-child(17) { --delay: 0.64s; }
.client-logo:nth-child(18) { --delay: 0.68s; }
.client-logo:nth-child(19) { --delay: 0.72s; }
.client-logo:nth-child(20) { --delay: 0.76s; }
.client-logo:nth-child(21) { --delay: 0.8s;  }
.client-logo:nth-child(22) { --delay: 0.84s; }
.client-logo:nth-child(23) { --delay: 0.88s; }
.client-logo:nth-child(24) { --delay: 0.92s; }
.client-logo:nth-child(25) { --delay: 0.96s; }
.client-logo img {
  max-width: 120px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.35s ease;
}
.client-logo:hover img { filter: grayscale(0%) opacity(1); }
@media (max-width: 768px) {
  .portfolio-filter { flex-wrap: wrap; gap: 4px 0; }
  .filter-btn { padding: 12px 16px; min-height: 44px; }
  .main-intro-right p { margin-bottom: 24px; }
  .clients-section { padding: 60px 40px; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .clients-section { padding: 52px 20px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .client-logo { height: 80px; padding: 20px 16px; }
}

/* ===== CONTACT ===== */
#contact {
  border-top: 1px solid var(--g4);
  background: var(--white);
}

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

.contact-info .section-label { margin-bottom: 24px; }

.contact-info h2 {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 24px;
}

.contact-email {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--g1);
  margin-bottom: 8px;
}

.contact-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--g2);
  margin-bottom: 16px;
}
.reply-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--reply-green, #2ecc71);
  flex-shrink: 0;
  animation: replyPulse 2s ease-in-out infinite;
}
@keyframes replyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.contact-channels {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
.contact-phone,
.contact-sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--g2);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-phone:hover,
.contact-sns-btn:hover { color: var(--black); }

.contact-desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--g2);
  word-break: keep-all;
  margin: 0;
}

/* Business Card Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--g4);
  box-shadow: 0 4px 48px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  padding: 52px;
  display: flex;
  flex-direction: column;
}

.card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--g3);
  margin-bottom: 40px;
}

/* Name — big like a business card headline */
.card-name-wrap {
  border-bottom: 1.5px solid var(--g4);
  margin-bottom: 28px;
  transition: border-color 0.25s;
}
.card-name-wrap:focus-within { border-bottom-color: var(--black); }

.card-name-wrap input {
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 0 0 18px;
}
.card-name-wrap input::placeholder { color: var(--g4); }

/* Company / Position row */
.card-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-bottom: 20px;
}

.card-field {
  border-bottom: 1px solid var(--g4);
  transition: border-color 0.25s;
  margin-bottom: 20px;
}
.card-field:focus-within { border-bottom-color: var(--black); }

.card-meta-row .card-field { margin-bottom: 0; }

.card-field input,
.card-field textarea {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 10px 0;
}
.card-field input::placeholder { color: var(--g3); }

/* Divider between info and message */
.card-divider {
  height: 1px;
  background: var(--g5);
  margin: 8px 0 20px;
}

.card-field textarea {
  resize: none;
  height: 130px;
  line-height: 1.75;
  padding: 10px 0;
  display: block;
}
.card-field textarea::placeholder { color: var(--g3); }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.form-notice {
  font-size: 12px;
  color: var(--g3);
  letter-spacing: 0.04em;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 18px 36px;
  transition: gap 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2a2a2a;
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}
.submit-btn:hover::before { transform: translateX(0); }
.submit-btn:hover { gap: 22px; }

.btn-text, .btn-arrow { position: relative; z-index: 1; }

/* 빈 필터 결과 */
.portfolio-empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--g3);
}

/* Contact 폼 전송 성공 상태 */
.form-success-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 52px;
  gap: 16px;
  min-height: 320px;
}

.form-success-icon-wrap {
  margin-bottom: 4px;
  animation: checkAppear 0.4s var(--ease) both;
}

@keyframes checkAppear {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.form-success-check {
  width: 48px;
  height: 48px;
}

.check-circle {
  stroke: var(--black);
  stroke-width: 1.5;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: circleStroke 0.65s var(--ease) 0.1s forwards;
}

@keyframes circleStroke {
  to { stroke-dashoffset: 0; }
}

.check-path {
  stroke: var(--black);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 38;
  stroke-dashoffset: 38;
  animation: checkStroke 0.4s var(--ease) 0.65s forwards;
}

@keyframes checkStroke {
  to { stroke-dashoffset: 0; }
}

.form-success-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  animation: fadeUp 0.5s var(--ease) 0.5s both;
}

.form-success-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--g2);
  word-break: keep-all;
  animation: fadeUp 0.5s var(--ease) 0.65s both;
}

.form-success-links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  align-items: center;
  animation: fadeUp 0.5s var(--ease) 0.8s both;
}

.form-success-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding: 10px 0 2px;
  transition: opacity 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-end;
}
.form-success-links a:hover { opacity: 0.4; }

.form-reset-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--g2);
  background: none;
  border: none;
  padding: 0;
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s;
}
.form-reset-btn:hover { color: var(--black); }

/* ===== FOOTER ===== */
footer {
  background: var(--grey-bg);
  border-top: 1px solid var(--g4);
  padding: 48px 60px;
  padding-bottom: max(48px, calc(32px + env(safe-area-inset-bottom)));
}

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

.footer-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  margin-bottom: 6px;
}

.footer-slogan {
  font-size: 12px;
  color: var(--g2);
  letter-spacing: 0.1em;
}

.footer-right { text-align: right; }

.footer-right p {
  font-size: 14px;
  color: var(--g2);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.footer-copy {
  margin-top: 8px;
  color: var(--g3) !important;
}
.footer-tel { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-tel:hover { color: var(--black); }


/* ===== MAIN INTRO ===== */
.main-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 60px;
}
.main-intro-quote {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.main-intro-right p {
  font-size: 17px;
  line-height: 1.95;
  color: var(--g1);
  margin-bottom: 32px;
  word-break: keep-all;
}
.text-link {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 3px;
  transition: opacity 0.25s;
  min-height: 44px;
}
.text-link:hover { opacity: 0.45; }


/* ===== PORTFOLIO MAIN (no header) ===== */
.portfolio-main {
  padding: 0;
}

.portfolio-main-footer {
  padding: 40px 60px 64px;
  text-align: right;
}

@media (max-width: 768px) {
  .portfolio-main-footer {
    padding: 28px 24px 48px;
  }
}

/* ===== PAGE HERO SUB ===== */
.page-hero-sub {
  font-size: 13px;
  color: var(--g2);
  letter-spacing: 0.08em;
  margin-top: 20px;
}

/* ===== HISTORY ===== */
.history-section {
  padding: 100px 60px;
  background: var(--g6);
}
.history-header { margin-bottom: 60px; }
.history-list { display: flex; flex-direction: column; }
.history-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  padding: 36px 0;
}
.history-item:nth-child(1) { --delay: 0s;    }
.history-item:nth-child(2) { --delay: 0.12s; }
.history-item:nth-child(3) { --delay: 0.24s; }
.history-item:nth-child(4) { --delay: 0.36s; }
.history-year {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--g3);
  padding-top: 2px;
  line-height: 1;
}
.history-events {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 20px;
}
.history-event {
  display: flex;
  gap: 24px;
  align-items: baseline;
  position: relative;
  border-radius: 4px;
  padding: 4px 8px 4px 20px;
}
.history-event::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.history-event:hover {
  background: rgba(0,0,0,0.03);
}
.history-event:hover::before {
  transform: scale(1.6);
  background: var(--g2);
}
.history-month {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--g3);
  flex-shrink: 0;
  width: 20px;
  transition: color 0.2s ease;
}
.history-event:hover .history-month {
  color: var(--black);
}
.history-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.6;
  word-break: keep-all;
}

/* ===== NAV ACTIVE ===== */
.nav-links a.nav-active {
  color: var(--black);
}
.nav-links a.nav-active::after {
  transform: scaleX(1);
}

/* ===== PAGE COMMON ===== */
body.page { background: var(--white); }

.page-hero {
  padding: 160px 60px 80px;
  border-bottom: 1px solid var(--g4);
  background: var(--white);
}
.page-hero-dark {
  background: var(--black);
  border-bottom-color: #222;
}
.page-hero-dark .page-hero-label { color: #666; }
.page-hero-dark .page-hero-title { color: var(--white); }

.page-hero-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--g2);
  margin-bottom: 28px;
}
.page-hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ===== PAGE CTA ===== */
.page-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  border-top: 1px solid var(--g4);
  gap: 40px;
}
.page-cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--g2);
  margin-bottom: 12px;
}
.page-cta-title {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ===== ABOUT PAGE ===== */
.about-page-intro {
  padding: 100px 60px;
  border-bottom: 1px solid var(--g4);
}
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-intro-left .section-label { margin-bottom: 32px; }
.about-body {
  font-size: 17px;
  line-height: 2;
  color: var(--g1);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.about-body + .about-body { margin-top: 20px; }
.about-intro-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 48px;
}
.about-stat {
  padding: 32px 0;
  border-bottom: 1px solid var(--g4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-stat:first-child { border-top: 1px solid var(--g4); }
.stat-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--g2);
}

.stat-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--g2);
  transition: color 0.2s;
}
.stat-link:hover { color: var(--black); }

.about-values-section {
  padding: 100px 60px;
}
.about-values-header { margin-bottom: 60px; }

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.value-card {
  padding: 48px 40px;
  border: 1px solid var(--g4);
  background: var(--white);
  transition: background 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.value-card:hover {
  background: var(--g6);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
}

.value-card.reveal {
  opacity: 0;
  transform: scale(0.94) translateY(44px);
}
.value-card.reveal.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.3s ease, box-shadow 0.35s ease;
  transition-delay: var(--delay, 0s);
}
.value-card-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--g3);
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.value-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--g1);
  word-break: keep-all;
}

/* ===== SERVICES PAGE ===== */
.services-page-section { padding: 0; }
.services-list { display: flex; flex-direction: column; }

/* Bidirectional left-right reveal */
.reveal-bidi {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-bidi:nth-child(even) { transform: translateX(48px); }
.reveal-bidi.in-view { opacity: 1; transform: translateX(0); }

.service-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 380px;
  border-bottom: 1px solid var(--g4);
  overflow: hidden;
  transition: background 0.4s ease;
}
.service-row:first-child { border-top: 1px solid var(--g4); }
.service-row:hover { background: var(--g6); }

/* Alternating: even rows flip columns */
.service-row:nth-child(even) {
  grid-template-columns: 1fr 340px;
}
.service-row:nth-child(even) .service-row-left  { order: 2; border-left: 1px solid var(--g4); border-right: none; }
.service-row:nth-child(even) .service-row-right { order: 1; }

.service-row-left {
  position: relative;
  padding: 60px 48px;
  border-right: 1px solid var(--g4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.service-row-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--g3);
}
.service-row-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--g2);
  border: 1px solid var(--g4);
  padding: 7px 14px;
  display: inline-block;
  width: fit-content;
}
.service-row-ghost {
  position: absolute;
  bottom: -30px;
  right: -10px;
  font-size: 140px;
  font-weight: 900;
  color: var(--g5);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  transition: transform 0.5s var(--ease), color 0.4s ease;
}
.service-row:hover .service-row-ghost {
  color: var(--g4);
  transform: translateX(12px);
}

.service-row-right {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.service-row-right h2 {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}
.service-row-right h2::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--black);
  transition: width 0.4s var(--ease);
}
.service-row:hover .service-row-right h2::after { width: 100%; }
.service-row:last-child .service-row-right h2 {
  padding-bottom: 0.9em;
}
.service-row-right > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--g1);
  word-break: keep-all;
  max-width: 480px;
}
.service-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-detail-list li {
  font-size: 15px;
  color: var(--g2);
  padding-left: 18px;
  position: relative;
  letter-spacing: 0.02em;
}
.service-detail-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--g4);
  font-size: 10px;
  top: 1px;
}

/* Process */
.process-section {
  padding: 100px 60px;
  background: var(--black);
}
.process-section .section-label { color: #999; }
.process-section .section-title { color: var(--white); }
.process-header { margin-bottom: 60px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #2a2a2a;
}
.process-step {
  background: var(--black);
  padding: 40px 36px;
  transition: background 0.3s ease;
}
.process-step:hover {
  background: #1e1e1e;
}
.process-step:hover .process-num {
  color: var(--g2);
  transition: color 0.3s ease;
}
.process-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #555;
  margin-bottom: 24px;
}
.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.8;
  color: #777;
  word-break: keep-all;
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-page-section {
  padding: 60px 60px 100px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  section { padding: 100px 40px; }
  #nav { padding: 28px 40px; }
  #nav.scrolled { padding: 18px 40px; }
  footer { padding: 40px; }
  .contact-grid { gap: 60px; }
  .service-row { gap: 0 36px; }
}

@media (max-width: 768px) {
  .reveal-bidi,
  .reveal-bidi:nth-child(even) { transform: translateY(44px); }

  section { padding: 80px 28px; }
  #nav { padding: 24px 28px; }
  #nav.scrolled { padding: 16px 28px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }

  #hero { padding: 0 28px; }
  .hero-bg-text { font-size: clamp(130px, 38vw, 240px); right: -10px; bottom: -40px; }

  .portfolio-section-header { flex-direction: column; align-items: flex-start; gap: 24px; }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-form { padding: 36px; }
  .card-meta-row { grid-template-columns: 1fr; }

  /* Main intro */
  .main-intro { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
  .main-intro-quote { font-size: clamp(36px, 9vw, 48px); }

  /* About page */
  .about-intro-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-intro-right { padding-top: 0; }
  .about-values-grid { grid-template-columns: 1fr; gap: 2px; }
  .page-hero { padding: 120px 28px 60px; }
  .about-page-intro, .about-values-section, .history-section { padding: 64px 28px; }
  .history-item { grid-template-columns: 80px 1fr; }
  .history-year { font-size: 30px; }

  /* Services page */
  .services-page-section { padding: 0 28px; }
  .service-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 44px 0;
  }
  .service-row-left,
  .service-row-right,
  .service-row:nth-child(even) .service-row-left,
  .service-row:nth-child(even) .service-row-right {
    order: unset !important;
  }
  .service-row-left {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid var(--g4);
    padding-bottom: 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .service-row-ghost { display: none; }
  .service-row-right { padding: 20px 0 0; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-section { padding: 64px 28px; }
  .portfolio-page-section { padding: 40px 28px 80px; }

  .page-cta { flex-direction: column; align-items: flex-start; padding: 60px 28px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }

  .footer-inner { flex-direction: column; gap: 28px; align-items: flex-start; }
  .footer-right { text-align: left; }
  footer { padding: 36px 28px; }

}

@media (max-width: 480px) {
  section { padding: 64px 20px; }
  #nav { padding: 20px; padding-top: max(20px, env(safe-area-inset-top)); }
  #nav.scrolled { padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top)); }
  #hero { padding: 0 20px; }
  footer { padding: 32px 20px; padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom))); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
  .contact-form { padding: 28px; }
  .card-name-wrap input { font-size: 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .services-page-section { padding: 0 20px; }
  .service-row { padding: 36px 0; }
  .service-row-right { padding-top: 16px; }
  .service-row-right h2 { font-size: 32px; }
  .about-page-intro, .about-values-section, .history-section, .process-section { padding: 52px 20px; }
  .page-hero { padding: 100px 20px 48px; }
  .page-cta { padding: 52px 20px; }
  .about-body { font-size: 16px; }
  .history-year { font-size: 26px; }
  .form-success-state { padding: 32px 0; }
  .form-success-links { flex-direction: column; gap: 12px; }
}

/* ===== 390px — iPhone 16 / Galaxy S25 Edge ===== */
@media (max-width: 390px) {
  section { padding: 60px 18px; }
  #nav { padding: 18px; padding-top: max(18px, env(safe-area-inset-top)); }
  #nav.scrolled { padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top)); }
  #hero { padding: 0 18px; }
  footer { padding: 28px 18px; padding-bottom: max(28px, calc(18px + env(safe-area-inset-bottom))); }
  .hero-headline { font-size: clamp(56px, 15vw, 80px); }
  .hero-bg-text { font-size: clamp(100px, 30vw, 180px); right: -8px; bottom: -24px; }
  .mobile-menu a { font-size: 26px; letter-spacing: 0.08em; }
  .contact-form { padding: 24px 18px; }
  .card-name-wrap input { font-size: 20px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo { height: 72px; padding: 16px 12px; }
  .about-page-intro, .about-values-section, .history-section, .process-section { padding: 48px 18px; }
  .page-hero { padding: 96px 18px 44px; }
  .page-cta { padding: 48px 18px; }
  .services-page-section { padding: 0 18px; }
  .portfolio-page-section { padding: 36px 18px 72px; }
  .filter-btn { padding: 12px 12px; font-size: 11px; min-height: 44px; }
}

/* ===== 360px — Galaxy S25 / 소형 Android ===== */
@media (max-width: 360px) {
  section { padding: 56px 16px; }
  #nav { padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); }
  #nav.scrolled { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  #hero { padding: 0 16px; }
  footer { padding: 24px 16px; padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom))); }
  .hero-headline { font-size: clamp(50px, 14vw, 68px); }
  .hero-bg-text { display: none; }
  .section-title { font-size: clamp(28px, 8vw, 48px); }
  .mobile-menu a { font-size: 22px; letter-spacing: 0.06em; }
  .contact-form { padding: 20px 16px; }
  .card-name-wrap input { font-size: 18px; }
  .history-year { font-size: 22px; }
  .history-item { grid-template-columns: 60px 1fr; }
  .about-page-intro, .about-values-section, .history-section, .process-section { padding: 44px 16px; }
  .page-hero { padding: 88px 16px 40px; }
  .page-cta { padding: 44px 16px; }
  .services-page-section { padding: 0 16px; }
  .portfolio-page-section { padding: 32px 16px 64px; }
  .filter-btn { padding: 12px 10px; font-size: 11px; min-height: 44px; }
}

/* ===== 터치 디바이스 — 커스텀 커서 비활성화 ===== */
@media (pointer: coarse) {
  html, *,
  a, button, [role="button"], .filter-btn, .portfolio-item,
  .client-logo, .hero-cta, .text-link, .submit-btn, .nav-logo,
  .nav-links a, label, select, .marquee-wrap {
    cursor: auto !important;
  }

  /* hover 효과 취소 — 터치 디바이스에서 잔류 hover 방지 */
  .history-event:hover {
    background: transparent;
  }
  .history-event:hover::before {
    transform: scale(1);
    background: var(--g4);
  }
  .history-event:hover .history-month {
    color: var(--g3);
  }
  .service-row:hover {
    background: transparent;
  }
  .service-row:hover .service-row-right h2::after {
    width: 0;
  }
  .value-card:hover {
    background: var(--white);
    transform: none;
    box-shadow: none;
  }
  .value-card.reveal.in-view:hover {
    transform: scale(1) translateY(0);
  }
}
