/* 티에스팀 — 딥그린 · 아이보리 · 브론즈 (디자인 2 계승)
   색 · 글꼴은 :root 토큰만 고치면 전체가 바뀐다 */
@font-face { font-family: "Pretendard"; src: url("../fonts/PretendardVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ivory: #17191b;
  --paper: #101112;
  --card: #191b1d;
  --ink: #d7f3f5;
  --muted: #b3b1ab;
  --line: #343638;
  --gold-ink: #121314;
  --deep: #0b0c0d;
  --deep-2: #1c1e20;
  --on-deep: #d7f3f5;
  --on-deep-muted: #b8b6b0;
  --bronze: #c2a980;
  --bronze-soft: #c2a980;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Pretendard", -apple-system, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 46em; }
.note { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-family: inherit; }
.btn i { font-style: normal; }
.btn-solid { background: var(--bronze-soft); color: var(--gold-ink); }
.btn-solid:hover { background: #d4bf99; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,17,18,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin: 0; }
.logo strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.logo span { font-size: 9px; line-height: 1.3; letter-spacing: .14em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.gnb { display: flex; align-items: center; gap: 30px; }
.gnb a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnb a:not(.btn):hover, .gnb a[aria-current] { border-color: var(--bronze); }
.gnb .btn { min-height: 42px; padding: 8px 18px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* 홈 히어로 */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; background: var(--deep); color: var(--on-deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-slides .hero-img { opacity: 0; animation: heroFade var(--hero-cycle, 35s) infinite; }
.hero-slides .hero-img:first-child { opacity: .75; }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.06); } 4% { opacity: .75; } 20% { opacity: .75; } 24% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-img { animation: none; opacity: 0; } .hero-slides .hero-img:first-child { opacity: .75; } }
.hero-cap { position: absolute; z-index: 2; left: var(--gutter); bottom: 16px; margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--bronze-soft); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,15,16,.92) 0%, rgba(14,15,16,.6) 45%, rgba(14,15,16,.1) 100%); }
.hero-in { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 700; margin-bottom: 26px; }
.hero .lead { color: var(--on-deep-muted); margin-bottom: 36px; max-width: 34em; }
.hero .eyebrow { color: var(--bronze-soft); }


.img-note { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; margin: 0; font-size: 11px; color: rgba(241,239,233,.7); }

/* 하위 제목 띠 */
.page-head { position: relative; background: var(--deep); color: var(--on-deep); padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.page-head.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-head.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,15,16,.95), rgba(14,15,16,.55)); }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 18px; }
.page-head .lead { color: var(--on-deep-muted); }
.page-head .eyebrow { color: var(--bronze-soft); }

/* 섹션 공통 */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--ivory); }
.section.dark { background: var(--deep); color: var(--on-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark .lead, .section.dark .note { color: var(--on-deep-muted); }
.section.dark .eyebrow { color: var(--bronze-soft); }
.sec-title { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.sec-title.center { text-align: center; }
.sec-title.center .lead { margin: 0 auto; }
.more { margin-top: 40px; }

/* 숫자 띠 */
.stats { background: var(--ivory); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-in > div { padding: 34px 20px; border-left: 1px solid var(--line); }
.stats-in > div:first-child { border-left: 0; padding-left: 0; }
.stats .num { margin: 0 0 4px; display: flex; align-items: baseline; gap: 4px; }
.stats b { font-size: clamp(32px, 4vw, 48px); font-weight: 700; font-family: var(--serif); color: var(--bronze-soft); line-height: 1; }
.stats .num span { font-weight: 600; color: var(--bronze); }
.stats p { color: var(--muted); font-size: 14px; }

/* 솔루션 카드 */
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sol-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(18,19,20,.35); }
.sol-img { aspect-ratio: 16/9; overflow: hidden; background: var(--deep); }
.sol-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sol-card:hover .sol-img img { transform: scale(1.04); }
.sol-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.en { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--bronze); margin-bottom: 8px; text-transform: uppercase; }
.sol-body h3 { font-size: 21px; margin-bottom: 8px; }
.sol-body p { color: var(--muted); font-size: 15px; }
.sol-body .go { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 14px; color: var(--bronze-soft); }

/* 실적 카드 */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pj-card { margin: 0; }
.pj-img { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: var(--deep-2); }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pj-ph { display: flex; align-items: flex-end; height: 100%; padding: 20px; background: linear-gradient(135deg, var(--deep-2), var(--deep)); color: var(--on-deep-muted); font-family: var(--serif); font-size: 20px; }
.tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: rgba(18,19,20,.75); color: var(--on-deep); backdrop-filter: blur(4px); }
.tag.real { background: rgba(194,169,128,.92); color: #1a140a; }
.pj-card figcaption { padding: 14px 2px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pj-card figcaption > * { min-width: 0; overflow-wrap: anywhere; }
.pj-card .yr { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--bronze); }
.section.dark .pj-card .yr { color: var(--bronze-soft); }
.pj-card strong { font-size: 18px; }
.pj-card .scope { font-size: 14px; color: var(--muted); }
.section.dark .pj-card .scope { color: var(--on-deep-muted); }
.pj-card small { font-size: 11px; color: var(--muted); opacity: .85; }
.pj-open { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
a.pj-open:hover .pj-img img { transform: scale(1.05); }
a.pj-open .pj-img::after { content: "⤢"; position: absolute; right: 12px; bottom: 10px; color: #fff; font-size: 18px; opacity: 0; transition: opacity .2s; }
a.pj-open:hover .pj-img::after { opacity: 1; }

/* 연도별 갤러리 */
.years { padding-top: 0; }
.year-bar { position: sticky; top: 72px; z-index: 20; background: rgba(16,17,18,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.year-bar-in { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.year-nav, .field-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.year-nav a { flex: none; text-decoration: none; font-family: var(--serif); font-size: 17px; padding: 4px 12px; border-radius: 20px; }
.year-nav a:hover, .year-nav a.on { background: var(--bronze-soft); color: var(--gold-ink); }
.field-filter button { flex: none; color: var(--ink); font: inherit; font-size: 13px; padding: 5px 13px; border: 1px solid var(--line); background: var(--card); border-radius: 20px; cursor: pointer; }
.field-filter button.on { background: var(--bronze); border-color: var(--bronze); color: #1a140a; font-weight: 600; }
.year { padding-top: 56px; padding-bottom: 24px; }
.year-head { display: flex; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; }
.year-head h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1; }
.year-head p { margin: 0; color: var(--muted); }
.year-head b { color: var(--bronze-soft); font-size: 20px; }
.gallery .pj-open:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .pj-open:first-child .pj-img { aspect-ratio: 16/11.2; }
.gallery .pj-open:first-child strong { font-size: 22px; }
.pj-open.hide { display: none; }
.empty-msg { color: var(--muted); padding: 20px 0; }
.year-list { margin-top: 32px; border-top: 1px solid var(--line); }
.year-list summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--bronze-soft); list-style: none; }
.year-list summary::-webkit-details-marker { display: none; }
.year-list summary::before { content: "+"; display: inline-block; width: 22px; font-weight: 400; }
.year-list[open] summary::before { content: "–"; }
.year-list ul { columns: 3; column-gap: 32px; padding: 0 0 20px; margin: 0; list-style: none; font-size: 14px; }
.year-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.year-list li.hide { display: none; }
.year-list .f { display: inline-block; min-width: 76px; font-size: 11px; color: var(--bronze); }

.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); width: 100%; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10,10,11,.92); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: var(--on-deep); padding-top: 14px; display: grid; gap: 2px; }
.lightbox figcaption b { font-size: 20px; }
.lightbox figcaption small { color: var(--on-deep-muted); }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: -58px; right: 0; }
.lb-prev { left: -64px; top: 38%; }
.lb-next { right: -64px; top: 38%; }

.bars { list-style: none; padding: 0 var(--gutter); margin: 0 auto; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 50px; align-items: center; gap: 16px; }
.bars i { display: block; height: 12px; width: var(--w); max-width: 100%; background: linear-gradient(90deg, var(--deep-2), var(--bronze)); border-radius: 6px; }
.bars b { font-family: var(--serif); font-size: 20px; text-align: right; }

/* 과정 · 표준 · 브랜드 · 인증 */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0 auto; }
.process li { padding: 28px 22px 0 0; border-top: 2px solid var(--ink); margin-right: 18px; }
.process span, .stages .no { font-family: var(--serif); font-size: 30px; color: var(--bronze); display: block; margin-bottom: 10px; }
.process h3 { font-size: 19px; margin-bottom: 8px; }
.process p { font-size: 15px; color: var(--muted); }
.std-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.std { background: var(--card); border: 1px solid var(--line); padding: 32px; border-radius: var(--radius); }
.std h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; color: var(--bronze-soft); }
.std p:last-child { color: var(--muted); font-size: 15px; }
.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 auto; padding: 0; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.brand-grid li { background: var(--paper); padding: 30px; display: grid; gap: 2px; }
.brand-grid strong { font-size: 24px; letter-spacing: .04em; }
.brand-grid span { font-size: 12px; color: var(--bronze); font-weight: 600; letter-spacing: .1em; }
.brand-grid p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.brand-grid.compact { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.brand-grid.compact li { padding: 26px 8px; text-align: center; }
.brand-grid.compact strong { font-size: 15px; color: var(--muted); }
.cert-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 var(--gutter); margin: 0 auto; }
.cert-grid li { background: var(--card); border-top: 3px solid var(--bronze-soft); padding: 26px; }
.cert-grid h3 { font-size: 17px; margin-bottom: 10px; }
.cert-grid b { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--bronze-soft); }
.cert-grid p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* CTA */
.cta { background: var(--deep-2); color: var(--on-deep); padding: clamp(56px, 7vw, 88px) 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 10px; }
.cta p { color: var(--on-deep-muted); }
.cta .eyebrow { color: var(--bronze-soft); }


/* 회사소개 */
.greet-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.greet-head h2 { font-size: clamp(30px, 3.8vw, 46px); position: sticky; top: 110px; }
.greet-body p { font-size: 17px; line-height: 1.95; margin-bottom: 1.3em; }
.greet-body .sign { margin-top: 40px; text-align: right; color: var(--muted); }
.greet-body .sign b { font-size: 22px; color: var(--ink); margin-left: 10px; letter-spacing: .3em; }
.info-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.info { margin: 0; border-top: 2px solid var(--ink); }
.info > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 700; }
.info dd { margin: 0; color: var(--muted); }
.org { text-align: center; }
.org-ceo { display: inline-block; background: var(--bronze-soft); color: var(--gold-ink); font-weight: 700; padding: 12px 40px; border-radius: var(--radius); margin-bottom: 30px; position: relative; }
.org-ceo::after { content: ""; position: absolute; left: 50%; top: 100%; height: 30px; border-left: 1px solid var(--bronze); }
.org-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--bronze); padding-top: 20px; }
.org-dept h3 { font-size: 15px; background: var(--ivory); padding: 10px 6px; margin-bottom: 8px; }
.org-dept ul { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.org-dept li { padding: 4px 0; }
.map-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.map-grid img { border: 1px solid var(--line); border-radius: var(--radius); }
.map-grid h3 { font-size: 22px; margin-bottom: 12px; }

/* 솔루션 상세 */
.sol-intro { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.lead-lg { font-size: clamp(19px, 2vw, 24px); line-height: 1.7; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; justify-content: flex-end; }
.chips li { border: 1px solid var(--ink); padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.chips .std-chip { border-color: var(--bronze); color: var(--bronze); }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 auto; padding: 0; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.feat { background: var(--paper); padding: 36px; }
.feat span { font-family: var(--serif); color: var(--bronze); font-size: 22px; }
.feat h3 { font-size: 21px; margin: 8px 0 10px; }
.feat p { color: var(--muted); }
.dl-one { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.dl-one img { border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(18,19,20,.5); }
.dl-one h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.dl-one .btn { margin-top: 12px; }
.size { margin-left: 12px; font-size: 13px; }

/* 엔지니어링 */
.stages { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 auto; }
.stages > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.stages h3 { font-size: 20px; margin-bottom: 8px; }
.stages > li > p { color: var(--muted); font-size: 15px; }
.out { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.out li { font-size: 12px; font-weight: 600; background: var(--ivory); color: var(--bronze-soft); padding: 4px 10px; border-radius: 3px; }
.out li::before { content: "▸ "; color: var(--bronze); }
.arch { display: grid; gap: 0; margin-bottom: 56px; }
.arch-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; }
.arch-label { margin: 0; font-weight: 700; font-size: 17px; }
.arch-label span { font-family: var(--serif); color: var(--bronze-soft); margin-right: 10px; font-weight: 400; }
.arch-row ul { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; }
.arch-row li { border: 1px solid rgba(194,169,128,.35); background: rgba(255,255,255,.04); padding: 14px 10px; text-align: center; border-radius: var(--radius); font-weight: 600; font-size: 15px; }
.arch-row.bus li { border-color: var(--bronze); background: rgba(194,169,128,.16); }
.arch-link { height: 26px; margin-left: 200px; background: linear-gradient(var(--bronze-soft), var(--bronze-soft)) center / 1px 100% no-repeat; position: relative; }
.arch-link::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--bronze-soft); }
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auto-grid > div { padding: 24px; border-top: 1px solid rgba(194,169,128,.25); }
.auto-grid h3 { font-size: 17px; color: var(--bronze-soft); margin-bottom: 6px; }
.auto-grid p { color: var(--on-deep-muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
.scope { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.scope th, .scope td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.scope thead th { border-bottom: 2px solid var(--ink); font-size: 14px; }
.scope tbody th { width: 130px; }
.scope .ts { background: rgba(194,169,128,.09); font-weight: 600; }
.scope thead .ts { color: var(--bronze-soft); }
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); }
.support-grid h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.rnd { background: var(--card); border: 1px solid var(--line); color: var(--on-deep); padding: 40px; border-radius: var(--radius); align-self: start; }
.rnd .eyebrow { color: var(--bronze-soft); }
.rnd p { color: var(--on-deep-muted); }
.support { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.support h3 { font-size: 17px; margin-bottom: 4px; }
.support p { font-size: 15px; color: var(--muted); }

/* 자료실 */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dl-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dl-img { aspect-ratio: 16/9; overflow: hidden; background: var(--deep); }
.dl-img img { width: 100%; height: 100%; object-fit: cover; }
.dl-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.dl-body h3 { font-size: 20px; margin-bottom: 6px; }
.dl-body > p { color: var(--muted); font-size: 15px; }
.dl-meta { font-size: 13px; margin-top: auto !important; padding-top: 12px; }
.dl-body .btn { margin-top: 14px; align-self: flex-start; }
.dl-card.featured { grid-column: 1 / -1; flex-direction: row; background: var(--card); color: var(--on-deep); border: 1px solid var(--bronze-soft); }
.dl-card.featured .dl-img { flex: 1.2; aspect-ratio: 16/9; }
.dl-card.featured .dl-body { flex: 1; padding: clamp(28px, 4vw, 48px); justify-content: center; }
.dl-card.featured h3 { font-size: clamp(26px, 3vw, 36px); }
.dl-card.featured .en { color: var(--bronze-soft); }
.dl-card.featured .dl-body > p { color: var(--on-deep-muted); }
.dl-card.featured .dl-meta { margin-top: 8px !important; }


/* 상담 */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .form label { font-weight: 600; font-size: 14px; }
.form label b { color: var(--bronze); }
.form input:not([type=checkbox]), .form textarea { color: var(--ink); display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font: inherit; font-weight: 400; font-size: 16px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips-input label { cursor: pointer; }
.chips-input input { position: absolute; opacity: 0; }
.chips-input span { display: inline-block; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 20px; font-weight: 500; }
.chips-input input:checked + span { background: var(--bronze-soft); color: var(--gold-ink); border-color: var(--bronze-soft); }
.chips-input input:focus-visible + span { outline: 2px solid var(--bronze); }
.hp { position: absolute; left: -9999px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.agree input { margin-top: 5px; }
.form .btn { justify-self: start; }
.form-msg { min-height: 1.5em; font-weight: 600; color: var(--bronze-soft); }
.contact-side { background: var(--ivory); padding: 36px; border-radius: var(--radius); }
.contact-side h2 { font-size: 22px; margin-bottom: 12px; }
.contact-side .big { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; }
.contact-side .big a, .contact-side a { text-decoration: none; }
.contact-side hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.contact-side h3 { font-size: 16px; margin-bottom: 10px; }
.check { padding-left: 18px; margin: 0 0 12px; color: var(--muted); font-size: 15px; }

.prose { max-width: 820px; }
.prose h3 { font-size: 18px; margin: 32px 0 8px; }

/* 꼬리 */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--on-deep-muted); padding: 56px 0 28px; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px; }
.site-footer .logo strong { color: var(--on-deep); }
.site-footer .logo span { border-color: rgba(255,255,255,.2); color: var(--on-deep-muted); }
.site-footer .muted { color: var(--on-deep-muted); margin-top: 12px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-deep); }
.footer-nav { display: grid; gap: 6px; justify-items: start; }
.footer-nav b { color: var(--on-deep); }
.copy { margin-top: 40px; padding-top: 20px !important; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* 반응형 */
@media (max-width: 1080px) {
  .gnb { gap: 20px; }
  .brand-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .gnb { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .gnb.open { display: flex; }
  .gnb a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .gnb .btn { margin-top: 16px; justify-content: center; }
  .sol-grid, .pj-grid, .dl-grid, .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-grid, .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-in > div { border-top: 1px solid var(--line); }
  .stats-in > div:nth-child(-n+2) { border-top: 0; }
  .greet-in, .info-grid, .map-grid, .sol-intro, .dl-one, .support-grid, .contact-grid, .footer-in { grid-template-columns: minmax(0, 1fr); }
  .greet-head h2 { position: static; }
  .chips { justify-content: flex-start; }
  .year-list ul { columns: 2; }
  .dl-card.featured { flex-direction: column; }
  .arch-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .arch-link { margin-left: 0; }
  .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-prev { left: 4px; top: auto; bottom: -62px; }
  .lb-next { right: 4px; top: auto; bottom: -62px; }
}
@media (max-width: 600px) {
  .sol-grid, .pj-grid, .dl-grid, .stages, .std-grid, .cert-grid, .feat-grid, .row2, .support, .auto-grid, .org-row { grid-template-columns: minmax(0, 1fr); }
  .gallery .pj-open:first-child { grid-column: auto; grid-row: auto; }
  .gallery .pj-open:first-child .pj-img { aspect-ratio: 16/10; height: auto; min-height: 0; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process li { margin-right: 0; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-grid li { padding: 20px; }
  .year-list ul { columns: 1; }
  .arch-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info > div { grid-template-columns: 90px 1fr; }
  .bars li { grid-template-columns: 86px 1fr 40px; gap: 10px; font-size: 14px; }
  .hero::before { background: linear-gradient(180deg, rgba(14,15,16,.55), rgba(14,15,16,.92)); }
  .feat { padding: 26px; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.tag.own { background: var(--ink); color: var(--paper); }
.dl-card.featured { align-items: center; }
.dl-card.featured .dl-img { align-self: center; width: 100%; }
@media (min-width: 901px) { .dl-card.featured .dl-img { margin: 24px 0 24px 24px; border-radius: var(--radius); } }

/* 솔루션: 동작 · 구성도 */
.how-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.how-media { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.how-media img, .how-media video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.how-media figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(215,243,245,.7); }
.how-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; display: grid; gap: 22px; }
.how-steps li { counter-increment: hs; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.how-steps li::before { content: counter(hs); grid-row: span 2; width: 36px; height: 36px; border: 1px solid var(--bronze-soft); border-radius: 50%; display: grid; place-items: center; color: var(--bronze-soft); font-family: var(--serif); }
.how-steps b { font-size: 18px; }
.how-steps span { color: var(--muted); }
.how-yt { margin-top: 32px; text-align: center; }
.dia { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.dia li { position: relative; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--bronze-soft); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.dia li + li::before { content: "→"; position: absolute; left: -31px; top: 50%; transform: translateY(-50%); color: var(--bronze-soft); font-size: 22px; }
.dia b { color: var(--bronze-soft); font-size: 13px; letter-spacing: .12em; margin-bottom: 4px; }
.dia span { font-size: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .dia { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .dia li + li::before { content: "↓"; left: 50%; top: -28px; transform: translateX(-50%); }
}

.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prod-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.prod-grid span { display: block; padding: 14px 16px; font-weight: 600; font-size: 15px; }
@media (max-width: 860px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* 구성 제품 카탈로그 (카드 클릭 → 제품별 이미지 · 사양) */
.pcat-open { all: unset; display: block; cursor: pointer; }
.pcat-open:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.pcat-card { transition: border-color .2s; }
.pcat-card:hover { border-color: var(--bronze); }
.pcat-open span { color: var(--bronze); }
.pcat-open i { font-style: normal; }
.pcat { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(1180px, 96vw); max-width: 96vw; max-height: 92vh; background: var(--paper); color: var(--ink); overflow: hidden; }
.pcat[open] { display: flex; flex-direction: column; }
.pcat::backdrop { background: rgba(10,10,11,.88); }
.pcat-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pcat-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.pcat-tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pcat-tabs button.on { border-color: var(--bronze); color: var(--bronze); }
.pcat-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.pcat-count b { color: var(--ink); }
.pcat-close { flex: none; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; line-height: 1; }
.pcat-body { position: relative; flex: 1; overflow-y: auto; padding: 24px 68px; }
.pcat-item { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.pcat-item[hidden] { display: none; }
.pcat-item figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 12px; }
.pcat-item figure img { width: 100%; height: auto; }
.pcat-text .eyebrow { margin: 0 0 6px; }
.pcat-text h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.3; }
.pcat-text h3 em { font-style: normal; color: var(--bronze); margin-right: 4px; }
.pcat-text > p { color: var(--muted); margin: 0 0 14px; }
.pcat-text ul { margin: 0 0 16px; padding-left: 18px; font-size: 15px; }
.pcat-text li { margin-bottom: 3px; }
.pcat-text dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pcat-text dt { color: var(--muted); }
.pcat-text dd { margin: 0; }
.pcat-prev, .pcat-next { position: absolute; top: 160px; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; line-height: 1; z-index: 1; }
.pcat-prev { left: 12px; }
.pcat-next { right: 12px; }
.pcat-prev:hover, .pcat-next:hover, .pcat-close:hover { background: rgba(255,255,255,.22); }
.pcat-thumbs { list-style: none; margin: 0; padding: 10px 20px; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid var(--line); flex: none; }
.pcat-thumbs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 4px; border-radius: var(--radius); cursor: pointer; width: 84px; font: inherit; font-size: 11px; }
.pcat-thumbs button.on { border-color: var(--bronze); color: var(--bronze); }
.pcat-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; background: #fff; border-radius: 2px; }
.pcat-thumbs span { display: block; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcat-note { margin: 0; padding: 0 20px 12px; font-size: 12px; color: var(--muted); flex: none; }
@media (max-width: 860px) {
  .pcat { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .pcat-head { padding: 10px 12px; gap: 8px; }
  .pcat-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .pcat-body { position: static; padding: 16px; }
  .pcat-item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pcat-prev, .pcat-next { position: fixed; top: 150px; background: rgba(20,20,20,.75); }
  .pcat-thumbs { padding: 8px 12px; }
}

/* v6 휴대폰 하단 고정 연락 바 */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(11,12,13,.96); border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; backdrop-filter: blur(6px); }
  .m-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1px solid var(--bronze); border-radius: var(--radius); color: var(--on-deep); text-decoration: none; font-weight: 600; font-size: 15px; }
  .m-cta a.on { background: var(--bronze); color: var(--gold-ink); }
  .m-cta svg { width: 18px; height: 18px; fill: currentColor; }
  body:has(.m-cta) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* v7 자료실: 요청 방식 안내 */
.dl-policy { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: var(--radius); background: var(--card); color: var(--muted); font-size: 15px; }
.dl-policy b { color: var(--ink); }
.form legend small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }

/* ── 스마트호텔 전체 시스템 구성도 (blocks/diagram-hotel.njk · _data/diagrams/hotel.json) ── */
.hd-lead { margin: -8px 0 28px; color: var(--muted); font-size: 17px; }
.hd { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; --knx: #49b46a; --wire: #8c7a62; }
.hd small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 3px; }
.hd b { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); }
.hd-srv { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hd-srv li { position: relative; text-align: center; padding: 16px 10px; background: var(--deep-2); border: 1px solid var(--line); border-top: 2px solid var(--bronze); border-radius: var(--radius); }
.hd-srv li.is-main { background: #2a241d; }
.hd-srv li::after { content: ""; position: absolute; left: 50%; bottom: -31px; height: 30px; border-left: 2px solid var(--wire); }
.hd-bar { position: relative; margin: 0; text-align: center; font-weight: 600; font-size: 15px; padding: 13px 16px; border: 1px solid var(--wire); border-radius: 8px; background: var(--card); color: var(--ink); }
.hd-backbone { background: #231f1a; }
.hd-idf { margin-top: 30px; }
.hd-idf::before { content: ""; position: absolute; left: 50%; top: -31px; height: 30px; border-left: 2px solid var(--wire); }
.hd-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.hd-room { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px 12px 14px; }
.hd-no { position: absolute; left: 12px; top: 8px; font-size: 13px; font-weight: 700; color: var(--bronze); }
.hd-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.hd-ctrl, .hd-lock { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; }
.hd-ctrl { background: #2a241d; border: 1px solid var(--bronze); }
.hd-lock { background: var(--card); border: 1px solid var(--wire); }
.hd-ctrl img, .hd-lock img { width: 44px; height: 44px; flex: none; border-radius: 4px; background: #fff; object-fit: contain; }
.hd-ctrl b, .hd-lock b { font-size: 13px; }
.hd-ctrl small, .hd-lock small { font-size: 11.5px; }
/* IDF → 객실: 컨트롤러는 실선(UTP), 도어락은 점선(무선 BLUEnet) */
.hd-ctrl::before, .hd-lock::before { content: ""; position: absolute; left: 50%; top: -76px; height: 75px; }
.hd-ctrl::before { border-left: 2px solid var(--wire); }
.hd-lock::before { border-left: 2px dashed var(--wire); }
/* 컨트롤러 → KNX 버스 */
.hd-ctrl::after { content: ""; position: absolute; left: 50%; bottom: -15px; height: 14px; border-left: 3px solid var(--knx); }
.hd-bus { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 3px solid var(--knx); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
.hd-bus li { position: relative; text-align: center; padding: 6px 4px 7px; border: 1px solid var(--knx); border-radius: 5px; background: var(--card); }
.hd-bus li::before { content: ""; position: absolute; left: 50%; top: -13px; height: 12px; border-left: 2px solid var(--knx); }
.hd-bus li:nth-child(n+4)::before { display: none; }
.hd-bus img { display: block; width: 46px; height: 46px; margin: 0 auto 5px; border-radius: 4px; background: #fff; object-fit: contain; }
.hd-bus b { font-size: 12.5px; }
.hd-bus small { font-size: 10.5px; }
.hd-side { background: #231f1a; border: 1px solid var(--line); border-radius: 8px; padding: 22px 20px; }
.hd-side h3 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.hd-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hd-side li { display: flex; gap: 14px; align-items: flex-start; }
.hd-side i svg { width: 26px; height: 26px; fill: none; stroke: var(--bronze); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.hd-legend { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; color: var(--muted); }
.hd-legend span::before { content: ""; display: inline-block; width: 22px; vertical-align: middle; margin-right: 6px; }
.lg-ip::before { border-top: 2px solid var(--wire); }
.lg-knx::before { border-top: 3px solid var(--knx); }
.lg-rf::before { border-top: 2px dashed var(--wire); }
@media (max-width: 1100px) {
  .hd { grid-template-columns: minmax(0, 1fr); }
  .hd-side ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hd-srv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-srv li::after { display: none; }
  .hd-backbone::before { content: ""; position: absolute; left: 50%; top: -31px; height: 30px; border-left: 2px solid var(--wire); }
  .hd-rooms { grid-template-columns: minmax(0, 1fr); }
  .hd-room:nth-child(n+2) { display: none; }   /* 휴대폰은 대표 객실 1개만 */
  .hd-rooms::after { content: "302호 · 303호 … 같은 구성"; display: block; text-align: center; color: var(--muted); font-size: 13px; }
  .hd-side ul { grid-template-columns: minmax(0, 1fr); }
}

/* ── 협력 제조사 공식 로고 (blocks/brands.njk) ── */
.brand-grid .brand-logo { display: block; height: calc(30px * var(--s, 1)); width: auto; max-width: 100%; object-fit: contain; }
.brand-grid.compact .brand-logo { height: calc(22px * var(--s, 1)); margin: 0 auto; }
/* 흐르는 로고 띠: 같은 목록을 두 번 이어 붙여 -50% 만큼 움직이면 끊김 없이 반복 */
.brand-marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; animation: brand-flow 38s linear infinite; }
.brand-track li { flex: none; padding: 0 48px; }
.brand-track img { display: block; height: calc(clamp(20px, 2.5vw, 31px) * var(--s, 1)); width: auto; }  /* 제목(clamp 28~44px) 한글 글자 높이와 맞춤 */

.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brand-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .brand-track li { padding: 0 28px; } .brand-track { animation-duration: 28s; } }
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; } .brand-track li[aria-hidden] { display: none; } }

/* ── 스마트오피스 DALI 구성도 (blocks/diagram-dali.njk) — .hd-* 를 그대로 쓰고 다른 점만 ── */
.hd--dali { --knx: #3fa7d6; }
.hd--dali .hd-top { grid-template-columns: minmax(0, 1fr); }
.hd--dali .hd-bus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hd--dali .hd-bus li:nth-child(n+3)::before { display: none; }
.hd--dali .hd-bus li:nth-child(-n+2)::before { display: block; }
.hd-fix { margin: 12px 0 0; padding: 8px 6px; text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--knx); border-radius: 5px; }
@media (max-width: 760px) {
  .hd--dali .hd-room:nth-child(n+2) .hd-ctrl::before { display: none; }
  .hd--dali .hd-room:nth-child(n+2) { display: block; }
  .hd--dali .hd-rooms { gap: 44px; }
  .hd--dali .hd-rooms::after { content: none; }
}

/* ── 무선조명 Casambi 구성도 (blocks/diagram-casambi.njk) — .hd--dali 위에 다른 점만: 게이트웨이 줄 · 메시 막대 · 무선 점선 ── */
.hd--casambi { --knx: #8f7fd9; }
.hc-gw { list-style: none; margin: 30px auto 0; padding: 0; max-width: 640px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hc-gw li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #2a241d; border: 1px solid var(--bronze); }
.hc-gw li::before { content: ""; position: absolute; left: 50%; top: -31px; height: 30px; border-left: 2px solid var(--wire); }
.hc-gw li::after { content: ""; position: absolute; left: 50%; bottom: -31px; height: 30px; border-left: 2px dashed var(--knx); }
.hc-gw img { width: 52px; height: 52px; flex: none; border-radius: 4px; background: #fff; object-fit: contain; }
.hc-mesh { margin-top: 30px; border-style: dashed; border-color: var(--knx); }
.hd--casambi .hd-ctrl::before { border-left: 2px dashed var(--knx); }
.hd--casambi .hd-bus { border-top-style: dashed; }
.hd--casambi .hd-bus li { border-style: dashed; }
.hd--casambi .hd-bus li::before { border-left-style: dashed; }
@media (max-width: 760px) { .hc-gw { grid-template-columns: minmax(0, 1fr); } .hc-gw li:nth-child(2)::before, .hc-gw li:nth-child(1)::after { display: none; } }

/* ── 엔지니어링 머리 띠: 업무 흐름 9장면 크로스페이드 (blocks/page-head.njk · b.slides · site.js 가 .on 을 6초마다 옮김) ── */
.page-head.has-slides.tall { min-height: clamp(420px, 46vw, 620px); display: flex; align-items: center; }
.page-head.has-slides .wrap { width: 100%; }
.ph-slides { position: absolute; inset: 0; }
.ph-slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--fade, 1.4s) ease; }
.ph-slide.on { opacity: 1; }
.ph-slide img, .ph-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .62; }
/* 사진 장면만 천천히 확대(영상은 자체 카메라 움직임이 있어 확대하지 않음) */
.ph-slide:not(.has-v) img { transform: scale(1.06); transition: transform 7.4s linear; }
.ph-slide.on:not(.has-v) img { transform: scale(1); }
/* 영상 장면: 영상 아래 사진은 숨김(겹침 방지). 영상이 없거나 못 틀면 사진만 */
.ph-slide.has-v img { opacity: 0; }
.ph-slide.has-v.no-v img { opacity: .62; }
.ph-slide.has-v.no-v video { display: none; }
.page-head.has-slides::before { background: linear-gradient(90deg, rgba(14,15,16,.96) 0%, rgba(14,15,16,.82) 38%, rgba(14,15,16,.25) 72%, rgba(14,15,16,.15)); }
.ph-steps { position: absolute; z-index: 2; right: max(20px, calc((100vw - 1200px) / 2)); bottom: 46px; margin: 0; padding: 0; list-style: none; min-width: 200px; height: 30px; }
.ph-steps li { position: absolute; right: 0; bottom: 0; white-space: nowrap; opacity: 0; transition: opacity .9s ease; padding: 6px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(14,15,16,.55); color: var(--on-deep); font-size: 14px; letter-spacing: .02em; }
.ph-steps li.on { opacity: 1; }
.ph-steps li b { color: var(--bronze-soft); margin-right: 6px; }
@media (max-width: 760px) {
  .page-head.has-slides.tall { min-height: 460px; align-items: flex-end; }
  .ph-slide video { display: none; }
  .ph-slide.has-v img, .ph-slide img { object-position: 78% center; opacity: .5; }
  .page-head.has-slides::before { background: linear-gradient(0deg, rgba(14,15,16,.96) 30%, rgba(14,15,16,.4)); }
  .ph-steps { top: 18px; bottom: auto; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-slide video { display: none; }
  .ph-slide.has-v img { opacity: .62; }
  .ph-slide:not(.has-v) img { transition: none; transform: none; }
}
.copy.photo-credit { margin-top: 4px; padding-top: 0 !important; border-top: 0; opacity: .55; font-size: 11px; }
/* ── 고급주택 스마트홈 구성도 (blocks/diagram-home.njk) — .hd--dali 위에 KNX 녹색 · 공용 액추에이터 줄 · 씬 색온도 줄 ── */
.hd--home { --knx: #49b46a; }
.hd-fix--wide { margin-top: 18px; padding: 11px 10px; font-size: 13.5px; color: var(--ink); border-style: solid; border-width: 2px; }
.hd-scenes { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.hd-scenes p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.hd-scenes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hd-scenes li { text-align: center; padding: 12px 6px 10px; border-radius: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 70%, #fff) 0%, var(--sc) 100%); }
.hd-scenes b { display: block; font-size: 13.5px; color: #1b1612; }
.hd-scenes small { font-size: 12px; font-weight: 700; color: #5a3d1e; }
@media (max-width: 760px) { .hd-scenes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ── 경관조명 DMX 구성도 (blocks/diagram-landscape.njk) — .hd--dali 위에 DMX 색만 ── */
.hd--dmx { --knx: #d9824b; }
/* ── 출입보안 SALTO 구성도 (blocks/diagram-salto.njk) — .hd--dali 위에 SALTO 색만 ── */
.hd--salto { --knx: #3fb8a5; }
/* ── 머리글 유튜브 · 블로그 아이콘 (blocks/header.njk, 주소는 company.json youtube · blog) ── */
.gnb .sns { display: inline-flex; align-items: center; gap: 12px; margin-left: -12px; }
.gnb a.sns-yt, .gnb a.sns-blog { display: inline-flex; padding: 0; border: 0; line-height: 0; transition: transform .15s, opacity .15s; opacity: .92; }
.gnb a.sns-yt:hover, .gnb a.sns-blog:hover { transform: translateY(-1px); opacity: 1; }
.gnb .sns-yt svg { width: 30px; height: 21px; }
.gnb .sns-blog svg { width: 23px; height: 23px; }
@media (max-width: 900px) {
  .gnb .sns { margin: 16px 0 0; justify-content: center; gap: 22px; }
  .gnb a.sns-yt, .gnb a.sns-blog { padding: 0; border: 0; }
  .gnb .sns-yt svg { width: 38px; height: 27px; }
  .gnb .sns-blog svg { width: 29px; height: 29px; }
}
