/* 터전 대표 홈페이지 — 아이보리 바탕 · 짙은 차콜 글자 · 버건디 포인트 · 큰 건축 사진 */
:root {
  --ivory: #f7f3ec; --ivory2: #efe8dc; --paper: #fffdf9;
  --ink: #24211f; --ink2: #4a4541; --muted: #6f6862; --line: #e2d9cb;
  --wine: #6b1e36; --wine2: #541528; --wine-soft: #f3e6e8; --gold: #b58a43;
  --radius: 14px; --font: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --hd: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hd); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory); line-height: 1.65; word-break: keep-all; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.25; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--wine); text-transform: uppercase; }

/* 시작 화면: 글자가 올라오고 → 로고가 커지며 나타나고 → 밑줄이 그어진 뒤 2초쯤에 사라짐.
   자바스크립트가 없어도 CSS 만으로 저절로 사라지게 함 */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ivory); cursor: pointer;
  animation: introOut .55s ease 1.9s forwards; }
.no-intro .intro { display: none; }
.intro.skip { animation: introOut .3s ease forwards; }
.intro-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-t { margin: 0; font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--ink2); letter-spacing: -.02em; opacity: 0; animation: introUp .6s ease .15s forwards; }
.intro-logo { width: min(320px, 62vw); height: auto; opacity: 0; transform: scale(.85); animation: introLogo .7s cubic-bezier(.2,1.3,.4,1) .55s forwards; }
.intro-line { width: 0; height: 3px; border-radius: 3px; background: var(--wine); animation: introLine .6s ease 1.1s forwards; }
@keyframes introUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes introLogo { to { opacity: 1; transform: scale(1); } }
@keyframes introLine { to { width: min(320px, 62vw); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
html:not(.no-intro) .hero .rv-img { transition-delay: 1.9s; } /* 시작 화면이 걷히면서 첫 화면이 나타나도록 */
html:not(.no-intro) .hero .rv { transition-delay: 2.2s; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.full { width: 100%; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--wine); color: #fff; }
.btn-accent:hover { background: var(--wine2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(0,0,0,.15); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-kakao { background: #fee500; color: #191600; margin-top: 18px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; font-size: inherit; }

/* 상단 메뉴 */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; color: #fff; }
.hd.solid, .hd.open, body.detail .hd { background: rgba(247,243,236,.96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hd-in { display: flex; align-items: center; height: var(--hd); gap: 24px; }
.logo img { height: 26px; width: auto; filter: brightness(0) invert(1); transition: filter .25s; }
.hd.solid .logo img, .hd.open .logo img, body.detail .hd .logo img, .ft .logo img { filter: none; } /* 밝은 바탕에서는 원래 버건디 로고 */
.gnb { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.gnb a { padding: 6px 0; position: relative; }
.gnb a:not(.login)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.gnb a:not(.login):hover::after { transform: scaleX(1); }
.gnb .login { border: 1px solid currentColor; border-radius: 6px; padding: 7px 14px; font-size: 14px; opacity: .9; }
.gnb .login:hover { opacity: 1; background: rgba(127,127,127,.12); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: ""; transition: transform .2s, background .2s; }
.burger i { top: 21px; } .burger i::before { left: 0; top: -7px; } .burger i::after { left: 0; top: 7px; }
.hd.open .burger i { background: transparent; } .hd.open .burger i::before { transform: translateY(7px) rotate(45deg); } .hd.open .burger i::after { transform: translateY(-7px) rotate(-45deg); }

/* 첫 화면 */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img, .hero-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,20,18,.82) 0%, rgba(24,20,18,.55) 45%, rgba(24,20,18,.1) 80%), linear-gradient(0deg, rgba(24,20,18,.6), transparent 45%); }
.hero-in { position: relative; padding-top: calc(var(--hd) + 60px); padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: end; }
.hero-txt { max-width: 640px; }

/* 사진 위 고민 · 답변 카드: 천천히 위아래로 4px 정도만 떠다님 */
.worries { display: grid; gap: 18px; }
.worry { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,253,249,.95); color: var(--ink); border-radius: 18px; padding: 20px 20px 18px; box-shadow: 0 20px 44px rgba(0,0,0,.28); animation: drift 6s ease-in-out infinite; }
.worry.w1 { margin-left: 36px; animation-delay: -3s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.w-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.w-pic { width: 56px; height: 56px; border-radius: 0; background: none; margin-top: -4px; animation: tilt 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.worry.w1 .w-pic { animation-delay: -1.6s; }
@keyframes tilt { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.06); } }
.worry h3 { margin: 2px 0 10px; font-size: 17px; font-weight: 800; }
.w-chips { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.w-chips li { background: var(--wine-soft); color: var(--wine2); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.w-text { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.w-strong { margin: 0; font-size: 17px; font-weight: 800; }
.w-strong em { font-style: normal; color: var(--wine); }

/* 답변 끝 느낌표: 선명한 코랄 레드로 통! 튀어 오름 */
.bang { display: inline-block; margin-left: 2px; color: #ff3b4f; font-weight: 900; transform-origin: 50% 90%; text-shadow: 0 2px 8px rgba(255,59,79,.35); animation: bang 2.4s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes bang {
  0%, 55%, 100% { transform: translateY(0) rotate(0) scale(1); }
  65% { transform: translateY(-5px) rotate(-12deg) scale(1.35); }
  75% { transform: translateY(0) rotate(8deg) scale(1.1); }
  85% { transform: translateY(-2px) rotate(-4deg) scale(1.15); }
}
.worry.w1 .bang { animation-delay: .8s; }
.hero .eyebrow { color: #e9c9d1; }
.hero h1 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 800; margin: 0 0 22px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.88); margin: 0 0 34px; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-accent { background: var(--wine); }
.credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 11px; color: rgba(255,255,255,.55); }

/* 자료 교체 위치 표시 */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: repeating-linear-gradient(135deg, #ece4d6 0 12px, #e6ddcd 12px 24px); color: var(--muted); text-align: center; padding: 12px; }
.ph span { display: inline-block; font-size: 13px; font-weight: 700; border: 1.5px dashed #b9ad99; border-radius: 6px; padding: 6px 10px; background: #fffdf9; color: var(--ink2); }
.ph-box { border: 1.5px dashed #c9bca6; border-radius: var(--radius); padding: 34px 24px; text-align: center; color: var(--muted); background: var(--paper); }

/* 섹션 공통 */
.sec { padding: 110px 0; }
.sec-hd { max-width: 720px; margin-bottom: 44px; }
.sec-hd h2, .about h2, .svc-info h2, .ct-side h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin: 0 0 12px; }
.sec-hd p { margin: 0; color: var(--muted); font-size: 17px; }

/* 섹션 제목 옆 질문 · 답변 카드 (첫 화면 카드와 같은 두둥실 효과) */
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.sec-top .sec-hd { margin-bottom: 0; }
.tip { display: flex; gap: 12px; align-items: center; max-width: 380px; margin: 18px 0 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px 14px 14px; box-shadow: 0 14px 34px rgba(36,33,31,.1); animation: drift 6s ease-in-out infinite; }
.sec-top .tip { margin: 0; flex: none; }
.tip-ic { flex: none; width: 52px; height: 52px; animation: tilt 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.tip-q { margin: 0 0 3px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.tip-a { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.4; }
.tip-a em { font-style: normal; color: var(--wine); }
.svc-info .tip { margin: 4px 0 8px; }
.about .tip { background: rgba(255,253,249,.97); border-color: transparent; margin-top: 24px; }
.svc.alt .tip, .svc:nth-child(3) .tip { animation-delay: -3s; }

/* 진행 현장 */
.pj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.pj { display: flex; flex-direction: column; }
.pj-img { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--ivory2); }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pj:hover .pj-img img { transform: scale(1.05); }
.pj-st { position: absolute; left: 14px; top: 14px; background: var(--wine); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pj-body { padding: 18px 2px 0; display: flex; flex-direction: column; flex: 1; }
.pj-region { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--wine); }
.pj h3 { margin: 0 0 8px; font-size: 22px; }
.pj h3 a:hover { color: var(--wine); }
.pj-sum { margin: 0 0 16px; color: var(--ink2); }
.pj-btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }

/* 함께한 브랜드: 옆으로 흘러가는 띠 (두 트랙이 이어 붙어 끊김 없이 돎) */
.brands { padding: 56px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.brands-t { margin: 0 0 26px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.brand-row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-row + .brand-row { margin-top: 22px; }
.brand-track { display: flex; flex: none; align-items: center; animation: bflow var(--dur, 40s) linear infinite; }
.brand-row.rev .brand-track { animation-direction: reverse; }
.brand-row:hover .brand-track { animation-play-state: paused; }
.brand { flex: none; display: flex; align-items: center; height: 44px; padding: 0 34px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #8c837a; white-space: nowrap; transition: color .2s; }
.brand:hover { color: var(--wine); }
.brand img { height: 36px; width: auto; max-width: 160px; object-fit: contain; } /* 로고 원래 색 그대로 */
.brand.on-dark img { filter: brightness(0); opacity: .8; } /* 흰색 로고만: 밝은 바탕에서 보이도록 어둡게 */
@keyframes bflow { to { transform: translateX(-100%); } }

/* 서비스 (세 섹션이 서로 다른 구성) */
.svc { border-top: 1px solid var(--line); }
.svc.alt { background: var(--paper); }
.svc-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.svc.alt .svc-in { grid-template-columns: 1.05fr 1fr; }
.svc.alt .svc-vis { order: -1; }
.svc-blk { margin-top: 26px; }
.svc-blk h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.svc-blk > p { margin: 0; font-size: 17px; color: var(--ink2); }
.tasks { list-style: none; padding: 0; margin: 0; counter-reset: t; border-top: 1px solid var(--line); }
.tasks li { counter-increment: t; display: grid; grid-template-columns: 34px 120px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tasks li::before { content: counter(t, decimal-leading-zero); font-weight: 800; color: var(--wine); font-size: 13px; }
.tasks b { font-size: 16px; }
.tasks span { color: var(--ink2); font-size: 15px; }
.tasks li:not(:has(span)) { grid-template-columns: 34px 1fr; }
.deliv { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.deliv li { background: var(--wine-soft); color: var(--wine2); font-weight: 700; font-size: 14px; padding: 7px 13px; border-radius: 999px; }
.svc-act { margin-top: 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.price { margin: 0; font-size: 26px; font-weight: 800; }
.price small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }

/* 1) 메타 광고: 피드 광고 모양 소재 */
.ads-vis { position: relative; display: flex; justify-content: center; min-height: 520px; }
.feed { margin: 0; width: min(330px, 80%); background: #fff; border-radius: 16px; box-shadow: 0 24px 50px rgba(36,33,31,.16); overflow: hidden; position: relative; z-index: 2; }
.feed.f1, .feed.f2 { position: absolute; width: min(260px, 60%); z-index: 1; opacity: .95; }
.feed.f1 { left: 0; top: 60px; transform: rotate(-5deg); }
.feed.f2 { right: 0; top: 90px; transform: rotate(5deg); }
.feed-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.feed-hd img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: var(--ivory); padding: 6px; }
.feed-hd b { display: block; font-size: 14px; } .feed-hd small { color: var(--muted); font-size: 12px; }
.feed-img, .feed .ph { aspect-ratio: 4/5; width: 100%; height: auto; object-fit: cover; }
.feed-ft { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ivory); font-size: 14px; }
.feed-ft b { background: var(--wine); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 6px; }

/* 2) 쇼츠: 세로 영상 미리보기 */
.shorts-vis { display: flex; justify-content: center; align-items: center; gap: 18px; }
.short { width: 30%; max-width: 210px; }
.short.mid { width: 36%; max-width: 250px; transform: translateY(-18px); }
.short-scr { position: relative; aspect-ratio: 9/16; border-radius: 22px; overflow: hidden; background: var(--ink); border: 6px solid var(--ink); box-shadow: 0 24px 50px rgba(36,33,31,.22); }
.short-scr video, .short-scr img, .short-scr .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.short-ui { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* 3) 홈페이지: PC + 모바일 화면 */
.web-vis { position: relative; padding: 0 40px 40px 0; }
.pc { background: #fff; border-radius: 12px; box-shadow: 0 24px 50px rgba(36,33,31,.16); overflow: hidden; border: 1px solid var(--line); }
.pc-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--ivory2); }
.pc-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc4b3; }
.pc-scr { aspect-ratio: 16/10; overflow: hidden; }
.pc-scr img, .pc-scr .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mo { position: absolute; right: 0; bottom: 0; width: 30%; max-width: 190px; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px rgba(36,33,31,.25); }
.mo-scr { aspect-ratio: 9/19; overflow: hidden; background: #fff; }
.mo-scr img, .mo-scr .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 0; }

/* 회사 소개 */
.about { background: var(--ink); color: #f3eee6; }
.about .eyebrow { color: #d9a7b4; }
.about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.about-desc { margin: 0; font-size: 18px; color: rgba(243,238,230,.8); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-bottom: 64px; }
.tm { background: var(--ink); padding: 28px 24px; }
.tm b { display: block; font-size: 19px; margin-bottom: 8px; color: #fff; }
.tm p { margin: 0; color: rgba(243,238,230,.7); font-size: 15px; }
.flow-t { font-size: 20px; margin: 0 0 22px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow li { position: relative; padding: 22px 18px 0; border-top: 2px solid var(--wine); }
.flow .n { display: block; font-size: 13px; font-weight: 800; color: #d9a7b4; margin-bottom: 6px; }
.flow b { display: block; font-size: 18px; margin-bottom: 6px; color: #fff; }
.flow p { margin: 0; font-size: 14px; color: rgba(243,238,230,.7); }

/* 운영 사례 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.case h3 { margin: 0 0 6px; font-size: 20px; }
.case > p { margin: 0 0 18px; color: var(--ink2); }
.case dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.case dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.case dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; color: var(--wine); }

/* 광고대행 문의 */
.contact { background: var(--ivory2); }
.ct { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.ct-side p { color: var(--ink2); margin: 0; }
.ct-tel { display: inline-block; font-size: 32px; font-weight: 800; color: var(--wine); margin: 28px 0 4px; }
.hours { font-size: 14px; color: var(--muted) !important; }
.qf { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 34px; }
.test-mode { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: #fff4d6; color: #7a5300; font-weight: 700; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.f label, .f legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.f em { color: var(--wine); font-style: normal; }
.f input, .f textarea { width: 100%; border: 1px solid #d6ccbc; border-radius: 8px; padding: 12px 14px; background: #fff; min-height: 50px; }
.f textarea { resize: vertical; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,30,54,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f .chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; }
.chip span { display: inline-block; border: 1px solid #d6ccbc; border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--wine); color: #fff; border-color: var(--wine); }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.agree { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; margin: 4px 0 8px; }
.agree label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.agree input { width: 18px; height: 18px; accent-color: var(--wine); }
.hp { position: absolute; left: -9999px; }
.msg { min-height: 22px; margin: 6px 0 12px; font-size: 14px; font-weight: 600; }
.msg.err { color: #b42318; } .msg.ok { color: #0d7a4f; }

/* 현장 소개 상세 */
body.detail main { padding-top: var(--hd); }
.pd-photo { aspect-ratio: 21/8; max-height: 560px; width: 100%; overflow: hidden; background: var(--ivory2); }
.pd-photo img, .pd-photo .ph { width: 100%; height: 100%; object-fit: cover; }
.pd-head { padding-top: 40px; padding-bottom: 20px; }
.pd-head .back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--muted); }
.pd-head .back:hover { color: var(--wine); }
.pd-head h1 { font-size: clamp(32px, 4.4vw, 54px); margin: 0 0 12px; }
.pd-head .sub { font-size: 18px; color: var(--ink2); margin: 0 0 24px; max-width: 720px; }
.pd-body { padding-bottom: 100px; }
.pd-sec { padding: 40px 0; border-top: 1px solid var(--line); }
.pd-sec h2 { font-size: 24px; margin: 0 0 16px; }
.pd-sec p { margin: 0; font-size: 17px; color: var(--ink2); max-width: 820px; }
.chips-ro { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-ro li { border: 1px solid var(--wine); color: var(--wine); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.pd-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pd-media figure { margin: 0; }
.pd-media img, .pd-media video { width: 100%; border-radius: 12px; background: var(--ink); }
.pd-media figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pd-cta { margin-top: 30px; padding: 40px; border-radius: var(--radius); background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pd-cta h2 { margin: 0 auto 0 0; font-size: 22px; }
.pd-cta .btn-line { border-color: #fff; color: #fff; }

/* 진행 현장 분류 버튼 */
.pj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 30px; }
.pj-filter button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; color: var(--ink2); }
.pj-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pj[hidden] { display: none; }

/* 실적 숫자 */
.stats { background: var(--wine); color: #fff; padding: 56px 0; }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat b small { font-size: .45em; margin-left: 4px; font-weight: 700; }
.stat > span { font-size: 15px; color: rgba(255,255,255,.8); }

/* 고객 후기 */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.review blockquote { margin: 0; font-size: 16px; color: var(--ink2); position: relative; padding-top: 22px; }
.review blockquote::before { content: "“"; position: absolute; top: -14px; left: -4px; font-size: 54px; color: var(--wine); font-family: Georgia, serif; line-height: 1; }
.review figcaption b { display: block; } .review figcaption span { font-size: 13px; color: var(--muted); }

/* 자주 묻는 질문 */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 17px; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--wine); border-bottom: 2px solid var(--wine); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:hover { color: var(--wine); }
.qa p { margin: 0 0 22px; color: var(--ink2); font-size: 16px; }

/* 회사소개서 받기 · 팝업 */
.brochure-btn { margin-top: 12px; }
.ct-side .btn-kakao + .brochure-btn { margin-left: 8px; }
.modal-sub { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.pop { text-align: center; }
.pop h3 { font-size: 22px; }
.pop p { color: var(--ink2); margin: 0 0 20px; }
.pop-hide { display: block; margin: 14px auto 0; color: var(--muted); font-size: 14px; }

/* 떠 있는 버튼: 카톡 상담 · 맨 위로 */
.fab-kakao { position: fixed; right: 22px; bottom: 90px; z-index: 45; display: flex; align-items: center; gap: 6px; background: #fee500; color: #191600; font-weight: 800; font-size: 14px; padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 26px rgba(0,0,0,.2); animation: drift 5s ease-in-out infinite; }
.fab-kakao:hover { transform: translateY(-2px); }
.to-top { position: fixed; right: 22px; bottom: 28px; z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--wine); }

/* 개인정보처리방침 페이지 */
.privacy { padding-top: 40px; max-width: 880px; }
.privacy .back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--muted); }
.privacy h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.privacy > p { color: var(--ink2); }

/* 푸터 */
.ft { background: #1b1917; color: rgba(243,238,230,.6); padding: 52px 0 100px; font-size: 13px; }
.ft-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; }
.ft .logo img { height: 22px; filter: brightness(0) invert(1); opacity: .85; margin-bottom: 16px; }
.ft .info { margin: 0 0 6px; }
.ft .info span { display: inline-block; margin-right: 16px; }
.ft .info a:hover { color: #fff; }
.ft-links { display: flex; gap: 18px; align-items: flex-start; }
.ft-links .link, .ft-links a { color: rgba(243,238,230,.85); text-decoration: underline; }
.ft .copy { grid-column: 1 / -1; margin: 10px 0 0; }

/* 모바일 하단 바 */
.mbar { display: none; }

/* 모달 */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(27,25,23,.55); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .box { position: relative; background: var(--paper); color: var(--ink); border-radius: 16px; width: 100%; max-width: 460px; max-height: 86vh; overflow: auto; padding: 30px; }
.modal h3 { margin: 0 0 14px; font-size: 19px; }
.modal .x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.policy { white-space: pre-line; font-size: 14px; color: var(--ink2); background: var(--ivory); border-radius: 10px; padding: 16px; margin-bottom: 18px; }
.modal .btn { width: 100%; }
.done { text-align: center; }
.done .ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.done p { color: var(--muted); margin: 0 0 20px; }

/* 등장 효과: 사진이 먼저, 제목·내용은 짧은 간격 뒤 */
.rv-img { opacity: 0; transform: scale(1.03); transition: opacity .8s ease, transform 1.1s ease; }
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease .15s, transform .7s ease .15s; }
.rv-img.in, .rv.in { opacity: 1; transform: none; }
.hero .rv { transition-delay: .3s; }
.feed.f1, .feed.f2 { transition: none; }

/* 태블릿 */
@media (max-width: 1080px) {
  .pj-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .about-top, .ct, .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .worries { max-width: 560px; }
  .worry.w1 { margin-left: 0; }
}
@media (max-width: 1080px) {
  /* 서비스: 제목 → 화면 → 설명 → 버튼 순서 */
  .svc-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .svc-info { display: contents; }
  .svc-info > .eyebrow { order: 1; } .svc-info > h2 { order: 2; margin-bottom: 28px; }
  .svc-info > .tip { order: 2; margin: -10px 0 26px; }
  .sec-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-vis, .svc.alt .svc-vis { order: 3; margin-bottom: 12px; }
  .svc-info > .svc-blk { order: 4; } .svc-info > .svc-act { order: 5; }
  .ads-vis { min-height: 0; padding: 20px 0 10px; }
  .feed.f1, .feed.f2 { display: none; }
}
@media (max-width: 860px) {
  :root { --hd: 62px; }
  .burger { display: block; }
  .gnb { display: none; }
  .hd.open .gnb { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: var(--hd); left: 0; right: 0; background: var(--ivory); padding: 6px 24px 22px; box-shadow: 0 14px 30px rgba(0,0,0,.12); }
  .hd.open .gnb a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hd.open .gnb a::after { display: none; }
  .hd.open .gnb .login { margin-top: 14px; text-align: center; border: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .to-top { bottom: 70px; right: 14px; width: 44px; height: 44px; }
  .fab-kakao { bottom: 124px; right: 14px; padding: 11px; }
  .fab-kakao span { display: none; }
  .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0; z-index: 40; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); box-shadow: 0 -2px 12px rgba(0,0,0,.1); }
  .mbar a { display: flex; align-items: center; justify-content: center; height: 54px; font-weight: 800; }
  .mbar .tel { background: var(--ink); color: #fff; }
  .mbar .go { background: var(--wine); color: #fff; }
}
/* 모바일 */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 76px 0; }
  /* 첫 화면: 제목 → 사진 → 핵심 문장 → 버튼 */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: var(--ivory); color: var(--ink); }
  .hero-in { display: contents; }
  .hero-txt { display: contents; }
  .hero .eyebrow { order: 1; color: var(--wine); padding: calc(var(--hd) + 28px) 20px 0; }
  .hero h1 { order: 2; padding: 0 20px; margin-bottom: 22px; text-shadow: none; font-size: 36px; }
  .hero-photo { order: 3; position: relative; aspect-ratio: 4/3; }
  .hero-photo::after { display: none; }
  .hero .sub { order: 4; color: var(--ink2); padding: 22px 20px 0; margin: 0 0 22px; }
  .hero-btns { order: 5; padding: 0 20px 48px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero .btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
  .hero .btn.lg { padding: 0 12px; font-size: 15px; }
  .credit { order: 6; position: static; color: var(--muted); padding: 0 20px 10px; margin-top: -40px; }
  .worries { order: 7; padding: 10px 20px 52px; }
  .worry { box-shadow: 0 12px 30px rgba(36,33,31,.12); border: 1px solid var(--line); }
  .hd:not(.solid):not(.open) { color: var(--ink); }
  .hd:not(.solid):not(.open) .logo img { filter: none; }
  .pj-grid { grid-template-columns: 1fr; }
  .tasks li { grid-template-columns: 30px 1fr; }
  .tasks li span { grid-column: 2; }
  .team { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .qf { padding: 22px 18px; }
  .ct-tel { font-size: 26px; }
  .case dl { grid-template-columns: 1fr 1fr 1fr; }
  .shorts-vis { gap: 10px; }
  .web-vis { padding: 0 24px 30px 0; }
  .pd-photo { aspect-ratio: 4/3; }
  .pd-cta { padding: 26px 20px; }
  .pd-cta h2 { margin-right: 0; width: 100%; }
  .ft-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv, .rv-img { opacity: 1; transform: none; }
}
