/* cases.20261006c.css — 35번회차 시공사례 시험판 전용. 공용 style.css · story.20260928z.css 는 그대로 부르고 덮지 않는다.
   색은 style.css 변수만(초록 머리 칸 = --c-success).
   금지 : 확대 · 켄번즈 · 패럴랙스 · 스크롤 끌림. 전환은 크로스페이드(목록 반전 카드만 예외 · 동작 줄이기에서는 크로스페이드). */

/* ① 첫 화면 — 세척 후 사진 위 제목 · 큰 숫자 */
.csh { position: relative; isolation: isolate; color: #fff; background: var(--c-navy-deep); overflow: hidden; }
.csh__bg, .csh__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.csh::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 21, 51, .55) 0%, rgba(6, 21, 51, .78) 60%, rgba(6, 21, 51, .92) 100%); }
.csh__inner { max-width: 1120px; margin: 0 auto; padding: 64px 24px 56px; text-align: center; }
.csh .breadcrumb { justify-content: center; color: rgba(255, 255, 255, .7); }
.csh .breadcrumb a { color: rgba(255, 255, 255, .7); }
.csh h1 { color: #fff; font-size: clamp(26px, 4.2vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0; }
.csh__num { margin: 18px 0 6px; font-size: clamp(56px, 11vw, 112px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.csh__lede { margin: 14px auto 0; max-width: 640px; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, .86); }
@media (max-width: 768px) { .csh__inner { padding: 44px 20px 40px; } .csh__lede { font-size: 15px; } }

/* ② 스크롤텔링 — story.20260928z.* 그대로. 다가오는 확대만 끈다.
   36번회차 : 사진을 칸에 꽉 채운다(cover · 빈 띠 0) · 칸 PC 16:10 · 폰 4:3 · 주제 자리는 장면마다 img 의 object-position.
   폰에서는 칸을 화면 끝까지 넓혀 높이가 화면 폭의 0.75 배가 되게 한다. */
.cs-story .story__frames,
.cs-story .story__frames[class] { aspect-ratio: 16 / 10; max-height: 74svh; }
.cs-story .story__frame img { transform: none !important; object-fit: cover; }
.cs-story .story__frame picture { display: block; width: 100%; height: 100%; }
.cs-story .story__desc { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--c-text-mid); min-height: 3.1em; }
@media (max-width: 900px) {
  .cs-story .story__frames,
  .cs-story .story__frames[class] { aspect-ratio: 4 / 3; max-height: none; }
  .cs-story .story__desc { font-size: 14px; min-height: 2.9em; margin-top: 4px; }
}
@media (max-width: 640px) {
  .cs-story .story__frames,
  .cs-story .story__frames[class] { width: auto; margin-left: -20px; margin-right: -20px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-story .story__frames[class] { aspect-ratio: 16 / 10; max-height: 74svh; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .cs-story .story__frames[class] { aspect-ratio: 4 / 3; max-height: none; }
}

/* 빈 공간 줄이기 — 단추 · 띠 · 목록 카드 아래 여백 PC 72px · 폰 48px 안 */
.section.cs-pad { padding-top: 72px; padding-bottom: 72px; }
.cs-pad .section-head { margin-bottom: 28px; }
@media (max-width: 768px) {
  .section.cs-pad { padding-top: 48px; padding-bottom: 48px; }
  .cs-pad .section-head { margin-bottom: 20px; }
}
.section.cs-pad-b { padding-bottom: 72px; }
@media (max-width: 768px) { .section.cs-pad-b { padding-bottom: 48px; } }

/* ③ 전후 끌어 비교 */
.cbx { max-width: 1000px; margin: 0 auto; }
.cbx__stage { position: relative; width: 100%; max-height: 78svh; margin: 0 auto; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--c-navy-deep); box-shadow: var(--shadow-lg); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cbx__img, .cbx__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.cbx__before { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.cbx__line { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); pointer-events: none; }
.cbx__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--c-navy); font-size: 20px; }
.cbx__tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 700; transition: opacity .25s; pointer-events: none; }
.cbx__tag--before { left: 14px; }
.cbx__tag--after { right: 14px; }
.cbx.is-before-hidden .cbx__tag--before, .cbx.is-after-hidden .cbx__tag--after { opacity: 0; }
.cbx__done { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: var(--c-success); color: #fff;
  font-size: 14px; font-weight: 800; opacity: 0; transition: opacity .3s; pointer-events: none; }
.cbx__done.is-on { opacity: 1; }
.cbx__hint { text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--c-text-soft); }
.cbx__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cbx__range:focus-visible + .cbx__line .cbx__knob { outline: 3px solid var(--c-sky); }
@media (max-width: 900px) { .cbx__tag { top: 10px; font-size: 11.5px; padding: 4px 9px; } .cbx__tag--before { left: 10px; } .cbx__tag--after { right: 10px; } }

/* ④ 사실 표 — 초록 머리 칸 */
.cs-table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--c-line); }
.cs-table th, .cs-table td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; line-height: 1.55; }
.cs-table tr:last-child th, .cs-table tr:last-child td { border-bottom: 0; }
.cs-table th { width: 30%; background: var(--c-success); color: #fff; font-weight: 700; white-space: nowrap; border-bottom-color: rgba(255, 255, 255, .25); }
.cs-table td { color: var(--c-text); background: var(--c-bg); }
@media (max-width: 900px) { .cs-table th { width: 34%; white-space: normal; } .cs-table th, .cs-table td { padding: 12px; font-size: 14px; } }

/* ⑤ 학교 · 관공서 띠 */
.cs-band { text-align: center; }
.cs-band__names { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 16px; }
.cs-band__names span { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-navy); font-weight: 800; font-size: 16px; }
.cs-band__link { display: table; margin: 0 auto; line-height: 1.4; font-weight: 700; color: var(--c-sky); text-decoration: none; }
.cs-band__link:hover { text-decoration: underline; }

/* ⑥ 걱정 없음 카드 */
/* 36번회차 보강 : 카드 셋을 다시 한 줄로(셋째 = 작업 책임 시공 · 총사령관 2026-10-06 문구) */
.cs-worry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cs-worry__card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 22px 20px; min-height: 128px; box-shadow: var(--shadow-sm); }
.cs-worry__card h3 { font-size: 17px; color: var(--c-navy); margin: 0 0 8px; }
.cs-worry__card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--c-text-mid); }
@media (max-width: 900px) { .cs-worry { grid-template-columns: 1fr; gap: 12px; } .cs-worry__card { min-height: 0; } .cs-worry__card--empty { min-height: 64px; } }

/* 목록 — 반전 카드 */
.fc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fc { display: block; text-decoration: none; color: inherit; perspective: 1200px; -webkit-tap-highlight-color: transparent; }
.fc__inner { position: relative; aspect-ratio: 4 / 3; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.fc__face { position: absolute; inset: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--c-navy-deep);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: var(--shadow-sm); }
.fc__face picture, .fc__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fc__back { transform: rotateY(180deg); }
.fc.is-flip .fc__inner, .fc:focus-visible .fc__inner { transform: rotateY(180deg); }
@media (hover: hover) { .fc:hover .fc__inner { transform: rotateY(180deg); } }
.fc__tag { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12.5px; font-weight: 700; }
.fc__back .fc__tag { background: var(--c-success); }
.fc__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, rgba(6, 21, 51, 0) 0%, rgba(6, 21, 51, .85) 100%); }
.fc__title { font-size: 16px; line-height: 1.4; color: var(--c-navy); margin: 12px 2px 0; font-weight: 800; }
.fc__hint { text-align: center; margin: 0 0 22px; font-size: 14px; color: var(--c-text-soft); }
@media (max-width: 1024px) { .fc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fc-grid { grid-template-columns: 1fr; gap: 20px; } }

/* 동작 줄이기 — 뒤집지 않고 크로스페이드 */
@media (prefers-reduced-motion: reduce) {
  .fc__inner, .fc.is-flip .fc__inner, .fc:focus-visible .fc__inner, .fc:hover .fc__inner { transform: none !important; transition: none; }
  .fc__back { transform: none; opacity: 0; transition: opacity .6s var(--ease); }
  .fc.is-flip .fc__back, .fc:focus-visible .fc__back { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) { .fc:hover .fc__back { opacity: 1; } }
