/*! 오션 호라이즌 브랜드 팩 v2 — 레이아웃·모션 CSS
 *  html[data-oc-layout="on"] : 실제 방문 창(편집기 캔버스·검토 창·전체 캡처 제외) — 글자 크기·여백·폭·머리 같은 배치
 *  html[data-oc-motion="live"]: 모션을 켠 창 — 등장 전 숨김 상태는 여기서만 건다(스크립트가 못 떠도 글이 숨지 않게
 *  숨김 클래스는 스크립트가 붙인다). 둘 다 ocean-boot.js 가 판정한다.
 *  곡선: cubic-bezier(.43,.2,.02,1)(ipark-dvp.com 공통) — 끝을 길게 끄는 감속.
 */
:root{--oc-ease:cubic-bezier(.43,.2,.02,1);--oc-swap:cubic-bezier(.65,0,.35,1);--oc-accent:var(--color-accent,#107AF2);
  /* 본문 시작선 = 브랜드 본문 폭(--zs-content-max-width)·좌우 여백(--zs-gutter) 기준 — 조작부·화면 가득 판도 같은 선에 맞춘다 */
  --oc-edge:max(var(--zs-gutter,40px),calc((100% - var(--zs-content-max-width,1600px)) / 2))}

/* ── 1. 대기업형 글자 — 섹션 제목 크게·600 굵기·좁은 자간, 라벨 앞 짧은 막대 ───────────── */
@media (min-width:993px){
  html[data-oc-layout="on"] .zs-page-block [data-zs-typo="h2"]:not([data-zs-typo-lock]):not(#oc){font-size:clamp(36px,2.6vw,52px)!important;font-weight:600!important;line-height:1.36!important;letter-spacing:-.025em!important}
  html[data-oc-layout="on"] .zs-page-block [data-zs-role="title"] ~ [data-zs-typo="body"]:not(#oc){font-size:clamp(17px,1.1vw,21px)!important;line-height:1.6!important}
  html[data-oc-layout="on"] .zs-page-block[data-zs-block^="metrics/"] [data-zs-typo="h1"]:not([data-zs-typo-lock]):not(#oc){font-size:clamp(48px,4vw,80px)!important;font-weight:600!important;letter-spacing:-.035em!important;line-height:1.1!important}
  html[data-oc-layout="on"] .zs-page-block [data-zs-typo="h4"]:not([data-zs-typo-lock]):not(#oc){font-size:clamp(20px,1.25vw,24px)!important;font-weight:600!important}
  html[data-oc-layout="on"] .zs-page-block [data-zs-pad="std"]:not([data-zs-pad-lock]):not(#oc){padding-top:clamp(120px,10.5vw,200px)!important;padding-bottom:clamp(96px,8.3vw,160px)!important}
}
html[data-oc-layout="on"] .zs-page-block [data-zs-typo="eyebrow"]:not(#oc){display:inline-flex;align-items:center;gap:10px;font-size:15px!important;font-weight:600!important;letter-spacing:.04em!important}
html[data-oc-layout="on"] .zs-page-block [data-zs-typo="eyebrow"]:not(#oc)::before{content:"";flex:none;width:4px;height:15px;background:var(--oc-accent)}
html[data-oc-layout="on"] [data-zs-typo="h1"]{font-variant-numeric:tabular-nums}
/* 1,000~1,400px 상자에 갇힌 본문 칸을 넓힌다(스크립트가 해당 칸에만 붙임) */
html[data-oc-layout="on"] .oc-wide.oc-wide{max-width:min(1600px,100%)!important}
/* 기본 머리·바닥 안쪽 상자(1,200px)도 넓힌 본문과 같은 시작선에 — 로고·바닥 글이 본문보다 안쪽에서 시작하지 않게 */
@media (min-width:993px){
  html[data-oc-layout="on"] :is(.zsdf-hin,.zsdf-fin):not(#oc){max-width:none;padding-left:var(--oc-edge);padding-right:var(--oc-edge)}
}

/* ── 2. 머리 — 첫 화면 위 투명, 내리면 흰 판(숨김/등장은 스크립트) ───────────────── */
html.oc-head-over body > header:first-of-type,html.oc-head-over header.zsdf-h{
  position:fixed!important;left:0;right:0;top:0;z-index:100;background:transparent!important;border-color:transparent!important;
  transition:background-color .5s ease,border-color .5s ease,color .5s ease,box-shadow .5s ease;
}
html.oc-head-over:not(.oc-scrolled) body > header:first-of-type,html.oc-head-over:not(.oc-scrolled) header.zsdf-h{color:#fff}
html.oc-head-over:not(.oc-scrolled) :is(body > header:first-of-type,header.zsdf-h) :is(a,button,label,span,strong,p){color:#fff!important;border-color:rgba(255,255,255,.55)!important}
html.oc-head-over:not(.oc-scrolled) header.zsdf-h .zsdf-join{background:transparent!important;border:1px solid rgba(255,255,255,.7)!important}
html.oc-head-over:not(.oc-scrolled) header.zsdf-h .zsdf-burger span,
html.oc-head-over:not(.oc-scrolled) header.zsdf-h .zsdf-burger span::before,
html.oc-head-over:not(.oc-scrolled) header.zsdf-h .zsdf-burger span::after{background:#fff!important}
html.oc-head-over.oc-scrolled :is(body > header:first-of-type,header.zsdf-h){background:#fff!important;border-color:#ededed!important;box-shadow:0 1px 0 rgba(0,0,0,.04)}
html.oc-head-over :is(body > header:first-of-type,header.zsdf-h) img{transition:filter .5s ease}
html.oc-head-over:not(.oc-scrolled) :is(body > header:first-of-type,header.zsdf-h) img{filter:brightness(0) invert(1)}

/* ── 3. 첫 화면 — 첫 장면(구름 속 흰 화면 → 구름이 갈라지며 열림)과 롤링 ───────────────── */
html[data-oc-motion="live"] .zs-page-block.oc-hold > :first-child{background-color:#f4f7fb!important}
html.oc-intro-wait .zs-page-block[data-zs-block^="heroes/"]:is([data-zs-scope="p0"],:first-of-type){visibility:hidden}
html[data-oc-motion="live"] .oc-hold :is([data-zs-role="image"],[class*="-xf"]){visibility:hidden}
/* 엔진을 기다리는 동안 흰 바탕 위에 흰 제목이 흐리게 비쳤다 사라지지 않게 글자도 감춘다(등장 장면이 다시 보여 준다) */
html[data-oc-motion="live"] .oc-hold :is([data-zs-role="title"],[data-zs-role="label"],[data-zs-typo],[data-zs-btn]){visibility:hidden}
html[data-oc-motion="live"] .oc-hold > * > *::before{opacity:0!important}
.oc-reeled > :not(.oc-reel){visibility:hidden}
.oc-reel{position:absolute;inset:0;overflow:hidden;z-index:0;background:#0b1626}
.oc-reeled.oc-reeled{overflow:hidden}
.oc-slide{position:absolute;inset:0;overflow:hidden;visibility:hidden}
.oc-slide-img,.oc-slide-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border-radius:0!important;will-change:transform}
.oc-slide-video{z-index:1}
.zs-page-block .oc-ctrl-room.oc-ctrl-room{padding-bottom:calc(clamp(64px,10vh,120px) + 64px)!important}
.oc-ctrl{position:absolute;z-index:4;left:var(--oc-edge);right:var(--oc-edge);bottom:clamp(28px,4.5vh,48px);display:flex;align-items:center;gap:22px;color:#fff;font:600 14px/1 Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em}
.oc-ctrl.is-single .oc-bars,.oc-ctrl.is-single .oc-count,.oc-ctrl.is-single .oc-btns{display:none}
.oc-count{display:inline-flex;align-items:center;gap:10px;font-variant-numeric:tabular-nums}
.oc-count b{font-weight:700;font-size:15px}
.oc-count i{width:22px;height:1px;background:rgba(255,255,255,.5)}
.oc-count span{opacity:.6}
.oc-bars{display:inline-flex;align-items:center;gap:8px}
.oc-bar{position:relative;width:44px;height:22px;padding:0;margin:0;border:0;background:none;cursor:pointer}
.oc-bar::before{content:"";position:absolute;left:0;right:0;top:10px;height:2px;border-radius:2px;background:rgba(255,255,255,.32);transition:background-color .4s ease}
.oc-bar.is-on{width:104px}
.oc-bar.is-on::before{background:#fff}
.oc-btns{display:inline-flex;gap:8px}
.oc-btns button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:transparent;color:#fff;cursor:pointer;transition:background-color .3s ease,border-color .3s ease}
.oc-btns button:hover{background:rgba(255,255,255,.14);border-color:#fff}
.oc-btns button:focus-visible,.oc-bar:focus-visible{outline:2px solid #fff;outline-offset:3px}
.oc-btns svg{width:16px;height:16px}
.oc-cue{margin-left:auto;display:inline-flex;align-items:center;gap:14px;font-size:12px;letter-spacing:.24em;opacity:.85}
.oc-cue i{position:relative;width:1px;height:44px;background:rgba(255,255,255,.3);overflow:hidden}
.oc-cue i::after{content:"";position:absolute;left:0;top:0;width:1px;height:100%;background:#fff;animation:oc-cue 2.2s var(--oc-ease) infinite}
@keyframes oc-cue{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}
@media (max-width:767px){
  .oc-ctrl{gap:14px;bottom:24px}
  .oc-bar{width:26px}.oc-bar.is-on{width:52px}
  .oc-btns button{width:32px;height:32px}
  .oc-cue{display:none}
  .zs-page-block .oc-ctrl-room.oc-ctrl-room{padding-bottom:calc(48px + 56px)!important}
}

/* ── 4. 등장 전 상태(스크립트가 붙이고 장면이 걷는다) ─────────────────────────── */
html[data-oc-motion="live"] .oc-pre{visibility:hidden}
html[data-oc-motion="live"] .oc-pre-up{opacity:0;transform:translateY(40px)}
html[data-oc-motion="live"] .oc-pre-clip{clip-path:inset(0 0 100% 0)}
html[data-oc-motion="live"] .oc-pre-wipe{clip-path:inset(100% 0 0 0)}
.oc-line{display:block;overflow:clip;padding-bottom:.12em;margin-bottom:-.12em}
.oc-line-in{display:inline-block;will-change:transform}

/* ── 5. 사진+글 줄 목록 → 고정 무대(ipark Corporate Essence) ────────────────────── */
.oc-stack-src{display:none!important}
.oc-stack-anc{overflow:visible!important;contain:none!important}
.oc-stack{position:relative;margin-top:clamp(40px,4vw,80px)}
.oc-stack-pin{position:sticky;top:0;height:100svh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(48px,5.8vw,112px);align-items:center;padding:60px 0;box-sizing:border-box}
.oc-stack-media{position:relative;height:calc(100svh - 120px);overflow:hidden}
.oc-stack-img{position:absolute;inset:0;overflow:hidden;will-change:transform}
.oc-stack-img:not(:first-child){transform:translate3d(0,100%,0)}
.oc-stack-img img{width:100%;height:100%;object-fit:cover;display:block;transform-origin:center bottom}
.oc-stack-num{display:flex;align-items:center;gap:12px;height:1.3em;margin-bottom:28px;overflow:hidden;color:var(--oc-accent);font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.oc-stack-num-in{display:inline-block}
.oc-stack-num i{width:28px;height:1px;background:currentColor;opacity:.4}
.oc-stack-num em{font-style:normal;font-size:18px;color:#8A9099}
.oc-stack-panels{position:relative;display:grid}
.oc-stack-panel{grid-area:1/1;opacity:0;visibility:hidden;transform:translateY(48px);transition:transform .6s var(--oc-swap),opacity .45s ease,visibility 0s linear .6s}
.oc-stack-panel.is-past{transform:translateY(-48px)}
.oc-stack-panel.is-on{opacity:1;visibility:visible;transform:none;transition:transform .9s var(--oc-ease) .12s,opacity .6s ease .12s,visibility 0s}
.oc-stack-panel > *{display:block!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important;grid-template-columns:none!important}
.oc-stack-panel > * > *{width:auto!important;max-width:560px!important;padding-left:0!important;padding-right:0!important}
.oc-stack-panel [data-zs-typo="h3"]:not(#oc){font-size:clamp(28px,1.9vw,38px)!important;font-weight:600!important;line-height:1.4!important;letter-spacing:-.02em!important}
.oc-stack-panel [data-zs-typo^="body"]:not(#oc){font-size:clamp(17px,1.05vw,20px)!important;line-height:1.65!important;color:#434343}

/* ── 6. 마무리 배너 → 화면 가득 판(ipark ESG — 앞 섹션 위로 덮어 올라옴) ────────────── */
/* 판 바탕 = 배너 카드 색(--oc-cta-bg, 스크립트가 카드에서 읽음 — 카드가 화면 가득 커지는 장면), 카드가 없으면 진한 포인트색.
   파랑을 박아 두면 사이트 색을 바꿔도 판만 옛 파랑으로 남는다(2026-10-25) */
html[data-oc-layout="on"] .oc-cta-full.oc-cta-full{padding:0!important;background:#0b1626}
/* 판(카드) 자신은 빼고 비운다 — 카드가 data-zs-pad 를 가지면 이 규칙(:not(#oc) 로 id 무게)이 카드 위·아래 여백까지 0 으로 눌러
   글·단추가 판 바닥에 달라붙었다(2026-11-02 사용자 "텍스트와 버튼이 너무 아래로 치우쳐 밑에 달라붙었어") */
html[data-oc-layout="on"] .oc-cta-full [data-zs-pad]:not(#oc):not(.oc-cta-card),html[data-oc-layout="on"] .oc-full-anc.oc-full-anc{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
html[data-oc-layout="on"] .oc-cta-card.oc-cta-card{position:relative;box-sizing:border-box;min-height:100svh;width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;gap:40px;padding:clamp(96px,10vw,180px) var(--oc-edge) clamp(72px,8vw,140px)!important;background:linear-gradient(180deg,rgba(6,14,28,.2) 0%,rgba(6,14,28,.62) 100%),var(--oc-cta-img,none) center/cover no-repeat,var(--oc-cta-bg,var(--color-accent-hover,#0A4FB0))!important;color:#fff!important;box-shadow:none!important;overflow:hidden}
html[data-oc-layout="on"] .zs-page-block .oc-cta-card.oc-cta-card [data-zs-role="title"]:not([data-zs-typo-lock]):not(#oc){font-size:clamp(30px,4.4vw,84px)!important;line-height:1.18!important;word-break:keep-all;text-wrap:balance;font-weight:600!important;letter-spacing:-.03em!important;color:#fff!important}
html[data-oc-layout="on"] .zs-page-block .oc-cta-card.oc-cta-card [data-zs-typo^="body"]:not([data-zs-typo-lock]):not(#oc){font-size:clamp(17px,1.2vw,22px)!important;line-height:1.6!important;color:rgba(255,255,255,.86)!important;max-width:640px}
html[data-oc-layout="on"] .oc-cta-card.oc-cta-card.oc-cta-flat{background:var(--oc-cta-bg)!important}
html[data-oc-layout="on"] .oc-cta-card .oc-cta-surf.oc-cta-surf{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
html[data-oc-layout="on"] .oc-cta-card [data-zs-typo="caption"]:not(#oc){color:#fff!important;border-color:rgba(255,255,255,.6)!important;background:transparent!important}
html[data-oc-layout="on"] .oc-cta-card :is(a,[data-zs-btn]){border-color:rgba(255,255,255,.75)!important}
/* 바탕이 비친 단추(테두리만)는 판 위에서 글자를 흰색으로 — 블록 원래 글자색(어두운 색)이 남아 검은 글자 단추가 됐다(2026-11-02) */
html[data-oc-layout="on"] .oc-cta-card .oc-cta-ghost.oc-cta-ghost,html[data-oc-layout="on"] .oc-cta-card .oc-cta-ghost.oc-cta-ghost *{color:#fff!important}
/* 깔 사진이 하나도 없으면 화면 가득 판 대신 글 높이만큼 — 빈 단색 판이 화면을 채우면 사진 자리가 빈 것처럼 보인다(2026-11-02) */
html[data-oc-layout="on"] .oc-cta-card.oc-cta-card{background-blend-mode:normal!important}
html[data-oc-layout="on"] .oc-cta-card.oc-cta-card.oc-cta-nophoto{min-height:0;padding-top:clamp(88px,8vw,150px)!important;padding-bottom:clamp(88px,8vw,150px)!important}
/* 판 위 작은 제목(라벨)도 흰 계열 — 포인트색 라벨이 파란 판·사진 위에서 묻히지 않게 */
html[data-oc-layout="on"] .zs-page-block .oc-cta-card [data-zs-typo="eyebrow"]:not(#oc){color:rgba(255,255,255,.88)!important}
html[data-oc-layout="on"] .zs-page-block .oc-cta-card [data-zs-typo="eyebrow"]:not(#oc)::before{background:#fff}

/* ════ v2 — 하늘·비행 장면 ══════════════════════════════════════════ */
/* 부드러운 스크롤(Lenis) */
html[data-oc-motion="live"].lenis,html[data-oc-motion="live"].lenis body{height:auto}
html[data-oc-motion="live"].lenis.lenis-smooth{scroll-behavior:auto!important}
html[data-oc-motion="live"].lenis.lenis-stopped{overflow:hidden}
/* 공통 런타임을 끄면 블록 안 흐르는 띠·겹쳐 넘기는 사진까지 멈춘다 — 이 팩이 켜진 동안은 블록 자체 움직임을 되살린다(주인이 끈 블록은 그대로) */
html[data-oc-motion="live"][data-zs-motion="off"] .zs-page-block:not([data-zs-motion="off"]) :not(.zs-page-block [data-zs-motion="off"] *),
html[data-oc-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-oc-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}

/* 첫 장면 구름 — 흰 화면에서 좌우로 갈라진다 */
.oc-veil{position:absolute;inset:0;z-index:3;pointer-events:none;background:radial-gradient(120% 90% at 50% 60%,#fff 0%,#f4f7fb 55%,#e8eef6 100%)}
.oc-clouds{position:absolute;inset:0;z-index:3;pointer-events:none;will-change:transform,opacity}
.oc-cloud{position:absolute;border-radius:50%;background:radial-gradient(closest-side,var(--oc-cloud,#fff) 0%,var(--oc-cloud,#fff) 38%,color-mix(in srgb,var(--oc-cloud,#fff) 70%,transparent) 62%,transparent 100%);filter:blur(6px)}
/* 내릴 때 아래에서 차오르는 구름 띠(다음 섹션 바탕색) */
.oc-bank{position:absolute;left:-5%;right:-5%;bottom:0;height:46%;z-index:3;pointer-events:none;background:linear-gradient(to top,var(--oc-bank,#fff) 0%,var(--oc-bank,#fff) 30%,color-mix(in srgb,var(--oc-bank,#fff) 55%,transparent) 62%,transparent 100%)}
.oc-bank .oc-clouds{inset:auto 0 30% 0;height:70%}
html[data-oc-motion="live"] .oc-ctrl{z-index:5}

/* 가로 활주로 — 한 줄 사진 카드가 고정된 화면 안에서 옆으로 지나간다 */
/* 섹션(.zs-page-block)은 빼고 — 섹션까지 visible 이 되면 아래 가로 자르기를 이겨 카드 줄이 문서 폭을 늘린다 */
html[data-oc-motion="live"] .oc-runway-anc.oc-runway-anc:not(.zs-page-block){overflow:visible!important;max-width:none}
html[data-oc-motion="live"] .zs-page-block:has(.oc-runway){overflow-x:clip}
html[data-oc-motion="live"] .oc-runway.oc-runway{display:flex!important;flex-wrap:nowrap!important;gap:clamp(20px,2vw,36px)!important;overflow:visible!important;grid-template-columns:none!important;will-change:transform}
html[data-oc-motion="live"] .oc-runway > .oc-runway-card{flex:0 0 var(--oc-card-w,420px)!important;width:var(--oc-card-w,420px)!important;max-width:none!important;min-width:0!important;translate:0 var(--oc-lift,0px);rotate:var(--oc-tilt,0deg);opacity:var(--oc-fade,1);transform-origin:0% 100%}
html[data-oc-motion="live"] .oc-runway-card [data-zs-role="image"]{max-height:46vh}
.oc-runway-path{position:relative;height:28px;margin:0 0 clamp(20px,2.4vw,40px);color:var(--oc-accent)}
.oc-runway-num{position:absolute;right:0;top:4px;font:600 15px/20px Pretendard,-apple-system,sans-serif;color:#8A9099;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.oc-runway-num b{color:var(--oc-accent);font-weight:700}

/* 긴 문장 — 낱말이 차례로 밝아진다 */
.oc-qw{display:inline}

/* 숫자 — 출발 안내판 */
.oc-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.oc-od-row{display:inline-flex;align-items:flex-start;white-space:nowrap}
.oc-od{position:relative;display:inline-block;overflow:hidden;vertical-align:top}
.oc-od-s{display:block;will-change:transform}
.oc-od-s i{display:block;font-style:normal;text-align:center}
.oc-od-x{display:inline-block;white-space:pre}
/* 넘김 띠 글자는 그림 글자(::before)로만 그린다 — 화면 낭독기·innerText 에는 숨김 글의 원래 값만 남는다 */
.oc-od-s i::before{content:attr(data-d)}
.oc-od-x::before{content:attr(data-c)}
.oc-od-tile{padding:0 .07em;margin:0 .03em 0 0;border-radius:.09em;background:linear-gradient(180deg,rgba(9,22,44,.62) 0 50%,rgba(4,14,30,.72) 50% 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.oc-od-tile::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(0,0,0,.45)}

html[data-oc-layout="on"] .oc-cta-card.oc-cta-own{background:#0b1626!important}
html[data-oc-layout="on"] .oc-cta-card > :not(.oc-deco):not([class*="-xf"]){position:relative;z-index:2}

/* hover — 카드는 살짝 떠오르고 사진은 당겨진다 */
@media (hover:hover){
  html[data-oc-motion="live"] .oc-card{transition:box-shadow .4s ease}
  html[data-oc-motion="live"] .oc-card:hover{box-shadow:0 22px 44px -26px rgba(10,30,60,.45)}
  html[data-oc-motion="live"] :is(.oc-card,.oc-runway-card) [data-zs-role="image"] img{transition:scale .9s var(--oc-ease)}
  html[data-oc-motion="live"] :is(.oc-card,.oc-runway-card):hover [data-zs-role="image"] img{scale:1.06}
}

/* 고정 장면 폭(2026-10-06): 첫 측정 때 세로 스크롤 막대가 아직 없으면 고정 칸 폭이 막대 포함 창 폭(1440)으로 잡혀
   막대가 생긴 뒤 막대 폭(15px)만큼 가로 스크롤이 생긴다 — 칸과 고정 대상이 화면 폭을 넘지 않게 한다. */
html[data-oc-layout] .pin-spacer{max-width:100%!important}
html[data-oc-layout] .pin-spacer>*{max-width:100%!important}
