/* 일사천리 익스프레스 — 명함의 남색·빨강을 그대로 쓴다 */
:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --ink: #1f2b4d;
  --muted: #59607a;
  --accent: #d92b2b;
  --accent-ink: #ffffff;
  --field-1: #05070a;  --field-1-ink: #ffffff;
  --field-2: #e3e1dc;  --field-2-ink: #1f2b4d;
  --navy-ink: #ffffff;

  --step-small: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 9.4vw, 10.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 14vw, 200px);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼: 네모 모서리 하나로 통일 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 700 var(--step-body)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: #b81f1f; transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--field-2); }
.btn-light { background: #fff; color: var(--field-1); }
.btn-light:hover { background: var(--field-2); }

/* 위 막대 */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px; padding: 18px var(--m);
}
.mark { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.mark span { color: var(--accent); }
.bar nav { display: flex; gap: 24px; }
.bar nav a { text-decoration: none; font-size: var(--step-small); font-weight: 600; }
.bar nav a:hover { color: var(--accent); }

/* 첫 화면 */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: 0 var(--m) 40px; background: var(--bg);
}
.hero-line {
  align-self: center; display: block;
  margin-top: 10vh; font-size: min(12vw, 13.5rem); font-weight: 800;
  letter-spacing: -0.05em; line-height: 1;
}
.hero-line .w { white-space: nowrap; }
.hero-line .l1 { display: flex; align-items: baseline; gap: .22em; }
.hero-line .l2 { display: block; margin-top: .08em; }
.strip {
  flex: 1; height: .86em; min-width: 2em; border-radius: var(--r); overflow: hidden;
  align-self: baseline; position: relative; top: .02em;
}
.strip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.lead { font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; font-weight: 500; }
.hero-call { display: grid; gap: 12px; justify-items: end; }
.free { font-size: var(--step-small); font-weight: 600; text-decoration: none; }
.free:hover { color: var(--accent); }

/* 색 면 위의 약속 */
.fields { margin-top: var(--gap); }
.field {
  position: relative; min-height: 76svh; padding: var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr auto;
}
.f-navy { background: var(--ink); color: var(--navy-ink); }
.f-sand { background: var(--field-2); color: var(--field-2-ink); }
.f-black { background: var(--field-1); color: var(--field-1-ink); }
.f-text { grid-column: 8 / span 4; grid-row: 1; margin-top: 8svh; font-size: var(--step-body); max-width: 30ch; }
.f-phrase {
  grid-column: 1 / -1; grid-row: 3; font-size: var(--step-display);
  font-weight: 800; letter-spacing: -0.045em; line-height: .98;
}
.mirror .f-text { grid-column: 2 / span 4; }
.mirror .f-phrase { text-align: right; }

/* 과정: 동사 하나씩 */
.verbs { margin-top: 0; }
.panel { position: relative; height: 100svh; padding-bottom: 30svh; overflow: clip; background: var(--field-1); color: #fff; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 10, .34); }
.verb {
  position: sticky; top: calc(50svh - .5em); z-index: 2; text-align: center;
  font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
}
.panel-note {
  position: absolute; z-index: 2; left: var(--m); bottom: var(--m); max-width: 36ch;
  font-size: var(--step-body); font-weight: 500;
}

/* 이사 종류 */
.kinds {
  margin-top: var(--gap); padding: 0 var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--m);
}
.kinds-say { grid-column: 1 / span 5; }
.head { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.body { margin-top: 24px; max-width: 34ch; }
.kinds-pic { margin: 48px 0 0; }
.kinds-pic img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.kinds-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; align-content: start; }
.kinds-list h3 { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; }
.kinds-list p { margin-top: 8px; max-width: 44ch; }

/* 견적 문자 만들기 */
.quote {
  margin-top: var(--gap); padding: clamp(64px, 8vw, 120px) var(--m);
  background: var(--surface);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--m);
}
.quote-say { grid-column: 1 / -1; max-width: 900px; }
.quote-form { grid-column: 1 / span 7; display: grid; gap: 28px; }
.quote-form fieldset { border: 0; margin: 0; padding: 0; }
.quote-form legend, .f { font-size: var(--step-small); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: #fff; color: var(--ink); font-size: var(--step-body); font-weight: 600;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.chips label:hover span { transform: translateY(-2px); }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row:has(.sm) { grid-template-columns: 1fr 110px 130px; }
.f { display: grid; gap: 8px; }
.f input, .f select {
  min-height: 52px; padding: 0 14px; border: 2px solid #d5d4cf; border-radius: 0; background: #fff;
  font: 500 var(--step-body) var(--font); color: var(--ink); width: 100%;
}
.f input:focus, .f select:focus { border-color: var(--ink); outline: none; }
.quote-out { grid-column: 9 / span 4; align-self: start; position: sticky; top: 24px; }
.msg {
  white-space: pre-wrap; margin: 0; padding: 24px; min-height: 280px;
  background: var(--ink); color: #fff; font: 500 var(--step-body)/1.6 var(--font);
}
.quote-acts { display: grid; gap: 8px; margin-top: 12px; }
.qr { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin-top: 12px; padding: 16px; background: #fff; }
.qr[hidden], .quote-acts [hidden] { display: none; }
.qr-code { width: 200px; aspect-ratio: 1; }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-say { font-size: var(--step-small); font-weight: 600; }
.quote .btn-ghost { background: #fff; }
.quote .btn-ghost:hover { background: var(--field-2); }
.note { margin-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* 인화지 사진 */
.prints {
  position: relative; min-height: 100svh; margin-top: var(--gap); padding: var(--m);
  background: var(--field-2); overflow: hidden;
  display: grid; place-items: center;
}
.prints-h {
  position: relative; z-index: 1; text-align: center;
  font-size: var(--step-display); font-weight: 900; letter-spacing: -0.06em; line-height: .9;
}
.print {
  position: absolute; z-index: 2; margin: 0; width: 21vw; border: 8px solid #fff; background: #fff;
  transition: transform .2s var(--ease); cursor: pointer;
}
.print img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.p1 { left: 3vw; top: 12%; transform: rotate(-8deg); }
.p2 { right: 3vw; top: 20%; transform: rotate(6deg); }
.p3 { width: 14vw; left: 43vw; bottom: -9%; transform: rotate(-3deg); }
.print:hover, .print:focus-within { z-index: 4; transform: rotate(0) scale(1.03); }
.prints-note { position: absolute; z-index: 3; left: var(--m); bottom: 24px; max-width: 40ch; font-size: var(--step-small); }

/* 자주 묻는 것 */
.faq { margin-top: var(--gap); padding: 0 var(--m); }
.faq-h { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; max-width: 14ch; }
.faq-list { margin: 80px 0 0 33.33%; display: grid; gap: 12px; }
.faq details { padding: 12px 16px; margin: 0 -16px; transition: background-color .2s; }
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  font-size: var(--step-lead); font-weight: 600; padding: 12px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: .45em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { max-width: 48ch; padding-bottom: 16px; }

/* 전화번호가 곧 글자 */
.call {
  margin-top: var(--gap); min-height: 100svh; padding: var(--m);
  background: var(--ink); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto auto;
}
.call-say { font-size: var(--step-lead); font-weight: 600; max-width: 26ch; }
.call-num {
  grid-row: 3; display: block; margin-bottom: 10vh; text-decoration: none; white-space: nowrap;
  font-size: min(var(--step-display), 8.8vw); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums; transition: color .2s;
}
.call { overflow: clip; }
.pair { display: contents; }
.call-num:hover { color: #ff6b5e; }
.call-foot { grid-row: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: var(--step-small); }
.call-foot a { text-decoration: none; font-weight: 700; }
.call-foot a:hover { text-decoration: underline; }
.call-right { text-align: right; display: grid; gap: 4px; justify-items: end; }
.acct { font-weight: 700; }
.call-right .btn { margin-top: 8px; }

/* 끝 */
.foot { background: var(--field-2); color: var(--ink); padding: 160px var(--m) 32px; }
.foot-name { font-size: var(--step-display); font-weight: 900; letter-spacing: -0.055em; line-height: .95; }
.foot-info { margin-top: 28px; font-size: var(--step-small); }

.dock { display: none; }

/* 움직임: 위치와 투명도만 */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.shutter { clip-path: inset(0 100% 0 0 round var(--r)); transition: clip-path 1.1s var(--ease); }
.shutter img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
.shutter.in { clip-path: inset(0 0 0 0 round var(--r)); }
.shutter.in img { transform: scale(1); }
.no-js .shutter { clip-path: none; } .no-js .shutter img { transform: none; }
.drift { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.panel.in .drift { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .shutter, .shutter img, .drift { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
}

/* 태블릿 */
@media (max-width: 1024px) {
  .bar nav { display: none; }
  .quote-form { grid-column: 1 / -1; }
  .quote-out { grid-column: 1 / -1; position: static; }
  .qr { grid-template-columns: 200px 1fr; max-width: 560px; }
  .kinds-say { grid-column: 1 / -1; }
  .kinds-list { grid-column: 1 / -1; margin-top: 64px; grid-template-columns: 1fr 1fr; gap: 40px var(--m); }
}

/* 휴대폰 */
@media (max-width: 640px) {
  :root { --step-display: 16vw; }
  .bar { padding: 14px 16px; }
  .hero { padding: 0 16px 104px; }
  .hero-line { font-size: 11.8vw; margin-top: 16vh; }
  .hero-line .l1 { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-line .l2 { margin-top: 14px; }
  .strip { flex: none; width: 100%; height: auto; aspect-ratio: 2 / 1; top: 0; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; margin-top: 32px; }

  .hero-call { justify-items: stretch; }
  .hero-call .free { text-align: center; padding: 8px; }
  .field { min-height: 64svh; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
  .f-text { margin-top: 16px; max-width: 80%; }
  .mirror .f-text { align-self: flex-end; text-align: right; }
  .f-phrase, .mirror .f-phrase { text-align: left; }

  .panel-note { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .panel::after { background: rgba(5, 7, 10, .42); }
  .kinds { padding: 0 16px; }
  .kinds-list { grid-template-columns: 1fr; gap: 32px; }
  .quote { padding: 64px 16px; gap: 32px; }
  .row, .row:has(.sm) { grid-template-columns: 1fr 1fr; }
  .row:has(.sm) .f:first-child { grid-column: 1 / -1; }
  .msg { min-height: 0; }
  .prints { min-height: 0; padding: 72px 16px 64px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
  .prints-h { font-size: 17vw; }
  .print { position: relative; width: 44vw; border-width: 6px; left: auto; right: auto; top: auto; bottom: auto; }
  .prints .pair { display: flex; gap: 4vw; }
  .p1 { transform: rotate(-5deg); }
  .p2 { transform: rotate(4deg); margin-top: 28px; }
  .p3 { display: none; }
  .prints-note { position: static; max-width: none; }  .faq { padding: 0 16px; }

  .faq-list { margin: 40px 0 0; gap: 4px; }
  .faq details { margin: 0 -16px; padding: 10px 16px; }


  .call { min-height: 86svh; padding: 16px; }

  .call-num { margin-bottom: 6vh; font-size: 9.3vw; }
  .call-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .call-right { text-align: left; justify-items: start; }
  .foot { padding: 48px 16px 96px; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--ink);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 60px;
    color: #fff; font-weight: 800; font-size: var(--step-body); text-decoration: none;
  }
  .dock a:first-child { background: var(--accent); }
  .dock a:active { opacity: .85; }
}

/* 아래 고정 전화 막대는 손가락으로 쓰는 휴대폰에서만 (컴퓨터 창을 좁힌 경우엔 숨김) */
@media (max-width: 640px) and (pointer: fine) {
  .dock { display: none; }
  .hero { padding-bottom: 40px; }
  .foot { padding-bottom: 32px; }
}
