/* 올어바웃카 — 표본 도감: 차의 모든 면을 색 타일 위에 하나씩 올려 보여 준다. */
:root {
  --blue: #1423b8; --blue-2: #1a2bc9; --black: #000; --black-2: #121212;
  --yellow: #f7dd47; --pink: #e9479f; --white: #fff;
  --muted-on-blue: #c9cff6; --muted-on-black: #b9b9b9;
  --accent: #1fc27a; --accent-ink: #0a0a0a;
  --kakao: #fee500;
  --m: clamp(20px, 3.2vw, 48px);
  --gap-section: clamp(96px, 12vw, 200px);
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --font: "Chillax", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { margin: 0; }
::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--m); }
.tnum { font-variant-numeric: tabular-nums; }
.sec { overflow-x: clip; }
.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: .5em; min-height: 52px; padding: 0 24px; border: 0; border-radius: 0; font: inherit; font-weight: 600; font-size: var(--step-body); text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink); transition: transform .16s var(--ease), background-color .16s; }
.btn:hover { background: #3ad891; }
.btn:active { transform: scale(.97); }
.btn.kakao { background: var(--kakao); color: #191600; }
.btn.kakao:hover { background: #fff04d; }
.btn.ghost { background: var(--white); color: #000; }
.btn.ghost:hover { background: #e8e8e8; }

/* ---------- 첫 화면: 표본 벽 + 아래 패널 ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--black); }
.wall { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.wall-row { display: flex; gap: 8px; flex: none; will-change: transform; }
.wall-row:nth-child(even) { margin-left: calc(var(--tile) / -2); }
.tile { flex: none; width: var(--tile); height: var(--tile); display: grid; place-items: center; background: var(--f, var(--blue)); border: 0; padding: 0; cursor: pointer; transition: transform .2s var(--ease); }
.tile img { width: 78%; height: auto; transition: transform .3s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile:active { transform: scale(.96); }
.wall { --tile: clamp(132px, 11.5vw, 190px); }
.panel { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; width: min(1120px, calc(100% - 2 * var(--m))); background: var(--white); color: #000; padding: 32px 36px 24px; display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: end; }
.panel h1 { font-size: clamp(2.5rem, 1rem + 4.2vw, 4.5rem); letter-spacing: -0.04em; }
.panel .sub { font-size: var(--step-lead); font-weight: 500; margin-top: 8px; letter-spacing: -0.01em; }
.panel .state { font-size: var(--step-body); margin-top: 4px; color: #333; }
.panel nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-size: var(--step-small); }
.panel nav a { text-decoration: none; color: #333; padding: 6px 0; }
.panel nav a:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.panel nav .mark { font-weight: 600; color: #000; margin-right: auto; font-size: var(--step-body); letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .wall { --tile: 26vw; gap: 6px; padding-top: 6px; }
  .wall-row { gap: 6px; }
  .panel { left: 0; right: 0; bottom: 0; translate: none; width: 100%; padding: 22px var(--m) 20px; grid-template-columns: 1fr; gap: 14px; }
  .panel h1 { font-size: 8.4vw; }
  .panel .sub { font-size: 4.6vw; margin-top: 6px; }
  .panel .btn { width: 100%; }
  .panel nav { gap: 4px 16px; }
  .panel nav .mark { width: 100%; }
}

/* ---------- 섹션 공통 ---------- */
.sec { padding-block: var(--gap-section); }
.on-blue { background: var(--blue); color: var(--white); }
.on-black { background: var(--black); color: var(--white); }
.on-yellow { background: var(--yellow); color: #000; }
.on-pink { background: var(--pink); color: #000; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head p { max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- 360 뷰어 ---------- */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--blue-2); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage.grabbing { cursor: grabbing; }
.stage.zoomed { cursor: move; touch-action: none; }
.cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; will-change: transform, opacity; }
.cam img.b { opacity: 0; }
.hot { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s; }
.hot.off { opacity: 0; }
.hot.off button { pointer-events: none; }
.spot { position: absolute; translate: -50% -50%; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; display: grid; place-items: center; }
.spot::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 3px solid #000; }
.spot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--yellow); animation: ping 2.2s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9 } to { transform: scale(1.6); opacity: 0 } }
.spot .tip { position: absolute; bottom: calc(100% + 2px); left: 50%; translate: -50% 0; white-space: nowrap; font-size: var(--step-small); font-weight: 500; background: #000; color: #fff; padding: 3px 9px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.spot:hover .tip, .spot:focus-visible .tip { opacity: 1; }
.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 44px; height: 44px; border: 0; border-radius: 0; background: #000; color: #fff; font: inherit; font-size: 22px; cursor: pointer; transition: transform .15s; }
.zoom button:active { transform: scale(.92); }
.loading[hidden] { display: none; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--step-small); color: var(--muted-on-blue); }
.hint { position: absolute; left: 12px; top: 12px; font-size: var(--step-small); color: var(--white); background: #000; padding: 4px 12px; pointer-events: none; transition: opacity .4s; }
.stage.touched .hint { opacity: 0; }
.side { display: flex; flex-direction: column; gap: 22px; }
.angle-now { font-size: var(--step-head); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.angle-deg { font-size: var(--step-body); color: var(--muted-on-blue); margin-top: 6px; }
.angles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.angles button { aspect-ratio: 1; border: 0; padding: 0; background: var(--blue-2); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, transform .15s; }
.angles button img { width: 82%; height: auto; max-height: 70%; object-fit: contain; }
.angles button:hover { background: #2537d6; }
.angles button:active { transform: scale(.94); }
.angles button[aria-current="true"] { background: var(--yellow); }
.side .btn { width: 100%; }
.side .note { font-size: var(--step-small); color: var(--muted-on-blue); }
@media (max-width: 900px) {
  .viewer { grid-template-columns: 1fr; gap: 20px; }
  .stage { margin-inline: calc(var(--m) * -1); }
  .side { display: grid; grid-template-columns: 1fr; }
  .angles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
}

/* ---------- 부위별 사진: 사진 + 꼬리표 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { border: 0; border-radius: 0; font: inherit; font-size: var(--step-small); font-weight: 500; min-height: 44px; padding: 0 16px; background: var(--black-2); color: #fff; cursor: pointer; transition: background-color .15s, transform .15s; }
.filters button:hover { background: #262626; }
.filters button:active { transform: scale(.96); }
.filters button[aria-pressed="true"] { background: var(--white); color: #000; }
.prints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.print { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; }
.print .ph { aspect-ratio: 1; overflow: hidden; background: #222; }
.print .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.print:hover .ph img { transform: scale(1.05); }
.print:active { transform: scale(.98); }
.print .tag { min-height: 88px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: var(--tb); color: var(--ti); font-size: var(--step-small); }
.print .tag b { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.01em; }
.print .tag span { display: flex; justify-content: space-between; gap: 8px; }
.print[hidden] { display: none; }
@media (max-width: 720px) { .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; } .print .tag { min-height: 76px; padding: 10px; } .print .tag b { font-size: var(--step-small); } }

/* ---------- 차량 정보: 옆모습이 표를 따라 내려온다 ---------- */
.spec { position: relative; }
.spec-title { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 32px); text-align: center; margin-bottom: 48px; }

.spec-title .rider-slot { width: 22vw; max-width: 340px; }
.rows { position: relative; }
.rider { position: absolute; left: 50%; top: 0; bottom: 0; width: min(22vw, 340px); translate: -50% 0; pointer-events: none; z-index: 2; }
.rider img { position: sticky; top: 40vh; width: 100%; }
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 84px; padding: 14px 20px; }
.row:nth-child(odd) { background: var(--blue-2); }
.row dt { font-size: var(--step-small); color: var(--muted-on-blue); }
.row dd { margin: 0; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; text-align: right; }
.row.hl { background: var(--yellow); color: #000; }
.row.hl dt { color: #333; }
.opts-head { margin: 72px 0 24px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .rider { display: none; }
  .spec-title { flex-direction: column; gap: 12px; }
  .spec-title .rider-slot { width: 44vw; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .row dd { text-align: left; }
}

/* ---------- 점검 요약 카드 ---------- */
.proof { overflow: hidden; padding-bottom: 0; }
.proof .sec-head { margin-bottom: 56px; }
.card { width: min(56vw, 760px); margin: 0 auto; background: #fff; color: #000; padding: 56px; rotate: -1.5deg; margin-bottom: -120px; padding-bottom: 180px; }
.card h3 { font-size: var(--step-lead); text-align: center; }
.card figure { margin: 28px 0 32px; }
.card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card figcaption { font-size: var(--step-small); margin-top: 8px; color: #444; }
.card .names { text-align: center; font-size: var(--step-lead); line-height: 1.7; font-weight: 500; }
.card .more { margin-top: 32px; text-align: center; font-size: var(--step-body); }
.card .more a { font-weight: 600; }
@media (max-width: 900px) { .card { width: 92vw; padding: 28px 24px 140px; rotate: -1deg; } .card .names { font-size: var(--step-body); } }

/* ---------- 영상 ---------- */
.film { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; overflow: hidden; }
.film .big { grid-column: 1 / 8; height: 64svh; min-height: 420px; position: relative; margin-left: calc(var(--m) * -1); }
.film .big img { position: absolute; left: -12%; bottom: 0; width: 124%; height: 100%; object-fit: contain; object-position: left bottom; }
.film .cluster { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 28px; }
.yt { position: relative; aspect-ratio: 16 / 10; background: #111; border: 0; padding: 0; cursor: pointer; overflow: hidden; width: 100%; border-radius: 6px; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.yt:hover img { transform: scale(1.04); }
.yt .play { position: absolute; left: 16px; bottom: 16px; background: #fff; color: #000; font-weight: 600; font-size: var(--step-small); padding: 10px 16px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .txt { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.film h2 { font-size: var(--step-head); }
.film .txt p { font-size: var(--step-small); color: var(--muted-on-black); }
.film .txt a { color: #fff; }
@media (max-width: 900px) {
  .film { grid-template-columns: 1fr; gap: 28px; }
  .film .big { grid-column: auto; height: auto; aspect-ratio: 4 / 3; min-height: 0; width: 110%; }
  .film .big img { left: -6%; width: 112%; }
  .film .cluster { grid-column: auto; }
  .film .txt { grid-template-columns: 1fr; }
  .film h2 { font-size: 8vw; }
}

/* ---------- 구매 절차: 점점 커지는 타일 ---------- */
.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step:nth-child(2) { grid-column: 1 / 4; }
.step:nth-child(3) { grid-column: 4 / 8; }
.step:nth-child(4) { grid-column: 8 / 13; }
.steps h2 { grid-column: 1 / 8; grid-row: 1; align-self: start; }
.step:nth-child(n+2) { grid-row: 1; }
.step .box { display: grid; place-items: center; background: var(--f); overflow: hidden; }
.step:nth-child(2) .box { height: 30vh; }
.step:nth-child(3) .box { height: 44vh; }
.step:nth-child(4) .box { height: 60vh; }
.step .box img { width: 84%; height: 84%; object-fit: contain; }
.step b { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; }
.step p { font-size: var(--step-body); color: var(--muted-on-blue); max-width: 34ch; }
.steps h2 + .step { margin-top: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps h2, .step:nth-child(n) { grid-column: auto; grid-row: auto; }
  .step:nth-child(2) .box { height: 34vw; }
  .step:nth-child(3) .box { height: 46vw; }
  .step:nth-child(4) .box { height: 62vw; }
}

/* ---------- 상담: 사진 띠 + 세 칸 바 ---------- */
.contact { overflow: hidden; padding-top: 48px; padding-bottom: clamp(72px, 8vw, 120px); }
.strip { display: flex; gap: 8px; width: max-content; animation: drift 70s linear infinite; }
.strip img { height: 150px; width: auto; object-fit: cover; flex: none; }
.strip img:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.strip img:nth-child(3n+2) { aspect-ratio: 1; }
.strip img:nth-child(3n) { aspect-ratio: 3 / 2; }
@keyframes drift { to { transform: translateX(-50%); } }
.contact h2 { margin-top: 72px; }
.contact .lead { margin-top: 16px; font-size: var(--step-lead); max-width: 40ch; line-height: 1.35; }
.bar { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bar a { min-height: 96px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; text-decoration: none; font-size: var(--step-lead); font-weight: 600; background: #f07bba; color: #000; transition: background-color .15s, transform .15s; text-align: center; padding: 12px; }
.bar a span { font-size: var(--step-small); font-weight: 400; }
.bar a:hover { background: #ffd6ec; }
.bar a:active { transform: scale(.98); }
.bar a.main { background: #000; color: #fff; }
.bar a.main:hover { background: #222; }
.small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; font-size: var(--step-small); }
@media (max-width: 720px) {
  .strip img { height: 110px; }
  .contact h2 { margin-top: 48px; }
  .bar { grid-template-columns: 1fr; }
  .bar a { min-height: 64px; flex-direction: row; gap: 10px; }
  .small { grid-template-columns: 1fr; }
}

/* ---------- 푸터: 블록으로 쌓은 이름 ---------- */
.foot { padding-block: 80px 32px; }
.mark-big { display: flex; gap: 4px; align-items: end; height: 34svh; min-height: 200px; }
.mark-big span { flex: 1 1 0; display: grid; place-items: end center; background: var(--f); color: var(--black); font-weight: 600; font-size: clamp(2rem, 7vw, 7.5rem); line-height: .8; padding-bottom: .08em; letter-spacing: -0.04em; }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 56px; font-size: var(--step-small); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }
.foot-cols a { text-decoration: none; color: var(--muted-on-black); }
.foot-cols a:hover { color: #fff; }
.foot-cols address { grid-column: 9 / 13; font-style: normal; color: var(--muted-on-black); display: flex; flex-direction: column; gap: 8px; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--step-small); color: var(--muted-on-black); }
.foot-last .btn { min-height: 44px; font-size: var(--step-small); }
@media (max-width: 720px) {
  .mark-big { height: auto; min-height: 0; flex-wrap: wrap; }
  .mark-big span { flex: 0 0 calc((100% - 20px) / 6); height: 22vw; font-size: 12vw; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols ul { grid-column: auto; }
  .foot-cols address { grid-column: 1 / -1; }
}

/* ---------- 크게 보기 ---------- */
.lb { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / .96); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--m) calc(env(safe-area-inset-bottom, 0px) + 12px); color: #fff; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lb-top b { font-size: var(--step-body); font-weight: 500; }
.lb-top span { font-size: var(--step-small); opacity: .75; margin-left: 10px; }
.lb button { border: 0; border-radius: 0; background: #222; color: #fff; font: inherit; font-size: var(--step-small); min-height: 44px; padding: 0 16px; cursor: pointer; }
.lb button:hover { background: #333; }
.lb-view { position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; min-height: 0; }
.lb-view img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 50% 50%; user-select: none; -webkit-user-drag: none; }
.lb-view img.soft { filter: blur(6px); }
.lb.in { animation: lbIn .18s ease-out; }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
.lb-foot { display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 2px; scrollbar-width: none; }
.lb-strip button { flex: none; width: 72px; height: 48px; padding: 0; opacity: .5; outline: 2px solid transparent; }
.lb-strip button[aria-current="true"] { opacity: 1; outline-color: var(--yellow); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
.lb-nav { display: flex; gap: 10px; }

/* ---------- 등장 움직임 ---------- */
.rise { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rise:not(.in) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .js .rise:not(.in) { opacity: 1; transform: none; transition: none; }
  .strip { animation: none; }
  .spot::after { animation: none; }
  .wall-row { transform: none !important; }
}
