@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

/* ==========================================================================
   두산토건 — Industrial Editorial
   DESIGN.md 기반. 1px 구획선 없음 / 톤 레이어링 / 각진 모서리 / 색조 그림자
   ========================================================================== */

:root {
  /* Core */
  --primary: #1b2536;
  --primary-container: #313b4d;
  --accent: #fe6500;
  --accent-deep: #a33e00;

  /* Surfaces — 경계는 선이 아니라 톤 차이로 */
  --surface: #f1fbff;
  --surface-low: #eaf5f9;
  --surface-lowest: #ffffff;
  --surface-high: #dfeaee;
  --surface-highest: #d9e4e8;

  /* Text */
  --on-surface: #131d20;
  --on-surface-variant: #45474c;
  --on-primary-variant: #9ba5bb;

  /* Depth — 순수 검정 금지, primary 색조만 */
  --shadow-sm: 0 2px 12px -2px rgba(27, 35, 54, 0.08);
  --shadow-md: 0 8px 40px -8px rgba(27, 35, 54, 0.16);
  --shadow-lg: 0 24px 60px -12px rgba(27, 35, 54, 0.22);

  --radius: 2px;
  --nav-h: 94px;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* display 를 지정한 클래스가 hidden 속성을 덮어써서 숨겨야 할 것이 보이는 일이 없도록 */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  font-size: 120%;   /* 전체 텍스트 20% 확대 — rem 기반이라 한 곳에서 제어 */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;       /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  padding: 6px 12px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.eyebrow--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.22; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.05rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
p  { margin: 0; }

.lede { font-size: clamp(1.02rem, 1.7vw, 1.15rem); color: #3a3d43; line-height: 1.8; }
.muted { color: var(--on-surface-variant); }
/* 안내 카드: 굵은 문장 뒤에 오는 문장이 같은 줄에 붙어 어색하게 끊기던 것 → br 로 분리 */
.card p b { display: inline-block; }

/* 전화번호는 하이픈에서 끊긴다 — 항상 한 덩어리로 유지 */
.tel-no { white-space: nowrap; }
/* 터치 기기에서는 번호가 눌리는 것임을 시각적으로 알린다 */
a.tel-no { color: inherit; }
@media (hover: none) {
  a.tel-no { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
}
/* 어두운 푸터에서는 accent-deep 대비가 낮다 — 밑줄만 남기고 색은 유지 */
@media (hover: none) {
  .site-footer a.tel-no, .site-footer a.tel-no b { color: rgba(255,255,255,.92); }
}

.section { padding: clamp(46px, 5.6vw, 82px) 0; }
.section--low { background: var(--surface-low); }
.section--dark { background: var(--primary); color: #fff; }
.section--dark .lede { color: var(--on-primary-variant); }

.section-head { margin-bottom: clamp(18px, 2.2vw, 30px); max-width: 720px; }
.section-head p { margin-top: 10px; }
.rule { width: 56px; height: 3px; background: var(--accent); margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
  min-height: 52px;          /* 터치 타깃 */
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--dark { background: var(--primary); color: #fff; }
.btn--dark:hover { background: var(--primary-container); }
.btn--tonal { background: var(--surface-highest); color: var(--primary); }
.btn--tonal:hover { background: var(--surface-high); }
.btn--onDark { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.btn--onDark:hover { background: rgba(255,255,255,.22); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241, 251, 255, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); gap: 20px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 15px; font-size: .98rem; font-weight: 600; color: var(--primary);
  border-radius: var(--radius); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav > a, .nav__item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav a:hover { background: var(--surface-highest); }
.nav a[aria-current="page"] { color: var(--accent); }

/* 2단 메뉴 */
.nav__item { position: relative; }
.nav__caret { width: .8em; height: .8em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 200px; z-index: 10;
  background: var(--surface-lowest); box-shadow: var(--shadow-md); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: 12px 20px; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.nav__sub a:hover { background: var(--surface-low); color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header-tel span { font-size: .69rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.header-tel strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }

.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer;
}

/* ---------- Hero ---------- */
/* 히어로는 정확히 한 화면 — 하단 정보 바가 잘리지 않도록 flex로 바닥에 고정 */
.hero {
  position: relative; overflow: hidden; background: var(--primary);
  display: flex; flex-direction: column;
  /* sticky 헤더가 흐름에서 --nav-h 만큼 차지하므로 그만큼 빼야 딱 한 화면이 된다 */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));   /* 모바일 주소창 높이 변화 대응 */
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img,
.hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
/* 배경 사진 교차 전환 + 아주 느린 줌 — 정적인 화면에 숨을 넣는다 */
.hero__media img {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s var(--ease);
  animation: heroZoom 24s ease-out infinite alternate;
}
.hero__media img.is-active { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}

/* 스크롤 등장 — .js 가 붙었을 때만 숨긴다.
   JS가 실패하거나 차단돼도 본문이 사라지지 않도록 하는 안전장치. */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .75s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* 사업 분야 타일 */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field-tile {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface-lowest); padding: 20px 22px; box-shadow: var(--shadow-sm);
  font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--primary);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}
.field-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.field-tile svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* 영상이 재생되면 포스터 이미지는 감춘다 */
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
/* 사진이 숨 쉬도록 — 좌측 카피 영역만 덮고 우측은 열어둔다 */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(27,37,54,.90) 0%, rgba(27,37,54,.74) 38%, rgba(27,37,54,.34) 72%, rgba(27,37,54,.12) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  flex: 1 1 auto; display: flex; align-items: center;
  /* 여백을 화면 '세로' 기준으로 — 낮은 화면에서 자동으로 줄어 하단이 잘리지 않는다 */
  padding: clamp(28px, 5vh, 88px) 0;
}
.hero__facts { flex: 0 0 auto; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 26px; max-width: 46ch; color: rgba(255,255,255,.93); font-size: clamp(1.02rem, 1.7vw, 1.15rem); line-height: 1.8; text-shadow: 0 1px 12px rgba(19,24,32,.5); }
.hero .btn-row { margin-top: 40px; }

.hero__facts {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  /* 히어로 스크림을 걷어냈으므로 정보 바는 자체 배경으로 가독성을 보장 */
  background: rgba(23, 32, 47, .82);
  backdrop-filter: blur(14px);
}
.hero__fact { padding: 26px 28px; }
.hero__fact + .hero__fact { box-shadow: inset 1px 0 0 rgba(255,255,255,.12); }
.hero__fact dt { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.hero__fact dd { margin: 0; font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero__fact dd small { display: block; font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.6); margin-top: 4px; letter-spacing: 0; }

/* ---------- Service split ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.service {
  position: relative; overflow: hidden; background: var(--primary);
  min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px; color: #fff;
}
.service img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;                    /* 스크림보다 아래 — 명시하지 않으면 .service > * 규칙에 걸려 위로 올라온다 */
  transition: transform 1.1s var(--ease);
}
.service:hover img { transform: scale(1.14); }
/* 글자 구간만 충분히 덮고 위쪽은 사진을 살린다.
   흰 글자는 82% 네이비 위에서도 대비 10:1 이상이라 굳이 불투명까지 갈 필요가 없다. */
.service::after {
  content: ""; position: absolute; inset: 0;
  z-index: 1;                    /* 사진 위, 글자 아래 */
  background: linear-gradient(to top,
    rgba(24,33,49,.94) 0%,
    rgba(24,33,49,.86) 26%,
    rgba(24,33,49,.58) 46%,
    rgba(24,33,49,.24) 66%,
    rgba(24,33,49,.06) 84%,
    rgba(24,33,49,0)   100%);
}
/* 사진은 제외 — 포함시키면 사진이 스크림 위로 올라간다 */
.service > *:not(img) { position: relative; z-index: 2; }
.service h3 { font-size: 1.6rem; margin-bottom: 12px; }
.service p { color: #fff; font-size: 1.02rem; line-height: 1.72; }
.service .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #ffa05c; font-weight: 800; font-size: 1rem; }
.service:hover .more .ico { transform: translateX(4px); }
.service .more .ico { transition: transform .3s var(--ease); }

/* ---------- 사업영역 (business) ---------- */
.biz-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 68px);
  /* 가운데 정렬하면 사진이 더 길어 제목이 아래로 밀린다 — 사진 윗변에 제목을 맞춘다 */
  align-items: start;
}
.biz-row--rev .biz-media { order: -1; }
@media (max-width: 760px) { .biz-row--rev .biz-media { order: 0; } }

.biz-num {
  display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.05em; color: var(--surface-highest); margin-bottom: 10px;
}
.biz-text .eyebrow--ghost { display: inline-block; }

/* 사진 묶음 높이는 옆 글 높이에 가깝게 — 너무 길면 한쪽만 늘어져 보인다 */
.biz-media { display: grid; gap: 14px; }
.biz-media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow-md); }
.biz-media__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.biz-media__sub img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-sm); }

/* 작업 태그 목록 */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  background: var(--surface-lowest); color: var(--primary);
  font-size: .98rem; font-weight: 700; letter-spacing: -0.01em;
  padding: 12px 20px; box-shadow: var(--shadow-sm);
}
.tags li::before { content: "· "; color: var(--accent); font-weight: 800; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface-lowest); padding: 32px; box-shadow: var(--shadow-sm); }
.card__num { font-size: .82rem; font-weight: 800; letter-spacing: .18em; color: var(--accent-deep); margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 1.02rem; color: #3a3d43; line-height: 1.75; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr)); gap: 18px; }
.shot {
  position: relative; overflow: hidden; background: var(--surface-highest);
  aspect-ratio: 4 / 5; cursor: zoom-in; padding: 0; border: 0; width: 100%; display: block;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.14); }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: 60px 22px 22px;
  /* 글자 영역은 사진 밝기와 무관하게 불투명 면으로 */
  background: linear-gradient(to top,
    rgba(24,33,49,.96) 0%, rgba(24,33,49,.94) 40%, rgba(24,33,49,.6) 68%, rgba(24,33,49,0) 100%);
  color: #fff; text-align: left;
  font-size: 1.06rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.4;
  /* 칩을 제목과 같은 줄에 두면 좁은 카드에서 제목이 2줄로 넘친다 → 별도 줄로 */
  display: flex; flex-direction: column; align-items: flex-start;
}
/* 분류 라벨은 사진과 무관하게 대비를 보장 — 네이비 솔리드 칩 위 주황 */
.shot__cap b {
  display: inline-block; background: var(--primary); color: #ffa05c;
  font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  padding: 5px 10px; margin-bottom: 10px;
}
.gallery--wide .shot { aspect-ratio: 4 / 3; }
/* 큰 사진 그리드 — 열 수를 줄여 사진을 크게 */
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr)); gap: 24px; }
.gallery--lg .shot { aspect-ratio: 16 / 10; }

/* 4장짜리 갤러리 — auto-fill 에 맡기면 중간 폭에서 3+1 로 갈라진다 */
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .gallery--4 { grid-template-columns: 1fr; } }

/* ---------- 장비 슬라이더 ---------- */
.slider { position: relative; overflow: hidden; background: var(--primary); box-shadow: var(--shadow-md); }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.slider__slide { flex: 0 0 100%; position: relative; }
/* 16:10 이면 1200px 폭에서 높이가 750px까지 커져 화면을 다 먹는다 → 가로로 눕힌 비율 + 상한 */
.slider__slide img { width: 100%; aspect-ratio: 2 / 1; max-height: 540px; object-fit: cover; }
@media (max-width: 640px) { .slider__slide img { aspect-ratio: 4 / 3; max-height: none; } }
.slider__cap {
  position: absolute; inset: auto 0 0 0; padding: 70px 26px 52px; color: #fff;
  background: linear-gradient(to top, rgba(24,33,49,.96) 0%, rgba(24,33,49,.9) 46%, rgba(24,33,49,0) 100%);
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.4;
  /* 칩과 제목을 같은 줄에 두면 좁은 화면에서 겹친다 → 별도 줄로 */
  display: flex; flex-direction: column; align-items: flex-start;
}
.slider__cap b {
  background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  padding: 5px 11px; margin-bottom: 10px;
}
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  /* 크게 만들면 사진을 가린다 — 작게 두고 브랜드 오렌지로 눈에 띄게 */
  background: var(--accent); color: #fff; border: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.65), 0 4px 14px rgba(20,28,42,.4);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* 버튼은 작게 보이되 손가락으로 누를 영역은 넉넉하게 */
.slider__nav::before { content: ""; position: absolute; inset: -8px; }
.slider__nav .ico { stroke-width: 2.8; }
.slider__nav:hover { background: var(--accent-deep); box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 14px rgba(20,28,42,.45); }
.slider__nav--prev { left: 16px; }
.slider__nav--next { right: 16px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 9px; }
.slider__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: background-color .2s var(--ease), width .3s var(--ease);
}
.slider__dots button[aria-current="true"] { background: var(--accent); width: 26px; }
@media (max-width: 640px) {
  .slider__nav { width: 36px; height: 36px; }
  .slider__nav .ico { width: .95em; height: .95em; }
  .slider__nav--prev { left: 8px; } .slider__nav--next { right: 8px; }
  .slider__cap { padding: 52px 18px 30px; font-size: 1.02rem; }
}

/* 규격 안내 */
.spec { display: grid; gap: 2px; background: var(--surface-highest); margin: 0; }
.spec__row {
  background: var(--surface-lowest); padding: 22px 26px;
  display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start;
}
.spec__row dt {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary);
}
.spec__row dd { margin: 0; font-size: 1rem; color: #3a3d43; line-height: 1.75; }
.spec__row dd b { color: var(--primary); font-weight: 700; }
.spec__row dd em {
  font-style: normal; font-weight: 800; color: var(--accent-deep);
  background: var(--surface-low); padding: 1px 7px;
}
@media (max-width: 560px) {
  .spec__row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
}

/* 보유 장비 규격 목록 */
.models { display: grid; gap: clamp(26px, 3vw, 38px); }
.model-group h3 { margin-bottom: 14px; }
.model-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.model-list li {
  background: var(--surface-lowest); box-shadow: var(--shadow-sm);
  padding: 20px 30px; min-width: 118px; text-align: center;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.model-list li:hover { background: var(--surface-low); transform: translateY(-2px); }
.model-list li small { display: block; font-size: .62em; font-weight: 700; color: var(--accent-deep); letter-spacing: 0; margin-top: 2px; }

/* 누르면 사진이 열리는 규격 — li 는 껍데기, 버튼이 칩 역할 */
.model-hint { margin: -6px 0 14px; font-size: .94rem; }
.model-list--pick li { background: none; box-shadow: none; padding: 0; min-width: 0; transform: none; }
.model-btn {
  font: inherit; border: 0; cursor: pointer; display: block; width: 100%;
  background: var(--surface-lowest); box-shadow: var(--shadow-sm);
  padding: 20px 30px; min-width: 118px; text-align: center;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary);
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.model-btn small { display: block; font-size: .62em; font-weight: 700; color: var(--accent-deep); letter-spacing: 0; margin-top: 2px; }
.model-btn:hover { background: var(--surface-low); transform: translateY(-2px); }
.model-btn[aria-expanded="true"] {
  background: var(--primary); color: #fff;
  box-shadow: inset 0 -4px 0 var(--accent), var(--shadow-md);
}
.model-btn[aria-expanded="true"] small { color: var(--accent); }

.model-panel {
  position: relative; margin-top: 20px;
  background: var(--surface-lowest); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.model-panel img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--primary); }
.model-panel__body { padding: clamp(22px, 2.6vw, 34px); align-self: center; }
.model-panel__title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.model-panel__title b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.model-panel__title span {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  background: var(--accent); color: #fff; padding: 4px 10px;
}
.model-panel__desc { margin-top: 12px; color: var(--on-surface-variant); line-height: 1.75; }
.model-panel__note { margin-top: 16px; font-size: .84rem; color: #6d7075; }
.model-panel__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.65), 0 4px 14px rgba(20,28,42,.4);
}
.model-panel__close:hover { background: var(--accent-deep); }
@media (max-width: 760px) {
  .model-panel { grid-template-columns: 1fr; }
  .model-btn { padding: 16px 22px; font-size: 1.2rem; min-width: 96px; }
}

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(19, 24, 32, .94); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.lb[open], .lb.is-open { display: flex; }
.lb img { max-width: min(96vw, 1100px); max-height: 86vh; object-fit: contain; box-shadow: var(--shadow-lg); }
.lb__close, .lb__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 52px; height: 52px; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s var(--ease);
}
.lb__close:hover, .lb__nav:hover { background: var(--accent); }
.lb__close { top: 22px; right: 22px; }
.lb__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .92rem; font-weight: 600; letter-spacing: .08em; }

/* ---------- Page header — 장식 없이 제목만.
   사진을 20% 투명도로 깔고 스크림을 덮으면 얼룩만 남고 높이만 먹는다.
   메뉴가 5개뿐이라 브레드크럼도 불필요 (현재 메뉴가 이미 강조됨). ---------- */
.banner { background: var(--surface-low); box-shadow: inset 0 -3px 0 var(--accent); }
.banner__inner { padding: clamp(20px, 2.2vw, 30px) 0; }
.banner h1 { color: var(--primary); font-size: clamp(1.55rem, 2.7vw, 2rem); }
.banner h1 + p { margin-top: 7px; max-width: 60ch; color: var(--on-surface-variant); font-size: 1rem; }

/* ---------- Info list (contact) ---------- */
.info { display: grid; gap: 2px; background: var(--surface-highest); }
.info__row { background: var(--surface-lowest); padding: 24px 28px; display: flex; gap: 20px; align-items: flex-start; }
.info__ico { width: 44px; height: 44px; flex: none; background: var(--surface-low); color: var(--accent); display: grid; place-items: center; }
.info__row dt { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--on-surface-variant); margin-bottom: 6px; }
.info__row dd { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; color: var(--primary); }
.info__row dd small { display: block; font-size: .9rem; font-weight: 500; color: var(--on-surface-variant); margin-top: 5px; letter-spacing: 0; }

/* ---------- Map (네이버 지도) ---------- */
.mapbox {
  position: relative; height: 380px; overflow: hidden;
  background: var(--surface-highest); box-shadow: var(--shadow-md);
}
.mapbox__canvas { position: absolute; inset: 0; }
/* iframe 은 기본 크기(300×150)라 명시하지 않으면 박스 안에서 잘려 보인다 */
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* 지도가 실제로 뜨기 전에는 캔버스가 빈 회색으로 보이지 않도록 */
.mapbox:not(.is-live) .mapbox__canvas { display: none; }
.mapbox__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 2px, transparent 2px 12px),
    var(--surface-highest);
}
.mapbox__pin { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.mapbox__fallback b { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary); }
.mapbox__fallback span { font-size: .97rem; color: var(--on-surface-variant); line-height: 1.6; }

/* ---------- Quote / greeting ---------- */
.quote { position: relative; padding-left: 30px; }
.quote::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: var(--accent); }
.quote p + p { margin-top: 18px; }
.sign { margin-top: 40px; }
.sign strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--primary); }
.sign span { font-size: .92rem; color: var(--on-surface-variant); }
.sign__img { height: 88px; width: auto; margin-bottom: 8px; }

/* 대표이사 초상 — 장식 블록은 '사진'에만 걸리도록 프레임에 묶는다
   (figure 전체에 걸면 캡션 글자와 겹친다) */
.portrait { position: relative; margin: 0; max-width: 330px; }
.portrait__frame { position: relative; }
.portrait__frame::before {
  content: ""; position: absolute; inset: 20px -20px -20px 20px;
  background: var(--surface-highest); z-index: 0;
}
/* 서명은 제외 — 포함하면 오버레이가 아니라 사진 아래로 쌓인다 */
.portrait__frame img:not(.portrait__sign) { position: relative; z-index: 1; width: 100%; box-shadow: var(--shadow-md); }
/* 캡션: 좌측 직함·이름 / 우측 서명 */
.portrait figcaption {
  margin-top: 34px;   /* 장식 블록(-20px)을 확실히 지나서 */
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .92rem; color: var(--on-surface-variant); letter-spacing: .02em;
}
.portrait__who { display: block; }
.portrait figcaption b { display: block; font-size: 1.06rem; color: var(--primary); margin-bottom: 3px; }
.portrait figcaption img.portrait__sign {
  flex: none; height: 54px; width: auto; box-shadow: none; margin-bottom: -6px;
}
/* 모바일: 가로로 나란히 두면 서명이 눌려 작아진다 → 아래로 내리고 크게 */
@media (max-width: 640px) {
  .portrait figcaption { flex-direction: column; align-items: flex-start; gap: 12px; }
  .portrait figcaption img.portrait__sign { height: 84px; margin-bottom: 0; }
}
@media (max-width: 640px) {
  .portrait__frame::before { display: none; }
  .portrait figcaption { margin-top: 18px; }
}


/* ---------- 견적요청 폼 ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

.qform { background: var(--surface-lowest); padding: clamp(26px, 3.4vw, 44px); box-shadow: var(--shadow-sm); display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label, .field > span { display: block; font-size: .92rem; font-weight: 700; color: var(--primary); margin-bottom: 9px; }
.field__label em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--accent); margin-left: 6px; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--on-surface);
  background: var(--surface-low); border: 0; border-bottom: 2px solid transparent;
  padding: 15px 16px; border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #8b9096; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--surface-high); border-bottom-color: var(--accent); }
.field textarea { resize: vertical; line-height: 1.7; }
.field select { appearance: none; cursor: pointer; }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; cursor: pointer; }
.checks input { position: absolute; opacity: 0; width: 0; height: 0; }
.checks span {
  display: inline-block; background: var(--surface-low); color: var(--primary);
  padding: 12px 18px; font-size: .96rem; font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.checks input:checked + span { background: var(--primary); color: #fff; }
.checks input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-low); padding: 18px 20px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.consent span { font-size: .94rem; color: var(--on-surface-variant); line-height: 1.6; }
.consent b { color: var(--accent); font-weight: 800; }

.form-msg { margin-top: 4px; font-size: .96rem; font-weight: 600; min-height: 1.4em; }
.form-msg.is-error { color: #b3261e; }
.form-msg.is-ok { color: var(--accent-deep); }

/* ---------- 관리자 화면 ---------- */
.admin-login { max-width: 420px; margin: 0 auto; background: var(--surface-lowest); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }

.admin-upload { background: var(--surface-lowest); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); display: grid; gap: 20px; }
.admin-upload__drop {
  display: grid; justify-items: center; gap: 8px; text-align: center; cursor: pointer;
  background: var(--surface-low); padding: clamp(30px, 5vw, 52px) 20px;
  box-shadow: inset 0 0 0 2px var(--surface-highest);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.admin-upload__drop:hover, .admin-upload__drop.is-over { background: var(--surface-high); box-shadow: inset 0 0 0 2px var(--accent); }
.admin-upload__drop b { font-size: 1.02rem; color: var(--primary); }
.admin-upload__drop span { font-size: .9rem; }
.admin-upload__fields { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 18px; }
@media (max-width: 560px) { .admin-upload__fields { grid-template-columns: 1fr; } }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.admin-card { position: relative; background: var(--surface-lowest); box-shadow: var(--shadow-sm); }
.admin-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.admin-card__cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--accent); padding: 3px 8px; justify-self: start; }
.admin-card__body b { font-size: .98rem; color: var(--primary); }
.admin-card__del {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer; border: 0;
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.7);
}
.admin-card__del:hover { background: #b3261e; }
.admin-card__del:disabled { opacity: .5; cursor: default; }

.qside { display: grid; gap: 20px; }
.qside__box { background: var(--surface-highest); padding: clamp(24px, 2.6vw, 32px); }
.qside__box h3 { margin-bottom: 12px; }
.qside__box p { font-size: .98rem; color: var(--on-surface-variant); line-height: 1.7; }
.qsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: qs; }
.qsteps li { display: grid; gap: 3px; padding-left: 40px; position: relative; counter-increment: qs; }
.qsteps li::before {
  content: counter(qs); position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .84rem; font-weight: 800;
}
.qsteps b { font-size: 1rem; color: var(--primary); }
.qsteps span { font-size: .92rem; color: var(--on-surface-variant); }

/* ---------- CTA band — 톤 블록으로 (어두운 덩어리 대신) ---------- */
.cta { background: var(--surface-highest); color: var(--on-surface); position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; padding: clamp(40px, 4.8vw, 66px) 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--primary); }
.cta p { color: var(--on-surface-variant); margin-top: 14px; }
.cta__mark {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-size: clamp(120px, 20vw, 260px); font-weight: 800; letter-spacing: -0.05em;
  color: rgba(27,37,54,.05); user-select: none; pointer-events: none; white-space: nowrap;
}
/* 밝은 밴드 위에서는 보조 버튼을 솔리드 네이비로 */
.cta .btn--onDark { background: var(--primary); color: #fff; backdrop-filter: none; }
.cta .btn--onDark:hover { background: var(--primary-container); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.78); font-size: .95rem; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; margin-bottom: 36px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-weight: 600; }
.footer-nav a:hover, .site-footer a:hover { color: var(--accent); }
.biz { line-height: 1.9; }
.biz b { color: rgba(255,255,255,.85); font-weight: 600; }
.copyright { margin-top: 28px; padding-top: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-size: .88rem; color: rgba(255,255,255,.55); }
/* 관리자 진입 — 손님 눈에 띄지 않게 저작권 줄 옆에 작게 */
.admin-link { margin-left: 14px; color: rgba(255,255,255,.32); font-size: .84rem; }
.admin-link:hover { color: var(--accent); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* 세로가 낮은 화면(노트북 등) — 히어로가 한 화면을 넘지 않도록 압축 */
@media (min-width: 641px) and (max-height: 900px) {
  .hero__inner { padding: clamp(18px, 3.2vh, 56px) 0; }
  .hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero__sub { margin-top: 14px; font-size: .98rem; line-height: 1.62; }
  .hero .btn-row { margin-top: 20px; }
  .hero .btn { min-height: 46px; padding: 12px 24px; font-size: .95rem; }
  .hero__fact { padding: 13px 20px; }
  .hero__fact dd { font-size: .93rem; }
  .hero__fact dd small { margin-top: 2px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); box-shadow: var(--shadow-md);
    padding: 8px; max-height: 0; overflow: hidden;
    transition: max-height .32s var(--ease);
  }
  .nav[data-open="true"] { max-height: 560px; overflow-y: auto; }
  .nav a { padding: 15px 18px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .header-tel { display: none; }

  /* 모바일에서는 펼침 없이 계층만 들여쓰기로 표현 */
  .nav__item { position: static; }
  .nav__caret { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: 0 0 6px;
  }
  .nav__sub a { padding: 12px 18px 12px 36px; font-size: .96rem; color: var(--on-surface-variant); }
  .nav__sub a::before { content: "– "; color: var(--accent); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .brand-logo { height: 44px; }
  .portrait::before { display: none; }
  .hero__fact { padding: 20px; }
  .hero__fact + .hero__fact { box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  .service { min-height: 340px; padding: 26px; }
  .card { padding: 26px; }
  .info__row { padding: 20px; gap: 14px; }
  .lb__nav { width: 44px; height: 44px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }

  /* 전화가 곧 전환 — 모바일에서 상시 노출 */
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    box-shadow: 0 -6px 24px -6px rgba(27,35,54,.28);
    /* 아이폰 홈 인디케이터 영역 확보 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px; font-weight: 800; font-size: 1rem; min-height: 56px;
  }
  .callbar .c-tel { background: var(--accent); color: #fff; }
  .callbar .c-sms { background: var(--primary); color: #fff; }
  /* 넉넉한 폴백 — JS가 전화바 실제 높이로 정확히 덮어쓴다.
     고정값으로 두면 글자 크기·안전영역에 따라 푸터가 가려진다. */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media print {
  .site-header, .callbar, .lb, .cta { display: none !important; }
}
