:root {
  --juicem-ink: #1d1c1d;
  --juicem-orange: #ff5316;
  --juicem-gold: #ffdc02;
  --juicem-leaf: #74d814;
  --juicem-paper: #fffaf2;
  --juicem-muted: #6f675d;
  --juicem-line: rgba(29, 28, 29, 0.12);
}

body[data-juicem-project="true"] .case__study__slices {
  gap: 0;
  min-width: 0;
  width: 100%;
}

body[data-juicem-project="true"] .case__study__slices > .juicem-site-host {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

body[data-juicem-project="true"] .case__study__info {
  display: none;
}

.juicem-site-host {
  min-width: 0;
  width: 100%;
}

#juicem-case-root, #juicem-case-root * { box-sizing: border-box; }
#juicem-case-root { background: #fff; color: var(--juicem-ink); overflow-x: clip; }
.juicem-case { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; line-height: 1.45; letter-spacing: -0.02em; }
.juicem-case img, .juicem-case video, .juicem-case svg { max-width: 100%; display: block; }
.juicem-scene { min-height: 100svh; display: grid; place-items: center; padding: clamp(56px, 7vw, 108px) clamp(22px, 5vw, 84px); position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--juicem-line); }
.juicem-scene--warm { background: linear-gradient(180deg, #fffaf2 0%, #fff 100%); }
.juicem-scene--image { background: linear-gradient(180deg, #fff 0%, #fff9ed 100%); }
.juicem-inner { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(36px, 7vw, 94px); }
.juicem-inner--wide { width: min(1320px, 100%); grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr); }
.juicem-inner--center { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.juicem-copy { opacity: 0; transform: translateY(20px); transition: opacity 760ms ease, transform 760ms ease; }
.is-visible .juicem-copy, .juicem-scene.is-visible .juicem-copy { opacity: 1; transform: translateY(0); }
.juicem-kicker { margin: 0 0 18px; font-size: clamp(12px, 1.1vw, 14px); line-height: 1; letter-spacing: 0.18em; text-transform: uppercase; color: var(--juicem-orange); font-weight: 800; }
.juicem-copy h1, .juicem-copy h2, .juicem-hero-copy h1 { margin: 0; color: var(--juicem-ink); font-weight: 900; letter-spacing: -0.06em; line-height: 0.98; word-break: keep-all; overflow-wrap: normal; }
.juicem-hero-copy h1 { font-size: clamp(54px, 8vw, 112px); }
.juicem-copy h2 { font-size: clamp(42px, 6.2vw, 86px); }
.juicem-copy p:not(.juicem-kicker), .juicem-hero-copy p:not(.juicem-kicker) { margin: 24px 0 0; max-width: 620px; color: var(--juicem-muted); font-size: clamp(17px, 1.7vw, 24px); word-break: keep-all; }

.juicem-hero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(36px, 7vw, 104px); background: radial-gradient(circle at 25% 50%, rgba(255, 220, 2, 0.12), transparent 42%), #fff; }
.juicem-hero-mark { width: min(520px, 100%); justify-self: center; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 880ms ease 80ms, transform 880ms ease 80ms; }
.juicem-hero.is-visible .juicem-hero-mark { opacity: 1; transform: translateY(0) scale(1); }
.juicem-logo-main { width: 100%; height: auto; }
.juicem-hero-copy { max-width: 720px; opacity: 0; transform: translateY(18px); transition: opacity 880ms ease 160ms, transform 880ms ease 160ms; }
.juicem-hero.is-visible .juicem-hero-copy { opacity: 1; transform: translateY(0); }

.juicem-fountain { min-height: 420px; display: grid; place-items: center; }
.juicem-fountain svg { width: min(520px, 100%); overflow: visible; }
.juicem-fountain path, .juicem-fountain circle { fill: none; stroke: var(--juicem-ink); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.juicem-fountain .fountain-line { stroke: var(--juicem-gold); stroke-width: 22; stroke-dasharray: 520; stroke-dashoffset: 520; }
.is-visible .fountain-line.one { animation: drawLine 1450ms ease forwards 180ms; }
.is-visible .fountain-line.two { animation: drawLine 1450ms ease forwards 330ms; }
.is-visible .fountain-line.three { animation: drawLine 1450ms ease forwards 480ms; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.juicem-palette { min-height: 500px; display: flex; gap: clamp(10px, 2vw, 18px); align-items: stretch; justify-content: center; }
.juicem-palette span { position: relative; flex: 1 1 0; min-width: 0; border-radius: 999px; background: var(--swatch); color: transparent; transform: scaleY(0.88); opacity: 0; transition: transform 760ms ease, opacity 760ms ease; }
.is-visible .juicem-palette span { opacity: 1; transform: scaleY(1); }
.juicem-palette span:nth-child(2) { transition-delay: 100ms; }
.juicem-palette span:nth-child(3) { transition-delay: 200ms; }
.juicem-palette span:nth-child(4) { transition-delay: 300ms; }
.juicem-palette span::after { content: attr(style); display: none; }

.juicem-logo-study { position: relative; display: grid; place-items: center; min-height: 520px; background: #fff; }
.juicem-logo-study-img { width: min(560px, 100%); height: auto; position: relative; z-index: 2; }
.juicem-logo-study span { position: absolute; width: min(620px, 100%); height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--juicem-orange), var(--juicem-gold)); transform: rotate(-10deg) translateY(122px); opacity: 0.5; }

.juicem-photo-frame, .juicem-process-frame { margin: 0; width: 100%; display: grid; place-items: center; }
.juicem-photo { width: 100%; height: auto; max-height: min(74svh, 760px); object-fit: contain; }
.juicem-photo-frame--wide .juicem-photo { max-height: min(72svh, 720px); }
.juicem-process-img { width: 100%; height: auto; max-height: min(66svh, 560px); object-fit: contain; }

.juicem-door-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); align-items: center; }
.juicem-door-img { width: 100%; height: min(74svh, 760px); object-fit: contain; background: #fff; }

.juicem-motion-scene { padding-top: clamp(54px, 6vw, 88px); padding-bottom: clamp(54px, 6vw, 88px); }
.juicem-motion-wrap { width: min(1120px, 100%); display: grid; gap: clamp(24px, 4vw, 44px); align-items: center; justify-items: center; }
.juicem-copy--motion { text-align: center; display: grid; justify-items: center; }
.juicem-copy--motion p:not(.juicem-kicker) { max-width: 720px; }
.juicem-motion-video { width: min(100%, 1080px); aspect-ratio: 16/9; height: auto; background: #fff; border: 1px solid var(--juicem-line); }

@media (max-width: 1100px) {
  .juicem-scene { min-height: auto; padding: 72px 20px; }
  .juicem-hero, .juicem-inner, .juicem-inner--wide, .juicem-inner--center { grid-template-columns: 1fr; gap: 34px; }
  .juicem-hero { padding-top: 64px; }
  .juicem-hero-mark { order: 2; width: min(340px, 100%); }
  .juicem-hero-copy { order: 1; }
  .juicem-copy h2 { font-size: clamp(38px, 13vw, 56px); }
  .juicem-hero-copy h1 { font-size: clamp(48px, 14vw, 64px); }
  .juicem-copy p:not(.juicem-kicker), .juicem-hero-copy p:not(.juicem-kicker) { font-size: 17px; line-height: 1.62; max-width: 100%; }
  .juicem-fountain { min-height: 300px; }
  .juicem-palette { min-height: 320px; gap: 9px; }
  .juicem-logo-study { min-height: 360px; }
  .juicem-logo-study span { transform: rotate(-10deg) translateY(74px); }
  .juicem-photo { max-height: none; }
  .juicem-door-set { grid-template-columns: 1fr; }
  .juicem-door-img { height: auto; max-height: none; }
  .juicem-motion-video { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .juicem-copy, .juicem-hero-copy, .juicem-hero-mark, .juicem-palette span { transition: none; transform: none; opacity: 1; }
  .fountain-line { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* === 그림 자리 예약 (CLS) — 자동 생성. 없으면 지연 로딩 때 아래가 밀린다 === */
img[src$="/leaderin-case-assets-v2/symbol-final.svg"] { aspect-ratio: 37/24; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/approved-juicem-logo-web.png"] { aspect-ratio: 240/233; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/orange-splash-r2.jpg"] { aspect-ratio: 1282/1121; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/process-convergence.jpg"] { aspect-ratio: 45/14; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/juice-vending-r2.jpg"] { aspect-ratio: 641/526; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/leaflet-cover-r2.jpg"] { aspect-ratio: 1282/611; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/store-door-a-r2.jpg"] { aspect-ratio: 164/251; }
img[src$="https://kangdesign-portfolio.pages.dev/juicem/assets/store-door-b-r2.jpg"] { aspect-ratio: 820/1057; }
