/* ==========================================================================
   OmniSight — site.css (모든 페이지 공통, additions.css 다음에 불러온다)

   홈에서 정한 디자인 언어를 다른 페이지에도 맞춘다.
   - 번호가 붙은 섹션 머리(01 — LABEL), 가는 글자와 굵은 글자의 대비로 쓴 제목
   - 얇은 세로 그리드와 옅은 색 번짐만 있는 상단 소개 (장식 도형 없음)
   - 원형 화살표가 붙은 알약 버튼, 얇은 선으로 나뉜 흰 카드, 짙은 남색·짙은 그린 면
   모션은 js/site.js: 순차 페이드업, 줄 단위 제목 등장, 스크롤에 따라 채워지는 문장, 커지며 드러나는 이미지

   색 대비: 본문 #191f28, 보조 #5c6774(흰 5.8:1, #f4f7f7 5.4:1), 틸 #087268(흰 5.8:1),
           짙은 그린 위 보조 #bfe0db(8.9:1)·#9cc7c1(6.4:1) — WCAG 2.2 AA
   ========================================================================== */

:root {
  --h-ink: #0f1a1c;
  --h-muted: #5c6774;
  --h-navy: #061c22;
  --h-teal: #087268;
  --h-mint: #19b3a3;
  --h-lime: #a5e05a;
  --h-blue: #3d8bfd;
  --h-line: rgba(15, 26, 28, .1);
  --h-ease: cubic-bezier(.2, .8, .2, 1);
  --soft: #f4f7f7;
  /* 접근성 보완: 프로그램 상세 '핵심 역량' 칩·글자의 Insight 색 (밝은 틸 2.9~3.3:1 → 5.3:1 이상) */
  --c-insight: #087268;
  --c-outsight: #2459b8;
  --c-foresight: #5b3fd0;
  /* 육각형 모티프: 로고와 같은 꼭짓점이 위를 향한 정육각형 (정사각 상자 안) */
  --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  --hex-line-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1.4 92.1,25.7 92.1,74.3 50,98.6 7.9,74.3 7.9,25.7' fill='none' stroke='%23087268' stroke-opacity='.5' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --hex-line-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1.4 92.1,25.7 92.1,74.3 50,98.6 7.9,74.3 7.9,25.7' fill='none' stroke='white' stroke-opacity='.5' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --hex-line-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1.4 92.1,25.7 92.1,74.3 50,98.6 7.9,74.3 7.9,25.7' fill='none' stroke='%230f1a1c' stroke-opacity='.16' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ---------- 제목: 가는 글자 + 굵은 마지막 줄 ---------- */
.h1, .h2 { letter-spacing: -0.045em; }
.h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.22; text-wrap: balance; }
.t-split { font-weight: 300; }
.t-split b { font-weight: 700; }
.t-lines .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.t-lines .ln > span { display: inline-block; }

/* ---------- 상단 소개 (page-hero · 프로그램 상세 ph) ---------- */
.page-hero, .ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 560px at 96% 0%, rgba(25, 179, 163, .1), transparent 62%),
    radial-gradient(760px 460px at 100% 100%, rgba(165, 224, 90, .12), transparent 62%),
    #fbfcfc;
}
.page-hero::before, .ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(15, 26, 28, .05) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 72%, transparent);
}
.page-hero > .container, .ph > .container { position: relative; z-index: 1; }
/* 오른쪽 끝에 붙는 큐브 무리 (홈 첫 화면과 같은 등각 큐브, images/iso-corner.svg 는 _build/build.py 가 만든다)
   글이 화면 끝까지 차는 프로그램·인사이트 상세(ph)와 태블릿·모바일에서는 글과 겹치므로 두지 않는다 */
.page-hero::after {
  content: ""; position: absolute; top: 50%; right: -34px; width: min(26vw, 380px); aspect-ratio: 385 / 384; translate: 0 -42%; pointer-events: none;
  background: url("../images/iso-corner.svg") center / contain no-repeat;
}
.page-hero .h1, .ph .h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.05em; max-width: 1000px; }
.page-hero .t-split b, .ph .t-split b, .cta-band .t-split b {
  background: linear-gradient(95deg, #087268 0%, #0b8576 45%, #2f8f3a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band .t-split b { background-image: linear-gradient(95deg, #fff 30%, #a8ece2); }
.page-hero .lead { max-width: 640px; color: var(--h-muted); }
.page-hero .eyebrow {
  padding: 8px 14px; border-radius: 999px; background: rgba(25, 179, 163, .09);
  font-size: 13px; letter-spacing: .12em; color: var(--h-teal);
}
.page-hero .eyebrow::before { width: 10px; height: 10px; border-radius: 0; clip-path: var(--hex); background: var(--h-mint); }

/* 첫 화면 사진 (images/people) — 로고 모양 육각형 틀, 비켜 선 육각형 선, 한 면에 입힌 색, 작은 큐브 무리 (build.py HERO_PHOTOS) */
.page-hero.has-photo::after { display: none; }
.page-hero.has-photo > .container { display: flex; align-items: center; gap: clamp(40px, 5vw, 88px); }
.hv-text { flex: 1 1 auto; min-width: 0; }
.hv { position: relative; flex: 0 0 min(29vw, 410px); aspect-ratio: 1; }
.page-hero.has-photo .h1 { font-size: clamp(34px, 3.9vw, 58px); }
.page-hero .h1 .ln { text-wrap: balance; }
/* 밝은 사진도 육각형 모양이 또렷하게 — 틀에 그림자 (clip-path 바깥 겹에 둬야 그림자가 잘리지 않는다) */
.hv-frame { position: absolute; inset: 0; filter: drop-shadow(0 30px 34px rgba(6, 40, 40, .16)) drop-shadow(0 2px 3px rgba(6, 40, 40, .1)); }
.hv-photo { position: absolute; inset: 0; overflow: hidden; clip-path: var(--hex); background: #e3eeec; }
.hv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--h-ease) .1s; }
.hv.in .hv-photo img, .hv:not(.reveal) .hv-photo img { transform: none; }
.hv-photo::after { content: ""; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: screen; opacity: .32; clip-path: polygon(50% 50%, 93.3% 25%, 93.3% 75%, 50% 100%); }
.hv[data-facet="l"] .hv-photo::after { clip-path: polygon(50% 50%, 6.7% 25%, 6.7% 75%, 50% 100%); }
.hv-ghost { position: absolute; inset: 0; translate: 7% -6%; background: var(--hex-line-teal) center / 100% 100% no-repeat; }
.hv-cubes { position: absolute; left: -6%; bottom: -3%; width: 36%; height: auto; transition: transform 1.2s var(--h-ease) .45s, opacity .8s ease .45s; }
.hv.reveal:not(.in) .hv-cubes { opacity: 0; transform: translateY(-24px); }

/* 프로그램 상세 요약: 회색 상자 대신 얇은 선으로 나눈 기관형 표 */
.ph-spec, .pd-spec {
  gap: 0; background: transparent; border: 0; border-radius: 0;
  border-top: 1px solid rgba(15, 26, 28, .5); border-bottom: 1px solid var(--h-line);
}
.ph-spec div { background: transparent; padding: 22px 24px; border-left: 1px solid var(--h-line); }
.ph-spec div:first-child { border-left: 0; padding-left: 0; }
.ph-spec dt { letter-spacing: .06em; }

/* ---------- 섹션 머리: 번호 + 레이블 + 선 ---------- */
main { counter-reset: osec; }
.eyebrow { gap: 12px; font-size: 13px; color: var(--h-teal); }
.section .eyebrow { counter-increment: osec; }
.section .eyebrow::before {
  content: counter(osec, decimal-leading-zero) " —";
  content: counter(osec, decimal-leading-zero) " —" / "";
  width: auto; height: auto; background: none; border-radius: 0; letter-spacing: inherit;
}
.section .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .5; }
.section .sec-head.center .eyebrow::after { display: none; }
.bg-deep .eyebrow { color: #6fd9cc; }
.cta-band .eyebrow { counter-increment: none; }
.cta-band .eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .5; }
.sec-head { margin-bottom: 80px; }
.sec-head .lead { max-width: 620px; }

/* ---------- 버튼: 알약 + 원형 화살표 ---------- */
.btn { border-radius: 999px; letter-spacing: -0.02em; }
.btn-sm { border-radius: 999px; }
.btn > svg:last-child {
  box-sizing: content-box; width: 14px; height: 14px; padding: 9px; margin: 0 -18px 0 2px; clip-path: var(--hex);
  background: rgba(255, 255, 255, .16); transition: transform .5s var(--h-ease), background .3s, color .3s;
}
.btn:has(> svg:last-child):not(.btn-sm) { padding-right: 26px; }
.btn-ghost > svg:last-child, .btn-light > svg:last-child { background: rgba(8, 114, 104, .1); color: var(--h-teal); }
.bg-deep .btn-ghost > svg:last-child, .cta-band .btn-ghost > svg:last-child { background: rgba(255, 255, 255, .14); color: #fff; }
@media (hover: hover) {
  .btn:hover > svg:last-child { transform: translateX(3px); }
  .btn-primary:hover > svg:last-child { background: #fff; color: var(--h-teal); }
}
.btn-light { box-shadow: inset 0 0 0 1px var(--h-line); }
.cta-band .btn-light, .bg-deep .btn-light { box-shadow: none; }

/* ---------- 면: 옅은 청록 회색 / 짙은 남색 / 짙은 그린 ---------- */
.bg-soft { background: var(--soft); }
.bg-deep {
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(25, 179, 163, .16), transparent 62%),
    radial-gradient(820px 600px at 96% 100%, rgba(61, 139, 253, .12), transparent 62%),
    var(--h-navy);
}
.cta-band { background: linear-gradient(160deg, #0b4d45 0%, #073a35 55%, #062e2b 100%); border-radius: 28px; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 120px);
}
.cta-band .lead { color: #bfe0db; }
.cta-band .note { color: #9cc7c1; }
.cta-band .h1 { font-size: clamp(30px, 3.8vw, 52px); }

/* ---------- 카드: 흰 면 + 얇은 선, 올리면 떠오름 ---------- */
.card, .prog, .eff, .fmt, .tool, .trust > div, .line-col, .mvv > div, .ad-model, .ad-insight, .ad-aud-card, .ad-expert {
  background: #fff; border: 1px solid var(--h-line); box-shadow: none;
}
.bg-soft .card, .bg-soft .prog, .bg-soft .eff, .bg-soft .fmt, .bg-soft .tool, .bg-soft .line-col, .bg-soft .ad-insight, .bg-soft .ad-model { background: #fff; }
.tool.featured, .bg-soft .tool.featured { background: var(--h-navy); border-color: transparent; }
.compare > div { border-color: var(--h-line); }
.compare > div.us { background: var(--h-navy); border-color: transparent; }
@media (hover: hover) {
  .card:hover, .prog:hover, a.fmt:hover, .ad-insight:hover, .ad-aud-card:hover, a.tool:hover {
    transform: translateY(-4px); border-color: transparent; box-shadow: 0 28px 56px -34px rgba(6, 40, 40, .38);
  }
}
.eff .n {
  display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; border-radius: 0; background: none;
  color: var(--h-teal); font-size: 14px; letter-spacing: .1em;
}
.eff .n::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.ad-goals .eff .n::after { display: none; }
.mvv .k, .compare h4 { letter-spacing: .12em; }

/* ---------- 시작 로고 모션 (사이트를 처음 열 때 탭마다 한 번, 두산로보틱스 참고) ----------
   로고 육각형이 선으로 그려지고 글자가 올라온 뒤, 화면 가운데의 육각형 구멍이 커지며 사이트가 열린다.
   재생 여부는 <head> 의 짧은 스크립트가 정한다(os-intro-on). 클릭·키·스크롤로 건너뛸 수 있다(js/site.js). */
.os-intro { display: none; }
.os-intro-on .os-intro {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: radial-gradient(70% 60% at 50% 50%, #0e3b41, #061c22 72%);
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  animation: osIris .95s cubic-bezier(.7, 0, .2, 1) 2.05s forwards;
}
.os-intro-in { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); animation: osOut .45s var(--h-ease) 1.85s forwards; }
.os-intro-mark { width: clamp(62px, 7.4vw, 92px); height: auto; overflow: visible; }
.os-intro-mark polygon { fill: none; stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.os-intro-mark .s { stroke: #4a6166; animation: osDraw 1s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
.os-intro-mark .m { stroke: #b6ebe4; animation: osDraw 1s cubic-bezier(.65, 0, .35, 1) .1s forwards; }
.os-intro-word { display: grid; gap: 6px; color: #fff; }
.os-intro-word b { display: flex; overflow: hidden; padding-bottom: .04em; font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: .01em; }
.os-intro-word i { display: inline-block; font-style: normal; transform: translateY(110%); animation: osUp .75s var(--h-ease) calc(.5s + var(--k, 0) * 45ms) forwards; }
.os-intro-word i.sp { width: .32em; }
.os-intro-word small { justify-self: center; font-size: clamp(11px, 1vw, 13px); font-weight: 600; letter-spacing: .55em; text-transform: uppercase; color: #8aa6aa; opacity: 0; animation: osFade .6s ease 1.15s forwards; }
.os-intro-skip .os-intro { animation: osIris .7s cubic-bezier(.7, 0, .2, 1) forwards; }
.os-intro-skip .os-intro-in { animation: osOut .3s ease forwards; }
@keyframes osDraw { to { stroke-dashoffset: 0; } }
@keyframes osUp { to { transform: none; } }
@keyframes osFade { to { opacity: 1; } }
@keyframes osOut { to { opacity: 0; transform: scale(.94); } }
@keyframes osIris {
  to {
    clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% calc(50% - 120vmax), calc(50% + 104vmax) calc(50% - 60vmax), calc(50% + 104vmax) calc(50% + 60vmax), 50% calc(50% + 120vmax), calc(50% - 104vmax) calc(50% + 60vmax), calc(50% - 104vmax) calc(50% - 60vmax), 50% calc(50% - 120vmax));
    visibility: hidden;
  }
}
/* 덮개가 열리기 전에는 아래 내용의 등장을 미뤄 두었다가, 열리면서 차례로 올라오게 */
.os-intro-hold .reveal.in:not(.t-lines) { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.os-intro-hold .t-lines.reveal.in .ln > span { transform: translateY(108%); }

/* ---------- 등장 모션 (기존 .reveal 을 홈과 같은 결로) ---------- */
.reveal {
  transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--h-ease), transform .9s var(--h-ease), filter .9s var(--h-ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { filter: none; }
/* 등장이 끝난 카드는 원래의 빠른 반응으로 */
.reveal.done { transition: opacity .3s, transform .5s var(--h-ease), box-shadow .5s var(--h-ease), border-color .4s, background .3s; transition-delay: 0s; }
/* 상단 제목은 통째로가 아니라 줄 단위로 올라온다 */
.t-lines.reveal { opacity: 1; transform: none; filter: none; }
.t-lines.reveal .ln > span { transform: translateY(108%); transition: transform 1.15s var(--h-ease); }
.t-lines.reveal .ln:nth-child(2) > span { transition-delay: .09s; }
.t-lines.reveal .ln:nth-child(3) > span { transition-delay: .18s; }
.t-lines.reveal.in .ln > span { transform: none; }

/* 스크롤에 따라 채워지는 문장 (About 비전 문장) */
.js-fill .w { color: #868f9b; transition: color .35s; }
.js-fill .w.on { color: var(--ink); }
.js-fill .w.em.on { color: var(--h-teal); }

/* 스크롤에 따라 커지며 드러나는 이미지 */
.zoom-in > img { transform: scale(calc(.9 + .1 * var(--p2, 1))); transform-origin: 50% 100%; will-change: transform; }

/* ---------- 육각형 모티프 (동그라미 도형 대신) ---------- */
.cta-band .rings polygon { fill: none; stroke: rgba(255, 255, 255, .07); }
.act-rings polygon { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.act-rings .track { opacity: .14; }
.step .dot { border: 0; border-radius: 0; clip-path: var(--hex); background: var(--hex-line-white) center / 100% 100% no-repeat, #0c2a30; }
.ad-flow li::before { border-radius: 0; clip-path: var(--hex); width: 28px; height: 28px; }
.ad-avatar { border-radius: 0; clip-path: var(--hex); }

/* 접근성 보완: 역량 칩 안의 작은 글자는 흐리게 하지 않는다 (3.9:1 → 4.6:1 이상) */
.cmap-k small { opacity: 1; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .page-hero::after { display: none; }
  /* 태블릿·모바일: 사진은 글 아래 가운데 */
  .page-hero.has-photo > .container { flex-direction: column; align-items: stretch; gap: 40px; }
  .hv { flex: none; width: min(330px, 70vw); margin: 0 auto; }
  .hv--desk { display: none; }
  .ph-spec div { border-left: 0; padding-left: 0; border-top: 1px solid var(--h-line); }
  .ph-spec div:nth-child(-n+2) { border-top: 0; }
  .ph-spec div:nth-child(even) { border-left: 1px solid var(--h-line); padding-left: 20px; }
}
@media (max-width: 640px) {
  .page-hero .h1, .ph .h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .sec-head { margin-bottom: 44px; }
  .ph-spec div, .ph-spec div:nth-child(even) { border-left: 0; padding: 16px 0; }
  .ph-spec div:nth-child(2) { border-top: 1px solid var(--h-line); }
  .cta-band::before { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .hv-photo img, .hv-cubes { transition: none !important; transform: none !important; opacity: 1 !important; }
  .reveal { filter: none !important; transition-delay: 0s !important; }
  .t-lines .ln > span { transform: none !important; transition: none !important; }
  .zoom-in > img { transform: none !important; }
  .js-fill .w { transition: none; }
}
