:root { --ink: #15171a; --sub: #5d636b; --line: #e1e4e8; --soft: #f4f5f7; --dark: #111214; --blue: #1b4f95; --pad: clamp(20px, 4.4vw, 64px); }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { color: var(--ink); background: #fff; font: 400 17px/1.7 "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; letter-spacing: -.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1408px; margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(80px, 9.5vw, 148px) 0; }
.soft { background: var(--soft); }
h2 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.25; letter-spacing: -.035em; font-weight: 700; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 3.6vw, 56px); }
.head p { color: var(--sub); margin-top: 14px; font-size: clamp(17px, 1.3vw, 19px); }
.more { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid currentColor; white-space: nowrap; }
.more::after { content: "→"; transition: transform .25s; }
.more:hover::after { transform: translateX(5px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border: 1px solid currentColor; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.on:hover { background: #143e77; border-color: #143e77; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s; }
.over .top { position: fixed; inset: 0 0 auto; background: transparent; color: #fff; border-color: #ffffff2e; }
.over .top.solid { background: #fff; color: var(--ink); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; height: 80px; gap: 40px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; white-space: nowrap; }
.logo img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.gnb { margin-left: auto; display: flex; gap: clamp(22px, 2.6vw, 44px); font-weight: 600; white-space: nowrap; }
.gnb a { position: relative; padding: 14px 0; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gnb a:hover::after, .gnb a[aria-current]::after { transform: scaleX(1); }
.tel { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta { background: var(--blue); color: #fff; font-weight: 700; padding: 12px 24px; white-space: nowrap; transition: background .2s; }
.cta:hover { background: #143e77; }
.menu { display: none; width: 44px; height: 44px; margin-right: -10px; }
.menu i { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; }

/* 첫 화면 */
.hero { position: relative; min-height: 100svh; padding: 0; color: #fff; background: var(--dark); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero picture { position: absolute; inset: 0; animation: slow 14s ease-out both; }
.hero picture img { object-position: 50% 42%; }
@keyframes slow { from { transform: scale(1.06); } to { transform: none; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0c0d0f9c 0, #0c0d0f00 22%, #0c0d0f00 60%, #0c0d0fb0 100%), linear-gradient(90deg, #0c0d0f8a 0, #0c0d0f66 34%, #0c0d0f00 62%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
h1 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.14; letter-spacing: -.045em; font-weight: 800; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 23px); margin-top: 18px; color: #f0f1f2; }
.hero .btns { margin: 34px 0 clamp(40px, 5vw, 64px); }
.hero .btn:not(.on) { border-color: #ffffff9c; }
.hero .btn:not(.on):hover { background: #fff; color: var(--ink); border-color: #fff; }
.facts { position: relative; z-index: 2; border-top: 1px solid #ffffff3d; background: #0c0d0f8c; }
.facts ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.facts li { border-left: 1px solid #ffffff2b; }
.facts li:last-child { border-right: 1px solid #ffffff2b; }
.facts a { display: block; padding: 24px 12px; text-align: center; font-weight: 600; transition: background .2s; }
.facts a:hover { background: var(--blue); }

/* 안쪽 페이지 머리 */
.sub { background: var(--dark); color: #fff; padding: clamp(64px, 7vw, 108px) 0 clamp(44px, 4.6vw, 72px); }
.sub h1 { font-size: clamp(36px, 4.4vw, 64px); }
.sub p { color: #c5c9ce; margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); }

/* 제품 */
.prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prod { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); color: #fff; }
.prod img, .works img, .way img, .sash img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.prod:hover img, .works button:hover img, .way:hover img { transform: scale(1.035); }
.prod::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(#0c0d0f00, #0c0d0fd1); }
.prod div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; }
.prod h3 { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.3; letter-spacing: -.03em; }
.prod p { font-size: 16px; color: #e2e5e8; }

/* 소개 */
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.intro p { color: var(--sub); margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points li { padding: 26px 6px 24px; text-align: center; border-left: 1px solid var(--line); }
.points li:first-child { border: 0; }
.points svg, .helps svg { width: 42px; height: 42px; fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.points svg { display: block; margin: 0 auto 14px; }
.points b { font-size: 16px; line-height: 1.4; }
.mosaic { display: grid; grid-template-columns: minmax(280px, 23%) 1fr; padding: 0; background: var(--dark); color: #fff; }
.mosaic .panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(48px, 5vw, 84px) clamp(24px, 2.6vw, 48px) clamp(40px, 4vw, 64px) var(--pad); }
.mosaic h2 { font-size: clamp(28px, 2.5vw, 40px); }
.mosaic .panel p { color: #b9bec5; margin-top: 18px; }
.mosaic .btns { flex-direction: column; }
.mosaic .btn { justify-content: space-between; }
.mosaic .btn::after { content: "→"; }
.mosaic .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mosaic .prods { gap: 0; }
.mosaic .prod { aspect-ratio: 1; }
.helps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.helps a { display: block; background: #fff; border: 1px solid var(--line); padding: 34px 28px 32px; transition: border-color .2s, transform .2s; }
.helps a:hover { border-color: var(--blue); transform: translateY(-3px); }
.helps h3 { font-size: 22px; letter-spacing: -.02em; margin-top: 22px; }
.helps p { color: var(--sub); margin-top: 6px; font-size: 16px; }
.cta-band { position: relative; color: #fff; background: #111214 url(photos/hall.webp) 50% 70% / cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c1e3bf2, #0c1e3b99); }
.cta-band .wrap { position: relative; }
.cta-band p { margin: 16px 0 32px; font-size: clamp(17px, 1.4vw, 20px); color: #dfe5ec; }
.cta-band .btn:not(.on):hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 하이샤시 */
.sash { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sash a { background: #fff; overflow: hidden; border: 1px solid var(--line); transition: border-color .2s; }
.sash a:hover { border-color: var(--blue); }
.sash a:hover span { color: var(--blue); }
.sash img { height: auto; aspect-ratio: 5 / 4; object-fit: contain; background: #f1f1f0; }
.sash span { display: block; padding: 15px 18px 17px; font-weight: 700; transition: color .2s; }

/* 완공 현장 */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.works button { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); cursor: zoom-in; }
dialog { margin: auto; border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94svh; }
dialog::backdrop { background: #0b0c0ee8; }
dialog img { width: auto; height: auto; max-width: 92vw; max-height: 88svh; object-fit: contain; }
dialog button { position: fixed; top: 50%; width: 64px; height: 96px; margin-top: -48px; color: #fff; font-size: 34px; }
dialog .p { left: 0; } dialog .n { right: 0; }
dialog .x { top: 0; right: 0; width: 72px; height: 72px; margin: 0; }

/* 공장 안 */
.make { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.make button { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.make button:first-child { grid-area: span 2 / span 2; }
.make img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.make button:hover img { transform: scale(1.035); }
.make.four button:first-child { grid-area: auto; }
.make.all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.make.all button:first-child { grid-area: auto; }
.sub.photo-bg { position: relative; background: #111214 url(photos/hall.webp) 50% 55% / cover; padding: clamp(110px, 13vw, 210px) 0 clamp(56px, 6vw, 92px); }
.sub.photo-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0d0fe8, #0c0d0f8c); }
.sub.photo-bg .wrap { position: relative; }

/* 일하는 방식 */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; }
.way figure { aspect-ratio: 5 / 4; overflow: hidden; background: var(--soft); }
.way h3 { font-size: clamp(23px, 2vw, 31px); letter-spacing: -.035em; line-height: 1.3; margin-top: 26px; }
.way p { color: var(--sub); margin-top: 10px; max-width: 34em; }

/* 어두운 띠 */
.band { background: var(--dark); color: #fff; }
.band .head p { color: #b9bec5; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #ffffff40; }
.steps li { position: relative; padding: 38px 24px 8px 0; }
.steps svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.steps li + li { padding-left: 24px; border-left: 1px solid #ffffff26; }
.steps b { position: absolute; right: 24px; top: 34px; font-size: 40px; line-height: 1; font-weight: 800; color: #7db4ee; }
.steps h3 { font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -.03em; margin-top: 22px; }
.steps p { color: #b9bec5; margin-top: 6px; }
.band .btns { margin-top: 48px; }
.band .btn:not(.on):hover { background: #fff; color: var(--ink); border-color: #fff; }

/* 사례·질문·표 */
.list { border-top: 2px solid var(--ink); }
.list a { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: color .2s; }
.list a:hover { color: var(--blue); }
.list b { font-weight: 600; color: var(--sub); }
.list a:hover b { color: inherit; }
.list span { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.02em; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { display: flex; justify-content: space-between; gap: 24px; padding: 26px 4px; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.02em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--sub); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 48px 28px 4px; color: var(--sub); }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.two > div > p { color: var(--sub); margin-top: 18px; }
.info { border-top: 2px solid var(--ink); }
.info div { display: grid; grid-template-columns: 160px 1fr; padding: 19px 4px; border-bottom: 1px solid var(--line); }
.info dt { color: var(--sub); }
.info dd { font-weight: 600; margin: 0; }
.paper { border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px #15171a1a; cursor: zoom-in; display: block; width: 100%; }
.photo { aspect-ratio: 5 / 4; overflow: hidden; }

/* 연락 */
.contact { background: var(--soft); }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.big { display: inline-block; font-size: clamp(44px, 6.4vw, 96px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .2s; margin-top: 18px; }
.big:hover { color: var(--blue); }
.contact dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; margin-bottom: 28px; }
.contact dt { color: var(--sub); }
.contact dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
footer { background: var(--dark); color: #a7adb4; padding: 56px 0 64px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
footer .logo { color: #fff; margin-bottom: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: #e8eaed; align-content: start; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer small { display: block; margin-top: 16px; font-size: 15px; color: #8a9097; }

/* 오른쪽 빠른 메뉴 · 휴대폰 아래 단추 */
.quick { position: fixed; right: 0; top: 50%; z-index: 15; transform: translateY(-50%); background: #fff; border: 1px solid var(--line); border-right: 0; box-shadow: 0 8px 30px #15171a1f; }
.over .quick { opacity: 0; visibility: hidden; transition: opacity .25s; }
.over .top.solid ~ .quick { opacity: 1; visibility: visible; }
.sub + .band { padding-top: 24px; }
.quick a { display: grid; place-items: center; gap: 4px; width: 84px; padding: 15px 0 13px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.quick a:last-child { border: 0; }
.quick a:hover { background: var(--blue); color: #fff; }
.quick svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bar { display: none; }

/* 하이샤시 제품 쪽 */
.chips { position: sticky; top: 80px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.chips .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: thin; }
.chips a { flex: none; padding: 8px 16px; border: 1px solid var(--line); font-size: 16px; font-weight: 600; transition: background .2s, color .2s; }
.chips a:hover { background: var(--ink); color: #fff; }
.line { display: grid; grid-template-columns: 340px 1fr; gap: 24px 64px; padding: clamp(44px, 4.6vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.line:first-of-type { border: 0; }
.line h2 { font-size: clamp(26px, 2.3vw, 34px); }
.feat { margin-top: 16px; }
.feat li + li { margin-top: 4px; }
.use { margin-top: 16px; color: var(--sub); }
.use b { color: var(--ink); margin-right: 8px; }
.line .more { margin-top: 18px; }
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.models.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.models li { border: 1px solid var(--line); padding-bottom: 20px; }
.models img { height: auto; aspect-ratio: 5 / 4; object-fit: contain; background: #f1f1f0; }
.models.many img { aspect-ratio: 2 / 1; object-fit: cover; }
.models h3 { font-size: 21px; letter-spacing: -.02em; padding: 16px 20px 0; }
.models p { color: var(--sub); padding: 1px 20px 0; font-size: 16px; }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; }
.pages a { background: #fff; border: 1px solid var(--line); scroll-margin-top: 160px; }
.pages a:first-child, .pages a:last-child { grid-column: 1 / -1; width: 50%; margin: 0 auto; }
.pages img { height: auto; }

.js .up { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .up.in { opacity: 1; transform: none; }

@media (max-width: 1500px) { .quick { display: none; } }
@media (max-width: 1080px) {
  .top .wrap { height: 68px; gap: 18px; }
  .tel { margin-left: auto; font-size: 18px; }
  .menu { display: block; }
  .gnb { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px; }
  .open .gnb { display: flex; }
  .gnb a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .gnb a::after { display: none; }
  .chips { top: 68px; }
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sash, .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .line, .two, .contact .wrap, .intro .wrap, .mosaic { grid-template-columns: 1fr; }
  .mosaic .panel { padding: 56px var(--pad) 40px; }
  .mosaic .btns { flex-direction: row; }
  .mosaic .btn { flex: 1; }
  .helps { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .logo { font-size: 19px; gap: 9px; } .logo img { width: 32px; height: 32px; }
  .tel { font-size: 16px; }
  .hero { min-height: calc(100svh - 62px); }
  .hero picture img { object-position: 50% 50%; }
  .hero::before { background: linear-gradient(180deg, #0c0d0fa0 0, #0c0d0f10 26%, #0c0d0fcc 72%, #0c0d0f 100%); }
  .hero .btn { flex: 1; padding: 0 12px; }
  .facts { display: none; }
  .cta { display: none; }
  .head { flex-direction: column; align-items: flex-start; }
  .prods { gap: 8px; } .prod div { left: 16px; right: 12px; bottom: 14px; } .prod p { font-size: 14px; }
  .sash { gap: 6px; } .sash span { padding: 10px 10px 12px; font-size: 14px; line-height: 1.35; }
  .works { gap: 5px; grid-template-columns: 1fr 1fr; }
  .make, .make.all { gap: 5px; grid-template-columns: 1fr 1fr; }
  .make button:first-child { grid-area: auto / span 2; }
  .make.four button:first-child { grid-area: auto; }
  .points { grid-template-columns: 1fr 1fr; }
  .points li:nth-child(3) { border-left: 0; }
  .points li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .helps { gap: 8px; }
  .helps a { padding: 22px 18px; }
  .helps h3 { font-size: 18px; margin-top: 14px; }
  .helps p { font-size: 14px; }
  .mosaic .prod { aspect-ratio: 1; }
  .make.all button:first-child { grid-area: auto; }
  .ways { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 26px 0; border: 0; border-bottom: 1px solid #ffffff26; }
  .band .btns .btn, .contact .btns .btn { flex: 1; padding: 0 12px; }
  .list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; } .list a i { display: none; }
  .info div { grid-template-columns: 124px 1fr; }
  .models, .models.many { gap: 8px; } .models h3 { font-size: 17px; padding: 12px 12px 0; } .models p { font-size: 14px; padding: 1px 12px 0; }
  .pages { grid-template-columns: 1fr; gap: 8px; } .pages a:first-child, .pages a:last-child { width: 100%; }
  dialog button { width: 46px; }
  .bar { position: fixed; inset: auto 0 0; z-index: 18; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--ink); color: #fff; }
  .bar a { height: 62px; display: grid; place-items: center; font-weight: 700; }
  .bar a:last-child { background: var(--blue); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, .hero picture { transition: none !important; animation: none !important; } .js .up { opacity: 1; transform: none; } }
