/*
 * PPT제작소 — 공통 스타일 + 메인 스크롤 서사.
 * 흰 바탕 · 아주 큰 굵은 한글 제목 · 강조색 하나(주홍 #ef5a24). 구역마다 sticky 로 머무는 시간을 두고 글은 줄 마스크로 차례로 올라온다.
 * 연출은 html.fx(자바스크립트 돎) 이고 html.rm(움직임 줄이기)이 아닐 때, 구역에 data-seen 이 붙으면 켠다.
 * 그 밖에는(JS 없음, 움직임 줄이기) 모든 글 · 카드 · 화면이 처음부터 최종 상태로 보인다.
 * 상태 클래스는 is-on / data-seen 만 쓴다(.in 은 쓰지 않는다).
 */

:root {
  --bg: #ffffff;
  --ink: #15130f;
  --sub: #4a4640;
  --muted: #6f6a62;
  --line: #ebe7e1;
  --line-strong: #d6d0c7;
  --soft-bg: #faf7f3;
  --accent: #ef5a24;
  --accent-strong: #c2410c;
  --accent-soft: #fff1ea;
  --bezel: #1a1612;
  --shadow: 0 1px 2px rgba(40, 24, 10, 0.06), 0 18px 48px rgba(60, 30, 10, 0.1);
  --soft: 0 20px 60px rgba(60, 30, 10, 0.12);
  --head-h: 68px;
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main {
  overflow-x: clip;
}
img,
video {
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.wide {
  max-width: 1240px;
}
.hl {
  color: var(--accent);
  font-style: normal;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

/* 큰 제목과 설명 */
.big {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.14;
  margin: 0;
}
.lead {
  margin: 22px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--sub);
}
.lead a {
  color: var(--accent-strong);
  font-weight: 700;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.28);
}
.btn-accent:hover {
  background: #a8370a;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #2e2a24;
}
.btn-line {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-line:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

/* ===== 머리글 ===== */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--head-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-head.is-on {
  border-bottom-color: rgba(214, 208, 199, 0.7);
  background: rgba(255, 255, 255, 0.92);
}
.head-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  position: relative;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 4px -4px 0 -1px #ffd2bd;
}
.logo-mark i {
  position: absolute;
  left: 6px;
  right: 9px;
  top: 7px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 0 0 rgba(255, 255, 255, 0.7);
}
.gnb {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gnb a:not(.btn) {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--sub);
  text-decoration: none;
}
.gnb a:not(.btn):hover,
.gnb a[aria-current="page"]:not(.btn) {
  color: var(--ink);
  background: var(--soft-bg);
}
.gnb-cta {
  margin-left: 8px;
}
.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.menu-btn i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}
.menu-btn i:first-of-type {
  top: 17px;
}
.menu-btn i:last-of-type {
  top: 25px;
}
.menu-btn[aria-expanded="true"] i:first-of-type {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] i:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

/* ===== 바닥글 ===== */
.site-foot {
  padding: 64px 0 48px;
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.foot-desc {
  max-width: 420px;
  margin: 14px 0 0;
  line-height: 1.7;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-content: flex-start;
  max-width: 520px;
}
.foot-links a {
  font-weight: 700;
  color: var(--sub);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-biz,
.foot-note,
.foot-copy {
  margin: 18px 0 0;
  line-height: 1.7;
}
.foot-biz a {
  color: var(--sub);
}
.foot-note {
  margin-top: 6px;
}

/* ===== 줄 마스크 등장 ===== */
.rv-m {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rv-l {
  display: block;
}
.fx:not(.rm) .rv-l {
  transition:
    transform 0.7s cubic-bezier(0.71, 0.2, 0.46, 0.93),
    opacity 0.7s ease;
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.fx:not(.rm) [data-scene]:not(.s-hero):not([data-seen]) .rv-l {
  transform: translateY(112%);
  opacity: 0;
}
/* 히어로 글은 스크롤이 아니라 열리자마자 올라온다 (첫 프레임부터 자리는 잡혀 있다) */
.fx:not(.rm) .s-hero .rv-l {
  animation: rise 0.8s cubic-bezier(0.25, 0.3, 0.24, 0.93) both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.13s);
  transition: none;
}
@keyframes rise {
  from {
    transform: translateY(70%);
    opacity: 0;
  }
}

/* sticky 로 머무는 구역의 안쪽 */
.s-stick {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== 1 히어로 ===== */
.s-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--head-h) + 40px) 0 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #fbfaf8 url("/assets/media/hero.webp") center / cover no-repeat;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.25) 78%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, #fff 100%);
}
.hero-h {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 104px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.hero-lead {
  max-width: 640px;
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--sub);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
}
.fx:not(.rm) .hero-cta,
.fx:not(.rm) .hero-facts,
.fx:not(.rm) .s-hero .eyebrow {
  animation: fade-up 0.8s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fx:not(.rm) .s-hero .eyebrow {
  animation-delay: 0.05s;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 30px;
  height: 48px;
  translate: -50% 0;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  opacity: calc(1 - var(--p, 0) * 1.6);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
}
.fx:not(.rm) .scroll-cue span {
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  50% {
    transform: translateY(12px);
    opacity: 0.3;
  }
}

/* ===== 2 발표 화면 틀과 펼쳐지는 샘플 ===== */
.s-device {
  position: relative;
  height: 240svh;
}
.s-device .s-stick {
  justify-content: flex-start;
  padding-top: calc(var(--head-h) + min(6svh, 48px));
  padding-bottom: 20px;
}
.dev-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.dev-text .lead {
  margin-top: 14px;
}
.dev-stage {
  position: relative;
  height: calc(440px * var(--k, 1));
  margin-top: 30px;
}
.dev-zoom {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 440px;
  transform: scale(var(--k, 1));
  transform-origin: 50% 0;
}
.dev-laptop {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 680px;
  translate: -50% 0;
}
.dev-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 12px solid var(--bezel);
  border-bottom-width: 16px;
  border-radius: 18px 18px 6px 6px;
  background: #f2efea;
  overflow: hidden;
  box-shadow: 0 0 0 1px #3a342d, 0 40px 90px rgba(40, 20, 5, 0.26);
}
.dev-base {
  position: relative;
  width: 116%;
  height: 16px;
  margin-left: -8%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #e9e5df, #c9c3ba);
  box-shadow: 0 18px 30px rgba(40, 20, 5, 0.18);
}
.dev-base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 110px;
  height: 6px;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: #b9b2a8;
}
.dev-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(28px);
}
.fx:not(.rm) .dev-slide {
  transition:
    opacity 0.55s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dev-slide.is-on {
  opacity: 1;
  transform: none;
}
.dev-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dev-fan {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dev-fan li {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 440px;
  aspect-ratio: 16 / 9;
  margin-left: -220px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(60, 30, 10, 0.18);
  transform: translate(0, 0) scale(0.9);
  opacity: 0;
}
.dev-fan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fx:not(.rm) .dev-fan li {
  transition:
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.8s ease;
  transition-delay: 0.15s;
}
.fx:not(.rm) .dev-fan .fan-3,
.fx:not(.rm) .dev-fan .fan-4 {
  transition-delay: 0.3s;
}
.s-device[data-seen] .fan-1,
html:not(.fx) .fan-1,
.rm .fan-1 {
  transform: translate(-330px, -18px) rotate(-5deg) scale(0.86);
  opacity: 1;
}
.s-device[data-seen] .fan-2,
html:not(.fx) .fan-2,
.rm .fan-2 {
  transform: translate(330px, -18px) rotate(5deg) scale(0.86);
  opacity: 1;
}
.s-device[data-seen] .fan-3,
html:not(.fx) .fan-3,
.rm .fan-3 {
  transform: translate(-540px, 74px) rotate(-9deg) scale(0.7);
  opacity: 1;
}
.s-device[data-seen] .fan-4,
html:not(.fx) .fan-4,
.rm .fan-4 {
  transform: translate(540px, 74px) rotate(9deg) scale(0.7);
  opacity: 1;
}
.dev-fan .fan-1,
.dev-fan .fan-2 {
  z-index: 1;
}
.dev-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.dev-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
}
.dev-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}
.dev-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 2px 10px rgba(60, 30, 10, 0.12);
}
.dev-bar {
  width: min(320px, 70%);
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.dev-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.dev-bar span.is-run {
  animation: fill 4s linear forwards;
}
@keyframes fill {
  to {
    width: 100%;
  }
}
.dev-note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
html:not(.fx) .dev-slide:first-child,
.rm .dev-slide:first-child {
  opacity: 1;
  transform: none;
}

/* ===== 3 샘플 표지 두 줄 마키 ===== */
.s-marquee {
  padding: 140px 0 90px;
  text-align: center;
}
.s-marquee .lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.mq {
  display: grid;
  gap: 20px;
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-row {
  display: flex;
  gap: 20px;
  width: max-content;
}
.mq-list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fx:not(.rm) .mq-l {
  animation: run-l 70s linear infinite;
}
.fx:not(.rm) .mq-r {
  animation: run-r 70s linear infinite;
}
.mq-r {
  translate: calc(-50% - 10px) 0;
}
@keyframes run-l {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}
@keyframes run-r {
  to {
    transform: translateX(calc(50% + 10px));
  }
}
.mq-card {
  position: relative;
  width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft-bg);
  box-shadow: 0 14px 40px rgba(60, 30, 10, 0.12);
}
.mq-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mq-card span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.fx:not(.rm) .s-marquee:not([data-seen]) .mq {
  opacity: 0;
  transform: translateY(40px);
}
.fx:not(.rm) .mq {
  transition:
    opacity 0.8s 0.2s,
    transform 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rm .mq-row,
html:not(.fx) .mq-row {
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  translate: 0 0;
  padding: 0 16px;
}
.rm .mq-list,
html:not(.fx) .mq-list {
  flex-wrap: wrap;
  justify-content: center;
}
.rm .mq-list + .mq-list,
html:not(.fx) .mq-list + .mq-list,
.rm .mq-row + .mq-row,
html:not(.fx) .mq-row + .mq-row {
  display: none;
}
.rm .mq,
html:not(.fx) .mq {
  -webkit-mask-image: none;
  mask-image: none;
}
.mq-cta {
  margin-top: 44px;
}

/* ===== 4 영상: 전체 화면에서 발표 화면 틀로 ===== */
.s-video {
  position: relative;
  height: 250svh;
}
.s-video .s-stick {
  height: 100svh;
  overflow: hidden;
  justify-content: center;
}
.vid-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 100%;
  height: 100%;
  translate: -50% -50%;
  overflow: hidden;
  background: #efebe5;
  border-radius: 0;
}
.fx:not(.rm) .vid-mask {
  transition:
    width 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    height 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    left 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    top 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-radius 1s,
    box-shadow 1s;
}
.vid-cell {
  position: absolute;
  inset: 0;
  background: #efebe5 center / cover no-repeat;
}
.vc-1 {
  background-image: url("/assets/media/flow-1.webp");
}
.vc-2 {
  background-image: url("/assets/media/flow-2.webp");
}
.vc-3 {
  background-image: url("/assets/media/flow-3.webp");
}
.vid-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vid-cap {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 1;
  translate: -50% 0;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(60, 30, 10, 0.14);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
}
.vid-intro {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  translate: -50% -50%;
  width: 100%;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 4px 40px rgba(30, 15, 5, 0.45);
}
.fx:not(.rm) .vid-intro {
  transition:
    opacity 0.6s,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.s-video[data-seen] .vid-intro,
html:not(.fx) .vid-intro,
.rm .vid-intro {
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}
.vid-text {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
}
.vid-text .big {
  max-width: 520px;
}
.vid-text .lead {
  max-width: 480px;
  margin-bottom: 28px;
}
/* 켜지면: 영상은 오른쪽 발표 화면 틀로, 글은 왼쪽에 */
.s-video[data-seen] .vid-mask,
html:not(.fx) .vid-mask,
.rm .vid-mask {
  left: 71%;
  width: min(640px, 46vw);
  height: calc(min(640px, 46vw) * 0.5625);
  border-radius: 12px;
  box-shadow:
    0 0 0 12px var(--bezel),
    0 0 0 13px #3a342d,
    0 50px 100px rgba(40, 20, 5, 0.28);
}
.s-video[data-seen] .vid-text,
html:not(.fx) .vid-text,
.rm .vid-text {
  opacity: 1;
  transform: none;
}
.fx:not(.rm) .vid-text {
  transition:
    opacity 0.8s 0.5s,
    transform 0.8s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vc-2,
.vc-3 {
  transform: translateX(100%);
}
.fx:not(.rm) .s-video[data-seen] .vc-2 {
  animation: slide-in 1s 2.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.fx:not(.rm) .s-video[data-seen] .vc-3 {
  animation: slide-in 1s 5.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.fx:not(.rm) .s-video[data-seen] .vc-1 .vid-cap {
  animation: cap 0.5s 1.2s forwards;
}
.fx:not(.rm) .s-video[data-seen] .vc-2 .vid-cap {
  animation: cap 0.5s 3.7s forwards;
}
.fx:not(.rm) .s-video[data-seen] .vc-3 .vid-cap {
  animation: cap 0.5s 6.3s forwards;
}
@keyframes slide-in {
  to {
    transform: translateX(0);
  }
}
@keyframes cap {
  to {
    opacity: 1;
  }
}
html:not(.fx) .vc-3,
.rm .vc-3 {
  transform: none;
}
html:not(.fx) .vc-3 .vid-cap,
.rm .vc-3 .vid-cap {
  opacity: 1;
}

/* ===== 5 흩어진 카드: 무엇을 맡길 수 있나 ===== */
.s-cards {
  padding: 150px 0 110px;
}
.cards-text {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.fix-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 26px;
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
}
.fc {
  position: relative;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(60, 30, 10, 0.08);
}
.fc img {
  display: block;
  width: 112px;
  height: 112px;
  margin: -8px 0 10px -8px;
  border-radius: 20px;
}
.fc h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sub);
}
.fc-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-strong);
  text-decoration: none;
}
.fc-link:hover {
  text-decoration: underline;
}
.fc-2,
.fc-5 {
  translate: 0 34px;
}
.fc-1 {
  rotate: -1.4deg;
}
.fc-3 {
  rotate: 1.4deg;
}
.fc-4 {
  rotate: 1.1deg;
}
.fc-6 {
  rotate: -1.1deg;
}
.fx:not(.rm) .fc {
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(0.1s + var(--i, 0) * 0.1s);
}
.fx:not(.rm) .s-cards:not([data-seen]) .fc {
  opacity: 0;
  transform: translateY(70px) scale(0.96);
}

/* ===== 6 질문이 먼저 서 있고 태그가 떠오르는 구역 ===== */
.s-tags {
  position: relative;
  height: 200svh;
  background: linear-gradient(180deg, #fff 0, var(--soft-bg) 30%, var(--soft-bg) 70%, #fff 100%);
}
.s-tags .s-stick {
  gap: 48px;
  padding: calc(var(--head-h) + 20px) 0 40px;
}
.tag-q {
  margin: 0;
  padding: 0 20px;
  text-align: center;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.12;
}
.tag-stage {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tag-cloud {
  position: relative;
  width: min(1000px, 100%);
  height: 320px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tg {
  position: absolute;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(60, 30, 10, 0.12);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  white-space: nowrap;
}
.tg-2,
.tg-7 {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}
.tg-5 {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tg-1 {
  left: 2%;
  top: 0;
}
.tg-2 {
  left: 34%;
  top: 5%;
}
.tg-3 {
  left: 64%;
  top: 0;
}
.tg-4 {
  left: 8%;
  top: 36%;
}
.tg-5 {
  left: 44%;
  top: 40%;
}
.tg-6 {
  left: 0;
  top: 72%;
}
.tg-7 {
  left: 36%;
  top: 78%;
}
.tg-8 {
  left: 66%;
  top: 68%;
}
.fx:not(.rm) .tg {
  transition:
    opacity 0.5s ease,
    transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1);
  transition-delay: calc(0.15s + var(--i, 0) * 0.09s);
}
.fx:not(.rm) .s-tags:not([data-seen]) .tg {
  opacity: 0;
  transform: translateY(30px) scale(0.7);
}
.tag-note {
  margin: 26px 0 0;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--sub);
}

/* ===== 7 숫자 ===== */
.s-count {
  padding: 140px 0 120px;
}
.count-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.count-cta {
  margin-top: 32px;
}
.count-vis {
  padding: 38px 38px 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--accent-soft), #fff 70%);
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}
.count-k {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-strong);
}
.count-num {
  margin: 6px 0 0;
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-num small {
  margin-left: 6px;
  font-size: 0.26em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sub);
}
.count-bars {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.count-bars li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.cb-name {
  font-weight: 700;
  color: var(--sub);
}
.cb-bar {
  height: 12px;
  border-radius: 999px;
  background: #f1ece6;
  overflow: hidden;
}
.cb-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--accent);
}
.count-bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fx:not(.rm) .cb-bar i {
  transition: width 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fx:not(.rm) .s-count:not([data-seen]) .cb-bar i {
  width: 0;
}
.count-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
}
.count-facts div {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.count-facts dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.count-facts dd {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.count-ex {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--sub);
}
.count-ex b {
  color: var(--ink);
}

/* ===== 8 진행 순서 요약 ===== */
.s-steps {
  padding: 90px 0 110px;
}
.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step-row li {
  position: relative;
  padding: 26px 24px;
  border-radius: 24px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
}
.step-n {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}
.step-row h3 {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.step-row p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub);
}
.fx:not(.rm) .step-row li {
  transition:
    opacity 0.6s,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(0.1s + var(--i, 0) * 0.1s);
}
.fx:not(.rm) .s-steps:not([data-seen]) .step-row li {
  opacity: 0;
  transform: translateY(40px);
}
.steps-more {
  margin: 26px 0 0;
  font-weight: 800;
}
.steps-more a {
  color: var(--accent-strong);
  text-decoration: none;
}
.steps-more a:hover {
  text-decoration: underline;
}

/* ===== FAQ ===== */
.s-faq {
  padding: 90px 0 100px;
}
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 800;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.faq[open] summary::after {
  transform: rotate(225deg);
  margin-top: -3px;
}
.faq p {
  margin: 0 0 24px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--sub);
}

/* ===== 마무리 ===== */
.s-end,
.sub-cta {
  padding: 110px 0 130px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--accent-soft));
}
.s-end .lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.end-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.sub-cta h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 850;
  letter-spacing: -0.04em;
}
.sub-cta p {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--sub);
}
.sub-cta {
  padding: 90px 0 100px;
}

/* ===== 하위 페이지 공통 ===== */
.sub-hero {
  padding: calc(var(--head-h) + 80px) 0 50px;
}
.sub-hero .big {
  font-size: clamp(32px, 4.6vw, 60px);
}
.sub-hero .lead {
  max-width: 780px;
}
.sub-hero .lead b {
  color: var(--ink);
}

/* 포트폴리오 */
.pf {
  padding: 10px 0 100px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--sub);
  cursor: pointer;
}
.chip span {
  margin-left: 2px;
  font-weight: 700;
  color: var(--muted);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip[aria-pressed="true"] span {
  color: #ffd2bd;
}
.pf-count {
  margin: 20px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.pf-item[hidden] {
  display: none;
}
.pf-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.pf-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft-bg);
  box-shadow: 0 12px 34px rgba(60, 30, 10, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.pf-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-card:hover .pf-thumb,
.pf-card:focus-visible .pf-thumb {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(60, 30, 10, 0.18);
}
.pf-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(21, 19, 15, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.pf-meta {
  display: block;
  padding: 16px 4px 0;
}
.pf-cat {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-strong);
}
.pf-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.pf-sum {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sub);
}
.pf-open {
  display: inline-block;
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 800;
}

/* 넘겨보기 뷰어 */
.viewer {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}
.viewer::backdrop {
  background: rgba(21, 19, 15, 0.72);
}
.vw-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas: "cat count new close" "title count new close";
  align-items: center;
  gap: 2px 14px;
  padding: 16px 18px 14px 22px;
  border-bottom: 1px solid var(--line);
}
.vw-cat {
  grid-area: cat;
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-strong);
}
.vw-head h2 {
  grid-area: title;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vw-count {
  grid-area: count;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vw-new {
  grid-area: new;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-strong);
}
.vw-close {
  grid-area: close;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--soft-bg);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.vw-stage {
  position: relative;
  padding: 18px 70px;
  background: #f4f1ec;
}
.vw-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #e9e4dc;
  box-shadow: 0 16px 40px rgba(60, 30, 10, 0.16);
}
.vw-nav {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(60, 30, 10, 0.16);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.vw-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.vw-prev {
  left: 12px;
}
.vw-next {
  right: 12px;
}
.vw-note {
  margin: 0;
  padding: 12px 22px 16px;
  font-size: 13.5px;
  color: var(--muted);
}

/* 가격 */
.plans {
  padding: 10px 0 60px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.plan {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.plan.is-rec {
  border: 2px solid var(--accent);
}
.plan-badge {
  position: absolute;
  left: 28px;
  top: -14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.plan-cond {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-strong);
}
.plan h3 {
  margin: 6px 0 0;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.plan-price {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 700;
}
.plan-price b {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
}
.plan-price span {
  color: var(--muted);
}
.plan-sum {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--sub);
}
.plan-inc {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 10px;
}
.plan-inc li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
}
.plan-inc li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
}
.plan-ex {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.tbl-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.ptable {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.ptable th,
.ptable td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.ptable thead th {
  background: var(--soft-bg);
  font-size: 14px;
  color: var(--muted);
}
.ptable tbody tr:last-child > * {
  border-bottom: 0;
}
.ptable td:nth-child(n + 3) {
  font-variant-numeric: tabular-nums;
}
.quote {
  padding: 80px 0 90px;
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.q-form {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--soft);
}
.q-form fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.q-form legend {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}
.q-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  cursor: pointer;
}
.q-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.q-opt input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-strong);
  flex: none;
}
.q-opt b {
  display: block;
  font-size: 16.5px;
}
.q-opt small {
  display: block;
  font-size: 14px;
  color: var(--sub);
}
.q-num {
  display: flex;
  align-items: center;
  gap: 8px;
}
.q-num button {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
.q-num input {
  width: 110px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  text-align: center;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
}
.q-num span {
  font-weight: 700;
}
.q-help {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.q-result {
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}
.q-line {
  margin: 0;
  font-size: 15px;
  color: #d9d2c8;
}
.q-total {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}
.q-total b {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.q-total small {
  margin-left: 6px;
  font-size: 14px;
  color: #d9d2c8;
}
.q-warn {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffc3a8;
}
.q-go {
  width: 100%;
  margin-top: 16px;
}
.q-foot {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* 진행 순서 */
.psteps {
  padding: 10px 0 60px;
}
.pstep-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pstep {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.pstep .step-n {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.pstep h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 850;
  letter-spacing: -0.04em;
}
.pstep p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--sub);
}
.prep,
.pnotes {
  padding: 70px 0;
}
.prep .big,
.pnotes .big {
  font-size: clamp(28px, 3.4vw, 44px);
}
.prep-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.prep-list li {
  padding: 26px 24px;
  border-radius: 24px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
}
.prep-list h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}
.prep-list p {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--sub);
}
.note-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.note-list li {
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.65;
  color: var(--sub);
}
.note-list b {
  display: block;
  color: var(--ink);
}

/* 문의 */
.contact {
  padding: 10px 0 110px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
.c-form {
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--soft);
}
.f-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.f-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}
.f-row label {
  font-size: 15px;
  font-weight: 800;
}
.f-row em,
.f-check em {
  font-style: normal;
  color: var(--accent-strong);
}
.c-form input:not([type="checkbox"]),
.c-form select,
.c-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.c-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.c-form .error {
  border-color: #c62828 !important;
  background: #fff7f7 !important;
}
.f-est {
  margin: -4px 0 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 700;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.f-consent {
  margin: 6px 0 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--soft-bg);
  font-size: 14px;
  line-height: 1.65;
  color: var(--sub);
}
.f-consent p {
  margin: 0 0 10px;
}
.f-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
}
.f-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-strong);
}
.f-check input.error {
  outline: 2px solid #c62828;
}
.f-submit {
  width: 100%;
}
.f-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-msg {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f7a45;
}
.form-msg.err {
  color: #c62828;
}
.c-side {
  padding: 28px;
  border-radius: 24px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--sub);
}
.c-side h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.c-side ol {
  margin: 14px 0 18px;
  padding-left: 22px;
  font-weight: 700;
  color: var(--ink);
}
.c-side a {
  color: var(--accent-strong);
  font-weight: 800;
}
.c-tel {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

/* 방침 · 약관 */
.legal {
  padding: 10px 0 100px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--sub);
}
.legal-dl {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.legal-dl div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.legal-dl dt {
  font-weight: 800;
  color: var(--ink);
}
.legal-dl dd {
  margin: 0;
}
.legal a {
  color: var(--accent-strong);
  font-weight: 700;
}
.legal-rev {
  font-size: 14px;
  color: var(--muted);
}

/* ===== 반응형 ===== */
@media (max-width: 1100px) {
  .dev-fan .fan-3,
  .dev-fan .fan-4 {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --head-h: 60px;
  }
  .menu-btn {
    display: block;
  }
  .gnb {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--head-h);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .gnb.is-on {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .gnb a:not(.btn) {
    padding: 14px 12px;
    font-size: 17px;
  }
  .gnb-cta {
    margin: 10px 0 0;
    min-height: 50px;
  }
  .wrap {
    padding: 0 20px;
  }
  .s-hero {
    padding-bottom: 96px;
    justify-content: flex-end;
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.85) 38%, rgba(255, 255, 255, 0.96) 60%, #fff 100%);
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
  .scroll-cue {
    display: none;
  }
  .s-device {
    height: 200svh;
  }
  .dev-fan li {
    top: 60px;
  }
  .s-device[data-seen] .fan-1,
  html:not(.fx) .fan-1,
  .rm .fan-1 {
    transform: translate(-260px, -30px) rotate(-6deg) scale(0.8);
  }
  .s-device[data-seen] .fan-2,
  html:not(.fx) .fan-2,
  .rm .fan-2 {
    transform: translate(260px, -30px) rotate(6deg) scale(0.8);
  }
  .dev-tabs button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 13px;
  }
  .s-marquee {
    padding: 100px 0 70px;
  }
  .mq-card {
    width: 230px;
  }
  .mq,
  .mq-row,
  .mq-list {
    gap: 12px;
  }
  .mq-r {
    translate: calc(-50% - 6px) 0;
  }
  @keyframes run-l {
    to {
      transform: translateX(calc(-50% - 6px));
    }
  }
  @keyframes run-r {
    to {
      transform: translateX(calc(50% + 6px));
    }
  }
  .s-video .s-stick {
    justify-content: flex-start;
    padding-top: calc(var(--head-h) + 24px);
  }
  .s-video[data-seen] .vid-mask,
  html:not(.fx) .vid-mask,
  .rm .vid-mask {
    left: 50%;
    top: 72%;
    width: calc(100vw - 64px);
    height: calc((100vw - 64px) * 0.5625);
    box-shadow:
      0 0 0 8px var(--bezel),
      0 30px 60px rgba(40, 20, 5, 0.25);
  }
  .vid-text .lead {
    margin-top: 14px;
    margin-bottom: 18px;
    font-size: 15.5px;
  }
  .vid-cap {
    bottom: 10px;
    padding: 6px 12px;
  }
  .s-cards {
    padding: 100px 0 80px;
  }
  .fix-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 44px;
  }
  .fc-2,
  .fc-5 {
    translate: 0 0;
  }
  .fc:nth-child(even) {
    translate: 0 22px;
  }
  .tag-cloud {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .tg {
    position: static;
    padding: 11px 16px;
    font-size: 15px;
  }
  .count-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .step-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pf-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .quote-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .prep-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }
  .btn {
    min-height: 52px;
    padding: 0 22px;
    font-size: 16px;
  }
  .gnb-cta {
    min-height: 50px;
  }
  .hero-h {
    font-size: clamp(36px, 10.6vw, 52px);
  }
  .fix-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .fc:nth-child(even) {
    translate: 0 0;
  }
  .fc {
    rotate: 0deg !important;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0 14px;
    padding: 18px;
  }
  .fc img {
    grid-row: span 3;
    width: 76px;
    height: 76px;
    margin: 0;
  }
  .fc h3 {
    font-size: 18px;
  }
  .fc p {
    font-size: 14.5px;
  }
  .count-vis {
    padding: 26px 22px 22px;
  }
  .count-bars li {
    grid-template-columns: minmax(0, 1fr) 70px;
    grid-template-areas: "n b" "bar bar";
    gap: 4px 10px;
  }
  .cb-name {
    grid-area: n;
  }
  .count-bars b {
    grid-area: b;
  }
  .cb-bar {
    grid-area: bar;
  }
  .count-facts dd {
    font-size: 20px;
  }
  .count-facts div {
    padding: 12px;
  }
  .step-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .f-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-form,
  .q-form {
    padding: 22px 18px;
  }
  .q-total b {
    font-size: 38px;
  }
  .pstep {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .pstep .step-n {
    font-size: 30px;
  }
  .legal-dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .vw-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "cat close" "title close" "count new";
    padding: 14px 14px 12px 16px;
  }
  .vw-new {
    justify-self: end;
  }
  .vw-stage {
    padding: 12px;
  }
  .vw-nav {
    top: auto;
    bottom: -60px;
    margin: 0;
  }
  .vw-note {
    padding: 14px 16px 16px 120px;
    text-align: right;
  }
  .vw-prev {
    left: 14px;
  }
  .vw-next {
    left: 70px;
    right: auto;
  }
}

/* ===== QA 1차 보정 ===== */
.vid-cell {
  isolation: isolate;
}
.vid-text .big {
  font-size: clamp(32px, 4.3vw, 60px);
  max-width: 600px;
}
.count-grid .big {
  font-size: clamp(32px, 4.4vw, 60px);
}
.fc img {
  mix-blend-mode: multiply;
}
@media (max-width: 900px) {
  .hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.55) 30%, rgba(255, 255, 255, 0.94) 52%, #fff 100%);
  }
  .dev-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dev-tabs button {
    flex: none;
    padding: 0 10px;
    font-size: 12.5px;
  }
}
.count-grid .big {
  font-size: clamp(30px, 3.8vw, 52px);
}
@media (max-width: 600px) {
  .hero-lead .rv-m,
  .hero-lead .rv-l {
    display: inline;
  }
}

/* 좁은 화면: 가격표의 "이럴 때" 칸은 위 카드에 이미 있으니 숨기고 표를 화면 폭에 맞춘다 */
@media (max-width: 600px) {
  .ptable { min-width: 0; }
  .ptable th:nth-child(2), .ptable td:nth-child(2) { display: none; }
  .ptable th, .ptable td { padding-left: 12px; padding-right: 12px; font-size: 13px; }
}

/* 2026-12-06 모바일 보정: 첫 화면 위쪽에 영상의 종이가 보이게(오른쪽 구도) · 영상 구역의 글과 화면 틀 간격 */
@media (max-width: 900px) {
  .hero-media {
    background-position: 94% 50%;
  }
  .hero-media video {
    object-position: 94% 50%;
  }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.93) 35%, #fff 100%);
  }
  .s-video[data-seen] .vid-mask,
  html:not(.fx) .vid-mask,
  .rm .vid-mask {
    top: max(56svh, 505px);
  }
}
