/* ============================================================
   CY Autotech — Components (Apple-inspired). 클래스 API는 기존과 동일.
   ============================================================ */

/* ---------- Buttons (Apple pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.7rem 1.4rem; font-size: var(--fs-body); font-weight: 500; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { background: transparent; color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 35%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.u-dark .btn--ghost { color: #2997ff; border-color: rgba(255,255,255,0.28); }
.btn--lg { padding: 0.95rem 1.9rem; font-size: var(--fs-body-lg); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.22rem 0.7rem; font-size: var(--fs-caption); font-weight: 600;
  letter-spacing: var(--tracking-wide); border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.badge--accent { color: var(--color-accent); border-color: color-mix(in srgb, var(--color-accent) 40%, transparent); }
.badge--soon { color: var(--color-warning); border-color: color-mix(in srgb, var(--color-warning) 45%, transparent); }

/* 다크 섹션 뱃지 가독성 — 인디고 accent 가 네이비/딥블랙 배경에 묻히는 문제(대비 ~1.8) 개선.
   accent 뱃지는 채워진 파란 알약(흰 글자)으로, 일반 뱃지는 보더·글자를 밝게. (라이트 페이지엔 무영향) */
.u-dark .badge,
.card--dark .badge {
  color: #e6ebf5;
  border-color: rgba(255, 255, 255, 0.34);
}
/* 채용 상세 다크 히어로의 직무 메타 뱃지(부문·고용형태·근무지) — 어두운 muted 글자가 묻히던 문제.
   반투명 흰 알약 + 밝은 글자로 또렷하게(accent 뱃지는 아래 규칙으로 흰 알약 유지). */
.page-hero .job-meta .badge {
  color: #eef2fb;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
}
/* accent 뱃지: 파란 알약(파랑 배경 위에서 묻힘) 대신 흰 알약 + 인디고 글자 — 네이비/블루 카드/히어로 어디서나 또렷.
   .chip-list 배경 규칙(0,3,0)을 이기도록 chip-list 셀렉터도 명시. */
.u-dark .badge--accent,
.u-dark .chip-list .badge--accent,
.card--dark .badge--accent,
.page-hero .chip-list .badge--accent,
.page-hero .badge--accent {
  color: var(--color-accent);
  background: #fff;
  border-color: #fff;
}
/* 다크 섹션 전경(텍스트) accent 가독성 — eyebrow·카드 링크·"+" 불릿·인라인 링크가
   인디고 #3b4ef8 그대로라 네이비/딥블랙에서 대비 ~1.8 로 잘 안 보이던 문제(밝은 인디고로 상향) */
.u-dark .section-head__eyebrow,
.u-dark .card__link,
.card--dark .card__link,
.u-dark .feature__list li::before,
.u-dark .stat__num,
.card--dark .stat__num,
.u-dark .prose a,
.u-dark .card__text a {
  color: #aeb8ff;
}

/* ---------- Header / GNB (light translucent Apple bar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--color-text);
  transition: background var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.9); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 56px; }
.site-header__brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--color-text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--radius-sm); background: var(--color-primary); color: #fff;
  font-weight: 800; font-family: var(--font-display); font-size: 0.85rem;
}
.brand-name { font-size: 1rem; }
.brand-name small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: var(--tracking-wide); color: var(--color-text-muted); }
/* 회사 로고 이미지 (씨와이오토텍, 태그라인 포함) — 텍스트 마크 대체 */
.brand-logo { display: block; height: 44px; width: auto; }
.brand-logo--footer { height: 48px; }
@media (max-width: 640px) { .brand-logo { height: 36px; } .brand-logo--footer { height: 40px; } }

.gnb { display: flex; align-items: center; gap: 2px; }
.gnb__link {
  position: relative; padding: 0.5rem 0.8rem; font-size: 0.9rem; font-weight: 400;
  color: var(--color-text); border-radius: var(--radius-sm); opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.gnb__link:hover { opacity: 1; }
.gnb__link[aria-current="page"] { opacity: 1; font-weight: 600; }
.gnb__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.25rem; height: 2px;
  background: var(--color-accent); border-radius: 2px;
}

.header-utils { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-pill); overflow: hidden; }
.lang-switch__btn { padding: 0.28rem 0.7rem; font-size: var(--fs-sm); font-weight: 600; background: transparent; color: var(--color-text-muted); border: 0; cursor: pointer; }
.lang-switch__btn.is-active { background: var(--color-accent); color: #fff; }
.partner-login { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted); padding: 0.36rem 0.7rem; border-radius: var(--radius-pill); }
.partner-login:hover { color: var(--color-accent); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: transparent; cursor: pointer; color: var(--color-text); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: currentColor; margin-inline: auto; position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
@media (max-width: 1024px) {
  .gnb, .header-utils .partner-login { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .site-header.is-open .gnb {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--color-border); padding: var(--space-4);
  }
  .site-header.is-open .gnb__link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--color-border); opacity: 1; }
}

/* ---------- Dynamic Hero (Apple-style crossfade + Ken Burns) ---------- */
.hero { position: relative; min-height: clamp(560px, 90vh, 920px); display: grid; align-items: center;
  overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-out); }
.hero__slide.is-active { opacity: 1; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero__slide.is-active .hero__bg { animation: kenburns 9s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%); }
/* tech grid overlay */
.hero__grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%); }
/* gradient scenes (no image assets) */
.hero__bg--1 { background-image: radial-gradient(1200px 700px at 70% 20%, #3a4a63 0%, transparent 60%), linear-gradient(135deg, #0b0f1a 0%, #2a3344 55%, #545d6e 100%); }
.hero__bg--2 { background-image: radial-gradient(1100px 700px at 30% 25%, #0a84ff 0%, transparent 55%), linear-gradient(135deg, #001022 0%, #003a73 50%, #0a84ff 120%); }
.hero__bg--3 { background-image: radial-gradient(900px 700px at 75% 30%, #00d6c2 0%, transparent 55%), linear-gradient(135deg, #001b2e 0%, #00506b 55%, #16e0c4 130%); }

.hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--container-max);
  margin-inline: auto; padding-inline: var(--container-pad); text-align: center; padding-block: var(--space-24); }
.hero__eyebrow { color: #2997ff; font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; font-size: var(--fs-sm); }
.hero__title { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight); color: #fff; margin-top: var(--space-4); max-width: 18ch; margin-inline: auto; }
.hero__lead { margin: var(--space-6) auto 0; font-size: var(--fs-body-lg); color: rgba(245,245,247,0.85); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); justify-content: center; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.12); }
/* slide content swap */
.hero__scene { display: none; } .hero__scene.is-active { display: block; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--space-10); display: flex; gap: 8px; justify-content: center; }
.hero__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); border: 0; background: rgba(255,255,255,0.4); cursor: pointer; transition: width var(--dur-fast), background var(--dur-fast); }
.hero__dot.is-active { width: 26px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero__slide.is-active .hero__bg { animation: none; } }
/* 히어로 동영상/사진 배경 (assets/video/hero.mp4 또는 assets/img/hero/hero.*) */
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--media .hero__slides { display: none; }
.hero--media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,15,26,0.5) 0%, rgba(10,15,26,0.64) 100%); }

/* ---------- Page hero (inner pages, light by default → dark band) ---------- */
.page-hero { color: #fff; background: linear-gradient(135deg, #0b0f1a 0%, #1d1d1f 60%, #2a3344 120%); }
.page-hero__inner { padding-block: clamp(var(--space-20), 10vw, var(--space-32)); max-width: 60ch; }
.page-hero__title { font-family: var(--font-display); font-size: var(--fs-h1); color: #fff; margin-top: var(--space-3); letter-spacing: var(--tracking-tight); }
.page-hero__lead { margin-top: var(--space-5); font-size: var(--fs-body-lg); color: rgba(245,245,247,0.82); }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--fs-sm); color: rgba(245,245,247,0.7); }
.breadcrumb a:hover { color: #2997ff; }

/* 문서형 배너 — 밝은 톤 + 좌측 다크 제목, 우측에 문서를 카드로 표시(문의: 지역사회공헌 확인서) */
.page-hero--doc { position: relative; color: #0b1020; overflow: hidden;
  background: linear-gradient(120deg, #eef1f7 0%, #e6ebf3 55%, #dde3ee 100%);
  min-height: clamp(300px, 40vh, 440px); display: grid; align-items: center; }
.page-hero--doc .page-hero__inner { position: relative; z-index: 2; }
.page-hero--doc .breadcrumb,
.page-hero--doc .page-hero__title,
.page-hero--doc .page-hero__lead { max-width: min(540px, 52%); }
.page-hero--doc .page-hero__title { color: #0b1020; }
.page-hero--doc .page-hero__lead  { color: #3a4358; }
.page-hero--doc .breadcrumb { color: rgba(20,26,38,0.55); }
.page-hero--doc .breadcrumb a { color: rgba(20,26,38,0.78); }
.page-hero--doc .breadcrumb a:hover { color: var(--color-accent); }
.page-hero__doccard { position: absolute; z-index: 1; top: 50%; right: clamp(16px, 5vw, 72px);
  transform: translateY(-50%); width: clamp(300px, 40%, 480px); height: auto; display: block;
  border-radius: var(--radius-lg); background: #fff; padding: 10px;
  box-shadow: 0 20px 50px rgba(20,30,60,0.20); border: 1px solid rgba(255,255,255,0.8); }
@media (max-width: 860px) {
  .page-hero--doc .breadcrumb,
  .page-hero--doc .page-hero__title,
  .page-hero--doc .page-hero__lead { max-width: 100%; }
  .page-hero--doc { background: linear-gradient(160deg, #eef1f7 0%, #e2e8f2 100%); }
  .page-hero__doccard { display: none; }
}

/* 사진 배경 배너(다크 스크림 + 흰색 제목) — 페이지별 이미지는 인라인 --hero-img 로 지정 */
.page-hero--photo { position: relative; background: #0b0f1a; overflow: hidden; min-height: clamp(300px, 40vh, 460px); display: grid; align-items: center; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img); background-size: cover; background-position: center; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(11,15,26,0.88) 0%, rgba(11,15,26,0.72) 42%, rgba(11,15,26,0.42) 100%); }
.page-hero--photo .page-hero__inner { position: relative; z-index: 2; }

/* ---------- Stat band (light) ---------- */
.stat-band { background: var(--color-bg-alt); color: var(--color-text); }
.stat { text-align: center; padding: var(--space-4); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 1.5vw, 2.4rem); font-weight: 700;
  color: var(--color-accent); line-height: 1; letter-spacing: var(--tracking-tight); }
.stat__num .unit { font-size: 0.5em; margin-left: 2px; color: var(--color-text); }
.stat__label { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: var(--gutter); }
.card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); font-size: 1.35rem; }
.card__icon svg { width: 27px; height: 27px; display: block; }
/* 공유 프로그램 — 카드 상단 썸네일 + 하단 액션(다운로드/링크) */
.card__media { width: 100%; aspect-ratio: 16 / 9; margin-bottom: var(--space-4); border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-bg-alt, #f4f5f7); border: 1px solid var(--color-border); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
/* 제품 사진 — 카드 상단 전체폭 미디어. 제품/설비 이미지가 정사각이라 1:1 프레임으로 꽉 채움(여백 최소) */
.card__icon--product { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 240px; margin-inline: auto;
  padding: 6px; background: #fff; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border); overflow: hidden; }
.card__icon--product img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 정밀부품 제품 사진 — 카드 대비 과대해 보여 더 작게(적층제조 설비 카드에는 영향 없음) */
.card-grid--products .card__icon--product { max-width: 172px; }

/* 정밀부품 조립 구성도 — 단품(+) → 조립품(→) 흐름 */
.assembly-flow { display: flex; flex-direction: column; gap: var(--space-10); align-items: center; }
.assembly-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); }
.assembly-node { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); width: 108px; }
.assembly-node__img { width: 96px; height: 96px; border-radius: var(--radius-md); background: #fff;
  box-shadow: inset 0 0 0 1px var(--color-border); display: grid; place-items: center; overflow: hidden; }
.assembly-node__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.assembly-node figcaption { font-size: var(--fs-sm); font-weight: 600; text-align: center; line-height: 1.3; color: var(--color-text); }
.assembly-node--result { width: 132px; }
.assembly-node--result .assembly-node__img { width: 120px; height: 120px;
  box-shadow: inset 0 0 0 2px var(--color-accent), 0 10px 26px rgba(59,78,248,0.18); }
.assembly-node--result figcaption { color: var(--color-accent); }
.assembly-node--more .assembly-node__img { background: transparent; border: 1.5px dashed var(--color-border);
  box-shadow: none; color: var(--color-text-muted); font-size: 2.2rem; font-weight: 400; }
.assembly-plus { font-size: 1.5rem; font-weight: 700; color: var(--color-text-muted); }
.assembly-arrow { display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  font-size: 1.7rem; font-weight: 700; color: var(--color-accent); }
.assembly-arrow small { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--color-text-muted); font-weight: 700; margin-bottom: 1px; }
@media (max-width: 640px) {
  .assembly-node { width: 84px; }
  .assembly-node__img { width: 74px; height: 74px; }
  .assembly-node--result { width: 100px; }
  .assembly-node--result .assembly-node__img { width: 90px; height: 90px; }
  .assembly-node figcaption { font-size: var(--fs-caption); }
}
.card__title { font-size: var(--fs-h4); letter-spacing: var(--tracking-tight); }
.card__text { color: var(--color-text-muted); font-size: var(--fs-sm); }
.card__link { margin-top: auto; color: var(--color-accent); font-weight: 500; font-size: var(--fs-sm); display: inline-flex; gap: var(--space-2); align-items: center; }
.card__link:hover .btn__arrow { transform: translateX(3px); }
.card--dark { background: #1d1d1f; border-color: #2a2a2c; color: var(--color-text-on-dark); }
.card--dark .card__title { color: #fff; } .card--dark .card__text { color: var(--color-text-on-dark-muted); }

/* ---------- Feature split ---------- */
.feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.feature--reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-bg-alt); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
/* 제품 렌더(흰 배경) — 잘림 없이 전체 표시, 흰 카드에 여백 */
.feature__media--contain { background: #fff; position: relative; }
.feature__media--contain .media-fig { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: clamp(var(--space-4), 3vw, var(--space-8)); }
/* 다크 배경 이미지(예: AI 검사 화면) — 카드 배경을 이미지 톤에 맞춰 일체화 */
.feature__media--inspect { background: #474747; }
.feature__media--inspect .media-fig { padding: clamp(var(--space-2), 1.5vw, var(--space-4)); }
/* 와이드 사진(16:9) — 4:3 강제 크롭 대신 원본 비율로 단정하게. 다크 섹션 배경과 일체화 */
/* 동영상 미디어 — 16:9, 흰 배경에 안쪽 여백을 두어 프레임처럼 단정하게(잘림 없이 contain) */
.feature__media--video { aspect-ratio: 16 / 9; background: #fff; display: grid; place-items: center;
  padding: clamp(var(--space-5), 3vw, var(--space-10)); }
.feature__media--video video { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-md); }
/* 장비 영상 쇼케이스 — 미디어 열을 넓히고, 카드를 텍스트 높이에 맞춰 비율 정렬 */
.feature--video-lg { grid-template-columns: 1fr 1.4fr; align-items: center; }
.feature--video-lg .feature__media--video { aspect-ratio: 16 / 9; background: #fff;
  border-radius: var(--radius-xl); overflow: hidden; padding: 0; }
.feature--video-lg .feature__media--video video { border-radius: var(--radius-xl); }
@media (max-width: 768px) { .feature--video-lg { grid-template-columns: 1fr; } }
.feature__title { font-family: var(--font-display); font-size: var(--fs-h2); letter-spacing: var(--tracking-tight); }
.feature__text { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--fs-body-lg); }
.feature__list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.feature__list li { display: flex; gap: var(--space-3); }
.feature__list li::before { content: "+"; color: var(--color-accent); font-weight: 700; }
@media (max-width: 768px) { .feature { grid-template-columns: 1fr; } .feature--reverse .feature__media { order: 0; } }

/* ---------- Spec ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gutter); }
/* AI 적층제조 플랫폼 — End-to-End 기술개념도(흐름) */
.am-flow { margin: var(--space-10) 0 0; text-align: center; }
.am-flow__cap { font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-5); }
.am-flow__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: stretch; gap: var(--space-3); }
.am-flow__step { position: relative; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 12px 16px; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.08)); }
.am-flow__step:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * var(--space-3) - 2px);
  top: 50%; transform: translateY(-50%); color: var(--color-accent); font-weight: 700; }
.am-flow__n { display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: color-mix(in srgb, var(--color-accent) 14%, #fff); color: var(--color-accent); font-size: 12px; }
.am-flow__loop { margin: var(--space-4) 0 0; color: var(--color-accent); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 720px) { .am-flow__steps { flex-direction: column; align-items: stretch; }
  .am-flow__step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: calc(-1 * var(--space-3) - 2px); transform: translateX(50%); } }
.spec { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); }
.spec__k { font-size: var(--fs-sm); color: var(--color-text-muted); }
.spec__v { font-size: var(--fs-h3); font-weight: 700; margin-top: var(--space-2); letter-spacing: var(--tracking-tight); }
.spec__v .unit { font-size: 0.6em; color: var(--color-text-muted); margin-left: 3px; }
/* 숫자와 동일 크기로 보이는 접미부(화살표·전환값 등) */
.spec__v .unit.unit--lg { font-size: 1em; color: inherit; margin-left: 1px; }

/* ---------- Media placeholder (no image assets) ---------- */
.media-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 240px; color: var(--color-text-muted);
  background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%); font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--tracking-wide); }
.media-ph span { padding: 0.4rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: rgba(255,255,255,0.6); }
.u-dark .media-ph { background: linear-gradient(135deg, #1d1d1f 0%, #000 100%); color: var(--color-text-on-dark-muted); }
.u-dark .media-ph span { border-color: #333; background: rgba(255,255,255,0.04); }

/* ---------- Logo / cert strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6) var(--space-12); }
.logo-strip__item { font-weight: 600; color: var(--color-text-muted); font-size: 1.05rem; letter-spacing: var(--tracking-tight);
  opacity: 0.7; transition: opacity var(--dur-fast), color var(--dur-fast); }
.logo-strip__item:hover { opacity: 1; color: var(--color-text); }

/* ---------- CTA band (dark rounded panel) ---------- */
.cta-band { background: #1d1d1f; color: #fff; border-radius: var(--radius-xl); padding: clamp(var(--space-12), 6vw, var(--space-24));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); }
.cta-band__title { font-family: var(--font-display); font-size: var(--fs-h2); color: #fff; max-width: 24ch; letter-spacing: var(--tracking-tight); }
.cta-band__text { color: var(--color-text-on-dark-muted); margin-top: var(--space-3); max-width: 48ch; }

/* ---------- News list ---------- */
.news-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-bg); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
/* 썸네일: 16:9 고정 박스 + contain — 박스 크기는 일정, 사진은 잘리지 않고 전체가 축소되어 들어감 */
.news-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--color-bg-alt); overflow: hidden; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.news-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.news-card__meta { font-size: var(--fs-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.news-card__title { font-size: var(--fs-h4); letter-spacing: var(--tracking-tight); }
/* 뉴스 상세 — 기사형 레이아웃 (가운데 정렬, 가독 폭) */
.page-hero--article .page-hero__inner { padding-block: clamp(var(--space-16), 7vw, var(--space-24)); max-width: 760px; }
.page-hero--article .page-hero__title { margin-top: var(--space-4); }
.article { max-width: 760px; margin-inline: auto; }
.article__figure { margin: 0 0 var(--space-10); border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--color-bg-alt); box-shadow: var(--shadow-1); }
.article__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article .prose { max-width: none; font-size: var(--fs-body-lg); line-height: 1.8; }
.article .prose p { margin-bottom: var(--space-5); }
.article__foot { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
/* 뉴스 상세 — 원문/출처 링크 콜아웃 (눈에 띄게) */
.news-source { display: flex; width: 100%; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md); background: var(--color-bg-alt); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.news-source:hover { border-color: var(--color-accent); box-shadow: var(--shadow-1); }
.news-source__ico { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-weight: 700; }
.news-source__txt { display: flex; flex-direction: column; min-width: 0; }
.news-source__label { font-size: var(--fs-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.news-source__url { color: var(--color-accent); font-weight: 600; overflow-wrap: anywhere; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-bar__btn { padding: 0.42rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: transparent; font-size: var(--fs-sm); cursor: pointer; color: var(--color-text-muted); }
.filter-bar__btn.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- R&D list (titles + optional link) ---------- */
.rlist { display: grid; gap: 0; border-top: 1px solid var(--color-border); }
.rlist__item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-2); border-bottom: 1px solid var(--color-border); }
.rlist__bullet { color: var(--color-accent); font-size: 0.8rem; flex: 0 0 auto; }
.rlist__title { font-size: var(--fs-body-lg); font-weight: 500; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.rlist__link { flex: 0 0 auto; margin-left: auto; color: var(--color-accent); font-weight: 600; }
.rlist__title--btn { background: none; border: 0; font: inherit; font-size: var(--fs-body-lg); line-height: inherit; white-space: normal; text-align: left; cursor: pointer; color: var(--color-heading); padding: 0; }
.rlist__title--btn:hover { color: var(--color-accent); }
.rlist__more { color: var(--color-accent); font-weight: 700; margin-left: 4px; }
.rlist__meta { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.rlist__meta ~ .rlist__link { margin-left: 12px; }
.rlist__period { font-size: var(--fs-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
/* 문서편집기 출력(WYSIWYG HTML) — 화이트리스트 태그만 렌더. 편집기 영역(.doc-editor__area)과 동일 스타일 */
.doc { line-height: var(--lh-body); color: var(--color-text); overflow-wrap: anywhere; }
.doc strong, .doc b { font-weight: 700; }
.doc em, .doc i { font-style: italic; }
.doc u { text-decoration: underline; }
.doc s, .doc strike { text-decoration: line-through; }
.doc p, .doc div { margin: 0; }
.doc ul, .doc ol { margin: 0.3em 0; padding-left: 1.5em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: 0.15em 0; }
.doc h3 { font-size: 1.1rem; font-weight: 700; margin: 0.5em 0 0.25em; }
.doc h4 { font-weight: 700; margin: 0.5em 0 0.25em; }
.doc blockquote { margin: 0.4em 0; padding-left: 0.85em; border-left: 3px solid var(--color-border); color: var(--color-text-muted); }
.doc--clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.job-summary { font-size: var(--fs-body-lg); background: var(--color-bg-alt); border-left: 3px solid var(--color-accent); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); }
.job-aside { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* 채용 상세 본문 리듬 — 섹션(주요업무/자격요건/급여) 제목·내용 간격 일관 */
.job-detail > * + * { margin-top: var(--space-4); }
.job-detail .job-summary + .job-detail__h,
.job-detail .doc + .job-detail__h { margin-top: var(--space-10); }   /* 다음 섹션 제목은 큰 간격 */
.job-detail__h { font-size: var(--fs-h3); font-weight: 700; color: var(--color-heading); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.job-detail .doc { margin-top: var(--space-4); }
.job-detail .job-aside { margin-top: var(--space-10); }
.job-detail > .btn { margin-top: var(--space-10); }

/* 입사지원 카드 — 본문이 길면 스크롤 따라 고정(헤더 높이 + 여백만큼 띄움) */
.job-apply { position: sticky; top: calc(56px + var(--space-5)); align-self: start; }
@media (max-width: 860px) { .job-apply { position: static; } }
/* R&D 상세 모달 (제목 클릭) */
.docmodal { position: fixed; inset: 0; margin: auto; width: min(680px, 94vw); max-height: 88vh; overflow: auto; border: 0; border-radius: 16px; padding: 24px 26px; box-shadow: 0 30px 80px rgba(12,17,28,0.4); color: var(--color-text); }
.docmodal__top { position: sticky; top: -24px; background: #fff; padding-top: 6px; }
.docmodal--legal { width: min(760px, 94vw); }
.legal-body h4 { margin: 18px 0 5px; font-size: var(--fs-body); font-weight: 700; color: var(--color-heading); }
.legal-body p { margin: 0 0 6px; font-size: var(--fs-sm); line-height: 1.7; color: var(--color-text); }
/* footer 패밀리 사이트 드롭다운 + 법적 링크 버튼 */
.famsite { position: relative; }
.famsite > summary { cursor: pointer; list-style: none; opacity: 0.85; }
.famsite > summary::-webkit-details-marker { display: none; }
.famsite > summary::after { content: " ▾"; font-size: 0.8em; }
.famsite[open] > summary::after { content: " ▴"; }
.famsite__menu { position: absolute; bottom: 150%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: 0 14px 40px rgba(0,0,0,0.18); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 50; }
.famsite[open] > .famsite__menu { display: flex; }
.famsite__menu a { padding: 8px 12px; border-radius: 8px; color: var(--color-text); font-size: var(--fs-sm); }
.famsite__menu a:hover { background: var(--color-bg-alt); }
.footer-legal-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: 0.85; }
.footer-legal-link:hover { opacity: 1; text-decoration: underline; }
/* 점검 모드 관리자 배너 (공개 사이트, 관리자 로그인 시) */
.maint-banner { background: #7a1c1c; color: #fff; text-align: center; padding: 9px 14px; font-size: var(--fs-sm); font-weight: 600; }
.maint-banner a { color: #fff; text-decoration: underline; margin-left: 6px; }
.docmodal::backdrop { background: rgba(12,17,28,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.docmodal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.docmodal__top strong { font-size: var(--fs-h4); color: var(--color-heading); }
.docmodal__x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #999; flex: 0 0 auto; }
.docmodal__meta { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0 0 12px; }
/* 상세 이미지: 16:9 고정 박스 + contain — 원본 비율과 무관하게 박스 크기 일정, 사진은 잘리지 않고 전체가 축소되어 들어감 */
.docmodal__img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--color-bg-alt); border-radius: 10px; margin-bottom: 14px; display: block; }
.docmodal__body p { margin: 0 0 10px; line-height: 1.7; }

/* ---------- 홈 공지 모달(알림창) ---------- */
.notice-modal { width: min(440px, 94vw); padding: 22px 24px 20px; border-top: 4px solid var(--color-accent); }
.notice-modal__top { position: static; background: none; padding: 0; align-items: center; margin-bottom: 6px; }
.notice-modal__eyebrow { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); }
.notice-modal__title { font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--color-heading); margin: 0 0 10px; }
.notice-modal__body { margin: 0 0 4px; }
.notice-modal__body p { margin: 0 0 8px; line-height: 1.65; color: var(--color-text); }
/* 분리형 공지 팝업 — 비모달 dialog 1~2개를 동시 표시 + 공유 딤 오버레이 */
.notice-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(12,17,28,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.notice-overlay[hidden] { display: none; }
.notice-pops { position: fixed; inset: 0; z-index: 1001; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; padding: 24px; pointer-events: none; }
.notice-pop { position: static; inset: auto; margin: 0; width: min(400px, 92vw); max-height: 86vh; pointer-events: auto; }
.notice-pop:not([open]) { display: none; }
.notice-pop::backdrop { background: none; }
.notice-modal__img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--color-bg-alt); border-radius: 10px; margin: 0 0 14px; display: block; }
@media (max-width: 760px) { .notice-pops { flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: flex-start; overflow-y: auto; } }
.notice-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
@media (max-width: 480px) { .notice-modal__actions { justify-content: stretch; } .notice-modal__actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: var(--space-5); padding-left: var(--space-8); }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1 * var(--space-8) + 2px); top: 6px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.timeline__year { font-family: var(--font-display); font-weight: 700; color: var(--color-accent); font-size: var(--fs-caption); letter-spacing: .02em; }
.timeline__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-top: var(--space-1); line-height: 1.35; }
.timeline__text { color: var(--color-text-muted); margin-top: var(--space-1); }

/* 연혁 — 마일스톤 카드 그리드 (좌→우 읽기 순서, 반응형으로 세로 길이 압축) */
.hist-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: var(--space-4);
}
.hist-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 4px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* 좌측 강조 바 — 브랜드 컬러 그라데이션 */
.hist-card::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 35%, transparent));
}
.hist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}
.hist-card__year {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  color: var(--color-accent); letter-spacing: .01em;
}
.hist-card__text {
  margin-top: 6px; color: var(--color-heading);
  font-size: calc(var(--fs-body) * .95); line-height: 1.45; font-weight: 500;
}
@media (max-width: 560px) {
  .hist-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .hist-card { padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 4px); border-radius: 13px; }
}

/* 연도 가이드 내비 — 시기대로 빠르게 이동 */
.hist-guide { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-7); }
.hist-guide__chip {
  display: inline-flex; align-items: baseline; gap: .5em;
  padding: .55rem 1rem; border: 1px solid var(--color-border); border-radius: 999px;
  background: var(--color-bg); color: var(--color-text-muted);
  text-decoration: none; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hist-guide__chip .hist-guide__range { font-family: var(--font-display); font-weight: 700; color: var(--color-accent); }
.hist-guide__chip:hover { border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07); }
.hist-guide__chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.hist-guide__chip.is-active .hist-guide__range { color: #fff; }

/* 시기별 그룹 */
.hist-eras { display: flex; flex-direction: column; gap: var(--space-8); }
.hist-era { scroll-margin-top: 96px; }
.hist-era__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65em; margin: 0 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.hist-era__head .hist-era__range { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h4); color: var(--color-accent); line-height: 1; }
.hist-era__head .hist-era__label { font-weight: 600; font-size: var(--fs-body); color: var(--color-heading); }
@media (max-width: 560px) {
  .hist-guide { gap: var(--space-1); }
  .hist-guide__chip { padding: .45rem .7rem; font-size: calc(var(--fs-sm) * .92); }
}

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-8); }
.tabs__btn { padding: 0.7rem 1.1rem; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; color: var(--color-text-muted); font-weight: 500; }
.tabs__btn.is-active { color: var(--color-text); border-bottom-color: var(--color-accent); }
.tabs__panel { display: none; } .tabs__panel.is-active { display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input, .field select, .field textarea { padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); transition: border-color var(--dur-fast); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 15%, transparent); }
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer (light gray, Apple — 2-zone) ---------- */
.site-footer { background: var(--color-bg-alt); color: var(--color-text-muted); padding-block: var(--space-20) var(--space-8); font-size: var(--fs-sm); }
.site-footer a { transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(var(--space-8), 6vw, var(--space-24)); padding-bottom: var(--space-12); border-bottom: 1px solid var(--color-border); }
.site-footer__brand .site-header__brand, .site-footer__brand .brand-name { color: var(--color-text); }
.site-footer__desc { margin-top: var(--space-4); max-width: 32ch; line-height: var(--lh-body); }
.site-footer__meta { margin-top: var(--space-5); display: grid; gap: var(--space-1); }
.site-footer__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-6); color: var(--color-accent); font-weight: 600; }
.site-footer__cta span { transition: transform var(--dur-fast) var(--ease-out); }
.site-footer__cta:hover { color: var(--color-accent); }
.site-footer__cta:hover span { transform: translateX(3px); }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.site-footer__col h4 { font-size: var(--fs-caption); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.site-footer__col li { margin-bottom: var(--space-3); }
.site-footer__col a { color: var(--color-text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-6); font-size: var(--fs-caption); color: var(--color-text-muted); }
.site-footer__legal { display: flex; gap: var(--space-5); }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; gap: var(--space-10); } }
@media (max-width: 560px) { .site-footer__nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .site-footer__nav { grid-template-columns: 1fr; } }

/* ---------- App additions ---------- */
.alert { padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); margin-bottom: var(--space-6); border: 1px solid var(--color-border); font-size: var(--fs-sm); }
.alert--ok { background: color-mix(in srgb, var(--color-success) 10%, #fff); border-color: var(--color-success); color: #1d6b3d; }
.alert--err { background: color-mix(in srgb, var(--color-error) 8%, #fff); border-color: var(--color-error); color: #a32a2a; }
.pager { display: flex; gap: var(--space-2); justify-content: center; align-items: center; margin-top: var(--space-12); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--color-text-muted); }
.pager .is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.prose { max-width: 72ch; } .prose p { margin-bottom: var(--space-4); color: var(--color-text); }
.prose h2, .prose h3 { margin: var(--space-8) 0 var(--space-3); }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: var(--space-4); } .prose li { margin-bottom: var(--space-2); }
.meta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; color: var(--color-text-muted); font-size: var(--fs-sm); }
.job-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.step__no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 700; font-family: var(--font-display); margin-bottom: var(--space-3); }
.matlist { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ============================================================
   Responsive refinements (mobile-first 보강)
   ============================================================ */
/* 가로 오버플로우 안전장치 — body에 적용(viewport로 전파). html에 두면 중첩 sticky(입사지원 카드)가 깨짐 */
body { overflow-x: clip; }
.card__title, .news-card__title, .rlist__title, .feature__title, .cta-band__title,
.hero__title, .page-hero__title { overflow-wrap: anywhere; }

/* 태블릿 */
@media (max-width: 900px) {
  .feature__text { font-size: var(--fs-body); }
}

/* 모바일 */
@media (max-width: 768px) {
  .section { padding-block: clamp(44px, 9vw, 72px); }
  .hero { min-height: 84vh; }
  .hero__inner { padding-block: var(--space-20); padding-bottom: var(--space-24); }
  .hero__title { font-size: clamp(2.1rem, 8vw, 3rem); max-width: 18ch; }
  .hero__lead { font-size: 1.05rem; }
  .hero__dots { bottom: var(--space-6); }
  .section-head__title, .feature__title, .cta-band__title { font-size: clamp(1.5rem, 6.2vw, 2rem); }
  .stat-band .col-3 { grid-column: span 2; }           /* 2 x 2 통계 */
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; gap: var(--space-6); }
  .cta-band .btn { width: 100%; }
  .timeline { padding-left: var(--space-6); }
  .site-header__inner { gap: var(--space-3); }
  .rlist__item { flex-wrap: wrap; align-items: flex-start; column-gap: var(--space-3); }
  .rlist__bullet, .pat-status { margin-top: 2px; }
  .rlist__title { flex: 1 1 0; }                      /* 불릿·상태배지와 같은 줄에서 남은 폭을 채우고 내부 줄바꿈 */
  .rlist__meta { flex-basis: 100%; margin-left: 0; margin-top: var(--space-2); }  /* 메타는 제목 아래 전체폭 좌측 정렬 */
  .rlist__link { margin-left: auto; }
}

/* 소형 모바일 */
@media (max-width: 480px) {
  :root { --container-pad: 16px; }
  .stat-band .col-3 { grid-column: 1 / -1; }           /* 1열 */
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .brand-name small { display: none; }                 /* 헤더 폭 절약 */
  .btn--lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
  .page-hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .lang-switch__btn { padding: 0.28rem 0.55rem; }
}

/* ---------- Cert badges & client wordmarks (이미지) ---------- */
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-8) var(--space-10); }
.cert-badge { width: clamp(96px, 13vw, 122px); height: auto; filter: drop-shadow(0 8px 18px rgba(45, 64, 95, 0.14));
  transition: transform var(--dur-fast) var(--ease-out); }
.cert-badge:hover { transform: translateY(-5px); }
/* 동판(engraved copper plate) 인증 — 사각 플레이트는 더 크게 + 따뜻한 그림자 */
.cert-plate { width: clamp(128px, 17vw, 168px); border-radius: 0;
  filter: drop-shadow(0 7px 16px rgba(58, 38, 18, 0.22)); }
.cert-plate:hover { transform: translateY(-5px) rotate(-0.4deg); }
/* 종이 인증서(paper certificate) — 세로형 문서, 자체 그림자 사용 */
.cert-paper { width: clamp(146px, 21vw, 206px); height: auto; border-radius: 0; filter: none; }
.cert-paper:hover { transform: translateY(-6px); }
.media-fig { width: 100%; height: 100%; object-fit: cover; display: block; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--gutter); }
.client { display: grid; place-items: center; padding: var(--space-6); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-bg); box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.client img { width: 100%; max-width: 150px; height: auto; opacity: 0.9; transition: opacity var(--dur-fast); }
.client:hover img { opacity: 1; }
.u-dark .client { background: transparent; border-color: var(--color-border-dark); }
.u-dark .client img { filter: grayscale(1) invert(1) brightness(1.6); opacity: 0.7; }
.u-dark .client:hover img { filter: invert(1) brightness(1.8); opacity: 1; }
@media (max-width: 600px) { .client-grid { grid-template-columns: 1fr 1fr; } }

/* 주요 고객사 — 가로 무한 스크롤 마퀴 (관리자에서 CRUD) */
.client-marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.client-marquee__track { display: flex; width: max-content; will-change: transform;
  animation: client-marquee 36s linear infinite; }
.client-marquee:hover .client-marquee__track,
.client-marquee:focus-within .client-marquee__track { animation-play-state: paused; }
.client-marquee__group { display: flex; flex: 0 0 auto; }
/* 원본 로고 크기와 무관하게 동일한 박스/높이로 정규화 */
.client-marquee .client { flex: 0 0 auto; width: 190px; height: 104px;
  margin-inline-end: var(--gutter); text-decoration: none; }
.client-marquee .client img { width: auto; max-width: 150px; height: 48px; object-fit: contain; }
.client-marquee .client__name { font-weight: 700; font-size: var(--fs-body); color: var(--color-text); text-align: center; }
@keyframes client-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .client-marquee__track { animation: none; } }
@media (max-width: 600px) {
  .client-marquee .client { width: 150px; height: 88px; }
  .client-marquee .client img { height: 38px; max-width: 120px; }
}

/* ============================================================
   has.or.kr 타이포 적용 + 역동성(Dynamism) 강화
   ============================================================ */
/* Poppins(포인트) — eyebrow/버튼/배지/언어토글 */
.section-head__eyebrow, .hero__eyebrow, .badge, .btn, .lang-switch__btn { font-family: var(--font-accent); }
.section-head__eyebrow::before { content: ""; display: inline-block; width: 20px; height: 2px; vertical-align: middle;
  margin-right: 10px; background: var(--color-accent); border-radius: 2px; }
.section-head--center .section-head__eyebrow::before { display: none; }

/* 버튼 포인트 + 호버 글로우 */
.btn--primary:hover { box-shadow: var(--shadow-accent); }

/* 히어로: 인디고 리톤 + 씬 페이드업 */
.hero__eyebrow { color: #aab4ff; }
.hero__bg--1 { background-image: radial-gradient(1200px 700px at 70% 20%, #3a4a7a 0, transparent 60%), linear-gradient(135deg, #1a2440 0%, #2d405f 55%, #466393 100%); }
.hero__bg--2 { background-image: radial-gradient(1100px 700px at 30% 25%, #3b4ef8 0, transparent 55%), linear-gradient(135deg, #10183a 0%, #243a8f 50%, #3b4ef8 120%); }
.hero__bg--3 { background-image: radial-gradient(900px 700px at 75% 30%, #5a78ff 0, transparent 55%), linear-gradient(135deg, #101a3a 0%, #2d3f8f 55%, #6a86ff 130%); }
.hero__scene.is-active { animation: heroIn 0.8s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__scene.is-active { animation: none; } }

/* 다크 섹션 — 움직이는 오로라 글로우 */
.section.u-dark { position: relative; overflow: hidden; }
.section.u-dark::before { content: ""; position: absolute; inset: -25%; pointer-events: none; z-index: 0;
  background: radial-gradient(38% 42% at 18% 22%, rgba(59,78,248,0.30), transparent 70%),
              radial-gradient(40% 44% at 82% 64%, rgba(70,99,147,0.32), transparent 72%);
  animation: aurora 16s ease-in-out infinite alternate; }
.section.u-dark > .container { position: relative; z-index: 1; }
@keyframes aurora { 0% { transform: translate3d(-3%,2%,0) scale(1); } 100% { transform: translate3d(4%,-3%,0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .section.u-dark::before { animation: none; } }

/* CTA 밴드 — 움직이는 글로우 */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(40% 60% at 16% 22%, rgba(59,78,248,0.42), transparent 70%),
              radial-gradient(36% 50% at 88% 70%, rgba(106,134,255,0.30), transparent 72%);
  animation: aurora 13s ease-in-out infinite alternate; }
.cta-band > * { position: relative; z-index: 1; }

/* 피처 이미지 — 호버 줌 제거(깜빡임 방지) */
.feature__media { overflow: hidden; }

/* 카드 호버 — 포인트 라인 */
.card { position: relative; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out); }
.card:hover::after { transform: scaleX(1); }

/* 통계 숫자 — Krub */
.stat__num { font-family: var(--font-display); }

/* ============================================================
   숫자·영어 배치 + 타이포 반응형 정교화
   ============================================================ */
/* 숫자 정렬(고정폭) — 카운트업 흔들림 방지 + 자릿수 정렬 */
.stat__num, .spec__v, .timeline__year, .kpi__n { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
/* 큰 디스플레이 텍스트는 줄바꿈 균형 */
.hero__title, .feature__title, .cta-band__title, .section-head__title, .page-hero__title { text-wrap: balance; }
.hero__lead, .section-head__lead, .page-hero__lead, .feature__text, .card__text { text-wrap: pretty; }
/* 영문 대문자 eyebrow: 모바일에서 자간 축소 + 넘침 방지 */
.section-head__eyebrow, .hero__eyebrow { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .hero__eyebrow { letter-spacing: 0.04em; font-size: var(--fs-caption); }
  .stat__num { font-size: clamp(1.5rem, 5.5vw, 2rem); }   /* 모바일 숫자 과대 방지 */
}
/* IR 지표: 숫자/영문/한글 혼합 값 균형 (과대 방지) */
.stat-band .stat__num { line-height: 1.05; }

/* has.or.kr 풍 플랫 일러스트(전체 보이게 contain + 부드러운 라이트 타일) */
.media-fig--contain { object-fit: contain; padding: clamp(var(--space-6), 4vw, var(--space-12));
  background: linear-gradient(160deg, #f6f7ff 0%, #eef1fb 100%); }
.u-dark .media-fig--contain { background: rgba(255, 255, 255, 0.05); }

/* 복리후생 칩 리스트 */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.chip-list .badge { background: var(--color-bg); }
.u-dark .chip-list .badge { background: rgba(255,255,255,0.04); }

/* ============================================================
   카드 배경 — 은은한 그라데이션 + 코너 글로우(입체감)
   ============================================================ */
.card { background: linear-gradient(165deg, #ffffff 0%, #f5f6ff 100%); overflow: hidden; }
.card::before { content: ""; position: absolute; top: -46px; right: -46px; width: 152px; height: 152px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-accent) 16%, transparent) 0%, transparent 70%);
  z-index: 0; pointer-events: none; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast); }
.card:hover::before { transform: scale(1.25); }
.card > * { position: relative; z-index: 1; }
.card__icon { background: color-mix(in srgb, var(--color-accent) 14%, #fff); }
/* 다크 섹션 카드: 네이비 입체 */
.card--dark { background: linear-gradient(165deg, #3a4a6b 0%, #2d405f 100%); border-color: rgba(255,255,255,0.12); }
.card--dark::before { background: radial-gradient(circle, rgba(120,146,255,0.28) 0%, transparent 70%); }
/* 다크 카드 아이콘 — 옅은 인디고 칩 + 비비드 인디고 글리프(라이트 카드와 동일 톤): 색감 유지 + 또렷 */
.card--dark .card__icon,
.u-dark .card__icon { background: color-mix(in srgb, var(--color-accent) 16%, #fff); color: var(--color-accent); }
/* news 카드도 동일 톤 */
.news-card { background: linear-gradient(165deg, #ffffff 0%, #f5f6ff 100%); }

/* ── 오시는 길 지도 embed (문의 페이지) ──────────────────────────── */
.map-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.10)); background: var(--n-100, #eef0f4); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* 영상 feature: media 칸의 4:3 강제를 해제하고 16:9 플레이어가 칸을 그대로 채우게 */
.feature__media--video { aspect-ratio: auto; background: transparent; border-radius: 0; overflow: visible; }

/* CEO 인사말 동영상 — media 칸을 16:9 로 맞추고 컨트롤 플레이어 표시 */
.feature__media--ceo { aspect-ratio: 16 / 9; background: #0b0f1a; overflow: hidden; }
.feature__media--ceo .ceo-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 회사소개 — 섹션 간격 정돈: 배경색이 같은 섹션이 연속되면 이중 패딩(최대 192px)으로
   과한 빈 공간이 생기므로, 뒤 섹션의 상단 패딩을 줄여 단일 간격(약 96px)으로 정리.
   배경이 바뀌는 경계는 그대로 둬서 색 밴드 구분을 유지. */
.page-company .section:not(.section--alt):not(.u-dark) + .section:not(.section--alt):not(.u-dark) { padding-top: 0; }
.page-company .section--alt + .section--alt { padding-top: 0; }
.page-company .stat-band + .section--alt { padding-top: var(--space-12); }
.page-company .section.u-dark + .section.u-dark { padding-top: 0; }

/* 목록 페이지네이션(연구개발 과제·특허 등) */
.rpager { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-8); }
.rpager__btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-accent); font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast); }
.rpager__btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.rpager__btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* 최근 5년 매출 차트(Chart.js) — 반응형 컨테이너에 고정 높이 부여(과하지 않게 콤팩트) */
.revenue-chart { position: relative; height: clamp(200px, 26vw, 300px); max-width: 620px; margin-inline: auto; }
.revenue-chart canvas { display: block; }

/* 투자정보 — Heatsink/액체냉각 시장 규모 차트 (다크 섹션) */
.ir-market__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); text-align: center; }
.ir-market__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-snug); color: #fff; margin: 0; max-width: 30ch; }
.ir-market__chart { max-width: 780px; height: clamp(240px, 32vw, 340px); }
.ir-market__src { margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--color-text-on-dark-muted); }

/* 성장 엔진① 플랫폼 — AM 자동화 데모 영상 */
.plat-demo { max-width: 880px; margin: var(--space-10) auto 0; }
.plat-demo__video { width: 100%; height: auto; display: block; background: #0b0f1a;
  border-radius: var(--radius-xl); box-shadow: 0 30px 80px rgba(45,64,95,0.18); }
/* 성장 엔진① 플랫폼 — PBF 글로벌 시장 차트 (라이트 섹션) */
.plat-market { max-width: 820px; margin-inline: auto; }
.plat-market__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); text-align: center; }
.plat-market__title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-snug); margin: 0; max-width: 30ch; }
.plat-market__lead { text-align: center; color: var(--color-text-muted); max-width: 62ch; margin: 0 auto var(--space-6); }
.plat-market__chart { max-width: 780px; height: clamp(240px, 32vw, 340px); }
.plat-market__src { margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--color-text-muted); }
/* 성장 엔진① 플랫폼 — AM 생태계 확장(뿌리기업 공생) 3단계 */
.plat-eco { max-width: 980px; margin-inline: auto; }
.eco-diagram { margin: var(--space-8) 0 0; text-align: center; }
.eco-diagram img { width: 100%; max-width: 880px; height: auto; display: block; margin-inline: auto;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.08)); }
.eco-diagram figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }
.eco-steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.eco-step { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.08)); }
.eco-step:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  color: var(--color-accent); font-weight: 700; font-size: 20px; }
.eco-step__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 14%, #fff); color: var(--color-accent); font-weight: 700; margin-bottom: var(--space-3); }
.eco-step__t { font-size: 1.05rem; font-weight: 700; margin: 0 0 var(--space-2); }
.eco-step__x { color: var(--color-text-muted); font-size: var(--fs-sm); margin: 0; line-height: 1.6; }
@media (max-width: 720px) { .eco-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .eco-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); } }

/* 세로형 그래픽(채용 리얼톡 등): 4:3 크롭 없이 자연 비율로 중앙 표시 */
.feature__media--realtalk { aspect-ratio: auto; background: transparent; border-radius: 0; overflow: visible;
  display: flex; justify-content: center; }
.feature__media--realtalk img { width: auto; max-width: 100%; height: auto; max-height: 560px;
  object-fit: contain; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.10)); }
.feature:hover .feature__media--realtalk img { transform: none; }

/* ── YouTube embed facade(썸네일 → 클릭 시 플레이어) — 홈 Core new business ─ */
.video-embed { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius-lg);
  background: #000; box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.10)); }
.video-embed__thumb { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease-out); }
.video-embed:hover .video-embed__thumb { transform: scale(1.04); }
.video-embed__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.92); display: grid; place-items: center;
  transition: background var(--dur-fast), transform var(--dur-fast); pointer-events: none; }
.video-embed__play::before { content: ""; width: 0; height: 0; margin-left: 5px;
  border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.video-embed:hover .video-embed__play,
.video-embed:focus-visible .video-embed__play { background: #ff0000; border-color: #fff; transform: translate(-50%, -50%) scale(1.06); }
.video-embed:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.video-embed__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .video-embed__play, .video-embed__thumb { transition: none; }
  .video-embed:hover .video-embed__thumb { transform: none; }
}

/* ── Lightbox 모달 (인증서 원본 · 회사 사진 확대) ───────────────── */
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 52px); background: rgba(12, 17, 28, 0.84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease-out), visibility 0.25s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: scale(0.96); transition: transform 0.25s var(--ease-out); }
.lightbox.is-open .lightbox__fig { transform: scale(1); }
/* 확대 이미지 — 원본 종횡비와 무관하게 동일한 프레임(4:3)으로 크기 통일 */
.lightbox__img { width: min(880px, 92vw); height: min(72vh, 660px); object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: #fff; }
.lightbox__cap { color: #e8ecf4; font-size: var(--fs-sm); text-align: center; letter-spacing: 0.2px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.30); background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__fig, .lightbox__close { transition: none; } }

/* 클릭 가능한 인증 스펙 카드 + 인증서/사진 썸네일 트리거 */
.spec--cert { cursor: pointer; text-align: left; width: 100%; font: inherit; position: relative;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.spec--cert:hover { transform: translateY(-3px); border-color: var(--color-accent); }
.spec--cert::after { content: "⛶"; position: absolute; top: var(--space-4); right: var(--space-5);
  font-size: 0.9rem; color: var(--color-accent); opacity: 0.55; }
.cert-thumb { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.cert-thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* 회사 사진 갤러리 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gutter); }
.photo-thumb { position: relative; padding: 0; border: 0; background: var(--color-bg-alt); cursor: pointer; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm, 0 6px 18px rgba(45,64,95,0.10));
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur); }
/* contain: 다양한 비율의 현장 사진이 잘리지 않고 전체가 보이도록(4:3에 맞는 사진은 꽉 참) */
.photo-thumb img { width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.6s var(--ease-out); }
.photo-thumb:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(45, 64, 95, 0.20); }
.photo-thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.photo-thumb__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(12,17,28,0.78), transparent); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; text-align: left; }
.photo-thumb__zoom { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(12,17,28,0.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ── 면접 일정 달력 (지원자) ───────────────── */
.cal-wrap { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: center; }
.cal__title { font-family: var(--font-display); font-weight: 700; text-align: center; margin-bottom: var(--space-3); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 42px); gap: 4px; }
.cal__dow { font-size: var(--fs-caption); color: var(--color-text-muted); text-align: center; padding: 4px 0; }
.cal__cell { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 0; background: none; font: inherit; border-radius: 9px; position: relative; color: var(--color-text); }
.cal__day.is-off { color: var(--color-text-muted); opacity: 0.4; }
.cal__day.is-open { cursor: pointer; font-weight: 700; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, #fff); }
.cal__day.is-open:hover { background: color-mix(in srgb, var(--color-accent) 22%, #fff); }
.cal__day.is-active { background: var(--color-accent); color: #fff; }
.cal__dot { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal-times__head { font-weight: 700; margin: var(--space-6) 0 var(--space-3); text-align: center; }
.cal-times__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cal-slot { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 9px 15px; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.cal-slot input { width: auto; flex: 0 0 auto; }
.cal-slot:has(input:checked) { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, #fff); color: var(--color-accent); font-weight: 700; }
.cal-hint { margin: var(--space-6) 0 var(--space-3); }

/* 확인 다이얼로그 (문의 광고 확인 등) */
.confirm { position: fixed; inset: 0; margin: auto; width: min(420px, 92vw); height: fit-content; max-height: 90vh; border: 0; border-radius: 16px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(12,17,28,0.4); }
.confirm::backdrop { background: rgba(12,17,28,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.confirm__q { font-size: var(--fs-h4); font-weight: 700; color: var(--color-heading); text-align: center; margin: 0 0 var(--space-6); word-break: keep-all; }
.confirm__act { display: flex; gap: 10px; justify-content: center; }

/* 기업신용등급 배지 (홈 신뢰지표) */
.credit-badge { display: flex; align-items: center; justify-content: center; gap: var(--space-5);
  max-width: 520px; margin: 0 auto; padding: var(--space-5) var(--space-6);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.credit-badge__grade { flex: none; display: inline-grid; place-items: center; min-width: 92px; padding: 10px 16px;
  background: var(--color-primary); color: #fff; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: .5px; line-height: 1; }
.credit-badge__meta { display: flex; flex-direction: column; gap: 4px; }
.credit-badge__label { font-weight: 700; color: var(--color-heading); font-size: var(--fs-body); }
.credit-badge__year { color: var(--color-text-muted); font-size: var(--fs-sm); }
@media (max-width: 480px) { .credit-badge { flex-direction: column; text-align: center; } }

/* 특허 상태 배지 (출원/등록) — R&D 공개 페이지 */
.pat-status { flex: 0 0 auto; display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: var(--fs-caption); font-weight: 700; line-height: 1.5; letter-spacing: .3px; }
.pat-status--registered { background: var(--color-accent-soft); color: var(--color-accent-press); }
.pat-status--filed { background: var(--n-100, #eef0f4); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ============================================================
   한글 반응형 — 모든 한글 텍스트가 컨테이너 너비에 따라
   어절(단어) 단위로 자동 줄바꿈. 강제 줄바꿈/가로 스크롤 안 함.
   화면이 충분히 넓으면 한 줄, 좁으면 자연스럽게 여러 줄로.
   ============================================================ */
.feature__list li,
.section-head__lead, .section-head__title,
.card__text, .card__title,
.cta-band__text, .cta-band__title,
.page-hero__lead, .page-hero__title,
.feature__text, .feature__title,
.tabs__btn,
.section-head .u-muted {
  word-break: keep-all;        /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;   /* 긴 영문/URL fallback */
  white-space: normal;         /* 강제 한 줄 X */
}
/* 탭 네비: 좁은 화면에서도 자연 wrap (가로 스크롤 X) */
.tabs__nav { flex-wrap: wrap; }

/* ============================================================
   회사소개 — Vision 섹션 타이포·간격 리듬 (제목/본문/소제목)
   ============================================================ */
/* 슬로건 헤드: eyebrow → 제목 간격, 본문과의 폭 정렬 */
.company-vision__head { max-width: 64ch; margin-bottom: var(--space-10); }
.company-vision__head .section-head__eyebrow { margin-bottom: var(--space-4); }
/* 섹션 대표 슬로건 — 더 크고 단단한 줄간격 */
.company-vision__slogan {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.6rem);
  line-height: 1.32;
  letter-spacing: var(--tracking-tight);
}
/* 비전 본문 2단락 — 가독 크기·줄간격·열 간격 */
.company-vision__intro { gap: var(--space-10) var(--space-12); align-items: start; }
.company-vision__intro > p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  color: var(--color-text-on-dark-muted);
}
/* Mission / 경영정책 소제목 — 일정한 상단 리듬 */
.company-vision__sub { margin-top: var(--space-20); margin-bottom: 0; max-width: none; }
.company-vision__sub .section-head__eyebrow { margin-bottom: var(--space-6); }
/* 소제목 → 본문 간격은 eyebrow 하단 여백(space-6)만으로 통일 */
.company-vision .mission-quote { margin-top: 0; }
.company-vision .ethics-list { margin-top: 0; }

/* ============================================================
   회사소개 — Mission 인용 + 윤리경영정책 리스트 (다크 섹션 내부)
   ============================================================ */
.mission-quote {
  position: relative;                 /* 불꽃 스파크 궤도 기준 (2030 Mission 둘레) */
  margin: var(--space-6) 0 0;
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-press) 100%);
  border-radius: var(--radius-lg);
}
.mission-quote p {
  font-size: var(--fs-h4);
  line-height: 1.6;
  color: #fff;
  margin: 0;
  font-weight: 500;
}
.ethics-list { margin-top: var(--space-6); }
/* 1번(존재목적) — 2~10번 신념 항목과 동일한 모양 */
.ethics-purpose {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.ethics-purpose:hover {
  border-left-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.07);
}
/* 1조 강조 — 심지(퓨즈)가 타들어가며 박스 둘레를 도는 애니메이션
   ※ animation 에 !important: base.css 의 전역 prefers-reduced-motion 차단(* animation 0.001ms)을 이겨내고 항상 재생 */
.ethics-spark { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; }
/* 퓨즈 줄(심지) — 박스 둘레의 점선 */
.ethics-spark::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1.5px dashed rgba(255, 214, 130, 0.42);
}
.ethics-spark i {
  position: absolute; top: 0; left: 0; border-radius: 50%; background: #fff;
  /* 2030 Mission 박스(전체 라운드) 둘레 경로 */
  offset-path: inset(0 round var(--radius-lg)); offset-rotate: 0deg; offset-distance: 0%;
  will-change: offset-distance;
}
/* 타들어가는 심지 끝 — 밝은 불꽃 머리 */
.ethics-spark i:nth-child(1) {
  width: 12px; height: 12px;
  box-shadow: 0 0 8px 3px #fff6cf, 0 0 18px 7px #ffc24a, 0 0 32px 13px rgba(255,110,0,0.72), 0 0 52px 22px rgba(255,60,0,0.40);
  animation: ethicsFuse 8s linear infinite, ethicsFlame 0.11s steps(2, end) infinite !important;
}
/* 뒤로 흩날리는 불티(꼬리) — 불꽃 머리 바로 뒤를 따라감 */
.ethics-spark i:nth-child(2) {
  width: 7px; height: 7px; background: #ffdc86;
  box-shadow: 0 0 6px 2px #ffdc86, 0 0 14px 5px rgba(255,140,0,0.6);
  animation: ethicsFuse 8s linear infinite, ethicsFlame 0.13s steps(2, end) infinite !important;
  animation-delay: -7.8s, 0s !important;
}
.ethics-spark i:nth-child(3) {
  width: 5px; height: 5px; background: #ff9a3c; opacity: 0.85;
  box-shadow: 0 0 5px 2px rgba(255,120,0,0.6);
  animation: ethicsFuse 8s linear infinite, ethicsFlame 0.16s steps(2, end) infinite !important;
  animation-delay: -7.6s, -0.04s !important;
}
@keyframes ethicsFuse { to { offset-distance: 100%; } }
@keyframes ethicsFlame { 50% { transform: scale(0.66); opacity: 0.55; } }
/* offset-path 미지원 브라우저 폴백: Mission 박스 자체가 은은히 빛나도록 */
@supports not (offset-path: inset(0)) {
  .ethics-spark i { display: none; }
  .mission-quote { animation: ethicsGlow 2s ease-in-out infinite !important; }
  @keyframes ethicsGlow { 50% { box-shadow: 0 0 0 3px rgba(255,170,60,0.55), 0 0 26px rgba(255,120,0,0.5); } }
}
.ethics-purpose__no {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; line-height: 1.4;
  color: var(--color-accent);
  min-width: 28px;
}
.ethics-purpose p {
  color: var(--color-text-on-dark); margin: 0; line-height: 1.6;
}
.ethics-creed {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-2);
}
.ethics-creed li {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.ethics-creed li:hover {
  border-left-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.07);
}
.ethics-creed__no {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; line-height: 1.4;
  color: var(--color-accent);
  min-width: 28px;
}
.ethics-creed p {
  color: var(--color-text-on-dark);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .mission-quote { padding: var(--space-5) var(--space-5); }
  .mission-quote p { font-size: var(--fs-body-lg); }
  .ethics-purpose { padding: var(--space-3) var(--space-4); }
  .ethics-creed li { padding: var(--space-3) var(--space-4); }
  .company-vision__head { margin-bottom: var(--space-8); }
  .company-vision__intro { gap: var(--space-6); }
  .company-vision__sub { margin-top: var(--space-12); }
}

/* ============================================================
   회사소개 — 디자인 최적화 (대비·정렬·여백) · .page-company 스코프 한정
   다른 페이지에 영향을 주지 않도록 모두 .page-company 하위로 한정
   ============================================================ */
/* 다크 비전 섹션 슬로건 강조색 — 네이비 위에서 또렷하도록 브랜드 인디고를 밝게 보정 */
.company-vision__slogan .u-accent { color: color-mix(in srgb, var(--color-accent) 42%, #ffffff); }
/* 비전 본문 두 단락 — 한 줄 길이를 적정폭으로 묶어 가독성 향상 */
.company-vision__intro > p { max-width: 46ch; }

/* 인증 스펙 6개 → 3×2 균형 배치 (1행 인증서 · 2행 품질지표로 자연 그룹화) */
.page-company .spec-grid { grid-template-columns: repeat(3, 1fr); }
/* 클릭 가능한 인증서 카드(spec--cert)에 호버 어포던스 */
.page-company .spec--cert { cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.page-company .spec--cert:hover { transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(45, 64, 95, 0.12);
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border)); }

/* 정부 인증·지정 동판 6개 → 3×2 그리드 정렬 (가운데 wrap의 5+1 불균형 제거). 회사소개·채용 등 공통 */
.cert-grid--plates { display: grid; grid-template-columns: repeat(3, max-content);
  justify-content: center; justify-items: center; align-items: center; gap: var(--space-10) var(--space-12); }

@media (max-width: 720px) {
  .page-company .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid--plates { grid-template-columns: repeat(2, max-content); gap: var(--space-8); }
}
@media (max-width: 420px) {
  .page-company .spec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   푸터 Connect (뉴스레터 + 소셜)
   ============================================================ */
.site-footer__connect {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-6);
  align-items: center;
}
.site-footer__connect h4 {
  font-size: var(--fs-h4);
  color: var(--color-heading);
  margin: 0;
}
.site-footer__social { display: flex; gap: var(--space-2); }
.site-footer__social a {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.site-footer__social a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .site-footer__connect { grid-template-columns: 1fr; gap: var(--space-4); text-align: left; }
  .site-footer__social { justify-content: flex-start; }
}

/* ============================================================
   공개 사이트 전역 — 기본 디자인의 가독성용 max-width: Nch 제약을
   풀어 컨테이너 너비를 최대 활용 (넓으면 한 줄, 좁으면 자동 줄바꿈).
   components.css 는 공개 사이트만 로드하므로 관리자에 영향 없음.
   ============================================================ */
.section-head     { max-width: none; }
.page-hero__inner { max-width: var(--container-max); }
.cta-band__title  { max-width: none; }
.cta-band__text   { max-width: none; }
.feature__text    { max-width: none; }
.hero__lead       { max-width: none; }
p                 { max-width: none; }

/* 콘텐츠 보호 — 본문 텍스트 선택/복사 차단 · 이미지 드래그/저장 메뉴 차단.
   입력 필드·편집영역은 예외(지원서·검색·관리자 편집기 정상 동작). */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
input, textarea, select, [contenteditable], .doc-editor__area {
  -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
}
img, video, picture {
  -webkit-user-drag: none; user-drag: none;
  -webkit-touch-callout: none;
}
