/* =========================================================
   VICS Technology — 모노톤 에디토리얼 디자인 시스템
   (명화 톤 히어로 + 다크/라이트 테마 + 모노스페이스 라벨)
   ========================================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@latest/dist/web/static/pretendard.css');

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e2e2e2;
  --gray-400: #a3a3a3;
  --gray-600: #6b6b6b;
  --gray-800: #262626;
  --accent: #ff5a1f; /* 유일한 포인트 컬러 — CTA 전용 */
  --accent-hover: #e14a12;
  --max-width: 1320px;
  --radius-pill: 999px;
  --radius-md: 14px;
  --radius-ui: 10px; /* 사이트 공통 모서리(카드·이미지·버튼) — 새로 만들 때 이 값을 쓴다 */
  --edge-gap: clamp(32px, 7vh, 97px); /* 공통 간격: 헤더 아래 → 첫 이미지, 배너 이미지 → 그 아래 첫 줄. Company 하위 페이지가 모두 같은 값을 쓴다 */
  --banner-ratio: 1576 / 300; /* Company 하위 페이지 머리 와이드 배너 비율(가로:세로 ≈ 5.25:1, 2026-10-02 기준 이미지) — 화면 폭에 따라 높이가 같이 변한다 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Pretendard", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-serif: "Pretendard", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --font-mono: "Pretendard", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Segoe UI", sans-serif;

  /* 시맨틱 토큰 (라이트 모드 기본값) */
  --bg: var(--white);
  --bg-elevated: var(--gray-50);
  --bg-header: rgba(255, 255, 255, 0.92);
  --card-bg: var(--white);
  --fg: var(--black);
  --muted: var(--gray-600);
  --muted-2: var(--gray-400);
  --border: var(--gray-200);
}

/* 큰 모니터(2560px 등)에서는 콘텐츠 폭을 넓혀 메인 이미지·슬라이드를 함께 키운다 */
@media (min-width: 2200px) {
  :root { --max-width: 1640px; }
}

[data-theme="dark"] {
  --bg: #0b0d10;
  --bg-elevated: #15181c;
  --bg-header: rgba(11, 13, 16, 0.86);
  --card-bg: #101317;
  --fg: #f2f2f0;
  --muted: #a8a8a4;
  --muted-2: #6f716f;
  --border: #262a2f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* 버튼·입력칸은 브라우저 기본 글꼴 대신 페이지 글꼴(Pretendard)을 따른다 */
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 언어 선택 (헤더 우측) ---------- */

.lang-select { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  height: 38px;
  padding: 0 14px;
  transition: border-color 0.2s var(--ease);
}

.lang-btn:hover,
.lang-select.is-open .lang-btn { border-color: var(--fg); }

.lang-caret { color: var(--muted-2); transition: transform 0.2s var(--ease); }
.lang-select.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 168px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  z-index: 200;
}

.lang-select.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
}

.lang-option:hover:not(:disabled) { background: var(--bg-elevated); }
.lang-option.is-active { color: var(--accent); }
.lang-option:disabled { color: var(--muted-2); cursor: not-allowed; }

.lang-soon {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 로고 영역과 버튼 영역을 같은 폭(1fr)으로 나눠, 가운데 메뉴가 화면 정중앙에 오도록 한다 */
@media (min-width: 900px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-logo { justify-self: start; }
  .nav-actions { justify-self: end; }
}

.nav-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nav-logo img { display: block; height: 30px; width: auto; }

.logo-slogan {
  font-size: 11.5px;
  font-weight: 300; /* 글씨체 얇게 */
  color: var(--muted);
  letter-spacing: -0.01em;
  padding-left: 44px; /* VICS 심볼 너비만큼 밀어내기 */
}
/* 로고 밑 문구 세 개가 타자 치듯 나타나고, 잠시 머문 뒤 지워지고, 다음 문구가 이어진다 (js/main.js initSlogan)
   질문이, 일을 움직인다. → 질문이, 변화를 만든다. → 질문이, 결과를 바꾼다.
   JS가 없을 때는 아래 fadeFallback 처럼 부드러운 교대로 보인다 */
.logo-slogan { display: grid; }
.logo-slogan > span { grid-area: 1 / 1; white-space: nowrap; }
.logo-slogan .sg-size { visibility: hidden; }          /* 가장 긴 문구 폭만큼 자리를 잡아 흔들림이 없다 */
.logo-slogan .sg-type::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -0.14em; animation: sgBlink 0.9s steps(1) infinite; }
@keyframes sgBlink { 50% { opacity: 0; } }
/* JS 전: 첫 문구만 보인다 */
.logo-slogan:not(.is-typing) > span { opacity: 0; }
.logo-slogan:not(.is-typing) > span:first-child { opacity: 1; }

/* 푸터 로고는 흑백 */
.footer-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
.footer-logo img { display: block; height: 26px; width: auto; filter: grayscale(1); }
.footer-logo .logo-slogan { color: var(--muted-2); padding-left: 38px; } /* 푸터 로고 너비에 맞춤 */


.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--fg); }

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: all 0.2s var(--ease);
  z-index: 150;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover { background: var(--bg-elevated); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.82; }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--fg); }

.btn-lg {
  padding: 16px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.btn-outline.btn-lg { border-color: var(--fg); }
.btn-outline.btn-lg:hover { background: var(--fg); color: var(--bg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 언어 버튼과 높이를 맞춘다 */
.nav-cta { display: none; height: 38px; padding: 0 18px; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-links { display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links.is-open { display: flex; }
@media (max-width: 899px) {
  .nav-links.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    display: none;
    padding: 0 0 0 12px;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}

/* ---------- 히어로 (좌측 메시지·CTA / 우측 비주얼) ---------- */

.hero-section { padding: 0; }

/* 메인 첫 화면은 브라우저 높이(헤더 제외)를 꽉 채워, 아래 배너는 스크롤해야 보이게 한다.
   내용은 제품 페이지 첫 장처럼 화면 세로 가운데에 둔다 (큰 화면에서 아래가 비지 않게) */
@media (min-width: 960px) {
  .hero-section--full {
    min-height: calc(100vh - 118px);  /* 헤더 73 + 메시지 줄 45 */
    min-height: calc(100svh - 118px);
    display: flex;
    align-items: center;
  }
  .hero-section--full .hero { width: 100%; padding-block: 48px 72px; }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 40px;
  padding-block: 72px 88px;
}

@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 72px;
    padding-block: 104px 120px;
  }
}

.section-eyebrow,
.mono-tag,
.breadcrumb {
  font-family: var(--font-mono);
}

.section-eyebrow::before,
.mono-tag::before,
.breadcrumb::before {
  content: "// ";
  opacity: 0.55;
}

.hero-copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 960px) {
  .hero-copy { flex: 0 0 46%; }
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 48px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  word-break: keep-all;
}

/* 롤링 제목: 이미지마다 큰 단어 하나. 모두 같은 자리에 겹쳐 두어 높이가 바뀌지 않게 한다 */
.hero h1.hero-titles {
  display: grid;
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.hero-title {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero-title.is-active { opacity: 1; transform: none; }

/* 메인 첫 화면 제목: 세 단어를 세로로 쌓고, 지금 차례만 크고 검게 — 나머지는 작고 연한 회색.
   왼쪽 가는 선 위의 주황 막대가 지금 단어 옆에 있다가, 다음 단어 쪽으로 항상 아래로만 내려간다 (맨 아래 다음에는 아래로 빠져나가고 위에서 다시 들어온다).
   .hero-titles--stack 일 때만 적용 — 제품 페이지의 단일 제목(.hero-titles)은 그대로 */
.hero-titles--stack {
  --fa: clamp(48px, 6.3vw, 94px);
  --fs: clamp(28px, 3vw, 46px);
  --gap: clamp(14px, 1.8vw, 26px);
  --indent: clamp(52px, 5.6vw, 84px);
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: var(--gap);
  padding-left: var(--indent);
  font-size: var(--fs);
  line-height: 1.05;
  white-space: nowrap;
}
.hero-titles--stack .hero-title { grid-area: auto; position: relative; display: block; opacity: 1; transform: none; font-size: var(--fs); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; color: #d4d6d5; transition: font-size 0.6s var(--ease), color 0.6s var(--ease), letter-spacing 0.6s var(--ease); }
.hero-titles--stack .hero-title.is-active { font-size: var(--fa); font-weight: 700; letter-spacing: -0.045em; color: #0a0a0a; }
.hero-titles--stack .hero-num { position: absolute; left: calc(var(--indent) * -1 + clamp(26px, 2.6vw, 38px)); top: 0; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; color: #a0a5a4; transition: color 0.6s var(--ease); }
.hero-titles--stack .hero-title.is-active .hero-num { color: var(--accent); }
.hero-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; overflow: hidden; }
.hero-rail::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: #e3e5e4; }
.hero-seg { position: absolute; left: 0; top: 0; width: 3px; height: 40px; background: var(--accent); border-radius: 2px; transform: translateY(-80px); transition: transform 0.6s var(--ease); }
.hero-kicks[hidden] { display: none; }

/* 소개 문장도 같은 방식으로 겹쳐 두고 활성 문장만 보인다 */
.hero-descs { display: grid; margin: 0 0 40px; }
/* 제목 위 진행 화살표 (› → ›› → ›››) — 소개 문장과 같은 방식으로 겹쳐 두고 활성만 보인다 */
.hero-kicks { display: grid; margin: 0 0 18px; }
.hero .hero-kick { grid-area: 1 / 1; display: flex; align-items: center; height: 18px; }
/* 순서 표시 Q — S — S: 작은 글씨 세 개, 지금 차례만 주황 · 나머지는 연한 회색 */
.qss { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; line-height: 1; }
.qss b { color: #c9c4ba; font-weight: 700; transition: color 0.4s var(--ease); }
.qss b.on { color: var(--accent); }
.qss i { width: 18px; height: 1.5px; background: var(--border); }
/* 제목 앞 #1 #2 #3 — 같은 검정, 제목보다 작게 윗선에 맞춘다 */
.hero-num { display: inline-block; font-size: 0.42em; letter-spacing: -0.02em; vertical-align: top; margin: 0.12em 0.22em 0 0; }
.hero .hero-desc {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.1s;
}
.hero .hero-desc.is-active { opacity: 1; }

.hero p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 40px;
  word-break: keep-all;
}

@media (max-width: 959px) {
  .hero p br { display: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-visual { width: 100%; }

@media (min-width: 960px) {
  .hero-visual { flex: 1; }
}

.hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

/* 아트 이미지 배너: 여러 장을 겹쳐 두고 크로스페이드 */
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.hero-slide.is-active { opacity: 1; }

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-dot:hover { opacity: 0.85; }

.hero-dot.is-active {
  background: var(--fg);
  opacity: 1;
  transform: scale(1.15);
}
/* 마우스를 올려 롤링이 멈춘 동안: 지금 점이 멈춤 아이콘(두 줄 ‖)으로 바뀐다 */
.hero-dots.is-paused .hero-dot.is-active {
  width: 8px;
  height: 10px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--fg) 0 3px, transparent 3px 5px, var(--fg) 5px 8px);
  transform: scale(1.2);
}

/* ---------- 히어로 플로우 위젯 (이미지 위 SVG 애니메이션) ---------- */

.hero-flow {
  --f-bg: rgba(208, 199, 217, 0.2);
  --f-border: rgba(255, 255, 255, 0.65);
  --f-fg: #ffffff;
  --f-muted: #ffffff;
  --f-line: #ffffff;
  --f-accent: #000000;
  --f-cycle: 11s;

  position: absolute;
  right: 9.5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(440px, 100%);
  z-index: 2;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--f-bg);
  border: 1px solid var(--f-border);
  pointer-events: none;
  animation: flowIn 0.8s var(--ease) both;
}

/* 히어로 이미지는 테마와 무관하게 밝은 그림이라 다크모드에서도 같은 톤을 유지한다 */

@keyframes flowIn {
  from { opacity: 0; transform: translateY(calc(-50% + 20px)) scale(0.97); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }

.flow-svg text { font-family: var(--font-mono); }
.flow-svg .head-l { font-size: 10px; fill: var(--f-muted); letter-spacing: 0.02em; }
.flow-svg .head-r { font-size: 9.5px; fill: var(--f-accent); text-anchor: end; letter-spacing: 0.02em; }
.flow-svg .foot { font-size: 8.5px; fill: var(--f-muted); text-anchor: end; }

.flow-svg .frame {
  fill: none;
  stroke: var(--f-line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.75;
}

.flow-svg .rail {
  stroke: var(--f-line);
  stroke-width: 1.2;
  stroke-dasharray: 2 4;
  animation: flowDash 1.4s linear infinite;
}

@keyframes flowDash { to { stroke-dashoffset: -6; } }

/* 활성 노드를 따라 내려가는 빛줄기 */
.flow-svg .beam {
  stroke: var(--f-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 16 168;
  stroke-dashoffset: 16;
  opacity: 0.9;
  animation: flowBeam var(--f-cycle) linear infinite;
}

@keyframes flowBeam { to { stroke-dashoffset: -168; } }

/* 노드: 5단계를 순서대로 활성화 (한 주기 = var(--f-cycle)) */
.nd--1 { --f-delay: 0s; }
.nd--2 { --f-delay: 2.2s; }
.nd--3 { --f-delay: 4.4s; }
.nd--4 { --f-delay: 6.6s; }
.nd--5 { --f-delay: 8.8s; }

.flow-svg .dot,
.flow-svg .core,
.flow-svg .ring,
.flow-svg .idx,
.flow-svg .ttl {
  animation-duration: var(--f-cycle);
  animation-delay: var(--f-delay);
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease);
}

.flow-svg .dot {
  fill: var(--f-bg);
  stroke: var(--f-line);
  stroke-width: 1.4;
  animation-name: ndDot;
}

.flow-svg .core {
  fill: var(--f-accent);
  opacity: 0;
  animation-name: ndCore;
}

.flow-svg .ring {
  fill: none;
  stroke: var(--f-accent);
  stroke-width: 6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation-name: ndRing;
}

.flow-svg .idx {
  font-size: 9px;
  fill: var(--f-muted);
  letter-spacing: 0.02em;
  animation-name: ndIdx;
}

.flow-svg .ttl {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--f-fg);
  letter-spacing: -0.01em;
  animation-name: ndTtl;
}

@keyframes ndDot {
  0%, 0.5% { stroke: var(--f-line); stroke-width: 1.4; }
  2%, 19% { stroke: var(--f-accent); stroke-width: 2; }
  21%, 100% { stroke: var(--f-line); stroke-width: 1.4; }
}

@keyframes ndCore {
  0%, 0.5% { opacity: 0; }
  2%, 19% { opacity: 1; }
  21%, 100% { opacity: 0; }
}

@keyframes ndRing {
  0%, 0.5% { opacity: 0; transform: scale(1); }
  3% { opacity: 0.3; transform: scale(1.5); }
  11% { opacity: 0.12; transform: scale(1.9); }
  19% { opacity: 0.26; transform: scale(1.5); }
  21%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes ndIdx {
  0%, 0.5% { fill: var(--f-muted); }
  2%, 19% { fill: var(--f-accent); }
  21%, 100% { fill: var(--f-muted); }
}

@keyframes ndTtl {
  0%, 0.5% { fill: var(--f-fg); }
  2%, 19% { fill: var(--f-accent); }
  21%, 100% { fill: var(--f-fg); }
}

/* ---------- 패널 전환 (슬라이드마다 다른 패널) ---------- */

.hero-panel { display: none; }
.hero-panel.is-active { display: block; }

/* [임시] 히어로 오버레이 애니메이션(플로우·채팅 패널) 숨김
   → 다시 보이게 하려면 아래 한 줄만 주석 처리하면 됩니다. */
.hero-panel, .hero-panel.is-active { display: none !important; }

/* ---------- 채팅 패널 ---------- */

.chat-svg .bubble {
  fill: rgba(255, 255, 255, 0.16);
  stroke: var(--f-border);
  stroke-width: 1;
}

.chat-svg .bubble--ai { fill: rgba(0, 0, 0, 0.18); }

.chat-svg .chat-text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--f-fg);
  letter-spacing: -0.01em;
}

.chat-svg .caret { fill: var(--f-fg); }

.chat-svg .tdot { fill: var(--f-fg); opacity: 0.55; }

.chat-svg .task-dot {
  fill: none;
  stroke: var(--f-line);
  stroke-width: 1.4;
}

.chat-svg .task-check {
  fill: none;
  stroke: var(--f-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
}

.chat-svg .task-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--f-fg);
}

.chat-svg .chat-rail {
  stroke: var(--f-line);
  stroke-width: 1.2;
  stroke-dasharray: 2 4;
  opacity: 0;
  animation: flowDash 1.4s linear infinite, chatFade 0.5s var(--ease) 3.2s forwards;
}

/* 패널이 보일 때(display 전환) 애니메이션이 처음부터 재생된다 */
.chat-svg .msg--user .bubble { animation: chatPop 0.45s var(--ease) 0.15s both; }
.chat-svg .type-clip { animation: chatType 1.8s steps(21, end) 0.35s both; }
.chat-svg .caret { animation: caretMove 1.8s steps(21, end) 0.35s both, caretBlink 0.85s step-end 0.35s 3 both; }
.chat-svg .typing { animation: chatFade 0.3s var(--ease) 2.25s both, chatFadeOut 0.25s var(--ease) 3.0s forwards; }
.chat-svg .msg--ai { animation: chatPop 0.45s var(--ease) 3.05s both; }
.chat-svg .task--1 { animation: chatFade 0.45s var(--ease) 3.7s both; }
.chat-svg .task--2 { animation: chatFade 0.45s var(--ease) 4.5s both; }
.chat-svg .task--3 { animation: chatFade 0.45s var(--ease) 5.3s both; }
.chat-svg .task--1 .task-check { animation: checkDraw 0.4s var(--ease) 4.0s both; }
.chat-svg .task--2 .task-check { animation: checkDraw 0.4s var(--ease) 4.8s both; }
.chat-svg .task--3 .task-check { animation: checkDraw 0.4s var(--ease) 5.6s both; }
.chat-svg .task--1 .task-dot { animation: dotDone 0.4s var(--ease) 4.0s both; }
.chat-svg .task--2 .task-dot { animation: dotDone 0.4s var(--ease) 4.8s both; }
.chat-svg .task--3 .task-dot { animation: dotDone 0.4s var(--ease) 5.6s both; }
.chat-svg .tdot--1 { animation: chatDot 1.1s ease-in-out infinite; }
.chat-svg .tdot--2 { animation: chatDot 1.1s ease-in-out 0.15s infinite; }
.chat-svg .tdot--3 { animation: chatDot 1.1s ease-in-out 0.3s infinite; }

@keyframes chatType { from { width: 0; } }
@keyframes caretMove { from { x: 112px; } }
@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes chatPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chatFadeOut { to { opacity: 0; } }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
@keyframes dotDone { to { stroke: var(--f-accent); stroke-width: 2; } }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 0.9; transform: translateY(-2px); }
}

.chat-svg .msg,
.chat-svg .typing,
.chat-svg .task { transform-box: fill-box; transform-origin: center; }

.chat-svg .tdot { transform-box: fill-box; transform-origin: center; }

@media (max-width: 959px) {
  .hero-flow { width: min(440px, 88%); right: 6%; padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-flow { animation: none; }
  .chat-svg *,
  .flow-svg .rail,
  .flow-svg .beam,
  .flow-svg .dot,
  .flow-svg .core,
  .flow-svg .ring,
  .flow-svg .idx,
  .flow-svg .ttl { animation: none !important; }
  .flow-svg .beam { opacity: 0; }
}

/* ---------- 섹션 공통 ---------- */

section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.3;
}

.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.section-head--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}


/* ---------- 제품 그리드 ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  overflow: visible;
}
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  background: var(--card-bg);
}

.card:hover { border-color: var(--fg); transform: translateY(-4px); }

.card-media {
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .card-link { font-size: 14px; font-weight: 600; }
.card .card-link::after { content: " \2192"; }

/* ---------- 스테이트먼트 배너 ---------- */

.statement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 110px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.statement--photo {
  position: relative;
  /* 밝은 하늘 이미지라 글씨는 어두운 색으로 */
  background: #eef2f8 url("../images/IMG7.png") center / cover no-repeat;
  isolation: isolate;
  color: var(--black);
}
.statement--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 글씨가 놓이는 가운데만 은은하게 밝혀 가독성을 높인다 */
  background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}
.statement--photo .container { position: relative; z-index: 1; }
.statement--photo blockquote { color: var(--black); }
.statement--photo cite { color: var(--gray-600); }
.statement blockquote {
  margin: 0 auto;
  max-width: 780px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.statement cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-400);
}

/* ---------- 스테이트먼트 (아이보리 배경, 가운데 정렬) ---------- */

.quote-section {
  /* 크림색 붓 터치 질감 — 원본 크기 그대로 이어 붙여 늘어나 흐려지지 않게 */
  background: #f7f3ea url("../images/BG.jpg") center / 1254px auto repeat;
  padding: 48px 0;
}
.quote-block {
  position: relative;
  margin: 0 auto;
  width: min(100%, 58vw); /* 전체 화면의 약 55~60% */
  text-align: center;
}
.quote {
  margin: 0;
  color: var(--black);
  font-size: clamp(26px, 2.1vw, 44px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.04em;
  text-align: center;
  word-break: keep-all;
}
.quote-author {
  margin-top: 22px;
  color: #73849a;
  font-size: 15px;
}
@media (max-width: 760px) {
  .quote-block { width: 100%; }
  .quote br { display: none; }
  .quote-section { padding: 56px 0 44px; }
}

/* ---------- Art of Solution: 그림을 완성하는 과정 = 솔루션을 완성하는 과정 (5단계) ----------
   가운데 제목 + 왼쪽 이미지 / 오른쪽 두 과정. 1→5번이 아래로 차례로 주황으로 켜지고(.is-on), 끝나면 모두 원래 색으로 돌아가 다시 1번부터 */
.af2 { margin-top: clamp(40px, 5vw, 80px); padding: clamp(56px, 6vw, 96px) 0 clamp(96px, 10vw, 160px); } /* 아래 흰 여백을 넉넉히 — 다음 파트너 띠(질감 배경)와 간격이 좁아 보이지 않게 */
.af2-head { text-align: center; margin-bottom: clamp(32px, 4vw, 60px); }
.af2-kicker { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.af2-title { margin: 0; font-size: clamp(32px, 3.7vw, 56px); font-weight: 700; line-height: 1.18; letter-spacing: -0.04em; color: #1d1d1f; word-break: keep-all; }
.af2-title .dot { color: var(--accent); }
.af-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.af-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-ui, 10px); }  /* 양옆 이미지는 같은 크기·같은 비율 */
.af-flow { --row-h: clamp(48px, 4.4vw, 62px); --row-gap: clamp(14px, 1.6vw, 22px); --seg: calc(var(--row-h) + var(--row-gap) - 28px); display: grid; width: 100%; max-width: 540px; justify-self: center; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-rows: auto repeat(5, var(--row-h)) auto; row-gap: var(--row-gap); align-items: center; }
.af-hd { margin: 10px 0 0; font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; letter-spacing: -0.02em; }
.af-hd.a { grid-row: 1; grid-column: 1; text-align: right; color: #1d1d1f; }
.af-hd.s { grid-row: 1; grid-column: 3; text-align: left; color: var(--accent); }
.af-hdline { grid-row: 1; grid-column: 2; justify-self: center; width: 1px; height: 22px; background: #e0e0e5; }
.af-line { grid-column: 2; grid-row: 2 / span 5; justify-self: center; align-self: stretch; margin-block: calc(var(--row-h) / 2); width: 1px; background: #e0e0e5; }
.af-step { display: contents; }
.af-art, .af-sol { display: grid; gap: 3px; grid-row: var(--r); }
.af-art { grid-column: 1; text-align: right; }
.af-sol { grid-column: 3; text-align: left; }
.af-art b, .af-sol b { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; letter-spacing: -0.03em; color: #1d1d1f; transition: color 0.5s var(--ease); }
.af-art small, .af-sol small { display: none; font-size: clamp(11px, 0.9vw, 12.5px); font-weight: 400; color: #86868b; word-break: keep-all; } /* 작은 설명 글씨는 우선 숨김 — display를 지우면 다시 보인다 */
/* 아래로 내려가는 주황 선: 번호 사이를 위에서 아래로 그려지고(앞 끝이 다음 번호에 닿으면) 곧바로 뒤쪽부터 지워진다.
   그 사이 다음 번호가 주황으로 켜진다. 선은 남지 않고, 항상 아래로만 움직인다 */
.af-no::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; margin-left: -1px; height: var(--seg); background: var(--accent); clip-path: inset(0 0 100% 0); z-index: -1; }
@keyframes afTravel { 0% { clip-path: inset(0 0 100% 0); } 50% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(100% 0 0 0); } }
.af-step.is-travel .af-no::after { animation: afTravel 1s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
.af-step:last-of-type .af-no::after { display: none; }
.af-no { grid-column: 2; grid-row: var(--r); position: relative; z-index: 1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid #cfcfd4; font-size: 10.5px; font-weight: 700; color: #6e6e73; transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.af-step.is-on .af-no { transition-delay: 0.45s; background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(255, 90, 31, 0.16); }
.af-step.is-on .af-sol b { color: var(--accent); transition-delay: 0.45s; }
.af-foot { grid-row: 7; grid-column: 1 / -1; margin: clamp(10px, 1.4vw, 20px) 0 0; text-align: center; font-size: 13px; color: #6e6e73; }
.af-foot b { color: var(--accent); font-weight: 700; }

/* 스크롤하면 제목 → 본문이 차례로 올라온다 */
.af2 [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.af2 [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .af-wrap { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .af-photo--a { grid-row: 1; grid-column: 1; }
  .af-photo--b { grid-row: 1; grid-column: 2; }
  .af-flow { grid-row: 2; grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .af2 [data-reveal] { opacity: 1; transform: none; transition: none; }
  .af-art b, .af-sol b, .af-no { transition: none; }
}

/* ---------- 뉴스 목록 ---------- */

.news-list { display: grid; gap: 20px; }
.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.news-item:last-child { border-bottom: 1px solid var(--border); }
.news-date { color: var(--muted-2); font-family: var(--font-mono); font-size: 13px; }
.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.news-tag::before { content: "// "; opacity: 0.6; }
.news-item h3 { font-family: var(--font-serif); font-weight: 600; margin: 0 0 6px; font-size: 19px; }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
.news-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 보도 기사 원문 링크 */
.news-src { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--border); }
.news-src:hover { border-color: var(--fg); }

/* ---------- 뉴스 라인 목록 (메인 전용) ---------- */

.news-line-list { display: flex; flex-direction: column; }
.news-line-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  border-top: 1px solid var(--border);
  color: var(--fg);
  transition: opacity 0.2s var(--ease);
}
.news-line-list a.news-line-item:last-child { border-bottom: 1px solid var(--border); }
.news-line-item:hover { opacity: 0.62; }
.news-line-date {
  flex: 0 0 auto;
  width: 96px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 13px;
}
.news-line-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.news-line-title {
  flex: 1;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.news-line-arrow {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .news-line-item { flex-wrap: wrap; gap: 8px 16px; padding: 18px 4px; }
  .news-line-date { width: auto; order: 1; }
  .news-line-tag { order: 2; }
  .news-line-title { order: 4; flex-basis: 100%; }
  .news-line-arrow { order: 3; margin-left: auto; }
}

/* ---------- 고객사 & 파트너 ---------- */

/* 섹션 배경: 연한 유화 질감 패턴(images/bg-partners.jpg)을 작은 타일(500px)로 이어 붙인다 — 큰 그림을 늘리지 않아서 붓 결이 일그러지지 않는다.
   위아래는 번지지 않고 반듯하게 잘려, 앞뒤 섹션과 공간이 나뉜다. 카드는 반투명 흰색으로 글자를 또렷하게 */
.logo-wall-section {
  padding: clamp(56px, 6vw, 96px) 0;
  background: #f7f6f3 url("../images/bg-partners.jpg") center top / 500px auto repeat;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 720px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .logo-wall { grid-template-columns: repeat(5, 1fr); }
}
.logo-wall-item {
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.logo-wall-item:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- CTA 배너 ---------- */

.cta-banner {
  position: relative;
  background: var(--bg-elevated) url("../images/10.png") center / cover no-repeat;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  z-index: 0;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 3.6vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--black);
}
.cta-banner p { color: rgba(10, 10, 10, 0.72); margin: 0 0 28px; }
.cta-banner .en-emphasis { font-weight: 700; }

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } }
.footer-col h4 a { color: inherit; }
.footer-brand p { word-break: keep-all; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--fg); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 30ch; }
/* 푸터 회사 정보 줄 (대표 · 사업자등록번호 · 주소 · 전화 · 이메일) */
.footer-info { list-style: none; margin: 8px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); }
.footer-info li + li::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: var(--border); vertical-align: -1px; }
.footer-info a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-info a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 12px;
}
.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--fg); }

/* ---------- 내부 페이지 히어로 ---------- */

.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(30px, 4.8vw, 46px);
  letter-spacing: -0.01em;
  margin: 12px 0 16px;
  line-height: 1.25;
}
.page-hero p { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0; }
.page-hero .hero-actions { justify-content: center; margin-top: 24px; }

.breadcrumb {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fg); }

/* ---------- 기능 카드 (제품 상세) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}
.feature-card h3 { font-family: var(--font-serif); font-weight: 600; margin: 0 0 10px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 폼 (고객지원) ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 640px;
}
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--fg); }
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--fg);
  background: var(--bg);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--fg);
}
.form-row textarea { min-height: 140px; resize: vertical; }

/* ---------- FAQ 아코디언 ---------- */

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--fg);
}
.faq-question .icon { transition: transform 0.2s var(--ease); font-size: 20px; color: var(--muted-2); }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
}
.faq-answer p { margin: 0 0 22px; color: var(--muted); font-size: 15px; max-width: 65ch; }
.faq-item.is-open .faq-answer { max-height: 200px; }

/* ---------- 유틸리티 ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mono-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- 약관/개인정보처리방침 페이지 ---------- */

.legal-section { padding: 56px 0 96px; }
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.legal-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.legal-content ul,
.legal-content ol {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 13.5px;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
.legal-content th {
  background: var(--bg-elevated);
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}
.legal-effective {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
  margin: 0 0 40px;
}
.legal-contact {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13px;
}

/* =========================================================
   아코디언 슬라이드 (Company · Products … 공통)
   · 접힌 패널: 회색톤(흑백) 이미지 + 가운데 회색 제목
   · 펼친 카드: 카드 전체를 채우는 컬러 이미지 + 아래쪽 반투명 흰 판 위에 제목 · 설명 · More 링크
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container--wide { max-width: 1600px; }

/* 슬라이드 높이를 콘텐츠 폭 기준으로 계산하기 위한 기준 상자 */
.index-main > .container { container-type: inline-size; }

.index-main {
  /* 메인 히어로(.hero)와 같은 위아래 간격 */
  padding: 72px 0 88px;
  --ease-slide: cubic-bezier(0.22, 0.9, 0.24, 1);
  --radius-slide: 10px;
  --slide-pad: 32px;

  /* 애니메이션 속도 — 되돌리려면 괄호 안의 이전 값으로 바꾸면 된다 */
  --dur-slide: 0.5s;   /* 패널 넓어짐 (이전 0.72s) */
  --dur-fade: 0.4s;    /* 이미지 나타남 (이전 0.6s) */
  --dur-text: 0.35s;   /* 제목 · 설명 · 링크 (이전 0.5s) */
  --delay-sub: 0.06s;  /* 설명 글 대기 (이전 0.1s) */
  --delay-more: 0.1s;  /* 링크 대기 (이전 0.16s) */

  --pn-rest-bg: #efefef;
  --pn-mono: grayscale(1) contrast(0.7) brightness(1.15); /* 접힌 패널 이미지 회색톤 */
  --pn-label-rest: #6f6f6f;
  --pn-panel: rgba(255, 255, 255, 0.75);                   /* 펼친 카드 글씨 밑 반투명 흰 판 */
}

@media (min-width: 960px) {
  .index-main { padding: 104px 0 120px; }
}

/* 페이지 메시지 — 얇고 작은 글씨, 가운데 정렬 */
.page-intro {
  margin: 0 0 64px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
  word-break: keep-all;
}

.slides {
  --slide-count: 5; /* 패널 개수 — 페이지마다 HTML에서 지정 (Company 5, Products 4 …) */
  display: flex;
  gap: 8px;
  /* 메인 히어로 이미지와 같은 높이 — 메인 이미지는 콘텐츠 폭(100cqw)에서
     왼쪽 글 영역(46%)과 간격(72px)을 뺀 정사각형이다 */
  height: calc(100cqw * 0.54 - 72px);
  container-type: inline-size;
}

.slide {
  /* 펼친 카드의 너비 (패널 --slide-count개 · 간격 8px · 펼친 카드 flex-grow 2.7 기준).
     이미지와 글을 이 너비로 고정해, 넓어지는 동안 크기나 줄바꿈이 바뀌지 않는다. */
  --open-w: calc((100cqw - (var(--slide-count) - 1) * 8px) * 2.7 / (var(--slide-count) - 1 + 2.7));
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-slide);
  overflow: hidden;
  background: var(--pn-rest-bg);
  color: var(--fg);
  transition: flex-grow var(--dur-slide) var(--ease-slide),
              background var(--dur-fade) var(--ease),
              border-color var(--dur-fade) var(--ease);
}

/* --- 이미지 (카드 전체) --- */

.slide__media { position: absolute; inset: 0; overflow: hidden; }

/* 이미지를 펼친 카드 너비로 고정하고 왼쪽에 붙인다.
   접힌 패널에서는 이미지의 왼쪽 부분이 보이고, 펼치면 오른쪽이 드러난다. */
.slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--open-w);
  max-width: none;
  height: 100%;
  object-fit: cover;
  /* 이미지 위쪽(별·하늘)이 잘리지 않도록 위를 기준으로 맞춘다. 패널별로 바꾸려면 HTML에서 --img-pos 지정 */
  object-position: var(--img-pos, center top);
  filter: var(--pn-mono);
  transition: filter var(--dur-fade) var(--ease);
}

/* --- 글 영역 (이미지 아래쪽에 겹치는 반투명 판) --- */

.slide__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: var(--open-w);
  padding: 28px var(--slide-pad) 30px;
  background: var(--pn-panel);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fade) var(--ease);
}

.slide__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.24;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-text) var(--ease), transform var(--dur-text) var(--ease);
}

.slide__sub {
  /* 메인 히어로 소개 문장(.hero p)과 같은 17px */
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  word-break: keep-all;
  color: var(--fg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-text) var(--ease) var(--delay-sub), transform var(--dur-text) var(--ease) var(--delay-sub);
}

.slide__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-text) var(--ease) var(--delay-more), transform var(--dur-text) var(--ease) var(--delay-more);
}
.slide__more svg { transition: transform 0.35s var(--ease); }
.slide:hover .slide__more svg { transform: translateX(4px); }

/* --- Products 제품 카드 설명: Question · Solution · Satisfaction 세 줄 --- */
.slide__qss { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.slide__qss li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.55; }
/* 반투명 흰 바탕 위 작은 주황 글씨는 잘 안 보여서 — 글씨는 검정, 주황은 앞의 작은 막대로만 */
.slide__qss b { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--fg); white-space: nowrap; }
.slide__qss b::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }

/* --- Products 맨 앞 Tabion 소개 카드: 링크 없이, 그림을 살린 채 카드 전체에 글을 얹는다 ---
   그림(19.png, 별 천창이 있는 돔 홀)은 그대로 보이고, 위·아래만 흰빛을 옅게 깔아 검은 글씨가 읽힌다.
   위: "VICS가 만드는 것" 한 문장 / 아래: 큰 Tabion 이름 + 한 문장 */
.slide--intro { cursor: default; }
.slide--intro .slide__img { transform: scale(1.04); }
.slide__content--full {
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 3.6vw, 52px) var(--slide-pad) clamp(32px, 3.6vw, 48px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.45) 62%, rgba(255, 255, 255, 0.92) 100%);
  color: var(--fg);
}
.slide__intro-k { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); opacity: 0; transition: opacity var(--dur-text) var(--ease); }
.slide__intro-k::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.slide.is-on .slide__intro-k, .slide:focus-visible .slide__intro-k { opacity: 1; }
.slide__content--full .slide__sub { margin: 0; max-width: 34em; color: var(--fg); font-size: clamp(16px, 1.35vw, 19px); font-weight: 600; line-height: 1.6; }
.slide__content--full .slide__intro-name { margin: 0 0 14px; font-size: clamp(56px, 6.4vw, 104px); line-height: 0.95; letter-spacing: -0.035em; color: var(--fg); }  /* 자간은 메인 큰 제목(.hero-titles)과 같게 */
.slide__intro-name .tw-dot { color: var(--accent); }
/* 소개 카드가 펼쳐질 때 차례로: 머리말 → 첫 문장 → Tabion(서서히) → 마지막 문장
   (카드가 다시 펼쳐지면 .is-on이 새로 붙어 처음부터 다시 재생, 이전 타자 효과는 products-v-typing.html) */
@keyframes introIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes nameIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.slide--intro .slide__intro-k,
.slide--intro .slide__sub { opacity: 0; transform: translateY(10px); transition: none; }
.slide--intro.is-on .slide__intro-k { animation: introIn 0.7s var(--ease) 0.15s both; }
.slide--intro.is-on .slide__intro-block:first-child .slide__sub { animation: introIn 0.7s var(--ease) 0.45s both; }
.slide--intro .slide__intro-name { opacity: 0; transform: none; transition: none; white-space: nowrap; }
.slide--intro.is-on .slide__intro-name { animation: nameIn 1.3s var(--ease) 0.9s both; }
.slide--intro.is-on .slide__intro-block + .slide__intro-block .slide__sub { animation: introIn 0.7s var(--ease) 1.8s both; }
@media (prefers-reduced-motion: reduce) {
  .slide--intro .slide__intro-k, .slide--intro .slide__sub, .slide--intro .slide__intro-name { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* --- 접힌 상태 제목 (패널 가운데) --- */

.slide__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all; /* 긴 제품명은 좁은 패널에서 두 줄로 */
  color: var(--pn-label-rest);
  transition: opacity var(--dur-text) var(--ease);
}

/* --- 활성(확장) 상태: JS의 .is-on, 키보드 포커스 --- */

.slide.is-on,
.slide:focus-visible {
  flex-grow: 2.7;
  background: var(--bg);
  border-color: var(--border);
}
.slide:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.slide.is-on .slide__img, .slide:focus-visible .slide__img { filter: none; }
.slide.is-on .slide__content, .slide:focus-visible .slide__content { opacity: 1; }
.slide.is-on .slide__content, .slide:focus-visible .slide__content { pointer-events: auto; }
.slide.is-on .slide__label, .slide:focus-visible .slide__label { opacity: 0; }
.slide.is-on .slide__title, .slide:focus-visible .slide__title,
.slide.is-on .slide__sub, .slide:focus-visible .slide__sub,
.slide.is-on .slide__more, .slide:focus-visible .slide__more { opacity: 1; transform: translateY(0); }

/* 태블릿: 3개씩 두 줄 — 패널 너비가 거의 변하지 않으므로 패널에 꽉 채운다 */
@media (max-width: 1180px) {
  .index-main { --slide-pad: 24px; }
  .slides { flex-wrap: wrap; height: auto; gap: 12px; }
  .slide { --open-w: 100%; flex: 1 1 calc(33.333% - 8px); height: clamp(460px, 60vw, 600px); }
  .slide.is-on { flex-grow: 2.2; }
  .slide__title { white-space: normal; }
}

/* 모바일: 세로로 쌓고 전부 펼친 상태 */
@media (max-width: 760px) {
  .index-main { --slide-pad: 22px; }
  .slides { flex-direction: column; gap: 12px; }
  .slide, .slide.is-on { flex: 0 0 auto; height: auto; aspect-ratio: 3 / 4; }
  .slide__content { width: 100%; }
}

/* ---------- News: 헤드라인 카드 슬라이드 + 아래 목록 ---------- */

/* 낮은 카드 슬라이드 (News · Tip 공통) — Company · Products 높이의 약 2/3 */
.slides--compact { height: calc((100cqw * 0.54 - 72px) * 0.65); }

/* 낮아진 카드에 맞춰 글 영역을 작게 — 제목은 줄바꿈 허용, 설명은 2줄까지 */
.slides--compact .slide__content { padding: 18px var(--slide-pad) 20px; }
.slides--compact .slide__meta { margin-bottom: 6px; font-size: 12px; }
.slides--compact .slide__title {
  white-space: normal;
  word-break: keep-all;
  font-size: clamp(18px, 1.4vw, 22px);
  margin-bottom: 8px;
}
.slides--compact .slide__sub {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slides--compact .slide__more { font-size: 14px; }
.slides--compact .slide__label { font-size: clamp(15px, 1.2vw, 18px); }
.slide__meta {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--dur-text) var(--ease);
}
.slide.is-on .slide__meta, .slide:focus-visible .slide__meta { opacity: 1; }

/* 헤드라인 아래에 바로 목록이 오므로 아래 여백은 줄인다 */
.index-main--headline { padding-bottom: 72px; }

.news-list-section { padding-top: 0; }
.news-list-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.news-item { scroll-margin-top: 96px; }

/* ---------- 카테고리 필터 탭 (Tip) ---------- */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.filter-tab {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-tab:hover { border-color: var(--fg); color: var(--fg); }
.filter-tab.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.news-item[hidden] { display: none; }

/* ---------- Contact Us: 왼쪽 폼 / 오른쪽 아트 이미지 ---------- */

/* 폼 전체 높이를 오른쪽 이미지(정사각형) 높이와 맞춘다 —
   왼쪽 칸이 이미지 높이만큼 늘어나고, 문의 내용 칸이 남는 높이를 채운다 */
.contact-hero { align-items: stretch; }
.contact-hero .hero-copy { display: flex; flex-direction: column; }
.contact-hero h1 { margin-bottom: 18px; }
.hero .contact-lead { margin: 0 0 22px; }

.contact-art { width: 100%; height: 100%; object-fit: cover; }

.contact-form { display: flex; flex-direction: column; gap: 12px; flex: 1; width: 100%; }
.contact-form .form-row { gap: 6px; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-row--grow { flex: 1; grid-template-rows: auto 1fr; }
.contact-form .form-row--grow textarea { height: 100%; min-height: 68px; resize: none; }
.contact-form .req { color: var(--accent); }
.contact-form select:invalid { color: var(--muted-2); }

@media (max-width: 560px) {
  .form-pair { grid-template-columns: 1fr; }
}

.form-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input { width: 18px; height: 18px; accent-color: var(--fg); }
.form-consent a { color: var(--fg); text-decoration: underline; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); }

/* =========================================================
   제품 페이지 좌우 슬라이드 틀 (Tabion Yurika · AgentWorks 공통)
   · 사이트 헤더(73px) 아래 화면을 꽉 채우고 좌우로 넘긴다 — 동작은 js/main.js (#ykTrack)
   · 첫 화면은 메인 히어로와 같은 배치 (왼쪽 제목·설명·버튼 / 오른쪽 아트 이미지)
   ========================================================= */

/* 슬라이드 위 표시줄 — 제품명 · 쪽수 · 현재 장 제목 (넘겨도 항상 보인다) */
.yk-bar { background: var(--bg); }  /* 아래 선 없음 — 높이는 줄 안쪽 45px로 유지 */
.yk-bar-inner { display: flex; align-items: center; gap: 14px; height: 45px; font-size: 13px; color: var(--muted); }
.yk-bar-name { font-weight: 700; color: var(--yk-accent, var(--blue)); }
.yk-bar-inner span + span::before { content: "·"; margin-right: 14px; color: var(--muted-2); }
/* 회사 메시지는 왼쪽, 위치(제품명 · 쪽수 · 장 제목)는 오른쪽으로 */
.yk-bar-msg { margin-right: auto; padding-right: 24px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.yk-bar-inner .yk-bar-msg + span::before { content: none; }
.yk-bar-inner > span:not(.yk-bar-msg) { flex: none; }
.yk-bar-num { font-variant-numeric: tabular-nums; }

/* 제품 카테고리(main.js): 슬라이드 위쪽 가운데 — 위치 표시 줄 바로 아래 */
.yk-cats { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5; }
/* 제품 카테고리: 테두리형 알약 — 다른 제품은 회색, 지금 제품은 그 브랜드 색 */
.yk-cats { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.yk-cat { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 11px; border: 1px solid #dcd8d1; border-radius: 100px; color: #8a867f; font-size: 12px; font-weight: 600; white-space: nowrap; transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.yk-cat:hover { color: var(--cat, var(--fg)); border-color: var(--cat, var(--fg)); }
.yk-cat.is-on { color: var(--cat); border-color: var(--cat); background: color-mix(in srgb, var(--cat) 7%, transparent); font-weight: 700; }
.yk-cat--all svg { fill: none; stroke: currentColor; stroke-width: 1.1; }
.yk-cat--all { margin-right: 4px; }
/* 카테고리 자리만큼 슬라이드 내용을 조금 아래로 (아래 여백을 줄여 내용 높이는 거의 그대로)
   제품별 css(aiops·incident·yurika-page)의 낮은 화면 여백(28/60px)보다 우선하도록 클래스를 겹쳐 쓴다 */
@media (min-width: 901px) { .yk-stage.yk-stage:has(.yk-cats) .yk-slide.yk-slide { padding-top: 66px; padding-bottom: 54px; } }
@media (min-width: 901px) and (max-height: 860px) { .yk-stage.yk-stage:has(.yk-cats) .yk-slide.yk-slide { padding-top: 60px; padding-bottom: 46px; } }
/* 노트북 720px 높이: 내용이 많은 장이 카테고리·점과 닿지 않게 내용을 살짝 줄인다 */
@media (min-width: 901px) and (max-height: 740px) { .yk-stage:has(.yk-cats) .yk-slide > .container { zoom: 0.92; } }
/* 낮은 화면: 카테고리를 더 위로, 조금 작게 */
@media (max-height: 800px) {
  .yk-cats { top: 8px; }
  .yk-cat { height: 24px; font-size: 11.5px; }
}

/* 헤더(73px)와 표시줄(45px, 회사 메시지 + 위치) 아래 화면을 꽉 채운다 */
.yk-stage { position: relative; height: calc(100vh - 118px); height: calc(100svh - 118px); overflow: hidden; }
.yk-track { display: flex; height: 100%; transition: transform 0.55s var(--ease); }
.yk-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  padding: 48px 72px 72px; /* 좌우는 화살표 자리, 아래는 점 표시 자리 */
}
.yk-slide > .container { width: 100%; }
.yk-slide .hero { padding-block: 0; width: 100%; }
/* 가로로 넘길 때는 표시줄 아래 선 하나만 보이게 — 장 사이 구분선은 세로로 쌓이는 모바일에서만 */
.yk-sec--tint { background: var(--bg-elevated); }

/* 설명 글자는 탁한 제품색 대신 검정으로 — 제품색은 제목 강조·소제목·아이콘에만 남긴다
   (yurika.css보다 뒤에 적용되도록 main.yk로 한 단계 더 구체적으로 지정) */
main.yk .qbar, main.yk .sub .hl, main.yk .vglabel, main.yk .gwout, main.yk .chatm .cq,
main.yk .filetree .ft-h, main.yk .govstrip span, main.yk .docchips .hwp, main.yk .stepbar .stp.on,
main.yk .cmpbar .cb.yes .v, main.yk .mg.int, main.yk .cfgc .ct, main.yk .internal .zl,
main.yk .zone.closed .zt, main.yk .sectag, main.yk .result, main.yk .win-side .folder b,
main.yk .cmptable .yur, main.yk .stat .n, main.yk .minostat .ms .n, main.yk .minostat .ms .n .u,
main.yk .chatm .src .s, main.yk .gate .gl, main.yk .badge-pill { color: var(--ink); }

/* 마지막 장 안내: 한 번 더 넘기면 Products로 */
.yk-exit-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translate(-50%, 6px);
  z-index: 5;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.yk-exit-hint b { color: var(--fg); }
.yk-exit-hint span { display: inline-block; animation: ykHintNudge 1.6s var(--ease) infinite; }
.yk-exit-hint.is-on { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.5s; }
@keyframes ykHintNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* 넘어갈 때 화면이 살짝 밀려나며 사라진다 */
body.yk-leaving .yk-track { transition: transform 0.32s var(--ease), opacity 0.32s var(--ease); opacity: 0; }

.yk-arw {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.yk-arw:hover { border-color: var(--fg); }
.yk-arw:disabled { opacity: 0.3; cursor: default; }
.yk-arw:disabled:hover { border-color: var(--border); }
/* 마지막 장의 오른쪽 화살표 = Products로 이동 */
.yk-arw.is-exit { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.yk-arw.prev { left: clamp(12px, 2vw, 28px); }
.yk-arw.next { right: clamp(12px, 2vw, 28px); }
.yk-arw svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yk-dots { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.yk-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--muted-2); cursor: pointer; transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.yk-dots button.is-on { width: 24px; background: var(--fg); }

/* 첫 화면 */
.yk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yk-accent, var(--blue));
}
.yk-kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.yk-hero .yk-lead { color: var(--muted); }
.yk-hero-art { width: 100%; height: 100%; object-fit: cover; }

/* 모바일: 슬라이드를 세로로 쌓는다 */
@media (max-width: 900px) {
  .yk-bar { display: none; }
  .yk-stage { height: auto; overflow: visible; }
  .yk-track { display: block; transform: none !important; }
  .yk-slide { height: auto; padding: 56px 0; }
  .yk-arw, .yk-dots, .yk-exit-hint, .yk-cats { display: none; }
  .yk-sec { border-top: 1px solid var(--border); }
}

/* ---------- 헤더 아래 회사 메시지 줄 (제품 페이지 외 모든 페이지 · main.js가 넣는다) ----------
   제품 페이지의 위치 표시 줄(.yk-bar)과 같은 높이(44px + 선 1px)·글자 */
.site-msgbar { background: var(--bg); }  /* 아래 선 없음 */
.site-msgbar .container { display: flex; align-items: center; height: 45px; }
.site-msgbar p { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .site-msgbar .container { height: auto; padding-block: 10px; }
  .site-msgbar p { white-space: normal; font-size: 12px; line-height: 1.5; }
}
/* 오른쪽 아래 이전 버튼 (js/main.js가 만든다) */
.back-btn { position: fixed; right: clamp(16px, 2vw, 32px); bottom: clamp(16px, 3vh, 32px); z-index: 95; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--border-strong, #d4d4d8); border-radius: 100px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); color: var(--fg, #111); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.back-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateX(-2px); }
.back-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .back-btn { height: 40px; padding: 0 14px 0 12px; } }

/* 이전 버튼: 어디서든 잘 보이는 주황 동그라미 + 푸터 앞에서 멈춤 (2026-10-08) */
.back-btn { width: 46px; height: 46px; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: var(--accent); color: #fff; backdrop-filter: none; box-shadow: 0 8px 22px rgba(255, 90, 31, 0.38); bottom: calc(clamp(16px, 3vh, 32px) + var(--back-lift, 0px)); }
.back-btn span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.back-btn svg { width: 20px; height: 15px; }
.back-btn:hover { background: #111; color: #fff; border-color: transparent; transform: translateX(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); }
/* 이전 버튼에는 검정을 쓰지 않는다 — 마우스를 올려도 주황(조금 진하게) */
.back-btn:hover { background: color-mix(in srgb, var(--accent) 82%, #000); box-shadow: 0 8px 22px rgba(255, 90, 31, 0.45); }
/* 이전 버튼: 그림자 없음 */
.back-btn, .back-btn:hover { box-shadow: none; }
