/* 디코리모델링 디자인 샘플 — 콘크리트 · 안전 노랑 · 합판, 도면 치수선 */
:root {
  --concrete: #E4E1DA;
  --concrete-2: #D3CFC6;
  --paper: #F6F4EF;
  --ink: #1C1C1A;
  --ink-2: #2B2B28;
  --yellow: #FFC21A;
  --yellow-d: #E0A800;
  --wood: #C99A5E;
  --sub: #64625C;
  --line: #C9C5BB;
  --head-h: 70px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "Space Grotesk", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; word-break: keep-all; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow-d); outline-offset: 2px; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.ph { display: inline-block; padding: 0 6px; border: 1px dashed #8C877B; color: #57534A; font-size: .94em; background: rgba(255,255,255,.5); }
.ph--sm { font-size: 11px; }
.ph--dark { border-color: #6C6A63; color: #CFCBC0; background: none; }
.m-br { display: none; }

/* 샘플 배너 */
.sample-banner { background: var(--yellow); font-size: 13.5px; }
.sample-banner__inner { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.sample-banner__tag { flex: none; padding: 1px 9px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; }
.sample-banner a { font-weight: 700; text-underline-offset: 3px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 2px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--yellow:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--outline { border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { border-color: #6C6A63; color: #fff; }
.btn--outline-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--dark { background: var(--ink); color: var(--yellow); }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: var(--paper); border-bottom: 2px solid var(--ink); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__text { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.logo__text b { margin-left: 4px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav ul a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--sub); margin-right: 5px; vertical-align: 2px; }
.site-nav ul a:hover, .site-nav ul a.is-active { border-bottom-color: var(--yellow-d); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: var(--yellow); position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); transition: transform .25s; content: ""; }
.nav-toggle__bar { top: 19px; }
.nav-toggle__bar::before { left: 0; top: -6px; }
.nav-toggle__bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 히어로 */
.hero { position: relative; background: var(--concrete); background-image: linear-gradient(rgba(28,28,26,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(28,28,26,.06) 1px, transparent 1px); background-size: 32px 32px; min-height: calc(100svh - 41px - var(--head-h)); display: flex; flex-direction: column; overflow: hidden; }
.hero__grid { flex: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 48px 0 32px; }
.tag-line { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.dim { position: relative; width: 56px; height: 2px; background: var(--ink); }
.dim::before, .dim::after { content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: var(--ink); }
.dim::before { left: 0; } .dim::after { right: 0; }
.hero__title { margin-top: 24px; font-size: clamp(42px, 5.2vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .38em; background: var(--yellow); z-index: -1; transform-origin: left; }
.has-motion .hl::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.7,0,.2,1) .5s; }
.has-motion .hero.is-ready .hl::after { transform: scaleX(1); }
.hero__lead { margin-top: 24px; max-width: 30em; font-size: 18px; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.build { margin: 0; }
.build__stage { position: relative; }
.build__svg { width: 100%; height: auto; overflow: visible; }
.iso .layer { transition: opacity .6s ease, transform .6s cubic-bezier(.3,1.3,.5,1); }
.iso .layer.is-off { opacity: 0; transform: translateY(-18px); }
.measure { position: absolute; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; }
.measure b { display: grid; place-items: center; width: 20px; height: 20px; background: var(--ink); color: var(--yellow); font-size: 11px; }
.measure--w { right: 4%; bottom: 20%; }
.measure--d { left: 2%; bottom: 20%; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.steps button { padding: 10px 6px; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: 13.5px; text-align: left; position: relative; overflow: hidden; }
.steps button i { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--sub); }
.steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--yellow-d); transform: scaleX(0); transform-origin: left; }
.steps button.is-done::after { transform: scaleX(1); }
.steps button[aria-pressed="true"] { background: var(--yellow); }
.steps button[aria-pressed="true"]::after { background: var(--ink); transform: scaleX(1); }
.marquee { border-top: 2px solid var(--ink); background: var(--ink); color: var(--yellow); overflow: hidden; }
.marquee__track { display: flex; width: max-content; padding: 14px 0; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.marquee__track span { padding: 0 28px; position: relative; }
.marquee__track span::after { content: "◆"; position: absolute; right: -6px; font-size: 9px; top: 4px; color: #6C6A63; }
.has-motion .marquee__track { animation: flow 40s linear infinite; }
@keyframes flow { to { transform: translateX(-50%); } }

/* 섹션 공통 */
.section { padding: 120px 0; }
.section--dark { background: var(--ink); color: #EFEDE7; }
.section--concrete { background: var(--concrete); }
.sec-head { display: grid; grid-template-columns: 90px 1fr; column-gap: 20px; max-width: 900px; margin-bottom: 56px; }
.sec-head__no { grid-row: span 2; font-family: var(--mono); font-size: 64px; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.sec-head h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; }
.sec-head > p:last-child { margin-top: 12px; font-size: 17px; color: var(--sub); }
.sec-head--light .sec-head__no { -webkit-text-stroke-color: var(--yellow); }
.sec-head--light > p:last-child { color: #A9A69C; }
.has-motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.has-motion .reveal.is-in { opacity: 1; transform: none; }

/* 전후 비교 */
.ba { position: relative; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--ink); aspect-ratio: 2 / 1; overflow: hidden; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--yellow); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 10px 12px; background: var(--yellow); border: 2px solid var(--ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__notes, .ba:focus-within .ba__handle span { outline: 3px solid #fff; }
.ba__notes li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; background: var(--paper); border: 2px solid var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; white-space: nowrap; }
.ba__notes b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 12px; }

/* 공정표 */
.gantt { border: 2px solid #4A4944; padding: 24px 28px 20px; background: #232321; }
.gantt__head, .gantt__rows li { display: grid; grid-template-columns: 170px repeat(6, 1fr); }
.gantt__head span { font-family: var(--mono); font-size: 13px; color: #A9A69C; padding-bottom: 12px; border-left: 1px dashed #4A4944; padding-left: 8px; }
.gantt__head span:first-child { border-left: 0; }
.gantt__rows li { position: relative; align-items: center; height: 54px; border-top: 1px solid #3A3935; }
.gantt__rows li::before { content: ""; position: absolute; left: 170px; right: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 1px), #3A3935 calc(100% / 6 - 1px) calc(100% / 6)); pointer-events: none; }
.gantt__label { font-weight: 700; font-size: 15px; }
.gantt__bar { grid-column: 2 / -1; position: relative; height: 30px; }
.gantt__bar em { position: absolute; left: calc(var(--s) / 6 * 100%); width: calc(var(--l) / 6 * 100%); top: 0; bottom: 0; display: flex; align-items: center; padding: 0 10px; background: #F2F0EA; color: var(--ink); font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; transform-origin: left; transition: transform .7s cubic-bezier(.3,0,.2,1); }
.gantt__rows li.is-key .gantt__bar em { background: var(--yellow); }
.has-motion .gantt:not(.is-played) .gantt__bar em { transform: scaleX(0.02); }
.gantt__note { margin-top: 16px; font-size: 13.5px; color: #A9A69C; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.promises li { padding: 22px 24px; border: 2px solid #4A4944; }
.promises b { display: block; font-size: 18px; color: var(--yellow); }
.promises span { display: block; margin-top: 4px; color: #C9C6BC; font-size: 15px; }

/* 공사 범위 */
.scope__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.rooms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rooms button { padding: 12px 20px; border: 2px solid var(--ink); background: transparent; font-weight: 700; }
.rooms button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel label { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 20px; background: #fff; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.panel input { grid-row: span 2; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.panel span { font-weight: 700; font-size: 16px; }
.panel small { color: var(--sub); font-size: 13.5px; }
.panel label:has(input:checked) { border-color: var(--ink); background: #FFF8DF; }
.memo { position: sticky; top: calc(var(--head-h) + 24px); padding: 40px 30px 30px; background: #FFFDF6; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.memo__clip { position: absolute; top: -14px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: var(--ink); border-radius: 4px; }
.memo h3 { font-size: 24px; font-weight: 800; }
.memo__count { margin-top: 6px; color: var(--sub); font-size: 14px; }
.memo__count b { font-family: var(--mono); font-size: 20px; color: var(--ink); }
.memo__list { margin-top: 16px; min-height: 120px; border-top: 1px dashed var(--line); }
.memo__list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 600; }
.memo__list li span { color: var(--sub); font-weight: 500; font-size: 13px; }
.memo__list li.is-new { animation: pop .5s ease; }
@keyframes pop { from { background: var(--yellow); } to { background: transparent; } }
.memo__list .memo__empty { color: var(--sub); font-weight: 500; }
.memo__meta { margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; }
.memo__meta div { display: flex; gap: 12px; }
.memo__meta dt { flex: none; width: 70px; color: var(--sub); }
.memo__meta dd { margin: 0; }
.memo__btn { width: 100%; margin-top: 22px; }
.memo__note { margin-top: 10px; font-size: 13px; color: var(--sub); }

/* 시공 사례 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { padding: 8px 16px; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--yellow); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work { background: var(--paper); border: 2px solid var(--ink); transition: transform .3s, box-shadow .3s; }
.work:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.work.is-hidden { display: none; }
.work__plan { position: relative; padding: 20px; background: #fff; border-bottom: 2px solid var(--ink); background-image: linear-gradient(rgba(28,28,26,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28,28,26,.05) 1px, transparent 1px); background-size: 14px 14px; }
.work__plan .ph { position: absolute; right: 8px; bottom: 8px; font-size: 11px; }
.work__body { padding: 18px 18px 22px; }
.work__tag { display: inline-block; padding: 2px 8px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; }
.work h3 { margin-top: 10px; font-size: 16px; }
.work p { margin-top: 8px; font-size: 14.5px; color: var(--sub); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 50px; }
.faq .sec-head { display: block; }
.faq .sec-head__no { margin-bottom: 14px; }
.faq__list details { border: 2px solid var(--ink); margin-bottom: -2px; background: #fff; }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--mono); font-size: 22px; line-height: 1; transition: transform .3s; }
.faq__list details[open] summary { background: var(--yellow); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 18px 24px 22px; color: var(--ink-2); border-top: 2px solid var(--ink); }

/* 실측 신청 */
.contact { padding: 120px 0; background: var(--ink); color: #EFEDE7; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.contact .sec-head__no { font-family: var(--mono); font-size: 64px; font-weight: 700; line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.contact__title { margin-top: 18px; font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.05em; }
.contact__lead { margin-top: 18px; color: #C9C6BC; font-size: 17px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact .btn--yellow { box-shadow: 4px 4px 0 #6C6A63; }
.contact__note { margin-top: 16px; font-size: 13px; color: #8E8B82; }
.contact__info { margin: 0; border: 2px solid #4A4944; }
.contact__info div { display: grid; grid-template-columns: 130px 1fr; padding: 18px 22px; border-top: 2px solid #4A4944; }
.contact__info div:first-child { border-top: 0; }
.contact__info dt { color: var(--yellow); font-weight: 700; font-size: 14px; }
.contact__info dd { margin: 0; }

/* 푸터 */
.site-footer { padding: 44px 0 60px; background: #121211; color: #8E8B82; font-size: 13.5px; }
.site-footer p + p { margin-top: 8px; }
.site-footer__brand { color: #fff; font-family: var(--mono); }
.site-footer__brand strong { font-family: var(--font); margin-right: 8px; }
.site-footer__credit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-footer__credit a { display: inline-flex; padding: 3px 6px; background: #fff; }

/* 반응형 */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: var(--nav-top, 70px); right: 0; bottom: 0; width: min(340px, 100%); flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 24px; background: var(--paper); border-left: 2px solid var(--ink); clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .35s ease, visibility 0s .35s; }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .35s ease; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .hero__grid { grid-template-columns: 1fr; }
  .scope__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .memo { position: relative; top: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .wrap { width: calc(100% - 32px); }
  .m-br { display: inline; }
  .sample-banner { font-size: 12.5px; }
  .sample-banner__inner { align-items: flex-start; }
  .logo__text { font-size: 15px; }
  .hero__grid { padding-top: 32px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .steps button { padding: 8px 4px; font-size: 11.5px; text-align: center; }
  .measure { display: none; }
  .section, .contact { padding: 80px 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
  .sec-head__no { font-size: 44px; margin-bottom: 10px; }
  .ba { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--ink); }
  .ba__img { object-fit: cover; }
  .ba__notes li { font-size: 11px; padding: 3px 7px 3px 3px; }
  .ba__notes b { width: 18px; height: 18px; }
  .gantt { padding: 16px 12px; overflow-x: auto; }
  .gantt__head, .gantt__rows li { grid-template-columns: 96px repeat(6, minmax(44px, 1fr)); min-width: 420px; }
  .gantt__rows li::before { left: 96px; }
  .gantt__label { font-size: 13px; }
  .gantt__bar em { font-size: 0; }
  .promises { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .rooms button { padding: 10px 14px; font-size: 14px; }
  .memo { padding: 34px 22px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 16px; padding: 18px; }
  .contact__info div { grid-template-columns: 96px 1fr; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
