/*! 아이보리(따뜻한 아이보리 감성형) 브랜드 팩 — 모션 보조 규칙
 *  이 브랜드에 연결된 사이트에만 실린다(DesignSystemService::brandPackHeadTags). 글자 크기·배치는 바꾸지 않는다(모션 전용 팩).
 *  원칙: 숨김·시작 위치 같은 모션 상태는 html[data-iv-motion="live"] 아래에서만, 그것도 스크립트가 붙인 표식에만 건다
 *        (스크립트가 안 떠도 글과 사진이 보인다). 천·빛·결의 은유 — 느리고 깊은 감속.
 */
html:root{--iv-ease:cubic-bezier(.16,1,.3,1);--iv-slow:cubic-bezier(.65,0,.35,1);--iv-head-dur:.45s;
  --iv-ink:var(--color-text-strong,#2B2724);--iv-accent:var(--color-accent,#776450);--iv-bg:var(--color-bg-primary,#FAF7F1);--iv-bg2:var(--color-bg-secondary,#F2EDE4)}

/* ── 1. 부드러운 스크롤(Lenis) ─────────────────────────────────── */
html[data-iv-motion="live"].lenis,html[data-iv-motion="live"].lenis body{height:auto}
html[data-iv-motion="live"].lenis.lenis-smooth{scroll-behavior:auto!important}
html[data-iv-motion="live"].lenis.lenis-stopped{overflow:hidden}

/* 공통 런타임을 끄면 블록 안 흐르는 띠·사진 넘김까지 멈춘다 — 이 팩이 켜진 동안은 블록 자체 움직임을 되살린다(주인이 끈 블록은 그대로). */
html[data-iv-motion="live"][data-zs-motion="off"] .zs-page-block:not([data-zs-motion="off"]) :not(.zs-page-block [data-zs-motion="off"] *),
html[data-iv-motion="live"][data-zs-motion="off"] .zs-page-block:not([data-zs-motion="off"]) :not(.zs-page-block [data-zs-motion="off"] *)::before,
html[data-iv-motion="live"][data-zs-motion="off"] .zs-page-block:not([data-zs-motion="off"]) :not(.zs-page-block [data-zs-motion="off"] *)::after{animation-play-state:running!important}

/* 첫 화면 글은 엔진이 뜰 때까지 숨겨 두었다가 등장 장면으로 꺼낸다(엔진이 못 떠도 부트가 3초 뒤 걷는다) */
html.iv-intro-wait :is(main,body) > .zs-page-block[data-zs-block^="heroes/"]:first-of-type :is([data-zs-role="label"],[data-zs-role="title"],[data-zs-role="text"],[data-zs-role="button"],[data-zs-btn],[data-zs-typo]){opacity:0!important}

/* ── 3. 등장 — 아래에서 천천히(rise) · 흐림에서 또렷(blur) · 실 풀리듯 자간이 모임(thread) ─────── */
html[data-iv-motion="live"] .iv-rise{opacity:0;translate:0 44px;transition:opacity 1.2s ease,translate 1.5s var(--iv-ease)}
html[data-iv-motion="live"] .iv-blur{opacity:0;filter:blur(10px);translate:0 18px;transition:opacity 1.3s ease,filter 1.4s ease,translate 1.5s var(--iv-ease)}
html[data-iv-motion="live"] .iv-thread{opacity:0;letter-spacing:.42em;transition:opacity 1.2s ease,letter-spacing 1.6s var(--iv-ease)}
html[data-iv-motion="live"] :is(.iv-rise,.iv-blur,.iv-thread).is-on{opacity:1;translate:none;filter:none;letter-spacing:inherit}
/* 큰 글자 줄 단위 — 낱말마다 가림 틀 */
.iv-wm{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.16em;margin-bottom:-.16em}
.iv-wi{display:inline-block;will-change:transform}

/* ── 4. 천 — 첫 화면 덮개 · 커튼 · 햇살 · 은은한 빛 ─────────────────── */
.iv-veil{position:absolute;left:0;right:0;top:0;height:122%;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(119,100,80,.045) 0 1px,transparent 1px 7px),
    repeating-linear-gradient(0deg,rgba(119,100,80,.035) 0 1px,transparent 1px 9px),
    linear-gradient(180deg,var(--iv-bg) 0%,var(--iv-bg) 80%,rgba(250,247,241,0) 100%)}
.iv-curtains{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.iv-cl,.iv-cr{position:absolute;top:0;bottom:0;width:50.5%;
  background:
    linear-gradient(90deg,rgba(43,39,36,.06),rgba(255,255,255,.18) 18%,rgba(43,39,36,.05) 36%,rgba(255,255,255,.16) 54%,rgba(43,39,36,.06) 72%,rgba(255,255,255,.14) 90%,rgba(43,39,36,.07)),
    repeating-linear-gradient(90deg,rgba(119,100,80,.05) 0 1px,transparent 1px 6px),
    var(--iv-bg2);
  background-size:min(22vw,320px) 100%,auto,auto}
.iv-cl{left:0;transform-origin:0 50%;box-shadow:inset -18px 0 30px -24px rgba(43,39,36,.35)}
.iv-cr{right:0;transform-origin:100% 50%;box-shadow:inset 18px 0 30px -24px rgba(43,39,36,.35)}
.iv-sun{position:absolute;top:-10%;bottom:-10%;left:0;width:60%;pointer-events:none;mix-blend-mode:soft-light;
  background:linear-gradient(100deg,rgba(255,236,200,0) 0%,rgba(255,236,200,.55) 42%,rgba(255,248,232,.85) 50%,rgba(255,236,200,.55) 58%,rgba(255,236,200,0) 100%)}
.iv-glow{position:absolute;z-index:-1;pointer-events:none;width:62%;aspect-ratio:1;border-radius:50%;filter:blur(36px);opacity:.75;
  background:radial-gradient(closest-side,rgba(255,240,212,.8),rgba(255,240,212,.3) 60%,rgba(255,240,212,0) 100%)}
.iv-glow.is-dark{background:radial-gradient(closest-side,rgba(166,149,124,.22),rgba(166,149,124,.08) 55%,rgba(166,149,124,0) 100%)}

/* 계절 바꿈 — 뒤 사진이 부드러운 끝을 가진 띠로 번져 나온다 */
.iv-mask{-webkit-mask-image:linear-gradient(90deg,#000 var(--iv-m,100%),transparent calc(var(--iv-m,100%) + 22%));
  mask-image:linear-gradient(90deg,#000 var(--iv-m,100%),transparent calc(var(--iv-m,100%) + 22%))}

/* ── 5. 단계 켜기 ───────────────────────────────────────── */
html[data-iv-motion="live"] .iv-step{transition:opacity .8s ease,translate .9s var(--iv-ease)}
html[data-iv-motion="live"] .iv-step:not(.is-lit){opacity:.28;translate:0 14px}
html[data-iv-motion="live"] .iv-stepnum{transition:background-color .6s ease,color .6s ease,border-color .6s ease}
html[data-iv-motion="live"] .iv-step.is-lit .iv-stepnum{background-color:var(--iv-ink)!important;color:var(--iv-bg)!important;border-color:var(--iv-ink)!important}

/* ── 6. 머리 — 내리면 숨고, 올리면 다시 나온다 ─────────────────── */
html.iv-head-stick body > header:first-of-type,html.iv-head-stick header.zsdf-h{position:sticky!important;top:0;z-index:100}
html.iv-head-ready :is(body > header:first-of-type,header.zsdf-h){transition:transform var(--iv-head-dur) var(--iv-ease),box-shadow var(--iv-head-dur) ease;will-change:transform}
html.iv-head-solid :is(body > header:first-of-type,header.zsdf-h){box-shadow:0 1px 0 rgba(43,39,36,.08)}
html.iv-head-hide :is(body > header:first-of-type,header.zsdf-h){transform:translateY(-100%)}

/* ── 7. hover — 사진은 천천히 촉감 가까이, 단추는 먹색이 차오른다 ─────────── */
@media (hover:hover){
  html[data-iv-motion="live"] .iv-card :is(img,[data-zs-role="image"]){transition:scale 1.4s var(--iv-ease)}
  html[data-iv-motion="live"] .iv-card:hover :is(img,[data-zs-role="image"]){scale:1.05}
  html[data-iv-motion="live"] :is([data-zs-role="button"],[data-zs-btn]){transition:letter-spacing .6s var(--iv-ease),opacity .4s ease}
  html[data-iv-motion="live"] :is([data-zs-role="button"],[data-zs-btn]):hover{letter-spacing:.04em}
  html[data-iv-motion="live"] :is([data-zs-role="button"],[data-zs-btn]) svg:last-child{transition:translate .6s var(--iv-ease)}
  html[data-iv-motion="live"] :is([data-zs-role="button"],[data-zs-btn]):hover svg:last-child{translate:5px 0}
}
