/* 색: 흰 바탕 + 남색 글자 + 코발트 강조, 기관마다 한 가지 색 (군부대 코발트, 학교 앰버, 병원 틸, 선용품 코랄)
   글꼴: Pretendard 한 가지, 제목은 800 굵기로 좁게 */
:root {
  --field: #0b1530;      /* 짙은 남색 (메뉴·바닥글) */
  --field-2: #16224a;
  --field-line: #2a3a6b;
  --canvas: #f4f6fb;     /* 판 바탕 */
  --card: #ffffff;
  --ink: #0b1530;        /* 글자 */
  --ink-soft: #55607a;
  --line: #dde3ee;
  --olive: #1b46f5;      /* 강조 (코발트) */
  --signal: #6f8fff;     /* 어두운 바탕 위 강조 */
  --khaki: #aab6d3;      /* 어두운 바탕 위 보조 글자 */
  --mil: #1b46f5; --sch: #ffb400; --hos: #00a88f; --sea: #ff5a36;   /* 기관별 색 */
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --display: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  --stencil: "Pretendard", sans-serif;
  --radius-sheet: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--field); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; word-break: keep-all; }
body.menu-open { overflow: hidden; }
a { color: var(--olive); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 64px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, .next-title em { font-style: normal; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.15; margin-bottom: 32px; }
h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 12px; max-width: 42em; }

/* ── 위쪽 메뉴 막대 ── */
.pill-bar { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 5px; background: rgba(35,43,26,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--field-line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pill-brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 6px; border-radius: 6px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; height: 30px; padding: 0 8px; border-radius: 4px; background: var(--signal); color: var(--field); font: 800 21px/1 var(--stencil); letter-spacing: .04em; }
.brand-name { font-weight: 700; font-size: 15px; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--field-2); color: #fff; font: 700 15px var(--font); cursor: pointer; transition: background .2s; }
.menu-btn:hover { background: var(--field-line); }
.menu-dots { display: grid; grid-template-columns: 4px 4px; gap: 3px; }
.menu-dots i { width: 4px; height: 4px; background: var(--signal); transition: transform .3s; }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(1) { transform: translate(3.5px, 3.5px); }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(2) { transform: translate(-3.5px, 3.5px); }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(3) { transform: translate(3.5px, -3.5px); }
.menu-btn[aria-expanded="true"] .menu-dots i:nth-child(4) { transform: translate(-3.5px, -3.5px); }

/* ── 전체 화면 메뉴 ── */
.site-menu { position: fixed; inset: 0; z-index: 55; background: var(--field); color: #fff; overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity .35s, transform .35s; }
.site-menu.is-open { opacity: 1; transform: none; }
.site-menu-inner { width: min(1180px, 100% - 64px); margin: 0 auto; padding: 120px 0 56px; }
.site-menu nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.menu-group-name { color: var(--signal); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.menu-group a { display: block; color: #fff; text-decoration: none; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.55; transition: color .2s; }
.menu-group a:hover, .menu-group a[aria-current="page"] { color: var(--signal); }
.site-menu-contact { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--field-line); color: var(--khaki); }
.site-menu-contact p { margin: 0; }
.site-menu-contact a { color: #fff; font: 800 34px var(--stencil); letter-spacing: .02em; text-decoration: none; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 6px; background: var(--signal); color: var(--field); font-weight: 800; text-decoration: none; box-shadow: 0 3px 0 #b48d14; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #b48d14; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #b48d14; }
.text-link { color: #fff; font-weight: 700; text-underline-offset: 6px; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.section:not(.dark) .text-link:not(.light) { color: var(--ink); }

/* ── 머리: 고정된 채로 판이 위로 덮음 ── */
.hero, .page-head { position: sticky; top: 0; z-index: 0; background: var(--field); color: #fff; overflow: hidden; }
/* 작전 지도 격자 */
.hero-grid-bg, .page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,194,160,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,194,160,.09) 1px, transparent 1px),
    linear-gradient(rgba(201,194,160,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,194,160,.05) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 80%);
}
.hero { min-height: 100vh; padding: 130px 0 56px; display: flex; flex-direction: column; justify-content: center; }
.hero-stencil { position: absolute; right: -2vw; bottom: -6vw; margin: 0; max-width: none; font: 800 clamp(200px, 34vw, 520px)/.8 var(--stencil); color: transparent; -webkit-text-stroke: 2px rgba(242,194,48,.16); letter-spacing: .02em; transform: translateY(var(--py, 0)); will-change: transform; pointer-events: none; user-select: none; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.12fr .95fr; gap: 56px; align-items: center; }
.kicker { color: var(--signal); font-weight: 700; font-size: 16px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.04; margin-bottom: 28px; }
.lead { font-size: 18px; color: var(--ink-soft); }
.hero .lead, .page-head .lead { color: var(--khaki); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }

/* 보급 상황판 */
.board { margin: 0; background: #1a2013; border: 1px solid var(--field-line); border-radius: 12px; padding: 18px 18px 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 14px; border-bottom: 1px dashed var(--field-line); margin-bottom: 8px; }
.board-title { margin: 0; font: 400 20px var(--display); color: #fff; }
.board-live { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--signal); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.board-table { font-size: 14px; font-variant-numeric: tabular-nums; }
.board-row { display: grid; grid-template-columns: 52px 62px 1fr 42px 42px 78px; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(71,83,58,.55); color: #e4e2d4; transition: background .4s; }
.board-row .r { text-align: right; }
.board-head { color: var(--khaki); font-size: 12px; font-weight: 700; padding-block: 6px; }
.board-row.is-hot { background: rgba(242,194,48,.10); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 800; white-space: nowrap; border: 1px solid currentColor; }
.tag[data-state="0"] { color: var(--khaki); }
.tag[data-state="1"] { color: #9fc27a; }
.tag[data-state="2"] { color: var(--signal); }
.tag[data-state="3"] { color: var(--field); background: var(--signal); border-color: var(--signal); }
.route { list-style: none; margin: 18px 4px 6px; padding: 0; display: flex; justify-content: space-between; position: relative; font-size: 13px; font-weight: 700; color: var(--khaki); }
.route::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; border-top: 2px dashed var(--field-line); }
.route::after { content: ""; position: absolute; top: 3px; left: 4px; width: 10px; height: 10px; background: var(--signal); border-radius: 2px; animation: haul 4.5s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes haul { 0% { left: 4px; } 45%, 55% { left: calc(50% - 5px); } 100% { left: calc(100% - 14px); } }
.route li { position: relative; padding-top: 22px; }
.route li::before { content: ""; position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #1a2013; border: 2px solid var(--khaki); }
.route li:nth-child(1)::before { left: 0; }
.route li:nth-child(2)::before { left: calc(50% - 6px); }
.route li:nth-child(3)::before { right: 0; }
.board figcaption { margin-top: 12px; padding: 0 4px; font-size: 12px; color: #8f9578; }

.hero-strip { position: relative; list-style: none; padding: 0; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--field-line); }
.hero-strip li { padding: 18px 20px 0 0; color: var(--khaki); font-size: 14px; line-height: 1.5; }
.hero-strip li + li { padding-left: 20px; border-left: 1px solid var(--field-line); }
.hero-strip strong { display: block; color: #fff; font-size: 16px; }

/* 하위 페이지 머리 */
.page-head { min-height: 68vh; display: flex; align-items: flex-end; padding: 150px 0 110px; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--field) 14px 28px); opacity: .85; }
.page-head .wrap { position: relative; }
.crumb { color: var(--signal); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.page-head h1 { font-size: clamp(42px, 6.6vw, 96px); line-height: 1.06; margin-bottom: 26px; max-width: 14em; }
.page-head .lead { margin: 0; }
.page-head .work-role { margin: 20px 0 0; color: var(--signal); }

/* ── 위로 올라오는 판 ── */
.sheet { position: relative; z-index: 1; background: var(--canvas); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; margin-top: -30px; padding: 24px 0 32px; box-shadow: 0 -24px 60px rgba(0,0,0,.25); }
.section { padding: 88px 0; }
.section-lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 40px; }
.note { margin-top: 28px; color: var(--ink-soft); font-size: 15px; }

/* 어두운 판 */
.section.dark, .section.contact { background: var(--field); color: #e4e2d4; border-radius: 16px; margin: 24px 16px; }
.dark h2, .contact h2, .dark h3 { color: #fff; }
.dark p, .dark .section-lead { color: var(--khaki); }
.dark .flow li { border-left-color: var(--signal); }
.dark .flow strong, .dark .features h3, .dark .strengths h3, .dark .org-name { color: var(--signal); }
.dark .flow span { color: var(--khaki); }
.dark .targets li, .dark .features li, .dark .org-head, .dark .org-box, .dark .road-step { background: var(--field-2); border-color: var(--field-line); }
.dark .org-line { background: var(--field-line); }
.dark .org-role, .dark .org-head p:last-child, .dark .org-box p:last-child { color: var(--khaki); }
.dark .target-order { background: #3b4529; color: var(--signal); }

/* 제목 나타남 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ── 홈: 군납 공급망 ── */
.chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.chain::before { content: ""; position: absolute; top: 22px; left: 22px; right: 10%; height: 3px; background: linear-gradient(90deg, var(--olive) 0 58%, transparent 58%), repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.chain li { position: relative; padding: 0 22px 0 0; display: flex; flex-direction: column; }
.chain-no { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 6px; background: var(--olive); color: #fff; font: 800 26px/1 var(--stencil); }
.chain-next .chain-no { background: var(--canvas); color: var(--olive); border: 2px dashed var(--olive); }
.chain h3 { font-size: 20px; margin-bottom: 8px; }
.chain p { color: var(--ink-soft); font-size: 15px; }
.chain .chain-tool { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--ink); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 800; }
.badge.live { background: var(--signal); color: var(--field); }
.badge.done { background: var(--olive); color: #fff; }
.badge.plan { border: 1px dashed var(--ink-soft); color: var(--ink-soft); }

/* ── 홈: 개발 실적 ── */
.work-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.work-copy h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 16px; }
.work-copy .btn { margin-top: 16px; }
.work-second { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--field-line); display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.work-second h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 12px; }
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { padding: 8px 0; border-bottom: 1px dashed var(--field-line); color: #e4e2d4; font-size: 15px; }
.spec li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px; background: var(--signal); vertical-align: 2px; }
.text-link.light { color: #fff; }
.work-role { font-size: 14px; font-weight: 800; color: var(--olive); margin-bottom: 10px; }
.dark .work-role { color: var(--signal); }

/* ── 홈: 왜 에스비엘홀딩스 ── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); }
.why-item { padding: 28px 28px 8px 0; }
.why-item + .why-item { padding-left: 28px; border-left: 1px solid var(--line); }
.why-big { margin: 0 0 14px; font: 400 clamp(28px, 2.6vw, 38px)/1.1 var(--display); color: var(--olive); }
.why-big b { font: 800 1.45em/1 var(--stencil); letter-spacing: .01em; margin: 0 .06em; }
.why h3 { margin-bottom: 8px; font-size: 20px; }
.why p:not(.why-big) { color: var(--ink-soft); font-size: 16px; }

/* ── 내용 요소 ── */
.facts { margin: 0; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--canvas); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-soft); font-weight: 700; }
.facts dd { margin: 0; }
.facts-plain { border: 0; background: none; }
.facts-plain div { padding-inline: 0; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles a { display: block; height: 100%; padding: 28px; background: var(--field-2); border: 1px solid var(--field-line); border-radius: 10px; color: #e4e2d4; text-decoration: none; }
.tiles h3 { margin-bottom: 10px; color: var(--signal); font-size: 21px; }
.tiles p { color: var(--khaki); font-size: 15px; margin: 0; }

.flow { list-style: none; padding: 0; margin: 0 0 8px; max-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.flow li { padding: 20px 28px; border-left: 3px solid var(--olive); }
.flow strong { display: block; font-size: 22px; color: var(--olive); margin-bottom: 8px; }
.flow span { color: var(--ink-soft); }
.flow-big strong { font-family: var(--display); font-weight: 400; font-size: 40px; }

.greeting { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.greeting-lead { font-size: 24px; font-weight: 700; line-height: 1.6; margin-bottom: 28px; letter-spacing: -0.02em; }
.greeting-body p { max-width: 38em; }
.sign { margin-top: 36px; color: var(--ink-soft); }
.sign strong { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 26px; margin-left: 6px; }
.greeting-aside { background: var(--field); color: #e4e2d4; border-radius: 12px; padding: 32px; position: sticky; top: 100px; }
.greeting-aside h2 { font-size: 24px; margin-bottom: 18px; color: #fff; }
.mini-list { margin: 0; padding-left: 20px; }
.mini-list li { margin-bottom: 16px; color: var(--khaki); }
.mini-list li::marker { color: var(--signal); font-weight: 800; }
.mini-list strong { display: block; color: #fff; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 0 0 40px 32px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; background: var(--olive); box-shadow: 0 0 0 4px var(--canvas); }
.timeline time { font-weight: 800; color: var(--olive); font-variant-numeric: tabular-nums; font-size: 18px; }
.timeline h3 { margin-bottom: 6px; font-size: 21px; }
.timeline p { color: var(--ink-soft); }

.org { max-width: 680px; }
.org-head, .org-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; }
.org-head { border-top: 4px solid var(--signal); max-width: 320px; margin-inline: auto; text-align: center; }
.org-line { width: 2px; height: 32px; background: var(--line); margin-inline: auto; }
.org-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.org-role { font-size: 14px; color: var(--ink-soft); margin: 0; }
.org-name { font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
.org-head p:last-child, .org-box p:last-child { margin: 0; color: var(--ink-soft); font-size: 15px; }
.org-partner { border-style: dashed; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-col { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.split-col h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.split-main { background: var(--field); color: #e4e2d4; border-color: var(--field); }
.split-main h3 { color: #fff; }
.split-main p, .split-main .ticks li { color: var(--khaki); }
.split-main .split-sub { color: var(--signal); }
.split-sub { color: var(--olive); font-weight: 800; font-size: 15px; margin: 4px 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }
.dark .ticks li::before, .split-main .ticks li::before { border-color: var(--signal); }

.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strengths h3 { margin-bottom: 10px; color: var(--olive); font-size: 22px; }
.strengths p { color: var(--ink-soft); }

.parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.parts li { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.parts h3 { color: var(--olive); margin-bottom: 6px; }
.parts p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.patent-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 40px 44px; overflow: hidden; }
.patent-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--signal); }
.patent-no { font: 400 30px var(--display); color: var(--olive); letter-spacing: .01em; margin-bottom: 6px; }
.patent-card h2 { margin-bottom: 20px; }
.status { display: inline-block; padding: 2px 10px; margin-right: 8px; border-radius: 3px; background: var(--signal); color: var(--field); font-weight: 800; font-size: 14px; }

/* 로드맵: 화면에 들어오면 차례로 켜짐 */
.road { list-style: none; margin: 0; max-width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; padding: 32px 0 0; }
.road::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.road::after { content: ""; position: absolute; top: 10px; left: 0; height: 4px; width: 100%; background: var(--olive); transform-origin: left; transform: scaleX(1); }
.road-step { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; position: relative; }
.road-step::before { content: ""; position: absolute; top: -30px; left: 28px; width: 16px; height: 16px; background: var(--signal); border: 3px solid var(--canvas); }
.road-step h3 { margin-bottom: 14px; font-size: 21px; }
.step-no { display: block; font: 800 30px var(--stencil); color: var(--olive); margin-bottom: 4px; }
.js .road::after { transform: scaleX(0); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.js .road-step { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.js .road.is-on::after { transform: scaleX(1); }
.js .road.is-on .road-step { opacity: 1; transform: none; }
.js .road.is-on .road-step:nth-child(2) { transition-delay: .5s; }
.js .road.is-on .road-step:nth-child(3) { transition-delay: 1s; }

.targets, .features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.targets li, .features li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.targets li:not(:nth-child(3n+1)), .features li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.dark .targets, .dark .features { border-color: var(--field-line); }
.dark .targets li, .dark .features li { background: none; border-color: var(--field-line); }
.targets h3, .features h3 { margin-bottom: 10px; font-size: 21px; }
.targets p, .features p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.dark .targets p, .dark .features p { color: var(--khaki); }
.target-order { display: inline-block; margin-bottom: 12px; padding: 2px 10px; border-radius: 3px; background: #dcd9c6; color: var(--olive); font-weight: 800; font-size: 13px; }
.features h3 { color: var(--olive); }

.visit { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--signal); border-radius: 10px; padding: 32px 36px; }
.visit h2 { font-size: 28px; margin-bottom: 6px; }
.visit p { color: var(--ink-soft); margin: 0; }
.shot { margin: 0; }
.work-shot { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--field-line); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

.stat { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; padding: 40px 44px; background: var(--field); border-radius: 12px; }
.stat-num { margin: 0; font: 800 clamp(56px, 8vw, 112px)/1 var(--stencil); color: #fff; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--signal); }
.stat-label { margin: 0; color: var(--khaki); font-weight: 600; }

/* 문의 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-name { font-weight: 700; color: var(--signal); margin-bottom: 4px; }
.contact-addr { font-size: 22px; color: #fff; }
.tel { color: #fff; font: 800 clamp(40px, 5vw, 64px)/1.1 var(--stencil); letter-spacing: .02em; text-decoration: none; }
.map-links { display: flex; flex-wrap: wrap; gap: 18px; }
.map-links a { color: var(--signal); font-weight: 700; }

/* ── 다음 페이지 띠 ── */
.next-band { background: var(--field); padding: 96px 0 72px; position: relative; z-index: 1; }
.prev-link { display: inline-block; margin-bottom: 28px; color: var(--khaki); font-size: 15px; text-decoration: none; }
.prev-link:hover { color: #fff; }
.next-link { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--field-line); color: #fff; text-decoration: none; }
.next-label { grid-column: 1 / -1; color: var(--signal); font-weight: 700; }
.next-title { font-family: var(--display); font-size: clamp(42px, 7.6vw, 112px); line-height: 1.05; transition: color .25s; }
.next-link:hover .next-title { color: var(--signal); }
.next-arrow { width: 72px; height: 72px; border-radius: 8px; background: var(--signal); position: relative; transition: transform .25s; }
.next-arrow::after { content: ""; position: absolute; left: 24px; top: 27px; width: 16px; height: 16px; border-top: 3px solid var(--field); border-right: 3px solid var(--field); transform: rotate(45deg); }
.next-link:hover .next-arrow { transform: translateX(6px); }

/* ── 바닥글 ── */
.footer { background: var(--field); color: var(--khaki); font-size: 14px; padding: 16px 0 56px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer p { margin: 0 0 4px; max-width: none; }
.footer-name { color: #fff; font-weight: 800; font-size: 18px; }
.footer a { color: #e4e2d4; }
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; }
.sitemap p { color: #fff; font-weight: 700; margin-bottom: 6px; }
.sitemap a { display: block; text-decoration: none; line-height: 1.9; }
.sitemap a:hover, .sitemap a[aria-current="page"] { color: var(--signal); }

/* 도표 (diagram-design 스킬) */
.diagram { margin: 0; }
.diagram-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.diagram-scroll svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.diagram-hint { display: none; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--olive); }
@media (max-width: 760px) { .diagram-hint { display: block; } }
.dark .diagram figcaption, .dark .diagram-hint { color: var(--khaki); }

/* ── 태블릿 ── */
@media (max-width: 1020px) {
  .wrap, .site-menu-inner { width: calc(100% - 48px); }
  .hero-layout, .greeting, .work-feature { grid-template-columns: 1fr; gap: 48px; }
  .board { max-width: 640px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 3px; height: auto; background: var(--line); }
  .chain li { display: grid; grid-template-columns: 46px 1fr; column-gap: 24px; padding: 0 0 32px; }
  .chain li > :not(.chain-no) { grid-column: 2; }
  .chain-no { grid-row: 1 / span 3; margin: 0; }
  .work-second { grid-template-columns: 1fr 1fr; }
  .work-second > a { grid-column: 1 / -1; }
  .tiles, .parts { grid-template-columns: 1fr 1fr; }
  .site-menu nav { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .greeting-aside { position: static; }
}

/* ── 휴대폰 ── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .site-menu-inner { width: calc(100% - 32px); }
  .pill-bar { top: 10px; }
  .brand-name { display: none; }
  .hero { padding: 100px 0 40px; min-height: 0; }
  .hero-stencil { bottom: auto; top: 60px; right: -20px; font-size: 180px; }
  .board { padding: 14px 10px 12px; }
  .board-row { grid-template-columns: 40px 48px 1fr 54px; gap: 6px; font-size: 13px; padding-inline: 2px; }
  .board-row > :nth-child(4), .board-row > :nth-child(5) { display: none; }
  .hero-strip { grid-template-columns: 1fr; margin-top: 40px; }
  .hero-strip li, .hero-strip li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--field-line); }
  .page-head { min-height: 0; padding: 112px 0 80px; }
  .sheet { margin-top: -20px; --radius-sheet: 16px; }
  .section { padding: 56px 0; }
  .section.dark, .section.contact { margin: 16px 8px; border-radius: 12px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; }
  .flow, .road, .strengths, .tiles, .parts, .split, .targets, .features, .contact-grid, .org-row, .why, .work-second { grid-template-columns: 1fr; }
  .targets li, .features li, .targets li:not(:nth-child(3n+1)), .features li:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
  .why-item, .why-item + .why-item { padding: 24px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .site-menu nav { grid-template-columns: 1fr; gap: 28px; }
  .site-menu-inner { padding-top: 96px; }
  .road::before, .road::after, .road-step::before { display: none; }
  .road { padding-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .greeting-lead { font-size: 20px; }
  .flow-big strong { font-size: 32px; }
  .patent-card, .stat { padding: 28px 24px; }
  .next-band { padding: 64px 0 48px; }
  .next-arrow { width: 52px; height: 52px; }
  .next-arrow::after { left: 16px; top: 19px; width: 12px; height: 12px; }
}

/* ── 홈: 스크롤로 감는 화물열차 항공 영상 (기준 디자인: Freight Scroll Hero) ── */
.track { position: relative; background: #0d0f0a; color: #f7f5ef; --u: min(calc(100vh / 800), calc(100vw / 716)); height: 420vh; }
.scene { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #0d0f0a center / cover no-repeat; }
.scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.02) 30%, rgba(0,0,0,.02) 70%, rgba(0,0,0,.12)); }
.scroll-cue { transition: opacity .3s; position: absolute; top: calc(100vh - 92px); left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; padding: 8px 16px 8px 36px; border-radius: 6px; background: rgba(35,43,26,.78); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.scroll-cue::before { content: ""; position: absolute; left: 16px; top: 13px; width: 8px; height: 8px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(45deg); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px) rotate(45deg); } }
.track-content { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.track-content a { pointer-events: auto; }
.track h1, .track h3, .track p { text-shadow: 0 calc(6 * var(--u)) calc(22 * var(--u)) rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.intro { position: absolute; top: calc(940vh / 8); left: 50%; width: calc(1280 * var(--u)); max-width: 100vw; transform: translateX(-50%); text-align: center; }
.eyebrow { margin: 0 auto calc(18 * var(--u)); max-width: none; color: var(--signal); font-size: max(14px, calc(15 * var(--u))); font-weight: 800; }
.intro h1 { font-size: calc(68 * var(--u)); line-height: 1.12; color: #f7f5ef; }
.intro h1 span { display: block; white-space: nowrap; }
.intro-sub { margin: calc(26 * var(--u)) auto 0; max-width: calc(470 * var(--u)); font-size: max(15px, calc(16 * var(--u))); line-height: 1.6; color: rgba(255,255,255,.9); }
.feat { position: absolute; width: calc(300 * var(--u)); }
.feat.left { right: calc(50% + 88 * var(--u)); text-align: right; }
.feat.right { left: calc(50% + 88 * var(--u)); }
.feat.f1 { top: calc(1500vh / 8); }
.feat.f2 { top: calc(1500vh / 8 + 18vh); }
.feat.f3 { top: calc(1759vh / 8 + 18vh); }
.feat.f4 { top: calc(1759vh / 8 + 36vh); }
.feat.f5 { top: calc(2063vh / 8 + 36vh); left: 50%; transform: translateX(-50%); width: calc(360 * var(--u)); text-align: center; }
.feat-icon { display: block; width: calc(36 * var(--u)); height: calc(36 * var(--u)); margin-bottom: calc(22 * var(--u)); color: #f9f9f9; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.feat.left .feat-icon { margin-left: auto; }
.feat.f5 .feat-icon { margin-inline: auto; }
.feat h3 { font-family: var(--display); font-weight: 400; font-size: max(20px, calc(24 * var(--u))); line-height: 1.2; color: #f9f9f9; margin-bottom: calc(10 * var(--u)); }
.feat-no { display: inline-block; margin-right: .35em; font: 800 1.1em/1 var(--stencil); color: var(--signal); }
.feat p { margin: 0 0 calc(12 * var(--u)); max-width: none; font-size: max(14px, calc(14.5 * var(--u))); line-height: 1.55; color: rgba(255,255,255,.9); }
.feat .feat-tool { font-weight: 800; color: #fff; margin: 0; }
.feat .badge { text-shadow: none; margin-left: 6px; vertical-align: 1px; }
.feat .badge.plan { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(35,43,26,.55); }

/* 영상 끝의 구름에서 카키 판으로 이어짐 */
body[data-page="index"] .sheet { margin-top: -34vh; padding-top: 34vh; border-radius: 0; box-shadow: none; background: linear-gradient(180deg, rgba(231,229,216,0), var(--canvas) 34vh); }

/* 주문 처리 화면 구역 */
.board-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.proof { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); }
.proof li { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.proof li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.proof strong { display: block; color: var(--ink); font-size: 16px; }

@media (max-width: 1020px) { .board-layout { grid-template-columns: 1fr; } }

/* 세로 화면(휴대폰): 한 줄로 쌓기 */
@media (max-width: 609px), (orientation: portrait) {
  .track { --u: min(calc(100vw / 390), 1.6px); }
  .track-content { padding: 112vh 22px 0; }
  .intro, .feat, .feat.left, .feat.right, .feat.f5 { position: static; transform: none; width: auto; max-width: 520px; margin-inline: auto; text-align: center; }
  .intro h1 { font-size: clamp(38px, calc(52 * var(--u)), 76px); }
  .intro-sub { max-width: 30em; }
  .feat { margin-top: 16vh; padding: 20px 18px; border-radius: 10px; background: rgba(20,24,14,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .feat.f1 { margin-top: 24vh; }
  .feat-icon, .feat.left .feat-icon { margin-inline: auto; }
}
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; } .proof li:nth-child(even) { padding-left: 0; border-left: 0; } }
.eyebrow { display: table; padding: 4px 12px; border-radius: 4px; background: rgba(20,24,14,.62); }
.intro-sub { padding: 14px 20px; border-radius: 8px; background: rgba(20,24,14,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.feat p:not(.feat-tool) { text-shadow: 0 0 10px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.8); }

/* 영상을 못 불러올 때: 코드로 그린 항공 열차 장면 (스크롤하면 위로 올라가며 안개) */
.scene-art, .scene-fog { position: absolute; inset: 0; display: none; }
.no-video .scene-art, .no-video .scene-fog { display: block; }
.no-video video { display: none; }
.scene-art { --p: 0; transform: scale(calc(1.9 - var(--p) * 1.2)); transform-origin: 50% 50%; }
.scene-art i { position: absolute; inset: -40%; }
.terrain { background:
  radial-gradient(closest-side, rgba(60,58,48,.9), transparent) 0 0 / 340px 260px,
  radial-gradient(closest-side, rgba(14,14,12,.9), transparent) 120px 90px / 280px 300px,
  radial-gradient(closest-side, rgba(44,48,34,.8), transparent) 60px 200px / 420px 220px,
  linear-gradient(90deg, #191a15, #24251d 45%, #1c1d17 55%, #15160f); }
.rail { left: calc(50% - 46px) !important; right: auto !important; width: 92px; background: linear-gradient(90deg, #3a3830, #5a574c 12%, #3a3830 14%, #2c2a24 50%, #3a3830 86%, #5a574c 88%, #3a3830); }
.cars { left: calc(50% - 28px) !important; right: auto !important; width: 56px; background: repeating-linear-gradient(180deg, #b52a22 0 66px, #1d1d1a 66px 72px, #ecebe4 72px 138px, #1d1d1a 138px 144px); box-shadow: 18px 0 30px rgba(0,0,0,.6); animation: roll 14s linear infinite; }
@keyframes roll { to { background-position: 0 -1440px; } }
.scene-fog { --f: 0; opacity: var(--f); background: radial-gradient(ellipse at 20% 40%, #fff 0 20%, transparent 55%), radial-gradient(ellipse at 80% 60%, #f1f0ea 0 25%, transparent 60%), linear-gradient(#e9e8e2, #f3f2ee); }

/* ── 홈: 군수품 상자 (스크롤하면 문이 열림) ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crate-stage { position: relative; height: 260vh; background: #12160d; --o: 0; }
.crate-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1800px; }
.crate-inside { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; background:
  radial-gradient(ellipse at 60% 50%, rgba(242,194,48,.10), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 120px), #12160d;
  opacity: calc(.25 + var(--o) * .75); }
.inside-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; transform: scale(calc(.88 + var(--o) * .12)); }
.inside-kicker { color: var(--signal); font-weight: 800; margin-bottom: 10px; }
.inside-title { font: 400 clamp(32px, 4vw, 56px)/1.12 var(--display); margin-bottom: 20px; }
.inside-text { color: var(--khaki); margin-bottom: 28px; }
.inside-shot { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--field-line); box-shadow: 0 40px 90px rgba(0,0,0,.6); }

.door { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; backface-visibility: hidden; will-change: transform; box-shadow: 0 0 60px rgba(0,0,0,.5); }
.door-l { left: 0; transform-origin: left center; transform: rotateY(calc(var(--o) * -104deg)); }
.door-r { right: 0; transform-origin: right center; transform: rotateY(calc(var(--o) * 104deg)); }
.crate-face { position: absolute; top: 0; bottom: 0; width: 200%; padding: 92px clamp(28px, 6vw, 96px) 40px; display: flex; flex-direction: column; color: #ece9d8;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35) 0 22px, transparent 22px calc(100% - 22px), rgba(0,0,0,.35) calc(100% - 22px)),
    repeating-linear-gradient(180deg, transparent 0 calc(100vh / 7 - 3px), rgba(0,0,0,.38) calc(100vh / 7 - 3px) calc(100vh / 7)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 3px, transparent 3px 9px),
    radial-gradient(ellipse at 30% 20%, #5b6537, transparent 70%), #47502b; }
.crate-face::before { content: ""; position: absolute; inset: 22px; border: 14px solid rgba(0,0,0,.22); pointer-events: none; }
.crate-face::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: rgba(0,0,0,.55); }
.door-r .crate-face { left: -100%; }
.crate-face > * { position: relative; }
.cf-top { display: flex; justify-content: space-between; gap: 16px; font: 400 clamp(16px, 1.8vw, 26px)/1.2 var(--display); color: var(--signal); }
.cf-item { margin: 10px 0 0; max-width: none; font-weight: 800; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .02em; }
.cf-mark { margin: auto 0 0; max-width: none; text-align: center; font: 800 clamp(150px, 30vw, 440px)/.78 var(--stencil); letter-spacing: .04em; color: #ece9d8; opacity: .92; text-shadow: 0 0 1px #ece9d8, 2px 2px 0 rgba(0,0,0,.18); }
.cf-title { margin: 18px 0 auto; max-width: none; text-align: center; font: 400 clamp(30px, 4.4vw, 66px)/1.08 var(--display); color: #ece9d8; }
.cf-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.barcode { width: clamp(110px, 12vw, 170px); height: auto; fill: #ece9d8; }
.cf-codes { display: grid; gap: 2px; text-align: center; font-weight: 800; font-size: clamp(12px, 1.1vw, 15px); font-variant-numeric: tabular-nums; }
.cf-up { display: flex; gap: 10px; }
.cf-up i { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 26px solid var(--signal); position: relative; }
.cf-up i::after { content: ""; position: absolute; left: -6px; top: 24px; width: 12px; height: 18px; background: var(--signal); }
.crate-cue { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); z-index: 3; margin: 0; padding: 8px 16px 8px 36px; border-radius: 4px; background: rgba(18,22,13,.85); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: calc(1 - var(--o) * 4); }
.crate-cue::before { content: ""; position: absolute; left: 16px; top: 13px; width: 8px; height: 8px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(45deg); animation: cue 1.6s ease-in-out infinite; }
body[data-page="index"] .sheet { margin-top: -30px; padding-top: 24px; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; background: var(--canvas); box-shadow: 0 -24px 60px rgba(0,0,0,.3); }

/* ── 홈: 적재 목록 (크라프트지 서류 + 고무도장) ── */
.manifest { position: relative; padding: clamp(28px, 4vw, 56px); background:
  repeating-linear-gradient(180deg, transparent 0 31px, rgba(90,70,30,.12) 31px 32px),
  radial-gradient(ellipse at 20% 0%, #e6d6ae, transparent 60%), #d9c79b; color: #2a2414; border-radius: 4px; box-shadow: 0 2px 0 #b9a676, 0 30px 60px rgba(40,30,10,.18); transform: rotate(-.4deg); }
.manifest::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: rgba(236,233,216,.7); transform: rotate(2deg); }
.mf-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; border-bottom: 3px double #2a2414; }
.mf-name { margin: 0; font: 400 clamp(34px, 4vw, 54px)/1 var(--display); }
.mf-sub { margin: 0; font-weight: 800; color: #5a4c28; }
.mf-lead { margin: 18px 0 8px; color: #4a3f22; }
.mf-list { list-style: none; margin: 0; padding: 0; }
.mf-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px 150px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(42,36,20,.3); }
.mf-no { font: 800 44px/1 var(--stencil); color: #2a2414; }
.mf-row h3 { font-size: 20px; margin-bottom: 4px; }
.mf-row p { margin: 0; color: #4a3f22; font-size: 15px; }
.mf-row .mf-tool { font-weight: 800; color: #2a2414; font-size: 16px; }
.stamp { justify-self: start; padding: 6px 12px; border: 3px double currentColor; border-radius: 6px; font: 400 18px/1.1 var(--display); white-space: nowrap; transform: rotate(-7deg); opacity: .88; mix-blend-mode: multiply; }
.stamp.live { color: #b3261e; }
.stamp.done { color: #3d5a1f; transform: rotate(4deg); }
.stamp.plan { color: #3a4f78; border-style: dashed; border-width: 2px; transform: rotate(-3deg); }
.mf-note { margin: 18px 0 0; font-size: 14px; color: #4a3f22; }
.mf-note a { color: #2a2414; font-weight: 700; }

@media (max-width: 1020px) {
  .inside-grid { grid-template-columns: 1fr; gap: 28px; }
  .mf-row { grid-template-columns: 48px minmax(0, 1fr) 150px; }
  .mf-row .mf-tool { grid-column: 2; }
  .mf-row .stamp { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
  .crate-face { padding: 80px 34px 36px; }
  .cf-top { flex-direction: column; gap: 2px; }
  .cf-mark { font-size: 33vw; }
  .cf-title { font-size: 30px; }
  .cf-up { display: none; }
  .inside-title { font-size: 28px; }
  .inside-text { font-size: 15px; margin-bottom: 18px; }
  .manifest { transform: none; padding: 24px 18px; }
  .mf-row { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .mf-row > div, .mf-row .mf-tool, .mf-row .stamp { grid-column: 2; grid-row: auto; }
  .mf-no { font-size: 34px; grid-row: 1 / span 3; align-self: start; }
  .stamp { margin-top: 6px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }


/* ════ 밝고 샤프한 테마 (여러 기관 솔루션) ════ */
h1, h2 { font-weight: 800; letter-spacing: -0.045em; }
h2 { line-height: 1.12; }
.brand-mark { font: 800 18px/1 var(--font); letter-spacing: .02em; background: var(--olive); color: #fff; }
.pill { background: rgba(255,255,255,.88); border-color: var(--line); box-shadow: 0 10px 30px rgba(11,21,48,.10); }
.pill-brand { color: var(--ink); }
.menu-btn { background: #eef2fa; color: var(--ink); }
.menu-btn:hover { background: #e2e8f5; }
.menu-dots i { background: var(--olive); }
.menu-group a { font-weight: 800; letter-spacing: -0.03em; }
.btn { background: var(--olive); color: #fff; box-shadow: 0 3px 0 #0f2ea8; border-radius: 8px; }
.btn:hover { box-shadow: 0 5px 0 #0f2ea8; }
.btn:active { box-shadow: 0 1px 0 #0f2ea8; }
.text-link { color: var(--ink); text-decoration-color: var(--olive); }
.text-link.light { color: #fff; text-decoration-color: #fff; }

/* 머리: 밝은 바탕 + 가는 청색 격자 */
.hero, .page-head { background: #fff; color: var(--ink); }
.hero-grid-bg, .page-head::before { background-image:
    linear-gradient(rgba(27,70,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(27,70,245,.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-head::after { height: 8px; background: linear-gradient(90deg, var(--mil) 0 25%, var(--sch) 25% 50%, var(--hos) 50% 75%, var(--sea) 75%); opacity: 1; }
.crumb, .kicker { color: var(--olive); }
.hero .lead, .page-head .lead { color: var(--ink-soft); }
.page-head .work-role { color: var(--olive); }
.sheet { box-shadow: 0 -20px 50px rgba(11,21,48,.08); }
body[data-page="index"] .sheet { background: var(--canvas); box-shadow: 0 -20px 50px rgba(11,21,48,.08); }

/* 어두운 판 → 코발트 판 */
.section.dark, .section.contact { background: var(--olive); color: #fff; }
.dark p, .dark .section-lead, .dark .flow span, .dark .org-role { color: rgba(255,255,255,.82); }
.dark .flow strong, .dark .features h3, .dark .strengths h3, .dark .org-name, .dark .work-role { color: #fff; }
.dark .targets, .dark .features, .dark .targets li, .dark .features li { border-color: rgba(255,255,255,.28); }
.dark .targets p, .dark .features p { color: rgba(255,255,255,.82); }
.dark .road-step, .dark .org-head, .dark .org-box { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.dark .ticks li::before { border-color: #fff; }
.dark .btn { background: #fff; color: var(--olive); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.spec li { color: #fff; border-color: rgba(255,255,255,.3); }
.spec li::before { background: #fff; }
.work-shot { border-color: rgba(255,255,255,.3); box-shadow: 0 30px 70px rgba(5,15,60,.35); }
.contact-name, .map-links a { color: #fff; }
.contact-name { opacity: .8; }
.greeting-aside, .split-main, .stat { background: var(--field); }
.mini-list li::marker { color: var(--signal); }
.split-main .split-sub, .stat-num span { color: var(--signal); }
.patent-card::before { background: linear-gradient(180deg, var(--mil), var(--sch), var(--hos), var(--sea)); }
.status { background: var(--olive); color: #fff; }
.road-step::before { background: var(--olive); }
.org-head { border-top-color: var(--olive); }
.target-order { background: #e6ecff; color: var(--olive); }
.why { border-top-color: var(--ink); }
.why-big { font-weight: 800; letter-spacing: -0.04em; color: var(--olive); }
.why-big b { font: inherit; font-size: 1.25em; margin: 0 .04em; }
.patent-no { font-weight: 800; color: var(--olive); }
.step-no, .stat-num, .tel, .site-menu-contact a { font-family: var(--font); font-weight: 800; letter-spacing: -0.03em; }
.next-title { font-weight: 800; letter-spacing: -0.05em; }
.next-label, .menu-group-name, .menu-group a:hover, .menu-group a[aria-current="page"], .sitemap a:hover, .sitemap a[aria-current="page"] { color: var(--signal); }
.next-arrow { background: var(--olive); }
.next-arrow::after { border-color: #fff; }
.next-link:hover .next-title { color: var(--signal); }

/* 주문 처리 화면: 남색 패널 */
.board { background: var(--field); border-color: var(--field-line); box-shadow: 0 30px 70px rgba(11,21,48,.25); }
.board-title { font-weight: 800; font-family: var(--font); }
.board-live { color: #7ee2cf; }
.live-dot { background: #7ee2cf; }
.board-row { color: #e7ecf8; border-bottom-color: rgba(42,58,107,.8); }
.board-row.is-hot { background: rgba(111,143,255,.16); }
.tag[data-state="1"] { color: #7ee2cf; }
.tag[data-state="2"] { color: #ffcf5c; }
.tag[data-state="3"] { color: var(--field); background: #7ee2cf; border-color: #7ee2cf; }
.route li::before { background: var(--field); }
.route::after { background: #ffcf5c; }
.board figcaption { color: #8d99b8; }
.proof { border-top-color: var(--ink); }

/* ── 홈 첫 화면: 네 기관 패널 ── */
.hero-sectors { min-height: 100vh; padding: 128px 0 64px; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.hero-copy { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px 56px; align-items: end; }
.hero-copy .kicker { grid-column: 1 / -1; margin: 0; }
.hero-sectors h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02; margin: 0; }
.hero-copy .lead { margin: 0 0 8px; font-size: 18px; }
.sectors { display: flex; gap: 10px; height: clamp(360px, 46vh, 460px); }
.sector { --c: var(--mil); --on: #fff; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 14px; background: var(--c); color: var(--on); overflow: hidden; transition: flex-grow .55s cubic-bezier(.2,.8,.2,1); }
.sector::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255,255,255,.14); pointer-events: none; }
.sector.is-active { flex-grow: 3.2; }
.s-mil { --c: var(--mil); }
.s-sch { --c: var(--sch); --on: var(--ink); }
.s-hos { --c: var(--hos); }
.s-sea { --c: var(--sea); }
.sector-tab { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 12px; cursor: pointer; color: inherit; }
.sector-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; border-radius: 12px; }
.sector-icon { width: 34px; height: 34px; }
.sector-name { font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.sector-body { padding: 0 24px 24px; margin-top: auto; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; visibility: hidden; min-width: 300px; }
.sector.is-active .sector-body { opacity: 1; transform: none; visibility: visible; transition-delay: .2s; }
.sector-lead { font-size: 16px; font-weight: 600; margin-bottom: 14px; max-width: 30em; }
.sector-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.s-sch .sector-list { border-color: rgba(11,21,48,.25); }
.sector-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 15px; font-weight: 600; }
.s-sch .sector-list li { border-color: rgba(11,21,48,.2); }
.chip { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip.live { background: #fff; color: var(--ink); }
.chip.done { background: var(--ink); color: #fff; }
.chip.plan { border: 1.5px dashed currentColor; }

/* ── 홈: 기관별 솔루션 표 ── */
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.matrix { width: 100%; min-width: 560px; border-collapse: collapse; }
.matrix th, .matrix td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix thead th { font-size: 15px; font-weight: 800; position: relative; }
.matrix thead th[class]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 4px; border-radius: 2px; }
.c-mil::after { background: var(--mil); } .c-sch::after { background: var(--sch); } .c-hos::after { background: var(--hos); } .c-sea::after { background: var(--sea); }
.matrix th:first-child, .matrix tbody th { text-align: left; }
.matrix tbody th { font-size: 17px; font-weight: 800; }
.matrix tbody th small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--olive); vertical-align: middle; }
.dot.on { background: var(--olive); }
.dash { color: #b3bccd; }
.matrix-key { display: flex; gap: 24px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.matrix-key > span { display: inline-flex; gap: 8px; align-items: center; }

@media (max-width: 1020px) {
  .hero-copy { grid-template-columns: 1fr; }
  .sectors { flex-direction: column; height: auto; }
  .sector { flex: none; }
  .sector-tab { flex-direction: row; align-items: center; padding: 18px 20px; }
  .sector-body { display: none; min-width: 0; padding: 0 20px 20px; }
  .sector.is-active .sector-body { display: block; }
}
@media (max-width: 640px) {
  .hero-sectors { padding: 100px 0 40px; gap: 28px; }
  .hero-sectors h1 { font-size: 36px; }
  .hero-copy .lead { font-size: 16px; }
  .sector-name { font-size: 24px; }
  .sector-list li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .sector, .sector-body { transition: none; } }
.work-copy h3, .work-second h3, .split-col h3, .sign strong, .visit h2, .greeting-aside h2, .flow-big strong, .board-title { font-weight: 800; letter-spacing: -0.03em; }
