/* SAMBU 시안 v1 — 폰트: Pretendard (SIL OFL 1.1) */
:root {
  --ink: #0e1526;
  --ink-2: #3b4456;
  --ink-3: #6b7385;
  --line: #e0e4ec;
  --paper: #f5f7fb;
  --white: #ffffff;
  --brand-900: #0f1c3f;
  --brand-700: #1e3170;
  --brand-500: #2e4995;
  --accent: #7db4ff;
  --radius: 14px;
  --wrap: 100%;                          /* 화면 전체 폭 사용 */
  --gutter: clamp(20px, 6.25vw, 160px);  /* 1920px 화면에서 좌우 120px */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
/* 중국어: 한자 글꼴 보충, 글자 단위 줄바꿈 */
html:lang(zh) body { font-family: "Pretendard Variable", Pretendard, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; word-break: normal; line-break: strict; }
html:lang(en) body { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.h-section { font-size: clamp(28px, 2.6vw, 60px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin-top: 14px; }
.lead { font-size: clamp(15px, 1vw, 20px); color: var(--ink-2); margin-top: 16px; max-width: 720px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--brand-900); }
.btn-primary:hover { background: #a3caff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-dark { background: var(--brand-900); color: var(--white); }
.btn-dark:hover { background: var(--brand-500); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* 사진 자리 표시 */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, var(--brand-700), var(--brand-900));
  color: rgba(255,255,255,.55);
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 12px; letter-spacing: .04em;
}
.ph.light {
  background:
    repeating-linear-gradient(135deg, rgba(14,21,38,.05) 0 1px, transparent 1px 14px),
    #e9edf4;
  color: var(--ink-3);
}

/* 사진 */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white); transition: background .25s, color .25s, box-shadow .25s;
}
.header.solid, .header.always-solid, .header:hover, .header.open {
  background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.header-in { display: flex; align-items: center; height: 76px; gap: 40px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: clamp(40px, 2.5vw, 50px); width: auto; transition: filter .25s; }
/* 투명 헤더(어두운 배경)·푸터에서는 로고를 흰색으로 */
.header:not(.solid):not(.always-solid):not(:hover):not(.open) .logo img,
.footer .logo img { filter: brightness(0) invert(1); }
.gnb { display: flex; gap: clamp(20px, 3.4vw, 76px); margin-left: auto; height: 100%; }
.gnb > li { position: relative; height: 100%; display: flex; align-items: center; }
.gnb > li > a { padding: 0 clamp(16px, 1.5vw, 32px); font-size: clamp(17px, 1.05vw, 22px); font-weight: 600; height: 100%; display: flex; align-items: center; }
.gnb > li > a:hover { color: var(--brand-500); }
.gnb > li.on > a { box-shadow: inset 0 -3px 0 var(--accent); }
.header.solid .gnb > li.on > a, .header:hover .gnb > li.on > a { box-shadow: inset 0 -3px 0 var(--brand-500); }
.gnb .sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 190px; padding: 14px; border-radius: 12px;
  background: var(--white); color: var(--ink); box-shadow: 0 12px 40px rgba(14,21,38,.12);
  opacity: 0; visibility: hidden; transition: .2s;
}
.gnb > li:hover .sub, .gnb > li:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.gnb .sub a:hover { background: var(--paper); color: var(--ink); }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a { padding: 6px 8px; opacity: .55; }
.lang a.on, .lang a:hover { opacity: 1; }
.menu-btn { display: none; width: 40px; height: 40px; margin-left: auto; }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }
.header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.open .menu-btn span:nth-child(2) { opacity: 0; }
.header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (기존 홈페이지와 동일한 슬라이드) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative; height: 100vh; min-height: 560px; overflow: hidden;
  background: #111; color: var(--white); touch-action: pan-y; user-select: none;
}
.hero-track { display: flex; height: 100%; transition: transform .3s ease; }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-txt { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-txt h2 { font-size: clamp(30px, 3.75vw, 96px); line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.hero-txt p { font-size: clamp(14px, 1.25vw, 30px); line-height: 1.85; margin-top: 40px; }
.hero-ctrl-wrap { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; }
.hero-ctrl { display: flex; align-items: center; gap: 8px; }
.hero-count { font-size: 13px; color: rgba(255,255,255,.65); margin-right: 8px; font-variant-numeric: tabular-nums; }
.hero-count b { color: var(--white); font-weight: 700; }
.hero-bars { display: flex; gap: 6px; margin-right: 10px; }
.hero-bars button { width: 40px; height: 20px; display: flex; align-items: center; }
.hero-bars button i { position: relative; display: block; width: 100%; height: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-bars button i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-bars button.done i::after { transform: scaleX(1); }
.hero-bars button.on i::after { animation: heroBar 4s linear forwards; }
.hero.paused .hero-bars button.on i::after { animation-play-state: paused; }
@keyframes heroBar { to { transform: scaleX(1); } }
.hero-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); color: var(--white);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.hero-btn:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-btn svg { width: 14px; height: 14px; }
.hero-btn .i-play, .hero.paused .hero-btn .i-pause { display: none; }
.hero.paused .hero-btn .i-play { display: block; }

@media (max-width: 768px) {
  .hero-txt h2 { font-size: 30px; }
  .hero-txt p { font-size: 14px; line-height: 20px; margin-top: 16px; max-width: 80%; }
  .hero-txt p br { display: none; }
  .hero-ctrl-wrap { bottom: 40px; }
  .hero-count { display: none; }
  .hero-bars button { width: 26px; }
}

/* ===== Section ===== */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card {
  position: relative; display: flex; flex-direction: column;
  padding: 12px 12px 76px; border-radius: var(--radius); background: var(--paper);
  transition: background .25s, color .25s, transform .25s;
}
.p-card .thumb { aspect-ratio: 834 / 505; border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.p-card:hover .thumb img { transform: scale(1.05); }
.p-card .num, .p-card h3, .p-card p { padding: 0 14px; }
.p-card:hover { background: var(--brand-900); color: var(--white); transform: translateY(-4px); }
.p-card .num { font-size: 13px; font-weight: 600; color: var(--brand-500); }
.p-card:hover .num { color: var(--accent); }
.p-card h3 { font-size: 24px; font-weight: 700; margin-top: 10px; letter-spacing: -.01em; }
.p-card p { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }
.p-card:hover p { color: rgba(255,255,255,.7); }
.p-card .arrow {
  position: absolute; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; display: grid; place-items: center; opacity: .3; transition: .25s;
}
.p-card:hover .arrow { opacity: 1; background: var(--accent); color: var(--brand-900); border-color: var(--accent); }
.p-card .arrow svg { width: 16px; height: 16px; }

/* Sustainability */
.sus { background: var(--brand-900); color: var(--white); }
.sus .eyebrow { color: var(--accent); }
.sus .lead { color: rgba(255,255,255,.7); }
.sus-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.sus-pillars { display: grid; gap: 14px; margin-top: 40px; }
.pillar {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
}
.pillar svg { width: 40px; height: 40px; color: var(--accent); }
.pillar h3 { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.pillar p { font-size: 14.5px; color: rgba(255,255,255,.68); margin-top: 4px; }
.sus-side .photo { aspect-ratio: 4/5; max-height: 720px; width: 100%; }
.sus-mgmt { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid rgba(255,255,255,.16); }
.sus-mgmt a { padding: 28px 24px 0 0; display: block; }
.sus-mgmt .n { font-size: 13px; color: var(--accent); font-weight: 600; }
.sus-mgmt h4 { font-size: 20px; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.sus-mgmt h4 svg { width: 16px; height: 16px; opacity: .5; transition: .2s; }
.sus-mgmt a:hover h4 svg { opacity: 1; transform: translateX(4px); }
.sus-mgmt p { font-size: 14.5px; color: rgba(255,255,255,.65); margin-top: 8px; padding-right: 12px; }

/* Network */
.net-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.net-list { margin-top: 36px; display: grid; gap: 0; }
.net-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.net-list li:first-child { border-top: 1px solid var(--line); }
.net-list b { font-weight: 600; }
.net-list span { color: var(--ink-3); font-size: 14.5px; text-align: right; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-right: 8px; vertical-align: 2px; }
.tag.f { background: var(--brand-900); color: var(--accent); }
.tag.o { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.map { position: relative; aspect-ratio: 1.45; border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.map svg { width: 100%; height: 100%; }

/* R&D band */
.rnd { background: var(--paper); }
.rnd-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.rnd .photo { aspect-ratio: 16/11; }
.rnd-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.rnd-points a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: border-color .2s; }
.rnd-points a:hover { border-color: var(--brand-500); color: var(--brand-500); }

/* Recruit + QnA */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 240px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.cta:hover { border-color: var(--ink); box-shadow: 0 10px 30px rgba(14,21,38,.06); }
.cta.dark {
  background: linear-gradient(rgba(30,49,112,.86), rgba(15,28,63,.94)), url(img/recruit.jpg) center / cover;
  border-color: var(--brand-700); color: var(--white);
}
.cta .label { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--brand-500); }
.cta.dark .label { color: var(--accent); }
.cta h3 { font-size: 24px; margin-top: 8px; }
.cta p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.cta.dark p { color: rgba(255,255,255,.7); }
.cta .more { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cta .more svg { width: 16px; height: 16px; }

/* Conflict minerals */
.cm { border-top: 1px solid var(--line); padding: 48px 0; }
.cm-in { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.cm-badge { width: 72px; height: 72px; color: var(--brand-500); }
.cm h3 { font-size: 18px; }
.cm p { font-size: 14px; color: var(--ink-3); margin-top: 4px; max-width: 880px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 56px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: var(--white); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--white); font-weight: 500; }
.footer-links a.em { color: var(--accent); }
.footer-info { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.footer-info div { display: flex; flex-direction: column; gap: 2px; }
.footer-info b { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.footer-copy { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ===== Sub page ===== */
.sub-visual { position: relative; padding: 156px 0 56px; background: var(--brand-900); color: var(--white); overflow: hidden; }
.sub-visual .bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,28,63,.95) 0%, rgba(30,52,115,.6) 50%, rgba(46,73,149,.12) 100%);
}
.sub-visual .wrap { position: relative; z-index: 2; }
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.55); }
.crumb svg { width: 12px; height: 12px; }
.sub-visual h1 { font-size: clamp(34px, 3.75vw, 84px); font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.sub-visual p { color: rgba(255,255,255,.7); margin-top: 8px; }

.lnb { position: sticky; top: 76px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.lnb ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.lnb ul::-webkit-scrollbar { display: none; }
.lnb a { display: block; padding: 20px 16px; font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.lnb a:hover { color: var(--ink); }
.lnb a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand-500); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); margin-bottom: 56px; flex-wrap: wrap; }
.tabs button { padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); }
.tabs button.on { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(14,21,38,.08); }
.tab-panel[hidden] { display: none; }
/* 주소의 #으로 이동할 때 고정 헤더·LNB에 가리지 않도록 */
.tab-panel { scroll-margin-top: 230px; }
main section[id] { scroll-margin-top: 136px; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro-grid .photo { aspect-ratio: 4/3; }
.wide-photo { aspect-ratio: 1400 / 340; margin-top: 56px; }
.gallery { display: grid; gap: 16px; margin-top: 56px; }
.gallery .photo { aspect-ratio: 1400 / 340; }
.intro-block + .intro-block { margin-top: 36px; }
.intro-block h3 { font-size: 22px; font-weight: 700; }
.intro-block p { color: var(--ink-2); margin-top: 10px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 72px 0 96px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--paper); }
.feature svg { width: 40px; height: 40px; color: var(--brand-500); }
.feature h4 { margin-top: 18px; font-size: 16px; letter-spacing: .06em; }
.feature p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.list-head h3 { font-size: 26px; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--white); }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec {
  display: flex; flex-direction: column; min-height: 190px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.spec:hover { border-color: var(--brand-500); }
.spec[hidden] { display: none; }
.spec .badge { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-3); letter-spacing: .04em; }
.spec .badge.rec { background: #e6edfb; color: var(--brand-500); }
.spec .badge.bio { background: #f0f9d9; color: #4d6b0f; }
.spec h4 { font-size: 18px; font-weight: 700; margin-top: 12px; }
.spec p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.spec .dl { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-500); }
.spec .dl svg { width: 14px; height: 14px; }

.spec-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.spec .dl.ask { color: var(--ink-3); }
.spec .dl.ask:hover { color: var(--brand-500); }
.note { margin-top: 32px; font-size: 14px; color: var(--ink-3); }
.note a { color: var(--brand-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 하위 페이지 공통 블록 ===== */
.sec-paper { background: var(--paper); }
.page-intro { max-width: 880px; margin-bottom: 64px; }
.text-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 72px; }
.text-cols h3 { font-size: 22px; font-weight: 700; }
.text-cols p { color: var(--ink-2); margin-top: 12px; }
.video-box { border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box video, .video-box iframe { display: block; border: 0; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* 개요 */
.overview { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.overview-txt p { font-size: clamp(15px, 1vw, 19px); color: var(--ink-2); }
.overview-txt p + p { margin-top: 18px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 56px; border-top: 1px solid var(--ink); }
.values div { padding: 22px 20px 0 0; }
.values span { font-size: 13px; font-weight: 600; color: var(--brand-500); }
.values b { display: block; margin-top: 6px; font-size: clamp(18px, 1.3vw, 24px); }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-cards a { position: relative; padding: 30px 30px 72px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.link-cards a:hover { border-color: var(--brand-500); transform: translateY(-3px); }
.link-cards .label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--brand-500); }
.link-cards h3 { font-size: 24px; margin-top: 8px; }
.link-cards p { color: var(--ink-3); font-size: 14.5px; margin-top: 6px; }
.link-cards svg { position: absolute; left: 30px; bottom: 28px; width: 18px; height: 18px; color: var(--brand-500); }

/* 연혁 */
/* 시대 바로가기: 헤더 아래에 고정 */
.era-nav {
  position: sticky; top: 76px; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.era-nav a {
  flex: none; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background .25s, color .25s, border-color .25s;
}
.era-nav a:hover { border-color: var(--brand-500); color: var(--brand-500); }
.era-nav a.on { background: var(--brand-500); border-color: var(--brand-500); color: var(--white); }

.timeline { display: grid; }
.era {
  display: grid; grid-template-columns: minmax(300px, 36%) 1fr; gap: clamp(40px, 6vw, 120px);
  padding: clamp(64px, 7vw, 112px) 0; border-top: 1px solid var(--line);
}
.timeline .era { scroll-margin-top: 145px; } /* 헤더 + 바로가기 높이 */
.era:first-child { border-top: 0; }
/* 왼쪽: 시대 요약 (스크롤 시 따라옴) */
.era-side { position: sticky; top: 170px; align-self: start; }
.era-range {
  display: block; font-size: clamp(48px, 5vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; color: var(--brand-500);
  background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-500) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.era-range i { font-style: normal; font-weight: 300; margin: 0 .04em; opacity: .5; }
.era-title { margin-top: 22px; font-size: clamp(22px, 1.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.era-side p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.era-photo { margin-top: 28px; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.era-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.era:hover .era-photo img { transform: scale(1.04); }

/* 오른쪽: 세로선 + 연도 카드 */
.era-list { list-style: none; position: relative; display: grid; align-content: start; align-self: start; gap: 16px; padding-left: 44px; }
.era-list::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--brand-500), var(--line)); }
.era-list > li { position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: start; gap: 20px; padding: 26px 30px; border-radius: var(--radius); background: var(--paper); }
.era-list > li::before {
  content: ""; position: absolute; left: -44px; top: 34px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--brand-500); box-sizing: border-box;
}
.era-list .yr { font-size: clamp(26px, 2vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--brand-500); font-variant-numeric: tabular-nums; }
.era-list ul { display: grid; gap: 6px; padding-top: 6px; }
.era-list ul li { position: relative; padding-left: 16px; color: var(--ink-2); }
.era-list ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.era-list .badge { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.16); color: var(--white); }
/* 주요 이정표 */
.era-list > li.key { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: var(--white); box-shadow: 0 18px 40px -24px rgba(30,49,112,.7); }
.era-list > li.key::before { background: var(--brand-500); box-shadow: 0 0 0 6px rgba(46,73,149,.16); }
.era-list > li.key .yr { color: var(--white); }
.era-list > li.key ul li { color: rgba(255,255,255,.9); }
.era-list > li.key ul li::before { background: var(--accent); }

/* 스크롤 등장 효과 (스크립트가 켜질 때만) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* 네트워크 */
.group-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.loc-grid + .group-title { margin-top: 56px; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.loc .tag { align-self: flex-start; }
.loc h3 { font-size: 21px; font-weight: 700; }
.loc p { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.loc p svg { width: 16px; height: 16px; margin-top: 4px; color: var(--brand-500); }
.loc small { color: var(--ink-3); }
.map-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-500); }
.map-link svg { width: 14px; height: 14px; }

/* R&D */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 28px; background: var(--white); border-radius: var(--radius); }
.cert svg { grid-row: 1 / 3; width: 44px; height: 44px; color: var(--brand-500); }
.cert b { font-size: 22px; }
.cert span { color: var(--ink-3); font-size: 14.5px; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: 14px; color: var(--ink-3); font-weight: 600; background: var(--paper); }
.table td:first-child { width: 72px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.table td:last-child { width: 180px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Application */
.app-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.app-row + .app-row { margin-top: clamp(80px, 9vw, 140px); }
.app-row.rev > :first-child { order: 2; }
.app-row .photo { aspect-ratio: 3 / 2; }
.callout { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--brand-500); background: var(--paper); border-radius: 0 10px 10px 0; }
.callout b { font-size: 14px; letter-spacing: .08em; color: var(--brand-500); }
.callout p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }

/* 제품 카드(사진형) */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod { display: flex; flex-direction: column; }
.prod .img { aspect-ratio: 2 / 1; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.prod .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod:hover .img img { transform: scale(1.04); }
.prod .img.ph { align-items: center; justify-content: center; }
.prod .badge { align-self: flex-start; margin-top: 16px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--ink-3); letter-spacing: .04em; }
.prod .badge.rec { background: #e6edfb; color: var(--brand-500); }
.prod h4 { font-size: 18px; font-weight: 700; margin-top: 12px; }
.prod .img + h4 { margin-top: 16px; }
.prod p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tab-panel > .prod-grid { margin-top: 0; }

/* Textile 견본 */
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatch img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper); transition: transform .3s; }
.swatch:hover img { transform: scale(1.03); }
.swatch figcaption { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }

/* Ecothane */
.formula { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.formula li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 10px; background: var(--paper); font-size: 15px; }
.formula li span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-900); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.formula code { margin-left: auto; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; color: var(--brand-500); }
.grind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grind-grid .photo { aspect-ratio: 16 / 9; }
.grind-grid figcaption { margin-top: 10px; font-weight: 600; }

/* 친환경 자재 */
.eco-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.eco-block + .eco-block { margin-top: 96px; }
.eco-block.rev > :first-child { order: 2; }
.eco-block .photo { aspect-ratio: 4 / 3; }
.eco-block h3 { font-size: clamp(28px, 2.4vw, 44px); font-weight: 800; margin-top: 12px; }
.eco-block > div > p { color: var(--ink-2); margin-top: 14px; }
.eco-block h4 { font-size: 14px; color: var(--ink-3); margin-top: 32px; }
.tag-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: .2s; }
.tag-links a:hover { background: var(--brand-900); border-color: var(--brand-900); color: var(--white); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise-grid .pillar { grid-template-columns: 1fr; }

/* 지속가능경영 */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story + .story { margin-top: clamp(80px, 9vw, 140px); }
.story.rev > :first-child { order: 2; }
.story .photo { aspect-ratio: 3 / 2; }
.story h3 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.story p { color: var(--ink-2); margin-top: 10px; }

/* 윤리경영 */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 32px; border-radius: var(--radius); background: var(--brand-900); color: var(--white); }
.principle .n { font-size: 13px; font-weight: 600; color: var(--accent); }
.principle h3 { font-size: 24px; margin-top: 6px; }
.principle ul { display: grid; gap: 10px; margin-top: 18px; }
.principle li { position: relative; padding-left: 16px; color: rgba(255,255,255,.75); font-size: 15px; }
.principle li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 1.5px; background: var(--accent); }

/* 폼 */
.form-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-layout > div:first-child { position: sticky; top: 170px; }
.notice { display: grid; gap: 8px; margin-top: 28px; }
.notice li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-3); }
.notice li::before { content: "·"; position: absolute; left: 2px; font-weight: 700; }
.contact-box { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); font-size: 15px; }
.contact-box b { color: var(--ink-3); font-weight: 500; }
.contact-box a { font-weight: 700; }
.form, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.form fieldset:first-child { padding-top: 0; border-top: 0; }
.form legend { font-size: 18px; font-weight: 700; margin-bottom: 18px; float: left; width: 100%; }
.form legend + * { clear: both; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field em, .check em { color: #d1435b; font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input[type="file"] { padding: 10px; background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(46,73,149,.12); }
.agree details { border: 1px solid var(--line); border-radius: 10px; }
.agree summary { padding: 13px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.agree-txt { padding: 0 16px 16px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.agree-txt b { color: var(--ink); margin-right: 6px; }
.agree-txt a, .check a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex !important; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-500); }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.form-done { grid-column: 1 / -1; padding: 16px 18px; border-radius: 10px; background: #e6edfb; color: var(--brand-700); font-size: 14.5px; font-weight: 500; }
.form-done.err { background: #fdecec; color: #a12626; }
.form-foot button:disabled { opacity: .55; cursor: progress; }
.form-foot { align-items: center; flex-wrap: wrap; }

/* 파일 첨부: 기본 파일 입력을 숨기고 버튼 + 파일 이름으로 표시 (main.js 가 만듦) */
.file-field { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, background .2s; }
.file-field.has-file { border-style: solid; border-color: var(--brand-500); background: #fff; }
.file-field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field .file-btn { color: var(--white); }
.file-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; background: var(--brand-500); color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.file-btn:hover { background: var(--brand-700); }
.file-btn svg { width: 16px; height: 16px; }
.file-field input:focus-visible + .file-btn { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.file-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--ink-3); }
.file-field.has-file .file-name { color: var(--ink); font-weight: 500; }
.file-clear { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.file-clear:hover { background: var(--paper); color: var(--ink); }

/* 개인정보 동의: 안내를 열어 보기 전에는 잠김 */
.agree.locked .check { opacity: .55; cursor: not-allowed; }
.agree.locked .check a { cursor: pointer; }
.agree-hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.agree-hint.flash { animation: agree-flash .6s; color: #a12626; }
@keyframes agree-flash { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 회사 소개 영상: 누르면 YouTube 를 불러오는 정지 화면 */
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--brand-900); cursor: pointer; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yt-facade:hover img { transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(15, 28, 63, .78); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: background .2s; }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt-facade:hover .yt-play { background: var(--brand-500); }
.yt-note { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12.5px; }

/* 접수 완료 팝업 */
.done-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(420px, calc(100% - 32px)); padding: 36px 28px 28px; border: 0; border-radius: 16px; text-align: center; box-shadow: 0 24px 60px rgba(15, 28, 63, .25); }
.done-dialog::backdrop { background: rgba(15, 28, 63, .45); }
.done-dialog .done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e6edfb; color: var(--brand-500); }
.done-dialog .done-icon svg { width: 32px; height: 32px; }
.done-dialog h3 { font-size: 20px; margin: 0 0 8px; }
.done-dialog p { margin: 0 0 24px; color: var(--ink-2); font-size: 15px; }
.done-dialog .btn { min-width: 140px; justify-content: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 채용 */
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.board-head b { color: var(--brand-500); }
.job-list { display: grid; }
.job { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.job:hover { background: var(--paper); }
.job[hidden] { display: none; }
.job-date { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); text-align: center; }
.job-date b { font-size: 30px; line-height: 1.1; color: var(--ink); }
.job h3 { font-size: 19px; }
.job p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.job small, .post-head small { font-size: .7em; font-weight: 500; color: var(--ink-3); }
.job-state { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--brand-500); color: var(--white); }
.job-state.closed { background: var(--paper); color: var(--ink-3); border: 1px solid var(--line); }
.empty-box { margin-top: 48px; padding: 40px; border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-box p { color: var(--ink-2); }
.empty-box .btns { justify-content: center; margin-top: 20px; }
.post { max-width: 960px; margin-inline: auto; }
.post-head { padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.post-head h2 { font-size: clamp(24px, 2vw, 34px); margin-top: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.post-body { padding: 40px 0; border-bottom: 1px solid var(--line); }
.post-ph { min-height: 260px; align-items: center; justify-content: center; text-align: center; font-size: 14px; }
/* 공고 이미지: 여러 장이면 간격 없이 이어 붙여 한 장처럼 (모서리·테두리는 묶음 바깥에만) */
.post-images { display: block; margin: 0 auto 40px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0; line-height: 0; }
.post-images:empty { display: none; }
.post-images img { display: block; width: 100%; height: auto; }
/* 축소 표시할 때 소수점 높이 때문에 이음새에 생기는 가는 선을 없애려고 1px 겹침 */
.post-images img + img { margin-top: -1px; }
.post-missing { padding: 60px 0; text-align: center; color: var(--ink-2); }
.post-info { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.post-info div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-info dt { font-weight: 700; }
.post-info dd { color: var(--ink-2); }
.post-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 28px; }
.talent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.talent { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(200px, 14vw, 260px); padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.talent span { position: absolute; right: 24px; top: 8px; font-size: clamp(120px, 9vw, 160px); font-weight: 800; line-height: 1; color: var(--paper); z-index: -1; }
.talent h3 { font-size: 22px; color: var(--brand-500); }
.talent p { color: var(--ink-2); margin-top: 6px; }
.guide { display: grid; grid-auto-rows: 1fr; border-top: 2px solid var(--ink); } /* 01·02·03 줄 높이를 똑같이 */
.guide-row { display: grid; grid-template-columns: 64px 200px 1fr; gap: 24px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.guide-row .n { font-size: 14px; font-weight: 700; color: var(--brand-500); }
.guide-row h3 { font-size: 20px; }
.guide-row p { color: var(--ink-2); }
.guide-row p a { color: var(--brand-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.steps li + li::before { content: ""; }
.steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-900); color: var(--white); display: grid; place-items: center; font-size: 13px; }

/* 정책 문서 */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.doc-toc { position: sticky; top: 170px; display: grid; gap: 2px; font-size: 14px; }
.doc-toc b { margin-bottom: 10px; }
.doc-toc a { padding: 6px 0; color: var(--ink-3); }
.doc-toc a:hover { color: var(--brand-500); }
.doc { max-width: 880px; }
.doc h2 { font-size: clamp(24px, 2vw, 34px); }
.doc h2 + p { margin-top: 16px; }
.doc h3 { font-size: 19px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 160px; }
.doc p, .doc li { color: var(--ink-2); }
.doc h3 + p, .doc p + ul, .doc ul + p, .doc p + p { margin-top: 10px; }
.doc ul { display: grid; gap: 6px; }
/* "가. 나. 1. 2." 항목이 줄바꿈되면 둘째 줄부터 번호 뒤 글자에 맞춰 들여쓰기 */
.doc > ul > li, .doc-sub > ul > li { padding-left: 1.7em; text-indent: -1.7em; }
.doc > ul > li > ul, .doc-sub > ul > li > ul { text-indent: 0; }
/* 들여쓰기: 01. 제목 → 가. 소제목 → 본문 */
.doc { --doc-indent: 1.1em; }
.doc h3 ~ :not(h3) { margin-left: var(--doc-indent); }
.doc-sub > :not(h4) { margin-left: var(--doc-indent); }
.doc ul ul { margin: 6px 0 4px; padding-left: 18px; gap: 3px; }
.doc ul ul li { position: relative; font-size: 15px; }
.doc ul ul li::before { content: ""; position: absolute; left: -12px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.doc-table-wrap { margin-top: 12px; overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.doc-table th { background: var(--paper); color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc-table-wrap + p { margin-top: 10px; }
.doc h4 { margin-top: 26px; font-size: 16.5px; color: var(--ink); }
.doc h4 + p, .doc h4 + ul, .doc h4 + .doc-table-wrap { margin-top: 8px; }
.doc ul + .doc-table-wrap, .doc p + .doc-table-wrap { margin-top: 12px; }
.doc code { padding: 1px 6px; border-radius: 4px; background: var(--paper); font-size: .92em; }
.doc a:not(.btn) { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.doc-box { margin: 18px 0; padding: 22px 24px; border-radius: var(--radius); background: var(--paper); }
.doc-box dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 16px; margin-top: 12px; font-size: 15px; }
.doc-box dt { color: var(--ink-3); }
.doc-box a { color: var(--brand-500); font-weight: 600; }
.statement { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 4vw, 64px); max-width: 1100px; }
.statement .cm-badge { width: 120px; height: 120px; }
.statement .lead { max-width: none; }
.statement .lead + .lead { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cm h3 a:hover { color: var(--brand-500); }

/* ===== 스크롤 스냅: 휠 한 번에 한 섹션씩 (메인, PC 화면) ===== */
@media (min-width: 1024px) and (min-height: 600px) {
  html.snap { scroll-snap-type: y mandatory; }
  html.snap .hero, html.snap .sec { scroll-snap-align: start; scroll-margin-top: 0; }
  html.snap .footer { scroll-snap-align: end; }
  /* 첫 화면 = 슬라이드 전체 */
  html.snap .hero { height: 100vh; min-height: 0; }
  /* 각 섹션은 화면 높이를 채우고 내용은 세로 가운데 */
  html.snap .sec { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 88px 0 32px; }
  html.snap .sec-head { margin-bottom: 32px; }
  /* 제품: 사진 왼쪽 · 글 오른쪽 가로형 카드로 한 화면에 */
  html.snap .p-card { display: grid; grid-template-columns: 42% 1fr; grid-template-rows: auto auto 1fr; column-gap: 20px; padding: 12px 12px 56px; }
  html.snap .p-card .thumb { grid-row: 1 / 4; aspect-ratio: auto; height: 100%; min-height: 150px; margin: 0; }
  html.snap .p-card .num, html.snap .p-card h3, html.snap .p-card p { padding: 0; }
  html.snap .p-card .num { padding-top: 8px; }
  html.snap .p-card h3 { font-size: 20px; margin-top: 4px; }
  html.snap .p-card p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  html.snap .p-card .arrow { right: 16px; bottom: 14px; width: 34px; height: 34px; }
  /* 지속가능경영: 사진 높이를 왼쪽 글 높이에 맞춤 */
  html.snap .sus-grid { align-items: stretch; }
  html.snap .sus-side { display: flex; }
  html.snap .sus-side .photo { aspect-ratio: auto; height: auto; max-height: none; flex: 1; }
  html.snap .sus-pillars { margin-top: 24px; gap: 8px; }
  html.snap .pillar { padding: 12px 18px; }
  html.snap .sus-mgmt { margin-top: 32px; }
  html.snap .net-list { margin-top: 24px; }
  html.snap .net-list li { padding: 12px 0; }
  html.snap .net-grid .btn { margin-top: 24px !important; }
}

/* ===== Responsive ===== */
@media (min-width: 1600px) {
  .spec-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1600px) {
  .swatch-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 1280px) {
  .loc-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .products, .cta-grid, .link-cards, .principles, .talent-grid, .cert-grid, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid, .spec-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
  .form-layout, .doc-layout { grid-template-columns: 1fr; }
  .form-layout > div:first-child, .doc-toc { position: static; }
  .doc-toc { grid-template-columns: 1fr 1fr; padding: 20px; border-radius: var(--radius); background: var(--paper); }
  .doc { --doc-indent: .6em; }
  .doc-toc b { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .gnb, .lang {
    display: none;
  }
  .header.open { height: 100svh; overflow-y: auto; }
  .header.open .header-in { flex-wrap: wrap; height: auto; min-height: 76px; align-content: flex-start; }
  .header.open .logo { height: 76px; }
  .header.open .gnb { display: block; order: 3; width: 100%; height: auto; margin: 0; }
  .header.open .gnb > li { display: block; height: auto; border-top: 1px solid var(--line); }
  .header.open .gnb > li > a { padding: 18px 0; height: auto; font-size: 20px; }
  .header.open .gnb .sub { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; padding: 0 0 16px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .header.open .lang { display: flex; order: 4; width: 100%; padding: 24px 0; border-top: 1px solid var(--line); }
  .sus-grid, .net-grid, .rnd-in, .intro-grid { grid-template-columns: 1fr; }
  .sus-side { display: none; }
  .sus-mgmt { grid-template-columns: 1fr; }
  .sus-mgmt a { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .features { grid-template-columns: 1fr; }
  .spec-grid, .spec-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .overview, .text-cols, .app-row, .eco-block, .story { grid-template-columns: 1fr; }
  .app-row.rev > :first-child, .eco-block.rev > :first-child, .story.rev > :first-child { order: 0; }
  .values { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .era { grid-template-columns: 1fr; gap: 32px; }
  .era-side { position: static; }
  .era-photo { aspect-ratio: 21 / 9; }
  .guide { grid-auto-rows: auto; }
  .guide-row { grid-template-columns: 48px 1fr; padding: 32px 0; }
  .guide-row > :last-child { grid-column: 2; }
  .grind-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products, .cta-grid { grid-template-columns: 1fr; }
  .p-card { min-height: 260px; }
  .cm-in { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .net-list li { flex-direction: column; gap: 2px; }
  .net-list span { text-align: left; }
  .loc-grid, .prod-grid, .link-cards, .principles, .talent-grid, .cert-grid, .promise-grid, .grind-grid,
  .form, .form-grid, .footer-info, .doc-toc { grid-template-columns: 1fr; }
  .spec-grid, .spec-grid.cols-4 { grid-template-columns: 1fr; }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .era-list { padding-left: 30px; }
  .era-list > li { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; }
  .era-list > li::before { left: -30px; top: 26px; width: 16px; height: 16px; }
  .era-list::before { left: 7px; }
  .job { grid-template-columns: 64px 1fr; }
  .job-state { grid-column: 2; justify-self: start; }
  .post-info div { grid-template-columns: 90px 1fr; }
  .statement { grid-template-columns: 1fr; }
  .statement .cm-badge { width: 72px; height: 72px; }
  .table td:last-child { width: auto; }
  .tabs { display: flex; border-radius: 16px; }
  .tabs button { flex: 1 1 auto; }
}

/* 여백 보정 (보안 헤더 CSP 가 HTML 의 style="" 을 막으므로 클래스로 지정) */
.m-0 { margin: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mt-28 { margin-top: 28px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-72 { margin-top: 72px !important; }

/* 오류 페이지 (404.html, error.html) */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); }
.error-page .logo img { margin: 0 auto 40px; }
.error-page h1 { font-size: clamp(26px, 2.4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.error-page p { color: var(--ink-2); margin-top: 12px; }
.error-page .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
