/* ==========================================================================
   Mimolux Website — 사이트 레이어
   토큰은 tokens.css, 컴포넌트는 components.css 에서 옵니다.
   이 파일에는 페이지 레이아웃과 사이트 전용 패턴만 둡니다. hex 리터럴 없음.
   ========================================================================== */

:root {
  /* 스크림 — Stage 색을 투명도만 바꿔 씁니다 */
  --site-scrim-0:   color-mix(in srgb, var(--mml-stage) 0%,  transparent);
  --site-scrim-20:  color-mix(in srgb, var(--mml-stage) 20%, transparent);
  --site-scrim-45:  color-mix(in srgb, var(--mml-stage) 45%, transparent);
  --site-scrim-70:  color-mix(in srgb, var(--mml-stage) 70%, transparent);
  --site-scrim-90:  color-mix(in srgb, var(--mml-stage) 90%, transparent);
  --site-nav-glass: color-mix(in srgb, var(--mml-canvas) 86%, transparent);
  --site-sticky-top: calc(var(--mml-nav-height) + 96px);
}

html { scroll-behavior: smooth; }
body {
  /* 한글은 어절 단위로 줄바꿈합니다. 없으면 단어 중간이 끊깁니다. */
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
:target { scroll-margin-top: calc(var(--mml-nav-height) + 24px); }

/* ── 로고 — 사이트 전체 80% (20px → 16px, 시스템 최소 높이) ───────── */
.mml-logo { height: 16px; }

/* ── 내비 — 메뉴 가운데 정렬 ─────────────────────────────────────── */
.mml-nav {
  background: var(--site-nav-glass);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.mml-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--mml-space-lg);
}
.mml-nav__brand { justify-self: start; display: inline-flex; }
.mml-nav__menu { justify-self: center; margin-right: 0; gap: var(--mml-space-xl); }
.mml-nav__link { padding-block: 14px; }
.mml-nav__actions { justify-self: end; }
.mml-nav__toggle {
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; justify-self: end;
  background: transparent; border: 0; cursor: pointer; color: var(--mml-fg);
  border-radius: var(--mml-radius-pill);
}
.mml-nav__toggle:hover { background: var(--mml-plate-bg); }
.mml-nav__toggle svg { width: 22px; height: 22px; }
.mml-nav__toggle .ic-close { display: none; }
.mml-nav__toggle[aria-expanded="true"] .ic-menu { display: none; }
.mml-nav__toggle[aria-expanded="true"] .ic-close { display: block; }

.site-menu {
  display: none;
  position: fixed; inset: var(--mml-nav-height) 0 0 0; z-index: 49;
  background: var(--mml-canvas);
  padding: var(--mml-space-lg) var(--mml-gutter) var(--mml-space-xxl);
  flex-direction: column; gap: var(--mml-space-xxs);
  overflow-y: auto;
}
.site-menu.is-open { display: flex; }
.site-menu__link {
  font-size: var(--mml-display-sm-size); line-height: 1.3; letter-spacing: var(--mml-display-sm-ls);
  font-weight: var(--mml-w-medium); color: var(--mml-fg); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--mml-line);
  display: flex; justify-content: space-between; align-items: center;
}
.site-menu__link[aria-current="page"] { color: var(--mml-fg-muted); }
.site-menu__link small { font-size: var(--mml-overline-size); letter-spacing: .08em; text-transform: uppercase; color: var(--mml-fg-muted); }
.site-menu__actions { display: flex; gap: var(--mml-space-sm); margin-top: var(--mml-space-lg); }
.site-menu__meta { margin-top: auto; padding-top: var(--mml-space-xl); }
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .mml-nav__inner { grid-template-columns: 1fr auto; }
  .mml-nav__actions { display: none; }
}

/* ── 공통 타이포 보정 ──────────────────────────────────────────────── */
.site-lead { max-width: var(--mml-container-text); }
.t-brand {
  font-size: 13px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
  font-weight: var(--mml-w-medium); color: var(--mml-fg); margin: 0;
}
.t-sign { font-size: var(--mml-caption-size); line-height: 1.5; letter-spacing: .01em; color: var(--mml-fg-muted); margin: 0; }
.ink { color: var(--mml-fg); }
.mute { color: var(--mml-fg-muted); }
.mml-section-head--row {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--mml-space-xxl); align-items: end;
}
.mml-section-head--row > .mml-body-lg { margin-bottom: 4px; }
.mml-section--tight { padding-block: var(--mml-space-xxxl); }
.mml-section--flush-top { padding-top: 0; }

/* 큰 링크 (섹션 하단 "더 보기") */
.biglink {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: var(--mml-title-md-size); letter-spacing: var(--mml-title-md-ls); font-weight: var(--mml-w-medium);
  color: var(--mml-fg); text-decoration: none;
}
.biglink__arrow {
  width: 40px; height: 40px; border-radius: var(--mml-radius-pill);
  border: 1px solid var(--mml-line-strong); display: grid; place-items: center;
  transition: background var(--mml-dur-base) var(--mml-ease-out), color var(--mml-dur-base) var(--mml-ease-out), transform var(--mml-dur-base) var(--mml-ease-out);
}
.biglink__arrow svg { width: 16px; height: 16px; }
.biglink:hover .biglink__arrow { background: var(--mml-fg); color: var(--mml-bg); transform: translateX(4px); }

/* ── 히어로 (비디오) ──────────────────────────────────────────────── */
.hero-video {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - var(--mml-nav-height));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--mml-stage);
}
.hero-video__media { position: absolute; inset: 0; z-index: -2; background: var(--mml-stage); }
.hero-video__media video,
.hero-video__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center; max-width: none;
}
.hero-video__media video { opacity: 0; transition: opacity 900ms var(--mml-ease-out); }
.hero-video__media video.is-ready { opacity: 1; }
.hero-video__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--site-scrim-90) 0%, var(--site-scrim-70) 26%, var(--site-scrim-20) 58%, var(--site-scrim-0) 100%),
    linear-gradient(to right, var(--site-scrim-70) 0%, var(--site-scrim-45) 28%, var(--site-scrim-0) 62%);
}
.hero-video__body { position: relative; width: 100%; padding-block: var(--mml-space-section-lg) var(--mml-space-xl); }
.hero-video__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--mml-space-xxl); align-items: end; }
.hero-video__inner { display: flex; flex-direction: column; gap: var(--mml-space-lg); max-width: 860px; }
.hero-video__kicker {
  font-size: var(--mml-overline-size); letter-spacing: .22em; text-transform: uppercase;
  font-weight: var(--mml-w-medium); color: var(--mml-on-stage-body); margin: 0;
}
.hero-video__title {
  font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; letter-spacing: -.01em;
  font-weight: var(--mml-w-medium); color: var(--mml-on-stage); margin: 0; text-wrap: balance;
}
.hero-video__sub {
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.55; letter-spacing: -.01em;
  color: var(--mml-on-stage-body); margin: 0; max-width: 560px;
}
.hero-video__side { display: flex; flex-direction: column; gap: var(--mml-space-base); align-items: flex-end; text-align: right; }
.hero-video__side .mml-caption { color: var(--mml-on-stage-soft); }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: var(--mml-overline-size); letter-spacing: .14em; text-transform: uppercase;
  color: var(--mml-on-stage-body); font-weight: var(--mml-w-medium);
}
.hero-scroll__line { width: 1px; height: 40px; background: var(--mml-hairline-stage-strong); position: relative; overflow: hidden; }
.hero-scroll__line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--mml-on-stage); animation: scroll-hint 1.8s var(--mml-ease-inout) infinite;
}
@keyframes scroll-hint { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
.hero-video .mml-bloom { z-index: -1; }

/* ── 마키 (텍스트 띠) ─────────────────────────────────────────────── */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--mml-line);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 0; animation: marquee 42s linear infinite; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-size: var(--mml-title-sm-size); letter-spacing: -.005em; font-weight: var(--mml-w-medium); color: var(--mml-fg);
}
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mml-fg-muted); }
.marquee__item em { font-style: normal; color: var(--mml-fg-muted); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ── 이미지 마키 ──────────────────────────────────────────────────── */
.imarquee { overflow: hidden; }
.imarquee__track { display: flex; gap: var(--mml-space-sm); width: max-content; animation: marquee 70s linear infinite; will-change: transform; }
.imarquee:hover .imarquee__track { animation-play-state: paused; }
.imarquee .fig { height: 300px; width: auto; aspect-ratio: auto; flex: none; }
.imarquee .fig img { width: auto; height: 100%; }
.imarquee--tall .fig { height: 360px; }

/* ── 매니페스토 (타이포 블록) ─────────────────────────────────────── */
.manifesto { position: relative; overflow: hidden; isolation: isolate; }
.manifesto__text {
  font-size: clamp(28px, 4.4vw, 60px); line-height: 1.16; letter-spacing: -.025em;
  font-weight: var(--mml-w-medium); color: var(--mml-fg); margin: 0; max-width: 1080px; text-wrap: pretty;
}
.manifesto__text em { font-style: normal; color: var(--mml-fg-muted); }
.manifesto__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mml-space-xxl);
  margin-top: var(--mml-space-xxl); padding-top: var(--mml-space-xl); border-top: 1px solid var(--mml-line);
}
.manifesto__cols .mml-body { max-width: 520px; }

/* ── 스플릿 (좌 sticky · 우 스크롤) ──────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--mml-space-section); align-items: start; }
.split__sticky { position: sticky; top: var(--site-sticky-top); display: flex; flex-direction: column; gap: var(--mml-space-base); }
.split__sticky .mml-body { max-width: 420px; }
.split__sticky .biglink { margin-top: var(--mml-space-xs); }

/* 인덱스 리스트 — 큰 번호 + 제목 + 설명 + 썸네일 */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mml-line-strong); }
.index__row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 132px; gap: var(--mml-space-lg); align-items: center;
  padding-block: var(--mml-space-lg); border-bottom: 1px solid var(--mml-line);
  text-decoration: none; color: inherit;
}
.index__n {
  font-size: var(--mml-display-md-size); line-height: 1; letter-spacing: var(--mml-display-md-ls);
  font-weight: var(--mml-w-medium); color: var(--mml-fg-muted); font-variant-numeric: tabular-nums;
  transition: color var(--mml-dur-base) var(--mml-ease-out);
}
.index__body { display: flex; flex-direction: column; gap: 6px; }
.index__body .mml-body-sm { max-width: 520px; }
.index__thumb { aspect-ratio: 4 / 3; }
.index__thumb img { transition: transform 900ms var(--mml-ease-out); }
.index__row:hover .index__n { color: var(--mml-fg); }
.index__row:hover .index__thumb img { transform: scale(1.06); }
.index--lg .index__row { grid-template-columns: 96px minmax(0, 1fr) 180px; padding-block: var(--mml-space-xl); }
.index--lg .index__n { font-size: var(--mml-display-lg-size); }
.index--noimg .index__row, .index--lg.index--noimg .index__row { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.index--noimg .index__n { padding-top: 4px; }
.index__detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--mml-space-xl); align-items: start; }
.index__detail .mml-body-sm { max-width: none; }
.index__detail .linelist li { grid-template-columns: 88px minmax(0, 1fr); gap: var(--mml-space-sm); }
.index--static .index__row { cursor: default; }
.index--static .index__row:hover .index__n { color: var(--mml-fg-muted); }
.product.product--rev { grid-template-columns: minmax(0, 1fr) 320px; }
.product--rev > .fig { order: 2; }

/* ── 리빌 모션 ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--mml-ease-out), transform 640ms var(--mml-ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

/* 블룸 드리프트 — 분위기만 흔듭니다. 텍스트와 경쟁하지 않도록 느리게. */
@keyframes bloom-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(28px, -22px, 0) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
.mml-bloom { animation: bloom-drift 18s var(--mml-ease-inout) infinite; will-change: transform; }
.mml-bloom:nth-of-type(2) { animation-duration: 23s; animation-delay: -6s; }
.mml-bloom:nth-of-type(3) { animation-duration: 27s; animation-delay: -12s; }
.mml-bloom--xl { width: 520px; height: 520px; }
.mml-bloom--lg { width: 420px; height: 420px; }

/* ── 사진 ─────────────────────────────────────────────────────────── */
.fig {
  position: relative; margin: 0; overflow: hidden;
  background: var(--mml-stage);
  border: 0;
  border-radius: var(--mml-radius-md);
  clip-path: inset(0 round var(--mml-radius-md));
  isolation: isolate;
}
.fig img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 1200ms var(--mml-ease-out); }
.fig--16x9 { aspect-ratio: 16 / 9; }
.fig--3x2  { aspect-ratio: 3 / 2; }
.fig--4x3  { aspect-ratio: 4 / 3; }
.fig--4x5  { aspect-ratio: 4 / 5; }
.fig--1x1  { aspect-ratio: 1 / 1; }
.fig--21x9 { aspect-ratio: 21 / 9; }
.fig--fill { height: 100%; }
.fig--plain { border: 0; }
.fig__cap {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mml-on-stage-body); background: var(--site-scrim-70);
  padding: 4px 9px; border-radius: var(--mml-radius-pill);
}
a.fig:hover img, .tile:hover .fig img { transform: scale(1.03); }

/* ── 가로 스크롤러 (스냅) ─────────────────────────────────────────── */
.scroller-wrap { position: relative; }
.scroller {
  display: flex; gap: var(--mml-space-base);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--site-bleed-pad, var(--mml-gutter));
  padding-inline: var(--site-bleed-pad, var(--mml-gutter));
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.scroller__card {
  position: relative; flex: 0 0 min(400px, 78vw); aspect-ratio: 4 / 5;
  border-radius: var(--mml-radius-md); overflow: hidden; isolation: isolate;
  clip-path: inset(0 round var(--mml-radius-md));
  scroll-snap-align: start; background: var(--mml-stage); border: 0;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; justify-content: flex-end;
}
.scroller__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--mml-ease-out); }
.scroller__card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--site-scrim-90) 0%, var(--site-scrim-45) 38%, var(--site-scrim-0) 70%);
}
.scroller__card:hover img { transform: scale(1.04); }
.scroller__cap { padding: var(--mml-space-lg); display: flex; flex-direction: column; gap: 6px; }
.scroller__n { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--mml-w-medium); color: var(--mml-on-stage-soft); }
.scroller__cap .mml-title-md { color: var(--mml-on-stage); }
.scroller__cap .mml-body-sm { color: var(--mml-on-stage-body); }
.scroller__card--wide { flex-basis: min(640px, 88vw); aspect-ratio: 16 / 10; }
.scroller__card--text { background: var(--mml-card-bg); justify-content: space-between; padding: var(--mml-space-lg); }
.scroller__card--text::after { content: none; }
.scroller__card--text .mml-display-sm { color: var(--mml-fg); }
.scroller__card--text .mml-body-sm { color: var(--mml-fg-body); }
.scroller-nav { display: flex; gap: var(--mml-space-xs); }
.scroller-btn {
  width: 44px; height: 44px; border-radius: var(--mml-radius-pill);
  border: 1px solid var(--mml-line-strong); background: transparent; color: var(--mml-fg);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--mml-dur-fast) var(--mml-ease-out), color var(--mml-dur-fast) var(--mml-ease-out);
}
.scroller-btn svg { width: 18px; height: 18px; }
.scroller-btn:hover { background: var(--mml-fg); color: var(--mml-bg); }
.scroller-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--mml-fg); }

/* ── 벤토 그리드 ─────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: var(--mml-space-base); }
.bento__cell {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--mml-radius-xl); border: 0;
  clip-path: inset(0 round var(--mml-radius-xl));
  background: var(--mml-card-bg); padding: var(--mml-space-lg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--mml-dur-base) var(--mml-ease-out), border-color var(--mml-dur-base) var(--mml-ease-out);
}
.bento__cell:hover { background: var(--mml-canvas-soft); }
.bento__cell > .mml-bloom { z-index: -1; }
.bento__cell .mml-overline { margin-bottom: auto; }
.bento__cell .mml-body-sm { max-width: 380px; }
.bento__cell--img { background: var(--mml-stage); color: var(--mml-on-stage); }
.bento__cell--img:hover { background: var(--mml-stage); }
.bento__cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--mml-ease-out); }
.bento__cell--img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--site-scrim-90) 0%, var(--site-scrim-45) 40%, var(--site-scrim-0) 75%); pointer-events: none; }
.bento__cell--img:hover img { transform: scale(1.04); }
.bento__cell--img .mml-overline { color: var(--mml-on-stage-body); margin-bottom: 4px; }
.bento__cell--img .mml-title-md, .bento__cell--img .mml-display-sm { color: var(--mml-on-stage); }
.bento__cell--img .mml-body-sm { color: var(--mml-on-stage-body); }
.bento__cell--stage { background: var(--mml-stage); color: var(--mml-on-stage); }
.bento__cell--stage:hover { background: var(--mml-stage-elevated); }
.bento__cell--stage .mml-overline { color: var(--mml-on-stage-soft); }
.bento__cell--stage .mml-title-md { color: var(--mml-on-stage); }
.bento__cell--stage .mml-body-sm { color: var(--mml-on-stage-body); }
.bento__cell--stage .mml-stat__value { color: var(--mml-on-stage); }
.bento__cell--stage .mml-stat__value small { color: var(--mml-on-stage-body); }
.bento__cell--stage .mml-stat__label { color: var(--mml-on-stage-soft); }
.bento__cell--soft { background: var(--mml-canvas-soft); }
.bento .c2 { grid-column: span 2; }
.bento .r2 { grid-row: span 2; }
.bento__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mml-space-lg); }

/* ── 제품 스위처 (좌 목록 · 우 프레임) ────────────────────────────── */
.switcher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--mml-space-section); align-items: center; }
.switcher__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mml-line-strong); }
.switcher__item {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--mml-space-base); align-items: center;
  padding-block: 18px; border: 0; border-bottom: 1px solid var(--mml-line); background: transparent; cursor: pointer;
  font-family: inherit; text-align: left; color: var(--mml-fg-muted);
  transition: color var(--mml-dur-base) var(--mml-ease-out);
}
.switcher__item .switcher__n { font-size: var(--mml-overline-size); letter-spacing: .1em; font-variant-numeric: tabular-nums; font-weight: var(--mml-w-medium); }
.switcher__item .switcher__t { font-size: var(--mml-display-sm-size); line-height: 1.25; letter-spacing: var(--mml-display-sm-ls); font-weight: var(--mml-w-medium); }
.switcher__item .switcher__pitch { font-size: var(--mml-caption-size); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.switcher__item:hover, .switcher__item[aria-selected="true"] { color: var(--mml-fg); }
.switcher__item:focus-visible { outline: 2px solid var(--mml-fg); outline-offset: -2px; }
.switcher__stage { position: relative; }
.switcher__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--mml-radius-md); overflow: hidden; clip-path: inset(0 round var(--mml-radius-md)); background: var(--mml-stage); isolation: isolate; }
.switcher__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 520ms var(--mml-ease-out), transform 1200ms var(--mml-ease-out); }
.switcher__frame img.is-active { opacity: 1; transform: none; }
.switcher__panel { display: none; gap: var(--mml-space-sm); flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: var(--mml-space-base); }
.switcher__panel.is-active { display: flex; }
.switcher__panel .mml-body-sm { max-width: 520px; }
.switcher__panel .pills { flex: none; }

/* ── 타임라인 (가로) ─────────────────────────────────────────────── */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--mml-space-lg); }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--mml-line-strong); }
.timeline__item { position: relative; padding-top: var(--mml-space-lg); display: flex; flex-direction: column; gap: var(--mml-space-xs); }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--mml-bg); border: 1px solid var(--mml-fg);
  transition: background var(--mml-dur-base) var(--mml-ease-out);
}
.timeline__item:hover::before { background: var(--mml-fg); }
.timeline__n { font-size: var(--mml-display-sm-size); letter-spacing: var(--mml-display-sm-ls); font-weight: var(--mml-w-medium); color: var(--mml-fg); font-variant-numeric: tabular-nums; line-height: 1; }
.timeline__item .mml-title-sm { margin-top: 4px; }
.timeline__item .mml-caption { margin-top: 2px; }

/* ── 타일 (사진 + 캡션) ───────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mml-space-xl) var(--mml-space-lg); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: var(--mml-space-base); min-width: 0; }
.tile__cap { display: flex; flex-direction: column; gap: 6px; }
.tile__n { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--mml-w-medium); color: var(--mml-fg-muted); font-variant-numeric: tabular-nums; }
.tile__cap .mml-body-sm { margin-top: 2px; }

/* ── 스텝 ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mml-space-lg); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { display: flex; flex-direction: column; gap: var(--mml-space-xs); padding-top: var(--mml-space-base); border-top: 1px solid var(--mml-line-strong); }
.step__n { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--mml-w-medium); color: var(--mml-fg-muted); font-variant-numeric: tabular-nums; }
.step .mml-title-sm { margin-top: 2px; }

/* ── 피처 행 (사진 + 본문 교차) ──────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--mml-space-xxl); align-items: center; }
.feature--rev > .feature__media { order: 2; }
.feature__body { display: flex; flex-direction: column; gap: var(--mml-space-base); max-width: 520px; }
.feature__body .mml-body { margin-top: 4px; }
.feature + .feature { margin-top: var(--mml-space-section); }
.feature--tight + .feature--tight { margin-top: var(--mml-space-xxxl); }

/* ── 지표 ─────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mml-space-lg); }
.stats .mml-stat { padding-left: var(--mml-space-base); border-left: 1px solid var(--mml-line-strong); }
.mml-stat__value small { font-size: .5em; letter-spacing: 0; margin-left: 2px; color: var(--mml-fg-body); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--big .mml-stat__value { font-size: clamp(40px, 5vw, 64px); }

/* ── 필 ───────────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: var(--mml-space-xs); }
.pill {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: var(--mml-radius-pill); background: var(--mml-plate-bg); color: var(--mml-fg);
  font-size: var(--mml-overline-size); letter-spacing: .06em; font-weight: var(--mml-w-medium);
  font-variant-numeric: tabular-nums; white-space: nowrap; text-decoration: none;
}
.pill--line { background: transparent; border: 1px solid var(--mml-line-strong); color: var(--mml-fg-body); }
a.pill:hover { border-color: var(--mml-fg); color: var(--mml-fg); }
[data-surface="stage"] .pill { background: color-mix(in srgb, var(--mml-on-stage) 10%, transparent); color: var(--mml-on-stage); }
[data-surface="stage"] .pill--line { background: transparent; color: var(--mml-on-stage-body); }

/* ── 사실 표 ─────────────────────────────────────────────────────── */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--mml-line); vertical-align: top; font-size: var(--mml-body-sm-size); line-height: 1.55; }
.facts th { width: 132px; color: var(--mml-fg-muted); font-weight: var(--mml-w-regular); font-size: var(--mml-caption-size); letter-spacing: .02em; padding-right: var(--mml-space-base); }
.facts td { color: var(--mml-fg); }
.facts tr:first-child th, .facts tr:first-child td { padding-top: 0; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* ── 풀블리드 밴드 (사진 위 텍스트) ─────────────────────────────── */
.bleed { position: relative; overflow: hidden; isolation: isolate; min-height: 640px; display: flex; align-items: flex-end; background: var(--mml-stage); color: var(--mml-on-stage); }
.bleed__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.bleed__img img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.bleed__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, var(--site-scrim-90) 0%, var(--site-scrim-70) 30%, var(--site-scrim-20) 65%, var(--site-scrim-0) 100%); }
.bleed__body { position: relative; width: 100%; padding-block: var(--mml-space-section) var(--mml-space-xxxl); }
.bleed__inner { display: flex; flex-direction: column; gap: var(--mml-space-lg); max-width: 720px; }
.bleed__inner .t-brand { color: var(--mml-on-stage-soft); }
.bleed__inner .mml-display-xl, .bleed__inner .mml-display-lg { color: var(--mml-on-stage); }
.bleed__inner .mml-body-lg { color: var(--mml-on-stage-body); }
.bleed .pill { background: color-mix(in srgb, var(--mml-on-stage) 12%, transparent); color: var(--mml-on-stage); backdrop-filter: blur(8px); }
.bleed--tall { min-height: 720px; }
.bleed--parallax .bleed__img img { height: 120%; top: -10%; position: absolute; will-change: transform; }

/* ── 갤러리 (모자이크) ───────────────────────────────────────────── */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; gap: var(--mml-space-sm); }
.mosaic > .fig { aspect-ratio: auto; }
.mosaic .span-2 { grid-column: span 2; }
.mosaic .row-2 { grid-row: span 2; }

/* ── 제품 행 (제품 페이지) ───────────────────────────────────────── */
.product { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--mml-space-xxl); align-items: center; padding-block: var(--mml-space-xxl); border-top: 1px solid var(--mml-line); }
.product:last-child { padding-bottom: 0; }
.product__body { display: flex; flex-direction: column; gap: var(--mml-space-sm); max-width: 620px; }
.product__head { display: flex; align-items: center; justify-content: space-between; gap: var(--mml-space-sm); flex-wrap: wrap; }
.product__body .mml-body { margin-top: 4px; }
.product__body .pills { margin-top: var(--mml-space-xs); }

/* 제품 이미지 (캐비닛 렌더) — Stage 위 */
.cabinet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mml-space-lg); }
.cabinet__fig { margin: 0; position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--mml-card-bg); border-radius: var(--mml-radius-xl); overflow: hidden; clip-path: inset(0 round var(--mml-radius-xl)); isolation: isolate; padding: var(--mml-space-xl); }
.cabinet__fig img { max-height: 100%; width: auto; object-fit: contain; position: relative; z-index: 1; }
.cabinet__fig .mml-badge { position: absolute; left: 20px; top: 16px; z-index: 2; }

/* ── 스펙 테이블 ─────────────────────────────────────────────────── */
.mml-spec-table th:first-child, .mml-spec-table td:first-child { padding-left: 0; }
.mml-spec-table th:last-child, .mml-spec-table td:last-child { padding-right: 0; }
.mml-spec-table { min-width: 720px; }

/* ── 리스트 (헤어라인) ───────────────────────────────────────────── */
.linelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.linelist li { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--mml-space-base); padding: 12px 0; border-bottom: 1px solid var(--mml-line); font-size: var(--mml-body-sm-size); line-height: 1.55; }
.linelist li:first-child { padding-top: 0; }
.linelist li:last-child { border-bottom: 0; }
.linelist b { font-weight: var(--mml-w-medium); color: var(--mml-fg); }
.linelist span { color: var(--mml-fg-body); }

/* ── 서브페이지 히어로 ───────────────────────────────────────────── */
.page-hero { padding-block: var(--mml-space-section) var(--mml-space-xxl); }
.page-hero .mml-hero__inner { gap: var(--mml-space-base); max-width: 960px; }
.page-hero .mml-body-lg { margin-top: var(--mml-space-xs); }
.page-hero .mml-display-xl { font-size: clamp(36px, 5vw, 64px); line-height: 1.06; letter-spacing: -.03em; }

/* ── 큰 CTA ──────────────────────────────────────────────────────── */
.cta-big { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--mml-space-section-lg); }
.cta-big__inner { display: flex; flex-direction: column; gap: var(--mml-space-xl); }
.cta-big__title {
  font-size: clamp(40px, 7vw, 92px); line-height: 1.02; letter-spacing: -.03em;
  font-weight: var(--mml-w-medium); color: var(--mml-fg); margin: 0; max-width: 1100px; text-wrap: balance;
}
.cta-big__title em { font-style: normal; color: var(--mml-fg-muted); }
.cta-big__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--mml-space-xl); flex-wrap: wrap; padding-top: var(--mml-space-xl); border-top: 1px solid var(--mml-line); }
.cta-big__row .mml-body-lg { max-width: 520px; }
.cta-big__mail { font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -.02em; font-weight: var(--mml-w-medium); color: var(--mml-fg); text-decoration: none; border-bottom: 1px solid var(--mml-line-strong); padding-bottom: 4px; }
.cta-big__mail:hover { border-color: var(--mml-fg); }

/* ── 문의 ─────────────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--mml-space-section); align-items: start; }
.contact__aside { display: flex; flex-direction: column; gap: var(--mml-space-xl); position: sticky; top: calc(var(--mml-nav-height) + 32px); }
.contact-block { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-block dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: var(--mml-w-medium); color: var(--mml-fg-muted); }
.contact-block dd { margin: 0; font-size: var(--mml-body-md-size); line-height: 1.6; color: var(--mml-fg); }
.contact-block a { text-decoration: none; }
.contact-block a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mml-space-base); }
.form-grid .span-2 { grid-column: span 2; }
.mml-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--mml-caption-size); color: var(--mml-fg-body); line-height: 1.5; }
.mml-check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--mml-ink); flex: none; }
.form-status { font-size: var(--mml-caption-size); color: var(--mml-fg); min-height: 1.5em; }

/* ── 푸터 ─────────────────────────────────────────────────────────── */
.mml-footer__col address { font-style: normal; font-size: var(--mml-body-sm-size); line-height: 1.6; color: var(--mml-fg-body); }
.mml-footer__col .mml-logo { margin-bottom: 4px; align-self: flex-start; }
.mml-logo { align-self: flex-start; }
.mml-footer__bottom .mml-caption a { text-decoration: none; }

/* ── 반응형 ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4, .steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 260px minmax(0, 1fr); gap: var(--mml-space-xl); }
  .product.product--rev { grid-template-columns: minmax(0, 1fr) 260px; }
  .mml-section-head--row { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-base); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-xxl); }
  .contact__aside { position: static; }
  .mosaic { grid-auto-rows: 200px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-xl); }
  .split__sticky { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .switcher { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-xl); }
  .switcher__stage { order: -1; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--mml-space-xl); }
  .timeline::before { content: none; }
  .timeline__item { border-top: 1px solid var(--mml-line-strong); }
  .timeline__item::before { top: -8px; }
  .manifesto__cols { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-lg); }
  .imarquee .fig, .imarquee--tall .fig { height: 240px; }
}
@media (max-width: 768px) {
  .feature, .feature--rev { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-lg); }
  .feature--rev > .feature__media { order: 0; }
  .feature + .feature { margin-top: var(--mml-space-xxxl); }
  .tiles, .tiles--3 { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-xl); }
  .steps, .steps--4, .steps--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .product--rev { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-lg); }
  .product > .fig { aspect-ratio: 3 / 2; }
  .cabinet { grid-template-columns: minmax(0, 1fr); }
  .hero-video__grid { grid-template-columns: minmax(0, 1fr); }
  .hero-video__side { align-items: flex-start; text-align: left; }
  .bleed { min-height: 560px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .mosaic .span-2 { grid-column: span 2; }
  .mosaic .row-2 { grid-row: span 1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .index__row { grid-template-columns: 56px minmax(0, 1fr); }
  .index__thumb { display: none; }
  .index--lg .index__row { grid-template-columns: 64px minmax(0, 1fr); padding-block: var(--mml-space-lg); }
  .index__n, .index--lg .index__n { font-size: var(--mml-display-sm-size); }
  .index--noimg .index__row, .index--lg.index--noimg .index__row { grid-template-columns: 56px minmax(0, 1fr); }
  .index__detail { grid-template-columns: minmax(0, 1fr); gap: var(--mml-space-base); }
  .product--rev > .fig { order: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento .c2, .bento .r2 { grid-column: auto; grid-row: auto; }
  .bento__cell { min-height: 200px; }
  .bento__cell--img { min-height: 300px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .switcher__item { grid-template-columns: 32px minmax(0, 1fr); }
  .switcher__item .switcher__pitch { grid-column: 2; }
  .marquee__item { font-size: var(--mml-body-md-size); }
}
@media (max-width: 640px) {
  .hero-video__body { padding-block: var(--mml-space-section) var(--mml-space-xl); }
  .hero-video__media video, .hero-video__media img { object-position: 58% center; }
  .steps, .steps--4, .steps--6, .steps--2 { grid-template-columns: minmax(0, 1fr); }
  .tiles--4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats--3 { grid-template-columns: minmax(0, 1fr); }
  .facts th { width: 96px; }
  .linelist li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mml-bloom--xl, .mml-bloom--lg { width: 260px; height: 260px; }
  .imarquee .fig, .imarquee--tall .fig { height: 180px; }
  .scroller__card { flex-basis: 82vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mml-bloom, .marquee__track, .imarquee__track, .hero-scroll__line::after { animation: none; }
  .marquee { white-space: normal; }
  .marquee__track { flex-wrap: wrap; gap: 8px 0; }
  .marquee__track > .marquee__item:nth-child(n+8) { display: none; }
  .imarquee__track { flex-wrap: wrap; width: auto; }
  .fig img, .product-card__visual img, .scroller__card img, .bento__cell--img img { transition: none; }
}

/* ── 스크롤 고정 가로 섹션 (hscroll) ──────────────────────────────
   데스크톱: 섹션이 화면에 고정되고 세로 스크롤이 카드 트랙을 옆으로 밉니다.
   모바일 · 모션 축소: 고정하지 않고 일반 옆쓸기 트랙으로 둡니다.          */
.hscroll { overflow: clip; }
.hscroll.is-pinned { padding-block: 0; }
.hscroll.is-pinned .hscroll__pin {
  position: sticky; top: var(--mml-nav-height);
  height: calc(100vh - var(--mml-nav-height));
  display: flex; flex-direction: column; justify-content: safe center; gap: var(--mml-space-lg);
}
.hscroll.is-pinned .mml-section-head { margin-bottom: 0 !important; }
.hscroll.is-pinned .scroller { scroll-snap-type: none; overflow-x: hidden; cursor: default; padding-bottom: 0; }
.hscroll.is-pinned .scroller__card { flex: 0 0 auto; aspect-ratio: auto; height: var(--hs-card-h, 460px); width: calc(var(--hs-card-h, 460px) * .8); }
.hscroll.is-pinned .scroller__card--wide { width: calc(var(--hs-card-h, 460px) * 1.6); }
.hscroll__progress { height: 1px; background: var(--mml-line-strong); margin-inline: var(--site-bleed-pad, var(--mml-gutter)); display: none; }
.hscroll__progress i { display: block; height: 100%; width: calc(var(--hs-p, 0) * 100%); background: var(--mml-fg); transition: width 80ms linear; }
.hscroll.is-pinned .hscroll__progress { display: block; }

/* ── 매니페스토 단어 리빌 — 스크롤에 따라 단어가 차례로 켜집니다 ──── */
.manifesto__text .w { color: var(--mml-muted-soft); transition: color 360ms var(--mml-ease-out); }
.manifesto__text .w.is-on { color: var(--mml-fg); }
.manifesto__text em .w.is-on { color: var(--mml-fg-muted); }
[data-surface="stage"] .manifesto__text .w { color: var(--mml-on-stage-soft); }
@media (prefers-reduced-motion: reduce) {
  .manifesto__text .w { color: inherit; transition: none; }
}

/* 스위처 고정 변형 — 세로 스크롤이 제품 탭을 차례로 넘깁니다 */
.hscroll--switch.is-pinned .hscroll__pin > .mml-container { display: flex; flex-direction: column; gap: var(--mml-space-xl); }
.hscroll--switch.is-pinned .switcher__frame { aspect-ratio: auto; height: calc(var(--hs-card-h, 420px) - 64px); }
.hscroll--switch.is-pinned .switcher { align-items: center; }
.hscroll--switch.is-pinned .hscroll__progress { margin-inline: 0; }
.hscroll--switch.is-pinned .hscroll__pin > .mml-container > .mml-row { margin-top: 0 !important; }
