/* main01 — 메인 시안 01 (슬로건 왼쪽형) · 노드 176:40234 / 상태 233:21582
   공통(슬라이드·오버레이·블러·법적 고지·버튼 크기)은 _shared/family/main.css. 여기는 카피·빠른 메뉴·슬라이드 컨트롤만. */

.m1 {
  --m1-fs-title: clamp(28px, calc(18.82px + 2.353vw), 64px);   /* 시안 64 · 하한 28 (390에서 2줄) */
  --m1-fs-sub:   clamp(15px, calc(14.24px + 0.196vw), 18px);   /* 시안 18 */
  --m1-fs-count: clamp(18px, calc(16.47px + 0.392vw), 24px);   /* 시안 24 */
}

/* ── 카피 — 시안: 좌 200(레일) · 세로 중앙 (Hero/Copy top 50% translate -50%) ── */
.m1-copy {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  top: 50%;
  translate: 0 -50%;
}
.m1-copy__title {
  margin: 0;
  font-size: var(--m1-fs-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03125em;          /* -2px @64 */
}
.m1-copy__title span { display: block; }
.m1-copy__sub {
  max-width: 620px;
  margin: clamp(16px, 1.25vw, 24px) 0 0;
  font-size: var(--m1-fs-sub);
  line-height: 1.6;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,.85);
}
.m1-copy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 2.08vw, 40px);
}

/* ── 빠른 메뉴 — 시안: 우 40 · 112×416 · 흰 카드 r16 · 그림자 0 12 32 /.14 · 중심이 화면 중앙보다 30 아래 ── */
.m1-quick {
  position: absolute;
  z-index: 6;
  right: clamp(16px, 2.08vw, 40px);
  top: 50%;
  translate: 0 calc(-50% + 30px);
  width: 112px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.m1-quick__list { margin: 0; padding: 0; list-style: none; }
.m1-quick__list li + li { border-top: 1px solid #e5e8ed; }
.m1-quick__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 104px;
  color: var(--gray-900);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
}
.m1-quick__link img { width: 30px; height: 30px; }

/* ── 하단 컨트롤 — 시안: 컨트롤 y789(44) · 타이머 y852 · 고지 y880 (프레임 920) ── */
.m1-bottom {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  bottom: 66px;
}
.m1-ctrl { display: flex; align-items: center; gap: 20px; }
.m1-ctrl__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--font-latin);
  font-size: var(--m1-fs-count);
  line-height: 1.25;
  white-space: nowrap;
}
.m1-ctrl__cur   { font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.m1-ctrl__total { font-weight: 400; color: rgba(255,255,255,.55); }   /* 시안 Outfit Light 300 → 400 (공유 후보) */
.m1-ctrl__arrows { display: flex; gap: 4px; }
.m1-ctrl__btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
}
.m1-ctrl__btn img { width: 20px; height: 20px; }
.m1-ctrl__pause {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 22px;
}
.m1-ctrl__ico { width: 18px; height: 18px; grid-area: 1 / 1; }
.m1-ctrl__ico--play { display: none; }
.m1[data-paused="true"] .m1-ctrl__ico--pause { display: none; }
.m1[data-paused="true"] .m1-ctrl__ico--play  { display: block; }

/* 타이머 — 1px 헤어라인(.3) 위에 2px 진행 막대(현재 슬라이드 경과) */
.m1-timer { position: relative; height: 2px; margin-top: 19px; }
.m1-timer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.3);
}
.m1-timer__bar {
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
}

/* ── 데스크톱 낮은 창 — 카피와 하단 컨트롤이 부딪히지 않게 카피를 조금 올림 ── */
@media (min-width: 840px) and (max-height: 720px) {
  .m1-copy { top: 46%; }
}

/* ── expanded 이하 — 빠른 메뉴가 레일과 겹치기 시작 → 카피 폭만 양보 ── */
@media (max-width: 1199.98px) and (min-width: 840px) {
  .m1-copy { padding-right: 140px; }
}

/* 좁은 창 — 화살표 터치 영역 44 (아이콘 20 유지) */
@media (max-width: 1199.98px) {
  .m1-ctrl__arrows { gap: 0; margin-inline: -4px; }
  .m1-ctrl__btn { width: 44px; height: 44px; }
}

/* ── compact·medium (<840) — 겹침 유지, 흐름 배치로 재배치
   헤더(64) → 카피(세로 중앙) → 빠른 메뉴(가로 4칸) → 컨트롤 → 고지 ── */
@media (max-width: 839.98px) {
  .m1 {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--chrome-h-mobile);
  }
  .m1-copy, .m1-quick, .m1-bottom, .m1 .mh-legal {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    translate: none;
  }
  .m1-copy { margin-block: auto; padding-block: 24px; }
  .m1-quick {
    width: min(var(--mh-rail), calc(100% - var(--gutter) * 2));
    margin: 0 auto 20px;
    border-radius: 12px;
  }
  .m1-quick__list { display: grid; grid-template-columns: repeat(4, 1fr); }
  .m1-quick__list li + li { border-top: 0; border-left: 1px solid #e5e8ed; }
  .m1-quick__link { height: 76px; gap: 6px; font-size: 12px; letter-spacing: -0.4px; }
  .m1-quick__link img { width: 24px; height: 24px; }
  .m1-ctrl { gap: 12px; }
  .m1-timer { margin-top: 12px; }
  .m1 .mh-legal { margin-top: 4px; padding-bottom: 6px; }
}
