/* =====================================================================
   한성정밀공업(주) — 사이트 스타일
   설계 컨셉: "엔지니어링 데이터시트" — 철·콘크리트의 차가운 중성색 위에
   브랜드 엠블럼의 적색을 한 곳에만 사용. 직선, 얇은 괘선, 표 중심.
   ===================================================================== */

:root {
  /* 색 — 강재/콘크리트 톤의 중성색 + HS 적색 */
  --ink: #161c24;
  --ink-2: #2e3844;
  --text: #222a33;
  --muted: #667180;
  --line: #d6dce4;
  --line-strong: #b9c2cd;
  --ground: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #e8ecf1;
  --steel: #263447;
  --steel-deep: #1a2433;
  --red: #c8322b;
  --red-deep: #a2251f;
  --red-tint: #fbeeed;

  /* 서체 */
  --font-display: "Gothic A1", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 타입 스케일 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: clamp(2rem, 3.6vw, 2.875rem);
  --fs-hero: clamp(2.25rem, 5.2vw, 4.25rem);

  /* 간격/레이아웃 */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 2px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(22, 28, 36, 0.08);
}

/* ---------- 리셋/기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.nav-open, body.lb-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
b, strong { font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- 상단 얇은 바 ---------- */
.topbar { background: var(--ink); color: #c9d1dc; font-size: var(--fs-xs); letter-spacing: .04em; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.topbar__brand-en { font-family: var(--font-mono); letter-spacing: .12em; }
.topbar__contact { display: flex; gap: 1.5rem; }
.topbar__contact a { color: #e6ebf2; }
.topbar__contact .mono { color: #8c98a8; margin-right: .35rem; }
@media (max-width: 640px) { .topbar__brand-en { display: none; } .topbar__in { justify-content: flex-end; } .topbar__contact { gap: 1rem; } .topbar__contact a { white-space: nowrap; } }
/* 좁은 폰 화면에선 상단바에 전화번호만 — 이메일은 넘쳐서 줄바꿈/가로스크롤 유발. (이메일은 문의/푸터에 있음) */
@media (max-width: 560px) { .topbar__contact a[href^="mailto:"] { display: none; } }

/* ---------- 헤더/내비 ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 28, 36, .08); }
.header__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__emblem { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__ko { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__corp { font-weight: 700; font-size: .95em; margin-left: .1em; }
.brand__en { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; color: var(--muted); margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; list-style: none; gap: .25rem; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: .35rem; padding: 1.55rem .95rem; font-weight: 500; font-size: .98rem; color: var(--ink-2); position: relative; }
.nav__link::after { content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 1.15rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__item:hover > .nav__link::after, .nav__item.is-active > .nav__link::after, .nav__item.is-focus > .nav__link::after { transform: scaleX(1); }
.nav__item:hover > .nav__link, .nav__item.is-active > .nav__link { color: var(--ink); }
.nav__chev { opacity: .6; transition: transform .2s; }
.nav__item:hover .nav__chev, .nav__item.is-focus .nav__chev { transform: rotate(180deg); }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red); box-shadow: var(--shadow); padding: .4rem 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item:hover > .nav__sub, .nav__item.is-focus > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: .6rem 1.1rem; font-size: .92rem; color: var(--ink-2); }
.nav__sub a:hover { background: var(--ground); color: var(--red); }
.nav__cta { white-space: nowrap; }
/* 3줄 막대를 절대 위치로 정중앙에 배치 → 열림 시 두 막대가 정확히 겹쳐 깔끔한 X.
   (기존 flex gap + translateY 방식은 막대가 안 겹쳐 ⌄ 모양으로 보였음) */
.menu-btn { display: none; position: relative; width: 44px; height: 44px; }
.menu-btn span { position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; margin: -1px 0 0 -11px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.menu-btn span:nth-child(1) { transform: translateY(-6px); }
.menu-btn span:nth-child(3) { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand__emblem { width: 34px; height: 34px; }
  .brand__ko { font-size: 1.1rem; }
  .menu-btn { display: flex; }
  /* backdrop-filter 가 걸린 요소는 position:fixed 자식의 컨테이닝 블록이 되어
     모바일 드로어(.nav)가 64px 헤더 기준으로 잘려 히어로에 가려짐 → 모바일에선 blur 해제.
     배경이 이미 96% 불투명이라 시각차는 거의 없음. */
  .header { backdrop-filter: none; }
  /* 닫힌 상태를 transform 대신 clip-path 로 숨김 — translateX(100%) 는 모바일 스크롤 폭을 늘리는 원인 */
  .nav { position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 2rem; overflow-y: auto; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .28s ease, visibility .28s; z-index: 90; }
  .nav.is-open { clip-path: inset(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 1rem .25rem; font-size: 1.05rem; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; display: none; padding: 0 0 .75rem .75rem; background: transparent; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item.is-open .nav__chev { transform: rotate(180deg); }
  .nav__sub a { padding: .55rem .5rem; color: var(--muted); }
  .nav__cta { margin-top: 1.25rem; text-align: center; }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; font-weight: 600; font-size: .95rem; line-height: 1; border: 1px solid transparent; border-radius: var(--radius); transition: background .18s, color .18s, border-color .18s, transform .18s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--steel); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.btn--light:hover { color: var(--red); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 공용 타이포 요소 ---------- */
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: #f4b6b1; }
.eyebrow--center { justify-content: center; }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.75; max-width: 62ch; }
.text-muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.small { font-size: var(--fs-sm); }
.note { font-size: var(--fs-sm); color: var(--muted); }
.note::before { content: "※ "; }

/* ---------- 섹션 ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--ground); }
.section--dark { background: var(--steel-deep); color: #d6dde6; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--stack { grid-template-columns: 1fr; }
.section__head--center { grid-template-columns: 1fr; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head .lead { margin: 0; }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; gap: 1rem; } }
.section__title { font-size: var(--fs-3xl); }
.divider { border: 0; border-top: 1px solid var(--line); margin: clamp(2rem, 4vw, 3rem) 0; }

/* ---------- 그리드/카드 ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
/* grid/flex 칸이 자식의 min-content(넓은 표 min-width 등)만큼 늘어나 가로 넘침을
   일으키지 않도록 축소 허용. .table-wrap(overflow-x:auto) 이 칸 안에서 스크롤되게 함. */
.grid > *, .split > *, .section__head > * { min-width: 0; }
.table-wrap { max-width: 100%; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4, .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover, .card--link:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card__media img { transform: scale(1.04); }
.card__media--square { aspect-ratio: 1; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__kicker { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.card__title { font-size: var(--fs-lg); }
.card__text { color: var(--muted); font-size: var(--fs-sm); line-height: 1.7; }
.card__more { margin-top: auto; padding-top: .75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
a.card:hover .card__more { color: var(--red); }
.card--plain { border: 0; background: transparent; }
.card--plain .card__body { padding: 1.1rem 0 0; }

/* 사양/특징 박스 */
.feature { padding: 1.6rem 1.6rem 1.7rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.feature--red { border-top-color: var(--red); }
.feature__title { font-size: var(--fs-md); margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.feature__title .idx { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--red); letter-spacing: .1em; }
.feature__list { list-style: none; color: var(--ink-2); font-size: var(--fs-sm); }
.feature__list li { padding-left: 1rem; position: relative; }
.feature__list li + li { margin-top: .4rem; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--red); }
.section--dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); border-top-color: var(--red); }
.section--dark .feature__list { color: #c8d0da; }

/* 체크/불릿 리스트 */
.check-list { list-style: none; display: grid; gap: .55rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 700px) { .check-list--2 { grid-template-columns: 1fr; } }

/* ---------- 홈 히어로 ---------- */
.hero { position: relative; color: #fff; background: var(--ink); min-height: min(88vh, 780px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 18, 24, .88) 0%, rgba(14, 18, 24, .72) 45%, rgba(14, 18, 24, .25) 100%), linear-gradient(0deg, rgba(14, 18, 24, .85) 0%, rgba(14, 18, 24, 0) 45%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.hero__in { position: relative; padding: clamp(5rem, 12vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__eyebrow { color: #f0a49d; }
.hero__title { font-size: var(--fs-hero); font-weight: 900; line-height: 1.12; letter-spacing: -0.025em; color: #fff; max-width: 16ch; }
.hero__title em { font-style: normal; color: #f6c1bc; white-space: nowrap; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #cfd7e1; max-width: 52ch; line-height: 1.75; }
.hero__actions { display: flex; gap: .75rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero__stats { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 760px) { .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.stat__num small { font-size: .5em; font-weight: 700; margin-left: .15em; color: #cfd7e1; }
.stat__label { margin-top: .5rem; font-size: var(--fs-sm); color: #aab5c3; }
.stat__label .mono { display: block; font-size: var(--fs-xs); letter-spacing: .1em; color: #f0a49d; margin-bottom: .2rem; }

/* 홈 — 사업분야 대형 카드 */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } }
.biz__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 2rem; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.biz__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.biz__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 24, .05) 30%, rgba(14, 18, 24, .92) 100%); }
.biz__item:hover img { transform: scale(1.05); }
.biz__item:hover { color: #fff; }
.biz__num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; color: #f0a49d; }
.biz__title { color: #fff; font-size: var(--fs-xl); margin-top: .5rem; }
.biz__text { color: #cfd7e1; font-size: var(--fs-sm); margin-top: .75rem; max-width: 34ch; }
.biz__more { margin-top: 1.25rem; font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: .4rem; }
.biz__item:hover .biz__more { color: #f6c1bc; }

/* 제품 라인업 원형 */
.lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lineup__item { text-align: center; color: var(--ink); }
.lineup__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.lineup__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.lineup__item:hover .lineup__img { border-color: var(--red); transform: translateY(-4px); }
.lineup__name { margin-top: .9rem; font-weight: 700; font-size: var(--fs-sm); }
.lineup__spec { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-top: .15rem; }

/* 신뢰 지표 띠 */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 800px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust__item { padding: 1.6rem 1.5rem; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
@media (max-width: 800px) { .trust__item:nth-child(2) { border-right: 0; } .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.trust__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.trust__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); margin-top: .5rem; line-height: 1.3; }
.trust__desc { font-size: var(--fs-sm); color: var(--muted); margin-top: .35rem; }

/* ---------- 서브 페이지 히어로 ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink) var(--hero-img) center / cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 18, 24, .9), rgba(14, 18, 24, .55) 60%, rgba(14, 18, 24, .35)); }
.page-hero .container { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero__title { color: #fff; font-size: var(--fs-3xl); font-weight: 900; letter-spacing: -0.02em; }
.page-hero__sub { margin-top: 1rem; color: #cfd7e1; max-width: 56ch; font-size: var(--fs-md); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: #9fabba; margin-bottom: 1.5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #667180; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #f0a49d; }
/* 모바일: breadcrumb 링크 터치 영역 확대 (세로 패딩만 — 줄바꿈 간격 최소화) */
@media (max-width: 640px) { .crumbs ol { gap: .1rem .6rem; margin-bottom: 1.25rem; align-items: center; } .crumbs a, .crumbs [aria-current] { display: inline-block; padding: .35rem 0; } }

/* 서브 탭 내비 (사업분야 등) */
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: var(--header-h); z-index: 50; }
.subnav ul { list-style: none; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 1rem 1.1rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- 분할 레이아웃 ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.split__media img { width: 100%; border: 1px solid var(--line); }
.split__media--plain img { border: 0; }
.figure { margin: 0; }
.figure img { width: 100%; border: 1px solid var(--line); background: #fff; }
.figure figcaption { margin-top: .6rem; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 정의 목록 (회사개요 등) ---------- */
.kv { display: grid; grid-template-columns: max-content 1fr; border-top: 2px solid var(--ink); }
.kv > dt, .kv > dd { padding: .95rem 1rem; border-bottom: 1px solid var(--line); margin: 0; }
.kv > dt { background: var(--ground); font-weight: 600; color: var(--ink-2); font-size: var(--fs-sm); min-width: 9rem; }
.kv > dd { color: var(--text); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv > dt { border-bottom: 0; padding-bottom: .3rem; } }

/* ---------- 표 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.spec-table { min-width: 640px; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--ground); font-weight: 700; color: var(--ink); font-size: var(--fs-xs); letter-spacing: .04em; white-space: nowrap; }
.spec-table tbody th { background: #fafbfc; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.spec-table th, .spec-table td { overflow-wrap: normal; }
.spec-table td.num, .spec-table th.num, .spec-table--num td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.spec-table .mono, .spec-table td.mono, .spec-table tbody.mono td, .spec-table.mono td, .spec-table.mono th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-table--center td, .spec-table--center th { text-align: center; }
.spec-table--center td.num { text-align: center; }
.spec-table tbody tr:hover { background: #f7f9fb; }
.spec-table tfoot td { font-weight: 700; background: var(--ground); }
.spec-table--sm { min-width: 0; }
.spec-table td ul { list-style: none; }
.spec-table td li { padding-left: .9rem; position: relative; }
.spec-table td li::before { content: "·"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.table-title { font-size: var(--fs-md); margin: 2.25rem 0 .75rem; display: flex; align-items: baseline; gap: .75rem; }
.table-title:first-child { margin-top: 0; }
.table-title .mono { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; }

/* ---------- 연혁 타임라인 ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin-bottom: 2rem; }
.tabs__tab { padding: .6rem 1.1rem; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface); }
.tabs__tab:hover { border-color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: .5rem; }
.timeline__item { position: relative; padding: 0 0 1.75rem 2rem; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.timeline__item::before { content: ""; position: absolute; left: -6px; top: .55em; width: 10px; height: 10px; background: var(--surface); border: 2px solid var(--red); border-radius: 50%; }
.timeline__date { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--red); font-weight: 500; letter-spacing: .02em; }
.timeline__body { color: var(--text); }
.timeline__body li + li { margin-top: .25rem; }
.timeline__body ul { list-style: none; }
.timeline__body .ref { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); margin-left: .35rem; }
@media (max-width: 600px) { .timeline__item { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- 조직도 ---------- */
.org { --org-line: var(--line-strong); text-align: center; overflow-x: auto; padding-bottom: .5rem; }
.org ul { list-style: none; display: flex; justify-content: center; position: relative; padding-top: 1.75rem; }
.org > ul { padding-top: 0; }
.org li { position: relative; padding: 0 .6rem; display: flex; flex-direction: column; align-items: center; }
.org ul ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 1.75rem; background: var(--org-line); transform: translateX(-50%); }
.org ul ul > li::before { content: ""; position: absolute; top: -1.75rem; left: 50%; width: 2px; height: 1.75rem; background: var(--org-line); }
.org ul ul > li::after { content: ""; position: absolute; top: -1.75rem; left: 0; right: 0; height: 2px; background: var(--org-line); }
.org ul ul > li:first-child::after { left: 50%; }
.org ul ul > li:last-child::after { right: 50%; }
.org ul ul > li:only-child::after { display: none; }
.org__node { display: inline-block; min-width: 9.5rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.org__node small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: .2rem; font-family: var(--font-mono); letter-spacing: .02em; }
.org__node--ceo { background: var(--ink); color: #fff; border-color: var(--ink); font-family: var(--font-display); font-size: var(--fs-md); padding: 1rem 2.2rem; }
.org__node--dept { border-top: 3px solid var(--red); }
@media (max-width: 860px) { .org { text-align: left; } .org > ul { min-width: 760px; } }

/* ---------- 인증서/갤러리 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cert { margin: 0; text-align: center; }
.cert a { display: block; background: #fff; border: 1px solid var(--line); padding: .75rem; transition: border-color .2s, transform .2s; }
.cert a:hover { border-color: var(--red); transform: translateY(-3px); }
.cert img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; }
.cert figcaption { margin-top: .7rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { margin-top: .5rem; font-size: var(--fs-xs); color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 13, 18, .92); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; background: #fff; }
.lightbox figcaption { color: #cfd7e1; font-size: var(--fs-sm); }
.lightbox__close { position: absolute; top: 1rem; right: 1.25rem; color: #fff; font-size: 2.25rem; line-height: 1; width: 48px; height: 48px; }

/* ---------- 단계(공정) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step { counter-increment: step; background: var(--surface); border: 1px solid var(--line); }
.step img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.step__body { padding: 1rem 1.1rem 1.2rem; }
.step__title { font-size: var(--fs-sm); font-weight: 700; display: flex; gap: .5rem; align-items: baseline; }
.step__title::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--red); }
.step__text { font-size: var(--fs-xs); color: var(--muted); margin-top: .35rem; line-height: 1.6; }

/* ---------- 자료실 ---------- */
.doc-list { list-style: none; border-top: 2px solid var(--ink); }
.doc { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem .5rem; border-bottom: 1px solid var(--line); }
.doc__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; }
.doc__title { font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.doc__meta { font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); margin-top: .2rem; }
@media (max-width: 600px) { .doc { grid-template-columns: 48px 1fr; } .doc .btn { grid-column: 2; justify-self: start; } }

/* ---------- 문의/폼 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border-top: 2px solid var(--ink); }
.contact-card__row { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-card__row dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--red); padding-top: .25rem; }
.contact-card__row dd { margin: 0; }
.contact-card__row dd .big { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); letter-spacing: -0.01em; color: var(--ink); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--red); margin-left: .2rem; }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-sm); padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field textarea { min-height: 160px; resize: vertical; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form__consent { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.form__consent input { margin-top: .2rem; }
.callout { padding: 1rem 1.25rem; background: var(--red-tint); border-left: 3px solid var(--red); font-size: var(--fs-sm); color: var(--ink-2); }
.map-embed { border: 1px solid var(--line); background: var(--surface-2); min-height: 420px; }
.map-embed iframe, .map-embed .root_daum_roughmap { width: 100% !important; }
.map-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- 배지 ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--surface); }
.badge--red { border-color: var(--red); color: var(--red); background: var(--red-tint); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- CTA 띠 / 푸터 ---------- */
.cta-band { background: var(--steel); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); background-image: linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 120px 100%; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: var(--fs-2xl); }
.cta-band__sub { margin-top: .75rem; color: #b9c4d1; max-width: 60ch; font-size: var(--fs-sm); }
.cta-band__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.footer { background: var(--ink); color: #aab5c3; font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(6, minmax(0, 1fr)); gap: 2rem; padding: 3.5rem 0 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer__brand { display: flex; gap: .9rem; align-items: center; }
.footer__name { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); }
.footer__name-en { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: #8c98a8; }
.footer__col h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: .8rem; font-family: var(--font-body); font-weight: 700; }
.footer__col ul { list-style: none; display: grid; gap: .45rem; }
.footer__col a { color: #aab5c3; font-size: var(--fs-xs); }
.footer__col a:hover { color: #fff; }
.footer__info { padding: 1.75rem 0 2.25rem; display: grid; gap: .35rem; font-size: var(--fs-xs); }
.footer__info span { margin-right: 1.25rem; }
.footer__info b { color: #e6ebf2; font-weight: 500; }
.footer__copy { margin-top: .75rem; color: #7c889a; }
.footer__copy a { margin-left: .75rem; text-decoration: underline; text-underline-offset: 3px; }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; background: var(--ink); color: #fff; border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 80; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* ---------- 등장 애니메이션 ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .1s; }
[data-reveal="3"] { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .card, .btn, .biz__item img { transition: none; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.notfound__code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 8rem); color: var(--line-strong); line-height: 1; }

/* ---------- 언어 전환 ---------- */
.lang-switch { border: 1px solid rgba(255, 255, 255, .25); padding: .1rem .5rem; margin-left: .25rem; }
.lang-switch:hover { border-color: #fff; color: #fff; }
.nav__lang { display: none; }
@media (max-width: 960px) { .nav__lang { display: block; text-align: center; margin-top: .75rem; font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- 검토용 테마 전환기 (site.config.json review.theme_switcher) ---------- */
.theme-switch { position: fixed; left: 1rem; bottom: 1rem; z-index: 85; display: flex; align-items: center; gap: .35rem; padding: .4rem .5rem; background: rgba(22, 28, 36, .92); color: #fff; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: var(--fs-xs); }
.theme-switch__label { font-family: var(--font-mono); letter-spacing: .08em; color: #aab5c3; padding: 0 .4rem; }
.theme-switch button { padding: .4rem .65rem; border: 1px solid rgba(255, 255, 255, .2); color: #dfe5ec; border-radius: 3px; font-size: var(--fs-xs); }
.theme-switch button:hover { border-color: #fff; color: #fff; }
.theme-switch button.is-on { background: #fff; color: #161c24; border-color: #fff; font-weight: 700; }
@media (max-width: 640px) { .theme-switch__label { display: none; } }
@media print { .theme-switch { display: none !important; } }

/* ---------- 인쇄 / PDF 출력 ---------- */
@media print {
  .topbar, .header, .cta-band, .to-top, .menu-btn, .subnav, .lightbox, .footer__grid { display: none !important; }
  .page-hero { color: #000; background: none !important; padding: 0; }
  .page-hero::before { display: none; }
  .page-hero__title, .page-hero__sub { color: #000; }
  .crumbs { display: none; }
  .section { padding-block: 1.5rem; }
  .section--dark { background: #fff; color: #000; }
  .section--dark h2, .section--dark h3, .section--dark h4, .section--dark .lead { color: #000 !important; }
  .section--dark .feature { border-color: #ccc; } .section--dark .feature__list { color: #222; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card, .feature, .figure img, .table-wrap { break-inside: avoid; }
  .gallery a { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .footer { background: none; color: #333; font-size: 10pt; }
  .footer__info b { color: #000; }
}
