/* ── 한 페이지 시안(11-22): 현장과 솔루션의 만남 ─────────────────────────────
   대표(11-22): "제대로 디자인 브랜딩한 한페이지가 되고싶은데 · 너가 알아서 한 번 시안잡아봐"
   짜임 = 첫 화면(현장 | 솔루션이 마크에서 만나는 판) → 고객사 로고 → 현장(클린미션 · 먹색) → 법정 의무(안전인 · 흰색) → 고객사례 → 앱 · 입점 → 자주 묻는 질문 → 마지막 단추
   색 = 흰 바탕 + 보라 하나(강조) + 먹색 Onyx(현장 = 클린미션 운영 앱 색) · 그림 = 실사 · 실제 앱 화면만(아이콘 · 외국인 스톡 X)
   글 = 지금 홈에 실린 문장 · 숫자 그대로(89번 · 현장 점검은 클린미션 앱으로 · 업체는 안전인이 찾아요 · 현장에서 이미 쓰고 있어요 …) */
.o22 { --onyx: #353839; --onyx-2: #2a2d2e; --lilac: #b9a6ff; --rx: 40px; --rl: 28px; --rm: 20px; --ease: cubic-bezier(.22, 1, .36, 1); --pop: cubic-bezier(.34, 1.4, .5, 1); }
.o22 *, .o22 *::before, .o22 *::after { box-sizing: border-box; }
.o22-w { width: min(1120px, calc(100% - 2 * var(--cm-gutter, 20px))); margin-inline: auto; }
.o22-sec { padding-top: clamp(72px, 9vw, 132px); }
.o22-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.o22-h2 { font: 700 clamp(28px, 3.9vw, 50px)/1.22 var(--font); letter-spacing: -.02em; color: var(--ink); }
.o22-h2 > span { display: block; }
.o22-h1 em, .o22-h2 em { font-style: normal; color: var(--v); }
.o22-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 10px; font: 700 17px/1 var(--font); letter-spacing: -.02em; color: var(--v-ink); white-space: nowrap; }
.o22-tag img, .o22-tag svg { width: 22px; height: 22px; flex: none; }
.o22-tag--w { color: #fff; }
.o22-go { display: inline-flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; }
.o22 a:focus-visible { outline: 3px solid var(--v-2, #6e58ff); outline-offset: 3px; }
.o22-dark a:focus-visible, .o22-end__box a:focus-visible { outline-color: #fff; }
.o22-go svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .o22-go:hover svg { translate: 3px 0; } }

/* 스크롤 등장(스크립트가 .js 를 붙였을 때만 숨김 → 스크립트가 없어도 다 보임) */
.o22.js [data-rv] { opacity: 0; translate: 0 18px; transition: opacity .5s ease-out, translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.o22.js [data-rv].is-in { opacity: 1; translate: 0 0; }

/* 휴대폰 틀(안 화면은 실제 캡처만) */
.o22-ph { position: relative; display: block; width: var(--pw, 200px); aspect-ratio: 390 / 844; border-radius: calc(var(--pw, 200px) * .165); background: #191f28; box-shadow: 0 22px 54px rgba(23, 92, 211, .2); }
.o22-ph img { position: absolute; inset: calc(var(--pw, 200px) * .04); width: calc(100% - var(--pw, 200px) * .08); height: calc(100% - var(--pw, 200px) * .08); max-width: none; object-fit: cover; object-position: top center; border-radius: calc(var(--pw, 200px) * .13); background: #fff; }
.o22-scr { animation: o22-scr 9s linear infinite; }
.o22-scr.s-0 { animation-delay: var(--fd, 0s); }
.o22-scr.s-1 { animation-delay: calc(var(--fd, 0s) - 6s); }
.o22-scr.s-2 { animation-delay: calc(var(--fd, 0s) - 3s); }
@keyframes o22-scr { 0%, 31% { opacity: 1; } 35%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes o22-marq { to { transform: translateX(calc(-50% - var(--tg) / 2)); } }
@keyframes o22-pulse { from { scale: 1; opacity: .75; } to { scale: 1.75; opacity: 0; } }
.o22 [data-off] .o22-track, .o22 [data-off] .o22-scr, .o22 [data-off] .o22-seam::after,
.o22[data-hidden] .o22-track, .o22[data-hidden] .o22-scr, .o22[data-hidden] .o22-seam::after { animation-play-state: paused; }

/* ── 1. 첫 화면 ── */
.o22-hero { position: relative; isolation: isolate; overflow: clip; background: #fff; padding: clamp(36px, 5.6vw, 76px) 0 0; text-align: center; }
.o22-hero .cm-bg { --cm-glow-h: 100%; }
.o22-h1 { position: relative; font: 700 clamp(36px, 5.4vw, 70px)/1.16 var(--font); letter-spacing: -.02em; color: var(--ink); }
.o22-h1 > span { display: block; }
.o22-acts { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.8vw, 36px); }
.o22-stage { position: relative; isolation: isolate; height: 480px; margin-top: clamp(32px, 4.4vw, 56px); border-radius: var(--rx); overflow: hidden; background: radial-gradient(ellipse at 78% 0%, rgba(76, 0, 255, .09), rgba(76, 0, 255, 0) 62%), #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(23, 92, 211, .14); text-align: left; }
.o22-field { position: absolute; inset: 0 auto 0 0; width: 54%; padding: 30px 0 0 34px; background: var(--onyx); clip-path: polygon(0 0, 100% 0, calc(100% - 96px) 100%, 0 100%); }
.o22-sol { position: absolute; inset: 0 0 0 auto; width: 48%; padding: 30px 34px 0; }
.o22-nm { display: block; font: 700 24px/1 var(--font); letter-spacing: -.02em; }
.o22-field .o22-nm { color: #fff; }
.o22-sol .o22-nm { text-align: right; color: var(--ink); }
.o22-row { --rh: 168px; --tg: 12px; height: var(--rh); margin: 22px 0 0 -34px; overflow: hidden; }
.o22-row + .o22-row { margin-top: 12px; }
.o22-track { display: flex; gap: var(--tg); width: max-content; height: 100%; animation: o22-marq 80s linear infinite; will-change: transform; }
.o22-row.rev .o22-track { animation-direction: reverse; animation-duration: 96s; }
.o22-track img { flex: none; display: block; width: calc(var(--rh) * 1.34); height: 100%; max-width: none; object-fit: cover; border-radius: 18px; background: var(--onyx-2); }
.o22-duo { display: flex; justify-content: flex-end; gap: 26px; margin-top: 22px; padding-right: 4px; }
.o22-duo figure { margin: 0; --pw: 172px; }
.o22-duo figcaption { display: flex; align-items: center; gap: 5px; height: 22px; margin-bottom: 12px; font: 700 15px/1 var(--font); letter-spacing: -.02em; color: var(--v-ink); white-space: nowrap; }
.o22-duo figcaption img { width: 18px; height: 18px; }
.o22-seam { position: absolute; left: calc(54% - 48px); top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 14px 36px rgba(23, 92, 211, .22); }
.o22-seam img { width: 44px; height: 44px; }
.o22-seam::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(76, 0, 255, .4); animation: o22-pulse 2.6s ease-out infinite; }
/* 만남: 현장은 왼쪽에서 · 솔루션은 오른쪽에서 들어와 가운데 마크에서 만남(스크립트가 pre → in) */
.o22-stage.pre .o22-field { translate: -64px 0; opacity: 0; }
.o22-stage.pre .o22-sol { translate: 64px 0; opacity: 0; }
.o22-stage.pre .o22-seam { scale: .4; opacity: 0; }
.o22-stage.in .o22-field, .o22-stage.in .o22-sol { transition: translate 1s var(--ease), opacity .6s ease-out; }
.o22-stage.in .o22-seam { transition: scale .6s var(--pop) .62s, opacity .3s ease-out .62s; }

/* ── 2. 고객사 로고 ── */
.o22 .logos21 { position: relative; background: #fff; padding: clamp(28px, 4vw, 48px) 0 0; }

/* ── 3. 현장(클린미션) ── */
.o22-dark { padding: clamp(22px, 4.4vw, 56px); border-radius: var(--rx); background: var(--onyx); box-shadow: 0 30px 80px rgba(23, 92, 211, .16); }
.o22-dark .o22-h2 { color: #fff; }
.o22-dark .o22-h2 em { color: var(--lilac); }
.o22-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.o22-app { position: relative; display: block; height: 430px; margin: 0; border-radius: var(--rl); background: var(--onyx-2); overflow: hidden; color: #fff; text-decoration: none; }
.o22-app b { position: absolute; left: 26px; top: 26px; z-index: 1; font: 700 21px/1 var(--font); letter-spacing: -.02em; color: #fff; }
.o22-app .o22-ph { transition: translate .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .o22-app:hover .o22-ph { translate: 0 -8px; } .o22-app:hover .o22-go svg { translate: 3px 0; } }
.o22-app .o22-ph { position: absolute; left: 50%; top: 82px; --pw: 216px; margin-left: -108px; box-shadow: 0 24px 60px rgba(0, 0, 0, .34); }
.o22-devs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.o22-dev { position: relative; display: block; height: 210px; border-radius: var(--rm); overflow: hidden; background: var(--onyx-2); color: #fff; text-decoration: none; }
.o22-dev img, .o22-case img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: scale .7s var(--ease); }
.o22-dev::after, .o22-case::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(180deg, rgba(25, 31, 40, 0), rgba(25, 31, 40, .72)); }
.o22-dev b { position: absolute; left: 20px; bottom: 18px; z-index: 1; font: 700 19px/1 var(--font); letter-spacing: -.02em; color: #fff; }
@media (hover: hover) and (pointer: fine) { .o22-dev:hover img, .o22-case:hover img { scale: 1.05; } }

/* ── 4. 법정 의무(안전인) ── */
.o22-num { font-variant-numeric: tabular-nums; }
.o22-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.o22-step { position: relative; height: 470px; margin: 0; border-radius: var(--rl); overflow: hidden; background: radial-gradient(ellipse at 50% 0%, rgba(76, 0, 255, .08), rgba(76, 0, 255, 0) 58%), #fff; border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(23, 92, 211, .07); }
.o22-step figcaption { position: absolute; left: 28px; top: 28px; z-index: 1; font: 700 23px/1.2 var(--font); letter-spacing: -.02em; color: var(--ink); }
.o22-step .o22-ph { position: absolute; left: 50%; top: 92px; --pw: 236px; margin-left: -118px; }
.o22-sec .o22-acts { margin-top: clamp(24px, 3vw, 40px); }

/* ── 5. 고객사례 ── */
.o22-more { flex: none; padding-bottom: 10px; font: 700 17px/1 var(--font); color: var(--ink-2); }
.o22-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.o22-case { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: var(--rl); overflow: hidden; background: var(--onyx-2); color: #fff; text-decoration: none; }
.o22-case__tx { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 9px; }
.o22-case__tx span { font: 500 15px/1.2 var(--font); color: rgba(255, 255, 255, .88); }
.o22-case__tx b { font: 700 22px/1.22 var(--font); letter-spacing: -.02em; color: #fff; word-break: keep-all; overflow-wrap: anywhere; }

/* ── 6. 앱 · 입점 ── */
.o22-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.o22-box { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 250px; padding: clamp(24px, 3vw, 40px); border-radius: var(--rl); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(23, 92, 211, .07); }
.o22-box h2 { font: 700 clamp(22px, 2.4vw, 30px)/1.25 var(--font); letter-spacing: -.02em; color: var(--ink); }
.o22-box h2 > span { display: block; }
/* 앱 두 줄(안전인 · 클린미션 파트너)은 늘 같은 짜임: 칸이 좁으면 둘 다 이름 아래 배지 · 넓으면 둘 다 [이름 | 배지]
   (11-23 대표 아이폰 18 프로 캡처 = 폭 379~441px 에서 짧은 이름 줄만 한 줄에 서고 긴 이름 줄은 배지가 아래로 떨어졌음 → 줄바꿈을 글자 길이에 맡기지 않고 칸 너비로 두 줄을 한꺼번에 바꿈)
   배지 크기: 구글 공식 PNG(646×250)는 검은 판(564×168) 둘레에 투명 여백 41px 이 있어 같은 높이로 두면 앱스토어보다 2/3 크기로 보였음
   → 그림을 250/168 배로 키우고 여백만큼 바깥으로 당겨 검은 판 높이를 앱스토어 배지(--bh)와 같게(그림은 공식 파일 그대로)
   '준비 중' 꼬리표: 배지 글자(위에서 8.5/40 부터) 위 빈 띠에만 걸치게 올림 → 'Download on the' 를 가리지 않음 */
.o22-stores { container-type: inline-size; --bh: 40px; }
.o22-store { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.o22-store + .o22-store { margin-top: 24px; }
.o22-store > span { display: inline-flex; align-items: center; gap: 6px; font: 700 16px/20px var(--font); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.o22-store > span img { flex: none; width: 20px; height: 20px; }
.o22-store > div { display: flex; align-items: center; gap: 10px; }
.o22-store a, .o22-soon { position: relative; flex: none; display: block; border-radius: 8px; }
.o22-store .as { display: block; width: auto; height: var(--bh); max-width: none; }
.o22-store .gp { display: block; width: auto; height: calc(var(--bh) * 250 / 168); max-width: none; margin: calc(var(--bh) * -41 / 168); }
.o22-soon .as { opacity: .28; }
.o22-soon b { position: absolute; right: -6px; top: -14px; padding: 4px 7px; border-radius: 7px; background: var(--ink-2); font: 700 12px/1 var(--font); letter-spacing: -.02em; color: #fff; white-space: nowrap; }
@container (min-width: 420px) {
  .o22-store { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .o22-store + .o22-store { margin-top: 14px; }
}
@media (max-width: 353px) { .o22-stores { --bh: 37px; } }
@media (max-width: 335px) { .o22-stores { --bh: 34px; } }
.o22-box .o22-go { font: 700 16px/1 var(--font); color: var(--v-ink); }
.o22-box--sup { position: relative; overflow: hidden; }
.o22-box__tx { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; flex: 1; }
.o22-box__ph { position: absolute; right: clamp(20px, 3vw, 40px); top: 62px; display: flex; --pw: 122px; }
.o22-box__ph .o22-ph { flex: none; aspect-ratio: 796 / 1572; box-shadow: 0 16px 40px rgba(23, 92, 211, .16); }
.o22-box__ph .o22-ph:first-child { position: relative; z-index: 1; }
.o22-box__ph .o22-ph + .o22-ph { margin: 30px 0 0 -70px; }

/* ── 7. 자주 묻는 질문 ── */
.o22-faq { max-width: 880px; margin-inline: auto; }
.o22-faq .o22-h2 { text-align: center; margin-bottom: clamp(20px, 3vw, 36px); }
.o22-q { border-bottom: 1px solid var(--line); }
.o22-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; font: 700 clamp(17px, 1.7vw, 20px)/1.4 var(--font); letter-spacing: -.01em; color: var(--ink); cursor: pointer; list-style: none; }
.o22-q summary::-webkit-details-marker { display: none; }
.o22-q summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2.4px solid var(--mut); border-bottom: 2.4px solid var(--mut); rotate: 45deg; translate: 0 -3px; transition: rotate .26s var(--ease), translate .26s var(--ease); }
.o22-q[open] summary::after { rotate: 225deg; translate: 0 3px; }
.o22-q p { padding: 0 4px 26px; font: 400 17px/1.75 var(--font); color: var(--ink-2); }

/* ── 8. 마지막 단추 ── */
.o22-end { padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 7vw, 96px); }
.o22-end__box { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 7vw, 96px) 24px; border-radius: var(--rx); background: #191f28; text-align: center; box-shadow: 0 30px 80px rgba(23, 92, 211, .18); }
.o22-end__box::before { content: ''; position: absolute; z-index: -1; inset: -40% -10% auto; height: 120%; background: radial-gradient(ellipse at 50% 0%, rgba(110, 88, 255, .42), rgba(76, 0, 255, 0) 62%); }
.o22-end__box h2 { font: 700 clamp(30px, 4.2vw, 54px)/1.2 var(--font); letter-spacing: -.02em; color: #fff; }
.o22-end__box h2 > span { display: block; }
.o22-end__box .acts9 { justify-content: center; margin-top: clamp(24px, 3vw, 40px); }

/* ── 좁은 폭 ── */
@media (max-width: 1099px) {
  .o22-stage { height: 440px; }
  .o22-row { --rh: 150px; }
  .o22-duo { gap: 18px; }
  .o22-duo figure { --pw: 150px; }
  .o22-app { height: 390px; }
  .o22-app .o22-ph { --pw: 190px; margin-left: -95px; }
  .o22-step { height: 420px; }
  .o22-step .o22-ph { --pw: 204px; margin-left: -102px; }
  .o22-dev { height: 170px; }
}
@media (max-width: 1279px) {
  .o22-box__ph { top: 116px; --pw: 104px; }
  .o22-box__ph .o22-ph + .o22-ph { margin: 24px 0 0 -58px; }
}
@media (max-width: 900px) {
  .o22-pair { grid-template-columns: minmax(0, 1fr); }
  /* 판: 위 현장 · 아래 솔루션 · 사이에 마크 */
  .o22-stage { height: auto; border-radius: 28px; }
  .o22-field { position: relative; inset: auto; width: 100%; padding: 22px 0 46px 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%); }
  .o22-row { --rh: 104px; --tg: 8px; margin: 14px 0 0 -20px; }
  .o22-row + .o22-row { margin-top: 8px; }
  .o22-track img { border-radius: 12px; }
  .o22-nm { font-size: 19px; }
  .o22-sol { position: relative; inset: auto; width: 100%; height: 318px; padding: 26px 20px 0; overflow: hidden; }
  .o22-sol .o22-nm { text-align: left; }
  .o22-duo { justify-content: center; gap: 16px; margin-top: 14px; padding: 0; }
  .o22-duo figure { --pw: min(41vw, 168px); }
  .o22-duo figcaption { font-size: 13.5px; margin-bottom: 8px; }
  .o22-seam { left: 50%; top: auto; bottom: 318px; width: 60px; height: 60px; margin: 0 0 -13px -30px; }
  .o22-seam img { width: 34px; height: 34px; }
  .o22-stage.pre .o22-field { translate: 0 -40px; }
  .o22-stage.pre .o22-sol { translate: 0 40px; }
}
@media (max-width: 760px) {
  .o22-hd { flex-direction: column; align-items: flex-start; gap: 6px; }
  .o22-hd .o22-tag { order: -1; padding-bottom: 4px; font-size: 15px; }
  .o22-more { padding: 6px 0 0; font-size: 15px; }
  .o22.js .o22-step[data-rv] { opacity: 1; translate: none; }
  .o22-acts { gap: 10px; }
  .o22-hero .o22-acts .btn9 { flex: 1 1 0; min-width: 0; min-height: 54px; padding: 0 12px; font-size: 16px; }
  /* 줄지어 넘기는 칸 */
  .o22-dark { border-radius: 28px; }
  .o22-apps, .o22-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * clamp(22px, 4.4vw, 56px)); padding-inline: clamp(22px, 4.4vw, 56px); gap: 12px; }
  .o22-steps { margin-inline: calc(-1 * var(--cm-gutter, 20px)); padding-inline: var(--cm-gutter, 20px); padding-block: 4px 30px; margin-bottom: -30px; }
  .o22-apps::-webkit-scrollbar, .o22-steps::-webkit-scrollbar { display: none; }
  .o22-app, .o22-step { scroll-snap-align: center; height: 372px; }
  .o22-app b { left: 20px; top: 20px; font-size: 18px; }
  .o22-step figcaption { left: 22px; top: 22px; font-size: 19px; }
  .o22-app .o22-ph, .o22-step .o22-ph { top: 66px; --pw: 184px; margin-left: -92px; }
  .o22-devs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .o22-dev { height: 132px; border-radius: 16px; }
  .o22-dev b { left: 14px; bottom: 13px; font-size: 16px; }
  .o22-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .o22-case { aspect-ratio: 1 / 1; border-radius: 20px; }
  .o22-case__tx { left: 14px; right: 12px; bottom: 14px; gap: 6px; }
  .o22-case__tx span { font-size: 13px; }
  .o22-case__tx b { font-size: 16.5px; }
  .o22-pair { grid-template-columns: minmax(0, 1fr); }
  .o22-box.o22-box--sup { min-height: 244px; }
  .o22-box__ph { top: 104px; right: 16px; --pw: 92px; }
  .o22-box__ph .o22-ph + .o22-ph { margin: 22px 0 0 -52px; }
  .o22-box { min-height: 0; }
  .o22-q summary { padding: 20px 2px; }
  .o22-q p { font-size: 16px; }
  .o22-end__box { border-radius: 28px; }
}
@media (max-width: 400px) {
  .o22-box__ph { right: 12px; --pw: 76px; }
  .o22-box__ph .o22-ph + .o22-ph { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .o22 *, .o22 *::before, .o22 *::after { transition: none !important; }
  .o22-track, .o22-scr, .o22-seam::after { animation: none; }
  .o22-scr:not(.s-0) { opacity: 0; }
  .o22-seam::after { opacity: 0; }
}
