/* ============================================================
   theunit101 — 풀스크린 · 중앙정렬 · 벤토 · 스크롤 애니메이션
   무채색 다크 + Pretendard self-host. 히어로 배경만 컬러(spec §8 예외).
   ============================================================ */

@font-face {
  font-family: 'Pretendard Variable';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/PretendardVariable.woff2') format('woff2-variations');
}

:root {
  --bg: #0a0a0a;
  --bg-raise: #141414;
  --bg-card: #121212;
  --fg: #f2f2f2;
  --fg-mid: #9a9a9a;
  --fg-sub: #8a8a8a;
  --fg-dim: #5c5c5c;
  --fg-faint: #4a4a4a;
  --line: #1e1e1e;
  --line-raise: #262626;
  --light-bg: #f2f2f2;
  --light-fg: #0a0a0a;
  --header-h: 68px;
  --pad-x: 48px;
  --ease: cubic-bezier(0.16, 0.84, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
}

/* 우클릭 방지(main.js)와 세트 — 드래그·길게 눌러 저장 경로 차단 */
img,
video {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- header ---------- */
/* backdrop-filter는 스크롤 중 매 프레임 배경을 다시 블러해 버벅임의 주원인이 된다 — 불투명 배경으로 대체 */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #0a0a0a80;
  backdrop-filter: blur(30px);
}

.header__inner {
  position: relative;
  padding: 0 var(--pad-x);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* flex 사이 배치는 좌우 요소 폭 차이만큼 중심이 밀린다 — 절대 배치로 화면 정중앙에 고정
   (모바일에선 display:none 이라 절대 배치 무해) */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-mid);
}

.nav__link:hover {
  color: #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.btn--solid {
  font-size: 13px;
  padding: 10px 22px;
  color: var(--bg);
  background: var(--fg);
}

a.btn--solid:hover {
  background: #c8c8c8;
}

.btn--dark {
  font-size: 16px;
  padding: 18px 38px;
  color: var(--light-bg);
  background: var(--light-fg);
}

a.btn--dark:hover {
  background: #333;
}

.btn--line {
  font-size: 16px;
  padding: 18px 38px;
  color: var(--light-fg);
  border: 1px solid #c2c2c2;
}

a.btn--line:hover {
  border-color: var(--light-fg);
}

.btn.is-pending {
  cursor: default;
}

.btn--solid.is-pending {
  color: #666;
  background: var(--bg-raise);
  border: 1px solid #2a2a2a;
  padding: 9px 21px;
}

.btn--dark.is-pending,
.btn--line.is-pending {
  color: #a0a0a0;
  background: #e6e6e6;
  border: 1px solid #d6d6d6;
}

/* ---------- hero (풀스크린 · 중앙정렬) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 var(--pad-x);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.05) 45%, rgba(10, 10, 10, 0.3) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
}

.hero__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(44px, 8.5vw, 132px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.hero__desc {
  margin: 36px auto 0;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.8;
  color: #cfcfcf;
  max-width: 44em;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

/* 반투명 타이틀 — stroke 는 한글 획 교차선 얼룩으로 최종 제거, 채움 0.5 만 사용 */
.hero__title--glass {
  color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
}

/* left/right 0 + flex 정렬로 중앙 배치 — translateX(-50%)를 쓰면 .rise 애니메이션의 transform과 충돌한다 */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll:hover {
  color: #fff;
}

.hero__arrow {
  display: inline-block;
  animation: tu-bob 2s ease-in-out infinite;
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tu-marquee 38s linear infinite;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  white-space: nowrap;
}

.ticker__item i {
  font-style: normal;
  color: #2c2c2c;
}

/* ---------- statement (풀스크린 중앙정렬 선언) ---------- */
.statement {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad-x);
}

.statement__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--fg-dim);
  margin-bottom: 32px;
}

.statement__title {
  font-size: clamp(38px, 6.5vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.statement__desc {
  margin-top: 32px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--fg-mid);
  max-width: 40em;
  text-wrap: pretty;
}

/* ---------- deck (문제 → 대응 캐러셀: 비주얼 위 · 텍스트 아래) ---------- */
.deck {
  padding: 0 0 160px;
}

.deck__title {
  padding: 0 var(--pad-x);
  margin-bottom: 48px;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
}

/* 데스크톱: 슬라이드 없이 3열 그리드 중앙 정렬 (캐러셀은 모바일 전용) */
.deck__viewport {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: calc(1240px + 2 * var(--pad-x));
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.deck__viewport:focus-visible {
  outline: 1px solid var(--line-raise);
  outline-offset: 8px;
}

.deck .cctrl {
  display: none;
}

/* 이미지 없이 타이포 카드 — 번호에만 prism 램프 그라디언트(브랜딩 한 스푼) */
.pcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 36px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.pcard:hover {
  border-color: #333;
}

.pcard__no {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(100deg, #6b8cf2, #d98cc7, #fa805c, #fcbf4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pcard__label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dim);
}

.pcard__title {
  margin-top: 26px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.pcard__desc {
  margin-top: auto;
  padding-top: 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-mid);
  text-wrap: pretty;
}

/* ---------- carousel control (문제 · 사례 공통) ---------- */
.deck .cctrl {
  margin-top: 52px;
}

.cctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cctrl__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-raise);
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.cctrl__btn:hover {
  background: #262626;
}

.cctrl__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.cctrl__btn:disabled:hover {
  background: var(--bg-raise);
}

.cctrl__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-raise);
  padding: 16px;
  border-radius: 999px;
}

.cctrl__seg {
  position: relative;
  overflow: hidden;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #4a4a4a;
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s ease;
}

.cctrl__seg:hover {
  background: #6a6a6a;
}

/* 활성 세그먼트 = 트랙(어두움) + 흰 채움(::after).
   오토플레이(is-running) 중엔 채움이 슬라이드 지속시간(--seg-dur, js:AUTO_MS)만큼
   왼쪽부터 차오르는 프로그레스가 되고, 수동 모드에선 가득 찬 상태로 멈춘다 */
.cctrl__seg.is-active {
  width: 30px;
}

.cctrl__seg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
}

.cctrl__seg.is-active::after {
  transform: scaleX(1);
}

.cctrl.is-running .cctrl__seg.is-active::after {
  animation: tu-segfill var(--seg-dur, 3.2s) linear forwards;
}

@keyframes tu-segfill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ---------- method (우리가 만드는 방식) ---------- */
.method {
  padding: 40px var(--pad-x) 160px;
  text-align: center;
}

.method__title {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 64px;
}

/* 카드가 아닌 에디토리얼 행 — 문제 섹션(카드 그리드)과 형태를 구분한다 */
.method__flow {
  max-width: 1240px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line-raise);
}

.method__step {
  display: grid;
  grid-template-columns: 88px 1.1fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.method__no {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}

.method__name {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.method__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-mid);
  text-wrap: pretty;
}

/* ---------- lede (타이틀 축소 + 이미지 등장이 한 구간에서 연속 진행) ---------- */
.lede {
  position: relative;
  height: 300vh;
}

.lede__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* 이미지는 아래에서 올라와 화면을 채운 뒤 축소된다 */
.lede__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  will-change: transform, border-radius;
}

.lede__media .img-slot {
  width: 100%;
  height: 100%;
}

/* 타이틀은 이미지 위에 겹쳐 유지 — 중앙 정렬은 stage가 맡고 transform은 JS 전용 */
.lede__stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lede__inner {
  text-align: center;
  padding: 0 var(--pad-x);
  will-change: transform;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
}

.lede__title {
  font-size: clamp(38px, 6.5vw, 104px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.lede__inner .statement__desc {
  margin-top: 32px;
}

/* ---------- showcase (대표 + 사례가 한 트랙. 풀스크린 → 중앙 축소 → 좌우 슬라이드) ---------- */
.showcase {
  position: relative;
  height: 300vh;
}

.showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* 아이템 크기와 트랙 위치는 스크롤 진행률·현재 인덱스에 따라 JS가 채운다 */
.showcase__track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  will-change: transform;
}

.showcase__track.is-animating {
  transition: transform 0.65s var(--ease);
}

.showcase__item {
  position: relative;
  flex: none;
  overflow: hidden;
}

/* 사례는 높이만 JS가 고정하고, 폭은 콘텐츠(이미지) 비율을 그대로 따른다.
   placeholder는 --slot-ratio 로 기본 비율을 준다 — 실제 이미지로 교체하면 자연 비율이 쓰인다. */
.showcase__item>.img-slot {
  height: 100%;
  aspect-ratio: var(--slot-ratio, 3 / 4);
  border-radius: inherit;
}

.showcase__item>img,
.showcase__item>video {
  height: 100%;
  width: auto;
  display: block;
  border-radius: inherit;
}

.showcase__item--main>.img-slot {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.showcase__item--main>img,
.showcase__item--main>video {
  width: 100%;
  object-fit: cover;
}

/* 사례 조작 컨트롤 — 슬라이드가 다 들어온 뒤 페이드 인.
   top 은 슬라이드 하단에 붙도록 JS가 지정한다. */
.showcase__controls {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.showcase__controls.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- image slots (placeholder — 교체 시 <img>/background) ---------- */
.img-slot {
  background: repeating-linear-gradient(135deg, var(--bg-raise) 0 14px, #101010 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-slot span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--fg-faint);
  text-align: center;
  line-height: 1.9;
  padding: 0 20px;
}

/* 실제 이미지·영상으로 교체할 때 쓰는 채움 클래스 */
.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- solution + bento ---------- */
.solution {
  padding: 140px var(--pad-x) 160px;
  text-align: center;
  max-width: 1240px;
  margin: 0 auto;
}

.solution__name {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.solution__desc {
  margin: 28px auto 72px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.8;
  color: var(--fg-mid);
  max-width: 38em;
  text-wrap: pretty;
}

/* 세 카드 균등 — 우열 없이 나란히 */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
  align-items: stretch;
}

.bento__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
  transition: border-color 0.3s ease;
}

.bento__item:hover {
  border-color: #333;
}

.bento__no {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.bento__item strong {
  display: block;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.bento__item p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-mid);
  text-wrap: pretty;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
}

.link-out:hover {
  color: #a8a8a8;
  border-color: #a8a8a8;
}

/* ---------- contact (라이트 · 풀스크린 중앙) ---------- */
.contact {
  position: relative;
  background: var(--light-bg);
  color: var(--light-fg);
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--pad-x);
  overflow: hidden;
}

/* 잉크 셰이더 캔버스 — 콘텐츠 아래 깔린다 */
.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact> :not(.contact__glow) {
  position: relative;
  z-index: 1;
}

.contact .statement__label {
  color: #8a8a8a;
}

.contact__title {
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.contact__desc {
  margin: 32px auto 56px;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.8;
  color: #5a5a5a;
  max-width: 36em;
}

.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.contact__note {
  margin-top: 28px;
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.footer {
  background: var(--bg);
  padding: 44px var(--pad-x) 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.wordmark--footer {
  margin-bottom: 20px;
}

.footer__info {
  display: flex;
  flex-wrap: wrap;
  column-gap: 9px;
  font-size: 13px;
  line-height: 1.8;
  color: #7a7a7a;
}

/* 구분점은 뒤에 붙인다 — 줄바꿈 시 다음 줄 머리에 점이 오지 않게 */
.footer__info span:not(:last-child)::after {
  content: '·';
  margin-left: 9px;
  color: #4a4a4a;
}

.footer__links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  justify-content: flex-end;
}

.footer__links a {
  color: #7a7a7a;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #555;
}

/* ---------- motion ---------- */
@keyframes tu-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tu-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes tu-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.rise {
  animation: tu-rise 1s var(--ease) both;
}

.d1 {
  animation-delay: 0.1s;
}

.d2 {
  animation-delay: 0.22s;
}

.d3 {
  animation-delay: 0.38s;
}

.d4 {
  animation-delay: 0.6s;
}

/* 스크롤 진입 리빌 — data-reveal + data-reveal-delay(0~3) */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal][data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

/* 메뉴로 긴 거리를 점프하는 동안엔 리빌 연출을 끈다.
   통과하는 섹션들이 한꺼번에 페이드/이동을 시작하면 스크롤이 버벅이는 것처럼 보인다. */
.is-jumping [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.is-jumping .ticker__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker__track {
    animation: none;
  }

  .hero__arrow {
    animation: none;
  }

  .deck__viewport {
    scroll-behavior: auto;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  :root {
    --pad-x: 32px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  :root {
    --pad-x: 20px;
  }

  .nav {
    display: none;
  }

  /* 히어로만 넉넉히, 나머지 섹션 간격은 좁힌다 */
  .hero {
    min-height: 88vh;
  }

  .statement {
    min-height: 52vh;
    padding: 64px var(--pad-x);
  }

  .deck {
    padding-bottom: 72px;
  }

  .deck__title {
    margin-bottom: 28px;
  }

  /* 모바일만 캐러셀 — 카드가 화면 중앙에 오도록 좌우 패딩 계산 */
  .deck__viewport {
    --pcard-w: 78vw;
    display: flex;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 0 max(var(--pad-x), calc((100vw - var(--pcard-w)) / 2));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }

  .deck__viewport::-webkit-scrollbar {
    display: none;
  }

  .deck .cctrl {
    display: flex;
    margin-top: 36px;
  }

  .pcard {
    flex: 0 0 var(--pcard-w);
    scroll-snap-align: center;
    min-height: 320px;
    padding: 32px 28px;
  }

  /* 모바일은 풀스크린 sticky 연출을 접고 정적 흐름으로 — 빈 화면 체류가 근본 원인.
     lede: 타이틀 → 영상(비율 유지) → 캡션이 바로 이어진다. 인라인 연출값은 JS 가 걷어낸다. */
  .lede {
    height: auto;
  }

  .lede__sticky {
    position: static;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .lede__stage {
    position: static;
    order: 0;
    pointer-events: auto;
    padding: 56px 0 24px;
  }

  .lede__media {
    position: static;
    order: 1;
    margin: 0 var(--pad-x);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    /* 베이스의 등장 연출 초기값(translate3d 100%)이 남으면 다음 섹션 위로 밀려 겹친다 */
    transform: none;
    z-index: auto;
  }

  .lede__media .media-fill {
    height: auto;
    border-radius: 20px;
  }

  /* showcase(BRICK LIT)도 정적 스트립 — 높이는 캡션+스트립+조작부가 들어가는 고정값.
     static 이면 absolute 트랙의 기준이 밖으로 나가 overflow:hidden 클리핑이 풀린다 — relative 필수 */
  .showcase {
    height: auto;
  }

  .showcase__sticky {
    position: relative;
    height: 380px;
    overflow: hidden;
  }

  .method {
    padding: 16px var(--pad-x) 80px;
  }

  .method__title {
    margin-bottom: 32px;
  }

  /* 행 레이아웃을 세로 스택으로 — 번호+타이틀 한 줄, 설명은 그 아래 */
  .method__step {
    grid-template-columns: 44px 1fr;
    gap: 8px 12px;
    padding: 28px 0;
  }

  .method__desc {
    grid-column: 2;
    font-size: 15px;
  }

  .solution {
    padding: 36px var(--pad-x) 72px;
  }

  /* 미디어 바로 아래 붙는다 */
  .solution__desc {
    margin-bottom: 40px;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento__item {
    padding: 32px 28px;
  }

  .contact {
    min-height: 70vh;
    padding: 80px var(--pad-x);
  }

  .contact__cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact__cta .btn {
    padding: 16px 48px;
  }

  .contact__cta .btn {
    text-align: center;
  }

  .footer {
    padding: 36px var(--pad-x) 32px;
  }

  /* 좁은 화면에선 한 줄이 안 들어간다 — 세로 스택 + 구분점 제거 */
  .footer__info {
    flex-direction: column;
    row-gap: 2px;
  }

  .footer__info span:not(:last-child)::after {
    content: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer__links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }
}