:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-soft: #fafaf8;
  --text: #111111;
  --muted: #616161;
  --line: #e7e7e3;
  --accent: #1d3557;
  --container: 1120px;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.04);
  --shadow-card: 0 16px 34px rgba(17, 17, 17, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% -10%, #fbfbf9 0%, var(--bg) 38%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.62;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.45rem, 3.1vw, 2.55rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-brand {
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 800;
  line-height: 1.06;
  white-space: nowrap;
  background: linear-gradient(135deg, #0f1724 0%, #1d3557 40%, #0f1724 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.14rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled {
  background: rgba(244, 244, 242, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.logo-wordmark {
  font-family: "Pretendard", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #171717;
  text-transform: uppercase;
}

.logo-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateX(-16px);
  filter: blur(7px);
  animation: logoSlideDissolve 1s cubic-bezier(0.19, 0.8, 0.2, 1) 0.1s forwards;
}

@keyframes logoSlideDissolve {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translateX(-16px);
  }
  55% {
    opacity: 0.75;
    filter: blur(2.8px);
    transform: translateX(-6px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #2b2b2b;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1.5px;
  width: 0;
  background: var(--text);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.hero {
  padding-top: 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.hero-sub {
  margin-top: 16px;
  max-width: 620px;
  color: #3a3a3a;
}

.hero-sub-animate {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(5px);
  animation: subCopySlideDissolve 1s cubic-bezier(0.2, 0.75, 0.25, 1) 0.28s forwards;
}

@keyframes subCopySlideDissolve {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  60% {
    opacity: 0.75;
    transform: translateY(3px);
    filter: blur(1.8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero-metrics div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px 12px;
}

.hero-metrics strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.hero-metrics span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #666;
}

.hero-visual {
  position: relative;
}

.reel-frame {
  min-height: 370px;
  border: 1px solid #dadad5;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 243, 240, 0.95)),
    radial-gradient(circle at 80% 0%, rgba(29, 53, 87, 0.16), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.75), rgba(245, 245, 242, 0.7));
}

.reel-top {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #6a6a6a;
}

.play-chip {
  justify-self: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(17, 17, 17, 0.74);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

.reel-bottom {
  font-size: 12px;
  color: #4f4f4f;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.work-link {
  display: block;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: #dcdcda;
}

.thumb {
  height: 190px;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #8d8d87;
  background:
    linear-gradient(160deg, #efefec, #f8f8f6),
    radial-gradient(circle at 80% 20%, rgba(29, 53, 87, 0.08), transparent 40%);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 24px;
}

.service-card p {
  color: #444;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 20px;
}

.process-item span {
  min-width: 36px;
  font-weight: 700;
  color: var(--accent);
}

.about-box {
  max-width: 790px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(249, 249, 247, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.about-box p:last-child {
  margin-top: 12px;
  color: #3f3f3f;
}

.contact-form {
  max-width: 760px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 14px;
}

input,
textarea {
  border: 1px solid #d8d8d3;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-direct {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.contact-direct a {
  color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-cta {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.footer-stack p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.footer-brandline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brandline span {
  font-size: 16px;
  font-weight: 500;
}

.footer-brandline img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.footer-stack a {
  color: #4a4a4a;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reel-frame {
    min-height: 320px;
  }

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

  .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 242, 0.97);
  }

  .nav.open {
    display: flex;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 82px;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-brand {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
    letter-spacing: 0.045em;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .works-grid,
  .form-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .reel-frame {
    min-height: 240px;
  }

  .play-chip {
    width: 100%;
    text-align: center;
  }

  .logo-wordmark {
    display: none;
  }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.2);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
}
