:root {
  --black: #0a0a0b;
  --ink: #0f0f10;
  --ink-2: #5a5a60;
  --ink-3: #8f8f96;
  --line: #e4e4e1;
  --paper: #ffffff;
  --wrap: 1360px;
  --gutter: 40px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --display: "Outfit", "Pretendard Variable", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

/* 로고 */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand svg { width: 36px; height: 22px; color: currentColor; }
.brand img { height: 15px; width: auto; transition: filter .4s; }
.tone-dark .brand img, .dark .brand img { filter: invert(1); }

/* 상단 메뉴 */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, color .35s, opacity .45s var(--ease), transform .45s var(--ease); }
.nav.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; max-width: none; }
.nav.tone-dark { color: #fff; }
.nav.solid { background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom-color: rgba(0,0,0,.06); }
.nav.solid.tone-dark { background: color-mix(in srgb, var(--nav-bg, #0a0a0b) 86%, transparent); border-bottom-color: rgba(255,255,255,.1); }

/* 구역 머리줄: 가는 선 + 작은 라벨 */
.label-row { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); }
.dark .label-row { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.45); }

/* ── 첫 화면: 로고 하나 ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 46% at 50% 48%, rgba(255,255,255,.08), transparent 70%);
}
.lockup { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.lockup svg { width: clamp(72px, 15vw, 230px); height: auto; overflow: visible; }
.lockup svg .track path { stroke: rgba(255,255,255,.08); }
.lockup svg .line path { opacity: 0; }
.ready .lockup svg .line path { animation: draw 2.2s var(--ease) .2s forwards; }
.ready .lockup svg .line path:nth-child(2) { animation-delay: .45s; }
@keyframes draw { 0% { opacity: 1; stroke-dashoffset: var(--len); } 100% { opacity: 1; stroke-dashoffset: 0; } }
.lockup img { height: clamp(26px, 4.6vw, 70px); width: auto; filter: invert(1); opacity: 0; transform: translateX(-12px); transition: opacity 1.2s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s; }
.ready .lockup img { opacity: 1; transform: none; }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); max-width: none; }
.hero-bar a:hover { color: #fff; }

/* ── 서비스 ── */
.services-head { padding-top: 96px; padding-bottom: 40px; }

/* 제품 화면 공통: 기기 틀 없이 둥글게 */
.shot-web {
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 60px -20px rgba(0,0,0,.4); transition: transform .9s var(--ease);
}
.shot-web img { width: 100%; height: auto; }
.shot-app, .shot-phone {
  border-radius: 9% / 4.2%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 44px 80px -24px rgba(0,0,0,.6); transition: transform .9s var(--ease);
}
.shot-app { aspect-ratio: 1320 / 2868; }
.shot-app img, .shot-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-web video { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-phone, .shot-web { position: relative; }
.sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(10,10,11,.58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18); transition: background .25s, transform .25s var(--ease);
}
.sound:hover { transform: scale(1.06); }
.sound.on { background: #fff; color: var(--ink); }
.sound svg { width: 20px; height: 20px; }

/* 서비스 3개 이하: 서비스마다 화면 폭 가득한 구역 */
.feature { position: relative; overflow: hidden; background: var(--c-bg); color: var(--c-ink); }
.feature-inner { display: grid; grid-template-columns: 9fr 15fr; gap: 48px; align-items: center; min-height: 880px; padding-top: 100px; padding-bottom: 100px; }
.feature.flip .feature-inner { grid-template-columns: 15fr 9fr; }
.feature.flip .feature-media { order: -1; }
.f-index { opacity: .55; }
.f-id { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.f-id img { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.f-id h2 { font-size: clamp(56px, 6vw, 96px); font-weight: 800; letter-spacing: -0.055em; line-height: 1; }
.f-line { margin-top: 30px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.025em; opacity: .92; }
.f-kind { margin-top: 10px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; letter-spacing: -0.02em; opacity: .62; }
.f-plat { margin-top: 12px; opacity: .55; }
.f-kind + .f-plat { margin-top: 16px; }
.f-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; height: 52px; padding: 0 24px; border-radius: 99px;
  font-family: var(--display); font-size: 16px; font-weight: 500; background: color-mix(in srgb, currentColor 15%, transparent); transition: background .3s;
}
.f-link:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
.f-link i { font-style: normal; transition: transform .3s var(--ease); }
.f-link:hover i { transform: translate(2px, -2px); }
.feature-media { position: relative; height: 680px; }
.feature-media .shot-web { position: absolute; left: 16%; top: 24px; width: 118%; z-index: 1; }
.feature-media .shot-phone, .feature-media .shot-app { position: absolute; left: 0; top: 96px; width: 36%; z-index: 2; }
.flip .feature-media .shot-web { left: auto; right: 16%; }
.flip .feature-media .shot-phone, .flip .feature-media .shot-app { left: auto; right: 0; }
.feature-media.phones .shot-phone.p1, .flip .feature-media.phones .shot-phone.p1 { left: 46%; right: auto; top: 0; width: 38%; z-index: 2; }
.feature-media.phones .shot-phone.p2, .flip .feature-media.phones .shot-phone.p2 { left: 8%; right: auto; top: 64px; width: 33%; z-index: 1; }
.feature-media.phones-3 .shot-phone.p1, .flip .feature-media.phones-3 .shot-phone.p1 { left: 32%; top: 0; width: 36%; z-index: 3; }
.feature-media.phones-3 .shot-phone.p2, .flip .feature-media.phones-3 .shot-phone.p2 { left: 0; top: 64px; width: 30%; }
.feature-media.phones-3 .shot-phone.p3, .flip .feature-media.phones-3 .shot-phone.p3 { left: 70%; right: auto; top: 64px; width: 30%; z-index: 1; position: absolute; }

/* 웹 화면이 있는 서비스: 글은 위 한 줄, 웹·휴대폰 영상은 아래에 겹치지 않게 나란히 (화면 밖으로 잘리지 않음) */
.feature.wide .feature-inner { grid-template-columns: 1fr; gap: 64px; align-items: stretch; }
.feature.wide .feature-media { order: 0; }
.feature-media.row { height: auto; display: grid; grid-template-columns: var(--cols); gap: 24px; align-items: end; }
.feature.wide .feature-media.row > * { position: relative; left: auto; right: auto; top: auto; width: auto; z-index: auto; }
@media (min-width: 961px) {
  .wide .feature-text { display: grid; grid-template-columns: 1fr auto auto; column-gap: 56px; align-items: end; }
  .wide .f-index { grid-column: 1 / -1; }
  .wide .f-id { grid-column: 1; grid-row: 2; }
  .wide .f-meta { grid-column: 2; grid-row: 2; }
  .wide .f-line { margin-top: 0; }
  .wide .f-link { grid-column: 3; grid-row: 2; margin-top: 0; }
}

/* 서비스 4개 이상: 2열 카드 격자 */
.cards-wrap { padding-bottom: 150px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; height: 680px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: var(--c-bg); color: var(--c-ink); padding: 40px 40px 0;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-id { display: flex; align-items: center; gap: 16px; }
.card-id img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.card-id h3 { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.card-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px;
  font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  background: color-mix(in srgb, currentColor 14%, transparent); transition: background .3s;
}
.card-pill i { font-style: normal; transition: transform .3s var(--ease); }
.card:hover .card-pill { background: color-mix(in srgb, currentColor 22%, transparent); }
.card:hover .card-pill i { transform: translate(2px, -2px); }
.card-line { margin-top: 26px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; opacity: .9; }
.card-kind { margin-top: 4px; font-size: 15px; font-weight: 500; opacity: .62; }
.card-plat { margin-top: 8px; opacity: .55; }
.card-shots { position: relative; flex: none; height: 520px; margin-top: 44px; }
.card .shot-web { position: absolute; left: 0; top: 0; width: 142%; }
.card .shot-app { position: absolute; right: 5%; top: 80px; width: 29%; }
.card .shot-app.back { right: auto; left: 18%; top: 30px; width: 31%; }
.card:hover .shot-web { transform: translateY(-8px); }
.card:hover .shot-app { transform: translateY(-18px); }

/* ── 문의 + 하단 ── */
.dark { background: var(--black); color: #fff; }
.contact { padding: 130px 0 150px; }
.mail {
  display: inline-flex; align-items: baseline; gap: .3em; margin-top: 56px;
  font-family: var(--display); font-weight: 300; font-size: clamp(26px, 7.2vw, 116px); max-width: 100%; letter-spacing: -0.045em; line-height: 1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 10px; transition: background-size .6s var(--ease);
}
.mail:hover { background-size: 100% 1px; }
.mail i { font-style: normal; font-size: .5em; opacity: .45; }
footer { padding: 72px 0 48px; font-size: 14px; color: rgba(255,255,255,.55); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.f-grid h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.f-grid a { display: block; width: max-content; color: rgba(255,255,255,.82); line-height: 1.9; }
.f-grid a:hover { color: #fff; }
.f-grid .brand { display: inline-flex; color: #fff; }
.f-legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,.4); }
.f-legal span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; background: rgba(255,255,255,.18); margin: 0 12px; }
.f-legal .copy { margin-top: 10px; font-family: var(--display); letter-spacing: .03em; }

/* 움직임: 화면에 들어오면 살짝 올라온다 */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; }

@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .nav .wrap { height: 60px; }
  .hero-bar .wrap { height: 54px; }
  .services-head { padding-top: 64px; padding-bottom: 28px; }
  .feature-inner, .feature.flip .feature-inner { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 72px; padding-bottom: 0; }
  .feature.flip .feature-media { order: 0; }
  .f-id { margin-top: 22px; gap: 14px; }
  .f-id img { width: 52px; height: 52px; border-radius: 13px; }
  .f-id h2 { font-size: 46px; }
  .f-line { margin-top: 18px; font-size: 18px; }
  .f-kind { margin-top: 6px; font-size: 15px; }
  .f-link { margin-top: 26px; height: 46px; padding: 0 20px; font-size: 15px; }
  .feature-media { height: 430px; }
  .feature-media .shot-web, .flip .feature-media .shot-web { left: 26%; right: auto; top: 16px; width: 130%; border-radius: 9px; }
  .feature-media .shot-phone, .feature-media .shot-app, .flip .feature-media .shot-phone, .flip .feature-media .shot-app { left: 0; right: auto; top: 56px; width: 46%; }
  .feature-media.phones .shot-phone.p1, .flip .feature-media.phones .shot-phone.p1 { left: 50%; top: 0; width: 47%; }
  .feature-media.phones .shot-phone.p2, .flip .feature-media.phones .shot-phone.p2 { left: 0; top: 46px; width: 43%; }
  .feature.wide .feature-inner { gap: 36px; }
  .feature-media.row { grid-template-columns: repeat(var(--n), 1fr); gap: 12px; padding-bottom: 56px; }
  .feature.wide .feature-media.row > .shot-web { grid-column: 1 / -1; order: -1; border-radius: 9px; }
  .sound { width: 32px; height: 32px; right: 7px; bottom: 7px; }
  .sound svg { width: 17px; height: 17px; }
  .feature-media.phones-3 { height: 330px; }
  .feature-media.phones-3 .shot-phone.p1, .flip .feature-media.phones-3 .shot-phone.p1 { left: 33%; top: 0; width: 34%; }
  .feature-media.phones-3 .shot-phone.p2, .flip .feature-media.phones-3 .shot-phone.p2 { left: 0; top: 34px; width: 31%; }
  .feature-media.phones-3 .shot-phone.p3, .flip .feature-media.phones-3 .shot-phone.p3 { left: 69%; top: 34px; width: 31%; }
  .cards-wrap { padding-bottom: 100px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { height: 540px; border-radius: 24px; padding: 26px 24px 0; }
  .card-id { gap: 12px; }
  .card-id img { width: 42px; height: 42px; border-radius: 11px; }
  .card-id h3 { font-size: 25px; }
  .card-pill { padding: 7px 11px; font-size: 12px; }
  .card-line { margin-top: 20px; font-size: 16px; }
  .card-shots { height: 400px; margin-top: 30px; }
  .card .shot-web { width: 150%; border-radius: 9px; }
  .card .shot-app { width: 36%; top: 44px; right: 4%; }
  .contact { padding: 90px 0 100px; }
  .mail { margin-top: 40px; }
  .contact .label-row span + span { display: none; }
  .lockup { gap: 14px; }
  footer { padding: 56px 0 40px; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .f-brand { grid-column: 1 / -1; }
  .f-legal { margin-top: 44px; }
  .f-legal span { display: block; }
  .f-legal span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lockup svg .line path { opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .lockup img { opacity: 1; transform: none; }
  .js .rv { opacity: 1; transform: none; }
}
