/* ============================================================
   TOPCL Demolition — Design System (INDUSTRIAL PRECISION)
   ============================================================ */
:root{
  --dark:#171A1D;      /* Deep Charcoal */
  --dark2:#111315;     /* Industrial Black */
  --orange:#F0782B;    /* Signal Orange */
  --warm:#F4F1EB;      /* Warm Ivory */
  --gray:#D7D5CF;      /* Concrete Gray */
  --border:#CBC9C2;
  --body:#34383B;
  --white:#FFFFFF;

  --container:1240px;
  --pad-pc:40px;
  --pad-mo:20px;
  --section-pc:110px;
  --section-mo:64px;
  --card-gap:22px;
  --radius-card:10px;
  --radius-img:6px;
  --btn-h:52px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;
  color:var(--body);
  background:var(--white);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  word-break:keep-all;
}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0;line-height:1.25;font-weight:800;letter-spacing:-0.02em}
p{margin:0}

h1{font-size:34px}
h2{font-size:28px}
h3{font-size:20px}
@media(min-width:768px){
  h1{font-size:54px}
  h2{font-size:32px}
  h3{font-size:22px}
}
@media(min-width:1280px){
  h1{font-size:72px}
  h2{font-size:44px}
  h3{font-size:26px}
}

.container{max-width:var(--container);margin:0 auto;padding:0 var(--pad-mo)}
@media(min-width:1024px){.container{padding:0 var(--pad-pc)}}

.section{padding:var(--section-mo) 0}
@media(min-width:1024px){.section{padding:var(--section-pc) 0}}
.section--warm{background:var(--warm)}
.section--dark{background:var(--dark);color:var(--white)}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:700;letter-spacing:.08em;
  color:var(--orange);text-transform:uppercase;margin-bottom:14px;
}
.eyebrow::before{content:"";width:18px;height:2px;background:var(--orange);display:inline-block}

.section-head{margin-bottom:40px}
.section-head p{margin-top:14px;font-size:16px;color:var(--body);max-width:640px}
@media(min-width:1024px){.section-head p{font-size:18px}}
.section--dark .section-head p{color:#C7CACC}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:var(--btn-h);padding:0 28px;border-radius:8px;
  font-size:16px;font-weight:700;white-space:nowrap;
  border:1px solid transparent;transition:.15s ease;
}
.btn--primary{background:var(--orange);color:var(--white)}
.btn--primary:hover{background:#d8661d}
.btn--outline{background:transparent;border-color:rgba(255,255,255,.35);color:var(--white)}
.btn--outline:hover{border-color:var(--white)}
.btn--dark-outline{background:transparent;border-color:var(--dark);color:var(--dark)}
.btn--dark-outline:hover{background:var(--dark);color:var(--white)}
.btn--block{width:100%}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  height:64px;background:var(--white);
  border-bottom:1px solid var(--border);
}
@media(min-width:1024px){.site-header{height:80px}}
.site-header .container{height:100%;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;color:var(--dark)}
.brand .mark{
  width:32px;height:32px;border-radius:6px;background:var(--dark);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.brand .mark span{color:var(--orange);font-weight:800;font-size:16px}

.nav-desktop{display:none}
@media(min-width:1024px){
  .nav-desktop{display:flex;align-items:center;gap:36px}
  .nav-desktop a{font-size:15px;font-weight:600;color:var(--dark2);position:relative;padding:6px 0}
  .nav-desktop a::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--orange);transform:scaleX(0);transition:.15s}
  .nav-desktop a:hover::after,.nav-desktop a.active::after{transform:scaleX(1)}
  .nav-desktop a.active{color:var(--dark)}
}
.header-right{display:flex;align-items:center;gap:12px}
.header-right .btn{display:none}
@media(min-width:1024px){.header-right .btn{display:inline-flex;height:44px;padding:0 20px;font-size:14px}}

.hamburger{
  width:40px;height:40px;border:none;background:none;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;
}
@media(min-width:1024px){.hamburger{display:none}}
.hamburger span{width:22px;height:2px;background:var(--dark);transition:.2s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.mobile-menu{
  position:fixed;inset:64px 0 0 0;background:var(--white);z-index:49;
  padding:28px var(--pad-mo);display:none;overflow-y:auto;
}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;font-size:20px;font-weight:700;padding:16px 0;border-bottom:1px solid var(--border);color:var(--dark)}
.mobile-menu .btn{margin-top:24px}

/* ===== Hero (full-bleed, min 90vh — Property Strip Out / Demo Squad 패턴) ===== */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:var(--dark2)}
@media(min-width:1024px){.hero{min-height:90vh}}
.hero-media{position:absolute;inset:0;width:100%;height:100%}
.hero-img,.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,19,21,.05) 0%,rgba(17,19,21,.1) 40%,rgba(17,19,21,.92) 100%)}
.hero-inner{position:relative;z-index:2;width:100%;padding:64px 0 56px}
.hero h1{color:var(--white);font-size:42px;margin-bottom:18px;letter-spacing:-0.03em}
@media(min-width:768px){.hero h1{font-size:64px}}
@media(min-width:1280px){.hero h1{font-size:88px}}
.hero .hook{color:var(--white);font-size:22px;font-weight:800;margin-bottom:16px;line-height:1.35;max-width:620px}
@media(min-width:1024px){.hero .hook{font-size:30px}}
.hero .desc{color:#E3E4E2;font-size:15px;max-width:480px;margin-bottom:30px}
@media(min-width:1024px){.hero .desc{font-size:17px}}
.hero .cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:0}
.hero .link-more{color:var(--white);font-weight:700;font-size:15px;border-bottom:1px solid rgba(255,255,255,.5);padding-bottom:3px}

/* ===== Case Study showcase (home) — 편집형 비대칭 그리드 ===== */
.case-head{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}
@media(min-width:900px){.case-head{flex-direction:row;align-items:flex-end;justify-content:space-between}}
.case-head h2{max-width:520px}
.case-head .case-head-right{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
@media(min-width:900px){.case-head .case-head-right{align-items:flex-end;text-align:right}}
.case-head p{font-size:15px;color:#5B5F62;max-width:360px}

.case-grid{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:900px){.case-grid{grid-template-columns:repeat(12,1fr);gap:22px}}
.case-item{display:block}
.case-item .frame{position:relative;overflow:hidden;border-radius:var(--radius-img);aspect-ratio:4/3}
.case-item .frame img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.case-item:hover .frame img{transform:scale(1.035)}
.case-item .cap{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:14px}
.case-item .cap h3{font-size:17px}
.case-item .cap h3 span{background-image:linear-gradient(var(--dark),var(--dark));background-size:0 1px;background-repeat:no-repeat;background-position:0 100%;padding-bottom:2px;transition:background-size .25s ease}
.case-item:hover .cap h3 span{background-size:100% 1px}
.case-item .cap .arrow{flex:none;font-size:18px;color:var(--orange);transition:transform .2s ease}
.case-item:hover .cap .arrow{transform:translateX(4px)}

@media(min-width:900px){
  .case-item.i1{grid-column:span 7}
  .case-item.i2{grid-column:span 5}
  .case-item.i3{grid-column:span 5}
  .case-item.i4{grid-column:span 7}
  .case-item.i5{grid-column:span 12}
  .case-item.i1 .frame,.case-item.i4 .frame{aspect-ratio:16/11}
  .case-item.i2 .frame,.case-item.i3 .frame{aspect-ratio:3/4}
  .case-item.i5 .frame{aspect-ratio:21/8}
}

/* ===== Service cards ===== */
.svc-grid{display:grid;grid-template-columns:1fr;gap:var(--card-gap)}
@media(min-width:768px){.svc-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.svc-grid{grid-template-columns:repeat(3,1fr)}}
.svc-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;transition:.15s}
.svc-card:hover{border-color:var(--orange);box-shadow:0 10px 26px rgba(23,26,29,.08)}
.svc-card .thumb{aspect-ratio:4/3;overflow:hidden;background:var(--gray)}
.svc-card .thumb img{width:100%;height:100%;object-fit:cover}
.svc-card .body{padding:22px}
.svc-card h3{margin-bottom:8px}
.svc-card p{font-size:14px;color:#5B5F62;margin-bottom:14px}
.svc-card .more{font-size:14px;font-weight:700;color:var(--orange)}

/* ===== Service list + swap image (home — 이미지 연동형) ===== */
.svc-split{display:grid;grid-template-columns:1fr;gap:0}
@media(min-width:1024px){.svc-split{grid-template-columns:1fr 0.9fr;gap:70px;align-items:start}}
.svc-names{border-top:1px solid var(--dark)}
.svc-row{border-bottom:1px solid var(--border)}
.svc-name-btn{all:unset;display:block;box-sizing:border-box;width:100%;padding:22px 2px;font-size:21px;font-weight:800;letter-spacing:-0.01em;color:var(--dark);cursor:pointer;transition:color .15s ease}
@media(min-width:1024px){.svc-name-btn{font-size:30px;padding:28px 4px}}
.svc-row.active .svc-name-btn,.svc-name-btn:hover,.svc-name-btn:focus-visible{color:var(--orange)}
.svc-row-img{margin:0 0 20px;border-radius:var(--radius-img);overflow:hidden;aspect-ratio:4/3;background:var(--gray)}
@media(min-width:1024px){.svc-row-img{display:none}}
.svc-stage{display:none}
@media(min-width:1024px){
  .svc-stage{display:block;position:sticky;top:120px;border-radius:var(--radius-card);overflow:hidden;aspect-ratio:4/5;background:var(--gray)}
  .svc-stage img{width:100%;height:100%;object-fit:cover;transition:opacity .25s ease}
}

/* ===== Full-bleed statement section (영상/이미지 단독) ===== */
.statement{position:relative;min-height:70vh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--dark2)}
@media(min-width:1024px){.statement{min-height:92vh}}
.statement-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.statement-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,19,21,.35) 0%,rgba(17,19,21,.2) 40%,rgba(17,19,21,.55) 100%)}
.statement-inner{position:relative;z-index:2;text-align:center;padding:0 24px}
.statement h2{color:var(--white);font-size:32px;margin-bottom:14px}
@media(min-width:1024px){.statement h2{font-size:56px}}
.statement p{color:#EDEDEA;font-size:16px;font-weight:600}
@media(min-width:1024px){.statement p{font-size:22px}}

/* ===== Process (아이보리 — 가는 선으로 흐름 표현, 하단 와이드 사진) ===== */
.process-line{display:grid;grid-template-columns:1fr;position:relative;border-top:1px solid var(--border)}
@media(min-width:900px){.process-line{grid-template-columns:repeat(4,1fr);border-top:none}}
@media(min-width:900px){
  .process-line::before{content:"";position:absolute;left:0;right:0;top:11px;height:1px;background:var(--border)}
}
.process-step{position:relative;padding:28px 0;border-bottom:1px solid var(--border)}
@media(min-width:900px){
  .process-step{border-bottom:none;padding:0 28px 0 0}
}
.process-step .dot{width:9px;height:9px;border-radius:50%;background:var(--orange);display:block;margin-bottom:18px}
@media(min-width:900px){.process-step .dot{position:relative;z-index:1}}
.process-step h3{margin-bottom:10px;font-size:21px}
@media(min-width:1024px){.process-step h3{font-size:24px}}
.process-step p{font-size:14px;color:#5B5F62}
.process-photo{margin-top:48px;border-radius:var(--radius-img);overflow:hidden;width:100%;aspect-ratio:21/8}
.process-photo img{width:100%;height:100%;object-fit:cover}
@media(max-width:899px){.process-photo{aspect-ratio:4/3}}

/* ===== Checklist (editorial, 서브페이지 2분할 이미지+텍스트) ===== */
.check-split{display:grid;grid-template-columns:1fr;gap:36px;align-items:center}
@media(min-width:1024px){.check-split{grid-template-columns:1fr 1fr;gap:60px}}
.check-split img{border-radius:var(--radius-img);width:100%;aspect-ratio:4/3;object-fit:cover}
.check-list{margin-top:22px;display:flex;flex-direction:column;gap:14px}
.check-list li{display:flex;gap:12px;font-size:15px;color:var(--body)}
@media(min-width:1024px){.check-list li{font-size:16px}}
.check-list li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-top:8px}
.check-note{margin-top:22px;font-size:14px;color:#6B6F72;padding-top:18px;border-top:1px solid var(--border)}

/* ===== Confirm (home — 차콜 배경 편집형 체크리스트) ===== */
.confirm-split{display:grid;grid-template-columns:1fr;gap:30px}
@media(min-width:1024px){.confirm-split{grid-template-columns:0.9fr 1.1fr;gap:80px}}
.confirm-title{color:var(--white);font-size:32px}
@media(min-width:1024px){.confirm-title{font-size:50px;position:sticky;top:120px}}
.confirm-list{border-top:1px solid rgba(255,255,255,.2)}
.confirm-item{padding:22px 0;font-size:18px;font-weight:700;color:var(--white);border-bottom:1px solid rgba(255,255,255,.2)}
@media(min-width:1024px){.confirm-item{font-size:25px;padding:28px 0}}
.confirm-note{margin-top:30px;font-size:15px;color:#B9BCBD;line-height:1.85;max-width:52ch}

/* 스크롤 리빌 (과하지 않게) */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.reveal{transition:none;opacity:1;transform:none}}

/* ===== Space gallery (가로 스크롤 대형 이미지) ===== */
.space-scroll{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;margin:0 calc(var(--pad-mo) * -1);padding-left:var(--pad-mo);padding-right:var(--pad-mo)}
@media(min-width:1024px){.space-scroll{margin:0 calc(var(--pad-pc) * -1);padding-left:var(--pad-pc);padding-right:var(--pad-pc)}}
.space-scroll::-webkit-scrollbar{height:6px}
.space-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
.space-card{position:relative;flex:0 0 82%;scroll-snap-align:start;border-radius:var(--radius-card);overflow:hidden;aspect-ratio:4/5}
@media(min-width:640px){.space-card{flex-basis:46%}}
@media(min-width:1024px){.space-card{flex-basis:31%;aspect-ratio:3/4}}
.space-card img{width:100%;height:100%;object-fit:cover}
.space-card .scrim{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(10,10,12,.82) 100%)}
.space-card .body{position:absolute;left:0;right:0;bottom:0;padding:20px;z-index:2;color:var(--white)}
.space-card h3{font-size:18px;color:var(--white)}

/* ===== Trust list ===== */
.trust-grid{display:grid;grid-template-columns:1fr;gap:var(--card-gap)}
@media(min-width:768px){.trust-grid{grid-template-columns:repeat(2,1fr)}}
.trust-item{padding:26px;border:1px solid var(--border);border-radius:var(--radius-card)}
.trust-item h3{margin-bottom:10px;font-size:18px}
.trust-item p{font-size:14px;color:#5B5F62}

/* ===== FAQ (잡지형 2단 — 왼쪽 제목 / 오른쪽 질문 목록) ===== */
.faq-mag{display:grid;grid-template-columns:1fr;gap:28px}
@media(min-width:1024px){.faq-mag{grid-template-columns:0.8fr 1.2fr;gap:80px}}
.faq-mag-title{font-size:32px}
@media(min-width:1024px){.faq-mag-title{font-size:48px;position:sticky;top:120px}}
.faq-mag-list{border-top:1px solid var(--border)}
.faq-row{border-bottom:1px solid var(--border)}
.faq-row-q{
  all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;
  width:100%;padding:20px 2px;font-size:16px;font-weight:700;color:var(--dark);cursor:pointer;
}
@media(min-width:1024px){.faq-row-q{font-size:19px;padding:24px 2px}}
.faq-row-q:hover{color:var(--orange)}
.faq-row-q .plus{flex:none;width:18px;height:18px;position:relative}
.faq-row-q .plus::before,.faq-row-q .plus::after{content:"";position:absolute;background:currentColor;transition:.2s}
.faq-row-q .plus::before{left:0;top:50%;width:100%;height:1.5px;margin-top:-.75px}
.faq-row-q .plus::after{top:0;left:50%;width:1.5px;height:100%;margin-left:-.75px}
.faq-row.open .plus::after{transform:rotate(90deg);opacity:0}
.faq-row-a{max-height:0;overflow:hidden;transition:max-height .25s ease}
.faq-row-a p{padding:0 2px 22px;font-size:15px;color:#5B5F62;line-height:1.75}
.faq-more{margin-top:28px}

/* ===== Final CTA ===== */
.final-cta{text-align:center}
.final-cta h2{color:var(--white);margin-bottom:16px}
.final-cta p{color:#C7CACC;font-size:16px;margin-bottom:32px;white-space:pre-line}
@media(min-width:1024px){.final-cta p{font-size:18px}}

/* ===== Footer ===== */
.site-footer{background:var(--warm);border-top:1px solid var(--border);padding:48px 0 24px}
.footer-top{display:flex;flex-direction:column;gap:32px}
@media(min-width:900px){.footer-top{flex-direction:row;justify-content:space-between;align-items:flex-start}}
.footer-biz h3{font-size:18px;margin-bottom:12px}
.footer-biz p{font-size:14px;color:#5B5F62;line-height:1.9}
.footer-nav{display:flex;flex-wrap:wrap;gap:14px 28px}
@media(min-width:900px){.footer-nav{justify-content:flex-end}}
.footer-nav a{font-size:14px;font-weight:600;color:var(--dark2)}
.footer-nav a:hover{color:var(--orange)}
.footer-bottom{margin-top:36px;padding-top:20px;border-top:1px solid var(--border);font-size:13px;color:#7A7E80}

/* ===== Page intro (sub pages) ===== */
.page-intro{background:var(--dark);color:var(--white);padding:64px 0}
@media(min-width:1024px){.page-intro{padding:90px 0}}
.page-intro .eyebrow{color:var(--orange)}
.page-intro h1{color:var(--white);font-size:32px}
@media(min-width:1024px){.page-intro h1{font-size:46px}}
.page-intro p{color:#C7CACC;margin-top:14px;max-width:640px;font-size:16px}

.breadcrumb{font-size:13px;color:#8A8E90;margin-bottom:18px}
.breadcrumb a{color:#8A8E90}
.breadcrumb a:hover{color:var(--orange)}

/* ===== Project detail ===== */
.detail-meta{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 30px}
.detail-meta span{font-size:13px;font-weight:700;padding:6px 14px;border-radius:999px;background:var(--gray);color:var(--dark2)}
.detail-gallery{display:grid;grid-template-columns:1fr;gap:14px;margin-top:30px}
@media(min-width:768px){.detail-gallery{grid-template-columns:repeat(2,1fr)}}
.detail-gallery img,.detail-gallery video{width:100%;border-radius:var(--radius-img);aspect-ratio:4/3;object-fit:cover}
.detail-body{font-size:16px;line-height:1.85;margin-top:10px}
.detail-body p + p{margin-top:14px}

/* ===== Project archive ===== */
.archive-grid{display:grid;grid-template-columns:1fr;gap:var(--card-gap)}
@media(min-width:768px){.archive-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.archive-grid{grid-template-columns:repeat(3,1fr)}}
.archive-card{display:block;border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;background:#fff}
.archive-card .thumb{aspect-ratio:4/3;overflow:hidden;background:var(--gray)}
.archive-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.archive-card:hover .thumb img{transform:scale(1.03)}
.archive-card .body{padding:18px}
.archive-card .kind{font-size:12px;font-weight:700;color:var(--orange);margin-bottom:6px;display:block}
.archive-card h3{font-size:17px;margin-bottom:6px}
.archive-card p{font-size:13px;color:#5B5F62}

/* ===== Contact ===== */
.contact-grid{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:768px){.contact-grid{grid-template-columns:repeat(2,1fr)}}
.contact-card{border:1px solid var(--border);border-radius:var(--radius-card);padding:36px 28px;text-align:center}
.contact-card .icon{width:56px;height:56px;border-radius:50%;background:var(--warm);display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:24px}
.contact-card h3{margin-bottom:8px}
.contact-card p{font-size:14px;color:#5B5F62;margin-bottom:22px}
.contact-note{margin-top:28px;font-size:14px;color:#6B6F72;text-align:center}

/* ===== Generic prose page ===== */
.prose h2{margin-top:40px;margin-bottom:16px}
.prose p{margin-bottom:14px;font-size:16px}
.prose table{width:100%;border-collapse:collapse;margin:18px 0}
.prose table th,.prose table td{border:1px solid var(--border);padding:10px 14px;font-size:14px;text-align:left}
.prose table th{background:var(--warm)}
.prose ul{margin:14px 0;padding-left:0}
.prose ul li{position:relative;padding-left:20px;font-size:15px;margin-bottom:8px}
.prose ul li::before{content:"";position:absolute;left:0;top:10px;width:6px;height:6px;border-radius:50%;background:var(--orange)}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
