:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --muted: #bcbcbc;
  --line: #1f1f1f;
  --maxw: 1200px;
  --radius: 20px;
  --gap: clamp(16px, 2.5vw, 28px);
  --pad: clamp(16px, 3.5vw, 40px);
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Pretendard", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.6px;
  margin: 0;
  padding: 0;
}



a {
  color: var(--fg);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */
header {
  position: fixed;
  width: calc(100vw - 3px);
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  width: 185px;
  height: 100%;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  background: url("/images/logo.png") no-repeat center center;
  background-size: contain;
}
.nav a.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav a.btn:hover {
  transform: translateY(-1px);
  background: var(--fg);
  color: #000;
  text-decoration: none;
}

/* Hero */
.hero {
  padding: calc(var(--pad) * 2) 0 calc(var(--pad) * 2.5);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.h1 {
  margin: 16px 0 16px;
  font-weight: 900;
  font-size: clamp(36px, 6.4vw, 72px);
  line-height: 1.06;
  word-break: keep-all;
}
.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #e7e7e7;
  max-width: 62ch;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e6e670;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--fg);
  color: #000;
  text-decoration: none;
}
.btn.secondary {
  border-color: #888;
  color: #ddd;
}
.btn.secondary:hover {
  background: #ddd;
  color: #000;
  border-color: #ddd;
}

/* Split grid */
.split {
  display: flex;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--gap);
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.marquee {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.tile {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0) 40%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 11px
    );
}
.tile:nth-child(odd) {
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0) 40%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 11px
    );
}

/* Section */
section {
  padding: calc(var(--pad) * 2) 0;
  border-bottom: 1px solid var(--line);
}
section:last-child {
  border-bottom: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--gap);
}
.h2 {
  font-size: clamp(24px, 4.8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  word-break: keep-all;
}
.sub {
  color: var(--muted);
  max-width: 60ch;
}

/* Principles */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: calc(var(--pad) * 0.75);
  background: #0e0e0e;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.card p {
  color: #d8d8d8;
  margin: 0;
}

/* Process */
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.step + .step {
  margin-top: 16px;
}
.dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #444;
  font-weight: 800;
}

/* Case studies */
.cases {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.case {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0e0e0e;
}
.case .img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0)
    ),
    radial-gradient(
      1200px 300px at 30% 50%,
      rgba(255, 255, 255, 0.06),
      transparent
    );
}
.case .body {
  padding: 18px 18px 20px;
}
.case h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.case p {
  margin: 0;
  color: #d6d6d6;
}


/* Quote */
.quote {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px);
  background: #0e0e0e;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.5;
  word-break: keep-all;
}
.quote small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* CTA */
.cta {
  background: #0e0e0e;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.cta .inner {
  padding: calc(var(--pad) * 1.6);
}
.cta .h2 {
  color: #fff;
}
.cta .sub {
  color: #ffffff;
}
.cta .btn {
  border-color: var(--line);
  color: #ffffff;
}
.cta .btn:hover {
  background: #000;
  color: #fff;
}

footer {
  color: var(--muted);
  padding: var(--pad) 0 calc(var(--pad) * 1.4);
  font-size: 13px;
  border-top: 1px solid #e6e6e670;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .nav a.btn {
    transition: none;
  }
}

.main-video {
  width: 100%;
  height: 100%;
  padding: 0;
  margin-bottom: 3rem;
}

.main-video .wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#contact_btn:hover {
  font-weight: bolder;
  text-decoration: none;
  transition: 0.2s all;
}

#contact_btn {
  height: 100%;
}

h2.word-center {
  margin-top: -1rem;
  position: relative;
}

.wrap-center {
  flex-direction: column;
  align-items: center;
}

.sub-2 {
    font-size: 2rem;
    margin: 0;
}



@media (max-width: 900px) {
  .case {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  .main-video {
    height: 100vh !important;
  }

  .hero {
    padding-inline: 1rem;
  }

  .h2 {
    margin: 22px 0;
    font-size: 1.1rem;
  }

  .h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: calc(var(--pad) * 1.25);
  }

  .word-center {
    margin: 0 auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .split {
    justify-content: center;
  }

  .sub-2 {
    font-size: 1.2rem;
    margin: 0;
  }
}