@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Clash Grotesk — Fontshare(Indian Type Foundry) 무료 라이선스. CDN 없이 저장소에서 바로 쓴다. */
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Clash Grotesk";
  src: url("../fonts/ClashGrotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* 흙빛 바탕, 따뜻한 흰 글자, 회사 브로슈어의 금색 하나 */
  --bg: #120e0b;
  --room: #120e0b;
  --surface: #211a14;
  --ink: #ececea;
  --muted: #b9ad9c;
  --accent: #d8ab4c;
  --accent-ink: #120e0b;
  --paper: #e6e4e0;
  --paper-ink: #17120e;
  --paper-muted: #5a4f43;

  --font: "Clash Grotesk", "Pretendard", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-statement: clamp(1.5rem, 1.05rem + 1.3vw, 2.25rem);

  --m: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#seq, #ground {
  position: fixed; inset: 0;
  width: 100vw; height: 100svh;
  z-index: 0;
  pointer-events: none;
}
main, .contact, .foot { position: relative; z-index: 1; }

/* 버튼: 사각, 금색 하나 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.btn:hover { background: #e6bd62; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-block { display: flex; width: 100%; }

/* 상단 막대는 헤더 부품이 그린다(관리자 > 랜딩페이지 > 부품). 여기서는 자리만 비켜 준다. */
html.has-lp-header { scroll-padding-top: 76px; }

/* 대문 */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: 0 var(--m) 7svh;
  text-align: center;
}
.hero-fallback { display: none; }
html:not(.js) .hero-fallback, html.seq-failed .hero-fallback { display: block; width: min(31vw, 420px); margin: 14svh auto 32px; filter: brightness(0.85) contrast(1.05); }
.hero-text { display: grid; justify-items: center; gap: 18px; position: relative;
    top: -300px;
    place-content: flex-start;
}
.hero-wordmark {
  font-size: var(--step-body);
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  color: var(--muted);
  font-weight: 500;
}
.hero h1 {
  font-size: var(--step-head);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-sub { max-width: 36em; color: var(--ink); font-size: var(--step-body); }
.hero-row {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  margin-top: 8px;
  font-size: var(--step-small);
  color: var(--muted);
}





.hero-row strong { display: block; color: var(--ink); font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }

/* 고정 문장과 지나가는 사진 */
.intro { position: relative; height: 220svh; }
.intro-pin {
  position: sticky; top: 0; height: 100svh; z-index: 2;
  display: grid; place-items: center;
  padding: 0 var(--m);
  pointer-events: none;
}
.intro-line {
  max-width: 17em;
  font-size: var(--step-statement);
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.intro-photo { position: absolute; z-index: 1; margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: brightness(0.72) contrast(1.05); }
.intro-photo { width: 22vw; }
.intro-photo.p1 { left: var(--m); top: 30svh; }
.intro-photo.p2 { right: var(--m); top: 90svh; }
.intro-photo.p3 { left: var(--m); top: 150svh; }

/* 공법 장 */
.chapter { position: relative; height: 200svh; }
.chapter-pin {
  position: sticky; top: 0; height: 100svh;
  padding: 96px var(--m) var(--m);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
}
.c-tl { grid-column: 1; grid-row: 1; }
.c-kicker { font-size: var(--step-body); font-weight: 500; color: var(--accent); letter-spacing: 0; line-height: 1.4; margin-bottom: 6px; }
.chapter h3 { font-size: var(--step-head); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.c-tr { grid-column: 2; grid-row: 1 / 3; justify-self: end; width: clamp(140px, 15vw, 230px); }
.c-tr img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; filter: brightness(0.9) contrast(1.05); }
.c-tr figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }
/* 한 칸에 사진 여러 장 — 겹쳐 두고 차례로 바꿔 보인다 */
.c-slides { display: grid; }
.c-slides img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.9s ease; }
.c-slides img.is-on { opacity: 1; }
.c-bl { grid-column: 1; grid-row: 3; align-self: end; max-width: 32ch; }
.c-br { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; display: grid; gap: 14px; text-align: right; }
.c-br dt { font-size: var(--step-small); color: var(--muted); }
.c-br dd { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* 지층 이름표 */
.strata-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.strata-labels span {
  position: absolute; left: 0; top: 0;
  font-size: var(--step-small); color: var(--ink);
  padding-left: 14px;
  white-space: nowrap;
}
.strata-labels span::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--accent); }

/* 시공 과정 */
.process { padding: 200px 0 160px; background: var(--bg); }
.process-head { display: flex; align-items: end; justify-content: space-between; padding: 0 var(--m); gap: 24px; }
.process-head h2 { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.process-ctrl { display: flex; gap: 8px; }
.sq {
  width: 48px; height: 48px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.sq:hover { background: #33291f; }
.sq:active { transform: scale(0.94); }
.process-bar { margin: 28px var(--m) 40px; height: 6px; background: var(--surface); }
.process-bar span { display: block; height: 100%; width: 12%; background: var(--ink); transform-origin: left; }
.process-row {
  display: flex; gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m);
  padding: 0 var(--m) 8px;
  scrollbar-width: none;
}
.process-row::-webkit-scrollbar { display: none; }
.process-row li { flex: 0 0 300px; scroll-snap-align: start; display: flex; flex-direction: column; }
.process-row h3 { font-size: var(--step-body); font-weight: 600; line-height: 1.4; margin-top: 20px; }
.process-row p { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.process-row img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform 0.6s var(--ease); }
.process-row li:hover img { transform: scale(1.02); }

/* 메가헬리컬: 고정 사진과 한 줄씩 */
.steps { position: relative; height: 360svh; background: var(--bg); }
.steps-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.steps-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(0.55); transform: scale(1.06); }
.steps-stage::after { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 6, 0.5); pointer-events: none; }
.steps-h {
  position: absolute; z-index: 2; top: 96px; left: 0; right: 0;
  text-align: center; font-size: var(--step-body); font-weight: 600; color: var(--ink);
}
/* 한 문장씩 금색 판 위에 튀어나오듯 등장 */
.steps-list { position: absolute; z-index: 3; inset: 0; }
.steps-list li {
  position: absolute; left: 50%; top: 38%;
  width: min(88vw, 900px);
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.pop {
  display: inline-block;
  padding: 0.22em 0.42em 0.28em;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em;
  transform: scale(0.55); opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.pop .w { display: inline-block; white-space: nowrap; }
.pop .ch {
  display: inline-block;
  transform: translateY(0.55em) scale(0.6); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.7, 0.6, 1), opacity 0.25s;
  transition-delay: calc(var(--i) * 26ms + 120ms);
}
.steps-list li.is-on .pop { transform: none; opacity: 1; transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s; }
.steps-list li.is-on .ch { transform: none; opacity: 1; }
.steps-list li.is-out .pop { transform: translateY(-36px) scale(0.92); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.3s; }
.steps-list li.is-out .ch { transition-delay: 0ms; }
.steps-bar { position: absolute; z-index: 3; left: 50%; bottom: 48px; width: min(40vw, 320px); height: 6px; transform: translateX(-50%); background: rgba(236, 236, 234, 0.25); }
.steps-bar span { display: block; height: 100%; width: 20%; background: var(--accent); transition: transform 0.5s var(--ease); }
.steps-pics img {
  position: absolute; z-index: 1; top: 60svh;
  width: clamp(160px, 15vw, 240px); aspect-ratio: 4 / 5; object-fit: cover;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.steps-pics img.l { left: 12vw; }
.steps-pics img.r { right: 12vw; }
.steps-pics img.is-on { opacity: 1; transform: none; }

/* 숫자 문장 */
.figures { min-height: 86svh; display: grid; align-items: center; padding: 160px var(--m); background: var(--bg); }
.figures-line {
  max-width: 26em;
  margin-left: 8.33%;
  font-size: var(--step-statement);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--muted);
  font-weight: 400;
}
.figures-line b { color: var(--ink); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* 공법 찾기 */
.finder { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 160px var(--m); }
.finder-panel { display: grid; gap: 28px; align-content: center; max-width: 520px; }
.finder h2 { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.finder-lead { color: var(--ink); }
.finder-form { display: grid; gap: 26px; }
.f-row { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; }
.f-label { font-size: var(--step-small); color: var(--muted); padding: 0; }
.f-label output { color: var(--ink); font-size: var(--step-lead); font-weight: 500; margin-left: 10px; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--surface); }
input[type="range"]::-moz-range-track { height: 6px; background: var(--surface); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; background: var(--accent); border: 0; transition: transform 0.2s; }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; background: var(--accent); border: 0; border-radius: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips input { position: absolute; opacity: 0; }
.f-chips span {
  display: inline-block; padding: 10px 16px; cursor: pointer;
  background: var(--surface); font-size: var(--step-small);
  transition: background-color 0.2s, color 0.2s;
}
.f-chips span:hover { background: #33291f; }
.f-chips input:checked + span { background: var(--ink); color: var(--paper-ink); }
.f-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.finder-result { display: grid; gap: 12px; justify-items: start; padding: 28px; background: var(--surface); }
.r-name { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); }
.r-why { color: var(--ink); }
.r-note { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }

/* 연락처 */
.contact { position: relative; min-height: 100svh; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.card {
  position: sticky; top: 60px;
  margin: 0 var(--m) 0 auto;
  width: 400px; max-width: calc(100% - 2 * var(--m));
  background: var(--paper); color: var(--paper-ink);
  padding: 32px;
  display: grid; gap: 16px;
  transform: translateY(60px);
}
.card h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.card-lead { font-size: var(--step-small); }
.card-rows { display: grid; gap: 6px; }
.card-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-small); }
.card-rows dt { color: var(--paper-muted); }
.card-rows dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.card-rows a { text-decoration: none; }
.card-rows a:hover { text-decoration: underline; }
.card-addr { font-size: var(--step-small); line-height: 1.5; }
.card-addr b { display: block; font-weight: 600; }
.card .btn { margin-top: 8px; }
button.btn { border: 0; font: inherit; cursor: pointer; }
.contact::after { content: ""; display: block; height: 30svh; }

/* 문의 폼 */
.inq { display: grid; gap: 12px; margin-top: 4px; }
.inq.is-sent { display: none; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq-f { display: grid; gap: 6px; }
.inq-f > span { font-size: 0.78rem; font-weight: 500; color: var(--paper-muted); letter-spacing: 0.01em; }
.inq-f > span b { color: #a8452b; font-weight: 600; }
.inq-f em { font-style: normal; font-weight: 400; opacity: 0.7; margin-left: 4px; }
.inq-f input, .inq-f textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #cfc9c1; background: #f4f2ef; color: var(--paper-ink);
  font: inherit; font-size: var(--step-small);
  transition: border-color 0.2s, background-color 0.2s;
}
.inq-f textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.inq-f input:focus, .inq-f textarea:focus { outline: none; border-color: var(--paper-ink); background: #fff; }
.inq-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; line-height: 1.45; color: var(--paper-muted); }
.inq-agree input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--paper-ink); }
.inq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inq-msg { font-size: 0.8125rem; line-height: 1.5; }
.inq-msg.is-error { color: #a8452b; }
.inq-msg.is-ok { color: #2c6a45; }
.inq-cond { padding: 8px 10px; background: #efe9dc; font-size: 0.78rem; line-height: 1.5; }
.inq-cond[hidden] { display: none; }
.inq-done { display: grid; gap: 6px; padding: 16px; background: #efe9dc; font-size: var(--step-small); line-height: 1.55; }
.inq-done[hidden] { display: none; }
.inq-done-t { font-weight: 600; }
.inq-done b { font-variant-numeric: tabular-nums; }

/* 바닥글 */
.foot {
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 40px var(--m) 20px;
  background: var(--paper); color: var(--paper-ink);
}
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: var(--step-small); color: var(--paper-muted); }
.foot-cols p { line-height: 1.6; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--paper-ink); }
.f-strong { color: var(--paper-ink); font-weight: 600; }
.foot-mark { grid-row: 3; width: 100%; height: auto; display: block; margin-bottom: 20px; }
.foot-mark text { font-family: "Clash Grotesk", sans-serif; font-weight: 500; font-size: 96px; fill: var(--paper-ink); }
.foot-legal { grid-row: 4; font-size: var(--step-small); color: var(--paper-muted); }

/* 등장 */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }

@media (max-width: 900px) {

  .hero-text {  
display: grid; justify-items: center; gap: 18px;top:0;
  }

  .hero { padding-bottom: 6svh; }
  .hero-row { flex-direction: column; gap: 14px; width: 100%; }
  .hero-row .btn { order: 0; width: 100%; }
  .hero-row span { order: 1; }
  .hero-wordmark { display: none; }
  .intro { height: 220svh; }
  .intro-line { max-width: 13em; }
  .intro-photo { width: 56vw; }
  .intro-photo.p1 { top: 62svh; }
  .intro-photo.p2 { top: 112svh; }
  .intro-photo.p3 { top: 162svh; }
  .chapter-pin { padding-top: 76px; grid-template-columns: 1fr auto; }
  .c-tr { width: 104px; grid-row: 1; }
  .c-tr figcaption { display: none; }
  .c-bl { grid-column: 1 / -1; }
  .c-br { grid-column: 1 / -1; grid-row: 4; justify-self: start; text-align: left; grid-auto-flow: column; gap: 24px; margin-top: 16px; }
  .c-br dd { font-size: var(--step-body); }
  .process { padding: 140px 0 120px; }
  .process-ctrl { display: none; }
  .process-row { gap: 16px; }
  .process-row li { flex-basis: 72vw; }
  .steps-h { top: 80px; }
  .steps-list li { top: 46%; width: calc(100% - 2 * var(--m)); }
  .pop { font-size: 2rem; }
  .steps-pics img { width: 44vw; }
  .steps-pics img.l { display: none; }
  .steps-pics img.r { right: var(--m); top: auto; bottom: 90px; width: 36vw; }
  .figures { min-height: 70svh; padding: 120px var(--m); }
  .figures-line { margin-left: 0; }
  .finder { grid-template-columns: 1fr; padding: 120px var(--m) 70svh; }
  .contact { min-height: auto; }
  .contact-bg { position: relative; height: 70svh; }
  .card { position: relative; top: auto; margin: -80px var(--m) 0; width: auto; max-width: none; transform: none; }
  .card .btn { min-height: 56px; }
  .inq-row { grid-template-columns: 1fr; }
  .contact::after { height: 80px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
  .steps-pics img, .btn, .process-row img, .pop, .pop .ch { transition: none !important; }
}
