/* =========================
   Base / Reset / Variables
   ========================= */
:root {
  --header-h: 64px;
  --container-w: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  color: #e5e7eb;
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui,
    "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "맑은 고딕",
    "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Header / Nav
   ========================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f1f1f;
  z-index: 1000;
}
.site-header .nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img.logo-invert {
  filter: invert(1) brightness(2);
}
.menu a {
  margin-left: 16px;
  font-weight: 700;
  color: #e5e7eb;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  background: #0a0a0a;
  color: #e5e7eb;
  font-weight: 800;
}
.btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* =========================
   Panels / Sections
   ========================= */
.panel {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  scroll-margin-top: var(--header-h);
}
.section {
  padding: 72px 0;
}

/* =========================
   HERO
   ========================= */
.hero.has-video .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: inherit;
  display: grid;
  align-content: center;
  justify-items: center;
}
.bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    90vmax 60vmax at 50% 60%,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.6) 70%
  );
}

.typewriter-lines {
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45em;
}
.typewriter-lines .line {
  display: block;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  will-change: opacity, transform;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 3.2vw, 52px);
}
@keyframes fadeUpSlow {
  0% {
    opacity: 0;
    visibility: visible;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.typewriter-lines .line.reveal {
  animation: fadeUpSlow 4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 9vh, 120px);
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  color: #e5e7eb;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  animation: float 1.6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* =========================
   4분할 – 카드
   ========================= */
.split4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.split4.split4--plain {
  background: #000;
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(16px, 2.4vw, 32px);
}
@media (max-width: 1024px) {
  .split4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .split4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  #brand-split.split4 {
    height: calc(100svh - var(--header-h));
    align-content: stretch;
  }
  #brand-split.split4 .slice {
    height: 100%;
    min-height: 0;
  }
}

.slice {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 48vh;
  height: clamp(340px, 48vh, 520px);
  background: #0b0b0b;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: block;
}

.labels {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: none;
  transition: top 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    left 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.6s ease;
}
.labels::before {
  content: attr(data-letter);
  color: #fff;
  font-weight: 800;
  font-size: clamp(42px, 8.5vmin, 120px);
  line-height: 1;
}
.split4 .slice:hover .labels {
  top: 50px;
  left: 40px;
  transform: scale(7);
  opacity: 0.15;
}

.hover-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background-image: var(--hover-bg, none);
  background-size: cover;
  background-position: var(--img-pos, center);
  transition: opacity 0.45s ease;
}
.hover-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.slice__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.slice:hover .hover-image,
.slice:hover .slice__content {
  opacity: 1;
}

.hover-panel {
  position: absolute;
  left: calc(var(--panel-x, 22%) + var(--avoid-letter, 0px));
  top: var(--panel-y, 34%);
  width: min(520px, 68%);
  color: #fff;
}
.hover-heading {
  margin: 0 0 0.15em 0;
  line-height: 1;
  font-weight: 800;
  /* clamp 순서 정정 */
  font-size: clamp(60px, 3.2vw, 120px);
}
.hover-sub {
  margin: 0 0 0.75em 0;
  color: #e5e7eb;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 28px);
}
.hover-list {
  list-style: disc;
  padding-left: 1.1em;
  margin: 0;
  font-weight: 400;
  font-size: clamp(14px, 2.1vw, 20px);
  line-height: 2.2;
  color: #fff;
}

/* =========================
   Services
   ========================= */
.grid {
  display: grid;
  gap: 16px;
}
.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
#services .grid {
  gap: 24px;
}
.card {
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  padding: 20px;
  background: #0a0a0a;
}
#services .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 22px rgba(0, 0, 0, 0.35);
}
.card h3 {
  color: #fff;
  margin: 0 0 8px;
}
.card p {
  color: #94a3b8;
  margin: 0;
}

/* =========================
   About
   ========================= */
.about {
  position: relative;
  overflow: hidden;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/about-bg.jpg") center/cover no-repeat fixed, #000;
  filter: brightness(0.28);
  opacity: 0.9;
}
.about-inner {
  position: relative;
  z-index: 1;
  padding: min(9vw, 96px) 0;
  display: grid;
  gap: clamp(44px, 5vw, 72px);
}
.about-head {
  display: grid;
  grid-template-columns: minmax(520px, 45%) 1fr;
  gap: clamp(80px, 10vw, 160px);
  align-items: start;
}
.about-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  font-size: clamp(30px, 8.5vw, 100px);
}
.about-title.is-typing::after {
  content: "";
  display: inline-block;
  width: 1ch;
  margin-left: 2px;
  border-right: 2px solid #ffffffaa;
  animation: blink 1s step-end infinite;
}
.about-title.typed-done::after {
  display: none;
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.about-desc {
  margin: 10px 0 0;
  color: #d1d5db;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.9;
  max-width: 70ch;
}

#about .about-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(96px, 11vw, 220px);
  align-items: start;
  margin-top: clamp(40px, 8vh, 96px);
  padding-bottom: 10vh;
  position: relative;
}
#about .metric {
  position: relative;
  min-height: clamp(200px, 24vh, 280px);
}
#about .metric-label {
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: clamp(12px, 1.6vw, 16px);
  white-space: nowrap;
  opacity: 0.95;
  font-size: clamp(16px, 1.05vw, 25px);
}
#about .metric-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  width: clamp(280px, 34vw, 460px);
  max-width: 100%;
  margin: clamp(10px, 1.4vw, 16px) 0 clamp(22px, 2.6vw, 30px);
  position: relative;
  overflow: hidden;
}
#about .metric-line > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 1.6s ease;
}
#about .about-metrics.in-view .metric-line > span {
  width: 100%;
}

#about .metric-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  color: #fff;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(38px, 5.2vw, 84px);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
#about .metric-value .unit {
  font-size: 0.42em;
  font-weight: 700;
  margin-left: 0.12em;
  color: #e5e7eb;
  transform: translateY(-0.05em);
}

/* 단차(오프셋) */
#about .about-metrics .metric:nth-child(1) {
  top: 7vh;
}
#about .about-metrics .metric:nth-child(2) {
  top: 0;
}
#about .about-metrics .metric:nth-child(3) {
  top: 7vh;
}
#about .about-metrics .metric:nth-child(4) {
  top: 0vh;
}

@media (max-width: 980px) {
  #about .about-head {
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 4vw, 28px);
  }
  #about .about-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, 5vw, 36px);
    row-gap: clamp(20px, 5vw, 40px);
    padding-bottom: 0;
  }
  #about .about-metrics .metric {
    top: 0;
  }
}

/* =========================
   Contact & Footer
   ========================= */
.contact-white {
  background: #fff;
  color: #0f172a;
}
.contact-white h2,
.contact-white .sub {
  color: #0f172a;
}
.contact-white .contact-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  max-width: 560px;
}
.contact-white .contact-form input,
.contact-white .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  color: #0f172a;
}
.contact-white .btn.primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.site-footer {
  border-top: 1px solid #111;
  padding: 32px 0;
  background: #000;
  color: #94a3b8;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer .foot-links a {
  color: #cbd5e1;
  margin-left: 12px;
}

:focus-visible {
  outline: 2px dashed #888;
  outline-offset: 2px;
}

/* =========================
   MANIFEST — 3줄 → SAME
   ========================= */
.manifesto {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}
.manifesto-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
}
.manifesto .lines {
  position: relative;
  text-align: center;
  line-height: 1.16;
  z-index: 1;
}
.manifesto .line {
  margin: 0.12em 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 5.2vw, 60px);
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  will-change: transform, opacity, filter, letter-spacing;
  color: #fff;
}
.manifesto .line .inner {
  display: inline-block;
}

@keyframes mf-in-left {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-18vw);
    letter-spacing: 0.06em;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    letter-spacing: -0.01em;
  }
}
@keyframes mf-in-right {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(18vw);
    letter-spacing: 0.06em;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    letter-spacing: -0.01em;
  }
}
@keyframes mf-in-up {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12vh);
    letter-spacing: 0.06em;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    letter-spacing: -0.01em;
  }
}
.manifesto .line.enter-left {
  animation: mf-in-left 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.manifesto .line.enter-right {
  animation: mf-in-right 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.manifesto .line.enter-up {
  animation: mf-in-up 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes mf-lines-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    filter: blur(6px);
  }
}
.manifesto .lines.fade-out {
  animation: mf-lines-out 900ms ease forwards;
}

/* SAME 타이핑 */
.manifesto .same-type {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.manifesto .same-type.on {
  opacity: 1;
  transition: opacity 0.6s ease;
}
.manifesto .same-type .text {
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(20px, 9vw, 100px);
  position: relative;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(126, 172, 255, 0.12));
  white-space: nowrap;
}
.manifesto .same-type .text.force-plain {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
.manifesto .same-type .text .g {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(8px);
}
.manifesto .same-type .text .g.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.55s,
    filter 0.55s;
}
@keyframes mf-caret {
  50% {
    opacity: 0;
  }
}
.manifesto .same-type .caret {
  display: inline-block;
  width: 0.5ch;
  margin-left: 0.12ch;
  border-right: 2px solid #fff;
  animation: mf-caret 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .manifesto .line,
  .manifesto .lines.fade-out,
  .manifesto .same-type .text .g {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ---------- About: 간격/바/숫자/겹침 강화 오버라이드 ---------- */
:root {
  --container-w: 1440px;
}

#about .about-head {
  column-gap: clamp(96px, 10vw, 160px);
}

#about .about-metrics {
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  column-gap: clamp(48px, 5vw, 96px);
  padding-bottom: 12vh;
}
#about .metric {
  min-height: clamp(220px, 26vh, 320px);
}
#about .metric-line {
  width: 88%;
}
#about .metric-value {
  font-size: clamp(34px, 4.8vw, 72px);
  white-space: nowrap;
}
#about .about-metrics .metric:nth-child(2) .metric-value .unit {
  display: block;
  margin-left: 0;
  margin-top: 0.25em;
}
#about .about-metrics .metric:nth-child(1) {
  top: 8vh;
}
#about .about-metrics .metric:nth-child(2) {
  top: -2;
}
#about .about-metrics .metric:nth-child(3) {
  top: 8vh;
}
#about .about-metrics .metric:nth-child(4) {
  top: -2vh;
}

/* =============== Preloader 강화 =============== */
#preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 2000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
#preloader .loader {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.logo-stack {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1;
}
.logo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-stack .logo-base {
  display: none;
}
.logo-stack .logo-fill {
  filter: invert(1) brightness(2) contrast(110%);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, filter;
}
.logo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: clamp(42px, 9vw, 120px);
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  background-size: var(--fill, 0%) 100%;
  background-repeat: no-repeat;
}
.logo-stack.use-fallback .logo-fallback {
  display: flex;
}
.logo-stack.use-fallback .logo-base,
.logo-stack.use-fallback .logo-fill {
  display: none;
}
.loadbar {
  width: 220px;
  height: 4px;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
}
.loadbar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
}

/* ===== Clients(Portfolio) 공통 톤 ===== */
.clients {
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #0c0c0c 100%);
}
.clients::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 40% at 50% 28%,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  pointer-events: none;
}
.clients-head {
  text-align: center;
  margin-bottom: clamp(16px, 4vw, 36px);
}
.clients h2 {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 6vw, 64px);
}
.clients .sub {
  margin: 8px auto 0;
  color: #cbd5e1;
  font-size: clamp(14px, 1.6vw, 18px);
  max-width: 78ch;
}
.marquee {
  --gap: clamp(48px, 7vw, 120px);
  --speed: 28s;
  overflow: hidden;
  margin: clamp(18px, 3vw, 36px) 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.marquee__inner {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  width: max-content;
  animation: marquee var(--speed) linear infinite;
  animation-play-state: paused;
}
.clients.is-active .marquee__inner {
  animation-play-state: running;
}
.m2 .marquee__inner {
  animation-direction: reverse;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee img {
  height: clamp(28px, 5vw, 64px);
  width: auto;
  flex: 0 0 auto;
  opacity: 0.9;
  filter: grayscale(1) contrast(1.05) brightness(1.05);
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.marquee img:hover {
  filter: grayscale(0) contrast(1) brightness(1);
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .marquee {
    --gap: clamp(32px, 10vw, 60px);
    --speed: 24s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__inner {
    animation: none;
  }
}

/* ====== #clients 전용(흰 배경/다크 텍스트 + 겹침 방지 + 통일 사이징) ====== */
#clients.panel {
  align-items: start; /* 제목을 상단부터 배치 */
}
#clients.clients {
  background: #fff;
  color: #0f172a;
}
#clients.clients::before {
  display: none;
}

/* 제목: 상단 중앙 고정(흐름 안에서 정렬) */
#clients .clients-head {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;

  width: 100%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;

  padding-top: calc(var(--header-h) + clamp(16px, 6vh, 72px));
  padding-bottom: clamp(28px, 6vh, 64px);
}
#clients .clients-head h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 6vw, 80px);
}
#clients .clients-head .sub {
  margin-top: 8px;
  color: #334155;
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 78ch;
}

/* 로고 2줄: 페이지 중간보다 살짝 아래 */
#clients .marquee {
  --gap: clamp(52px, 8vw, 140px);
  --speed: 38s; /* ← 속도 조절은 여기 */
  margin-top: clamp(40px, 14vh, 180px); /* ← 첫 줄을 더 아래로 */
}
#clients .marquee + .marquee {
  margin-top: clamp(44px, 7vw, 96px); /* 1,2줄 간격 */
}

/* 로고 컬러 유지 + 살짝 리프트만 */
#clients .marquee img {
  filter: none;
  opacity: 1;
  transition: transform 0.25s ease;
}
#clients .marquee img:hover {
  transform: translateY(-2px);
}

/* === 로고 크기 ‘통일’(잘림 없음) === */
#clients {
  --logo-w: clamp(170px, 18vw, 280px);
  --logo-h: clamp(68px, 8vw, 100px);
}

/* 권장 마크업: <div class="logo"><img ...></div> */
#clients .logo {
  width: var(--logo-w);
  height: var(--logo-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: transparent;
  overflow: visible; /* 잘림 방지 */
}
#clients .logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* 비율 유지, 잘림 없음 */
  object-position: center;
}

/* (폴백) 로고를 .logo로 감싸지 않았을 때도 최대 높이 보장 */
#clients .marquee > img {
  max-height: var(--logo-h);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* in-view에서만 재생(유지) */
#clients .marquee__inner {
  animation-play-state: paused;
}
#clients.is-active .marquee__inner {
  animation-play-state: running;
}
/* =========================
   상담 문의 페이지( contact-page ) 전용 다크 테마
   다른 페이지엔 영향 없음
   ========================= */
body.contact-page {
  background: #000;
  color: #e5e7eb;
}

/* 폰트 깔끔 고정 (이 페이지 전체) */
body.contact-page,
body.contact-page * {
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui,
    "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", "맑은 고딕",
    "Malgun Gothic", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 헤더는 그대로 다크 유리감 유지 */
body.contact-page .site-header {
  background: rgba(0, 0, 0, 0.75);
  border-bottom: 1px solid #111;
}

/* (있다면) 어두운 배경에서 잘 보이도록 로고/아이콘 반전 보정 */
body.contact-page .site-header .logo img.logo-invert,
body.contact-page img.icon-invert {
  filter: invert(1) brightness(1.8);
}

/* contact-white를 이 페이지에서만 다크로 오버라이드 */
body.contact-page .contact-white {
  background: transparent;
  color: #e5e7eb;
}

/* 타이틀/서브텍스트 색상 */
body.contact-page .contact-white h2 {
  color: #fff;
  font-weight: 800;
}
body.contact-page .contact-white .sub {
  color: #cbd5e1;
}

/* 폼 레이아웃 폭 살짝 좁혀 가독성 향상(원하면 조절) */
body.contact-page .contact-white .contact-form {
  max-width: 680px;
}

/* 인풋/텍스트에어리어 다크 스타일 */
body.contact-page .contact-white .contact-form input,
body.contact-page .contact-white .contact-form textarea {
  width: 100%;
  background: #0b0b0b;
  color: #e5e7eb;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* 플레이스홀더 색 */
body.contact-page .contact-white .contact-form input::placeholder,
body.contact-page .contact-white .contact-form textarea::placeholder {
  color: #9ca3af;
}

/* 포커스 시 테두리/글로우 */
body.contact-page .contact-white .contact-form input:focus,
body.contact-page .contact-white .contact-form textarea:focus {
  outline: none;
  border-color: #6b7280; /* slate-500 느낌 */
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15);
}

/* 전송 버튼 — 블랙 배경에서 눈에 띄도록 화이트 버튼 */
body.contact-page .contact-white .btn.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 18px;
  transition: transform 0.05s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
body.contact-page .contact-white .btn.primary:hover {
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.12);
}
body.contact-page .contact-white .btn.primary:active {
  transform: translateY(1px);
}

/* 접근성: 포커스 링 */
body.contact-page .contact-white .btn.primary:focus-visible {
  outline: 2px dashed #bbb;
  outline-offset: 3px;
}
