/*
  탠덤 — 문서형 레이아웃.
  원칙: 카드와 둥근 모서리 없음. 구분은 괘선으로만. 강조색은 인주색 하나.
*/
/* 글꼴은 fonts/ 폴더에서 직접 제공함. 외부 CDN 의존 없음. */
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono/ibm-plex-mono-latin-500.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #55585e;
  --rule: #111111;
  --rule-soft: #d9d9d6;
  --seal: #d4351c;
  --wrap: 1180px;
  --serif: var(--sans); /* 제목도 고딕. 변수명은 제목용 글꼴을 뜻함 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; }
.nav .nav-cta:hover { background: var(--seal); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero-inner { position: relative; }
.kicker {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink-2); margin-bottom: 36px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 6.8vw, 92px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}
.hero h1 mark {
  background: none; color: inherit;
  box-shadow: inset 0 -0.14em 0 var(--seal);
}
/* 제목에서 한 덩어리로 읽혀야 하는 구절: 좁은 화면에서 중간에 끊기지 않게 함 */
.hero h1 .nb { white-space: nowrap; }
.br-m { display: none; }


.lead { margin-top: 44px; max-width: 600px; font-size: 19px; color: var(--ink-2); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.btn {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 30px;
  background: var(--ink); color: var(--paper);
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--seal); }

.arrow-link {
  display: inline-block; padding: 12px 0;
  font-size: 15px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { color: var(--seal); }

/* Figures */
.figure-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.figure-row > div { padding: 30px 24px 28px 0; display: flex; flex-direction: column; }
.figure-row > div + div { border-left: 1px solid var(--rule-soft); padding-left: 24px; }
.figure-row dd {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.05em;
}
.figure-row dd small { font-size: 0.34em; font-weight: 700; letter-spacing: 0; margin-left: 6px; }
.figure-row dt span { display: block; }
.figure-row dt { order: 2; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Section grid: label column + content column */
.block { padding: 104px 0 0; }
.grid { display: grid; grid-template-columns: 220px 1fr; gap: 0 40px; }
.label {
  font-family: var(--sans); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4;
  padding-top: 18px; border-top: 1px solid var(--rule);
  align-self: start; position: sticky; top: 84px;
}

/* Voices */
.voices li {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(20px, 2.3vw, 27px); line-height: 1.55; letter-spacing: -0.02em;
  padding: 26px 0; border-top: 1px solid var(--rule-soft);
}
.voices li:first-child { border-top-color: var(--rule); padding-top: 18px; }
.voices li::before { content: "\201C"; color: var(--seal); margin-right: 2px; }
.voices li::after { content: "\201D"; color: var(--seal); margin-left: 2px; }

/* Service menu */
.menu { border-top: 1px solid var(--rule); }
.menu-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 0 32px;
  padding: 34px 0 30px; border-bottom: 1px solid var(--rule-soft);
}
.menu-row:last-child { border-bottom-color: var(--rule); }
.menu-row h3 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.3; letter-spacing: -0.03em; }
.menu-body > p { color: var(--ink-2); max-width: 620px; }
.terms { margin-top: 14px; max-width: 620px; }
.terms li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.terms li + li { margin-top: 4px; }
.terms li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 1px; background: var(--ink-2); }
.rates { margin-top: 20px; }
.rates div {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; font-size: 15px;
}
.rates dt { white-space: nowrap; }
.rates dt span { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.rates div::before { content: ""; order: 1; flex: 1; border-bottom: 1px dotted #9b9b98; transform: translateY(-4px); }
.rates dd { order: 2; font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.rates .rate-open dd { color: var(--seal); font-weight: 500; font-size: 17px; }

.principle {
  margin-top: 44px; padding-left: 20px; border-left: 5px solid var(--seal);
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; letter-spacing: -0.03em;
}
/* 감리 상품 안에 둔 원칙 문장: 감리에만 해당하는 약속임을 위치로 보여 줌 */
.menu-body > .principle { margin-top: 28px; max-width: none; color: var(--ink); font-size: clamp(19px, 2vw, 24px); }
/* 서비스 구간 끝의 진행 방식 안내 */
.menu-note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* People */
.people { border-top: 1px solid var(--rule); }
.duo { margin: 0; padding: 34px 0 30px; border-bottom: 1px solid var(--rule-soft); }
.duo img { display: block; width: 100%; height: auto; filter: grayscale(1); }
.duo figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.person {
  display: grid; grid-template-columns: 240px 1fr; gap: 0 32px;
  padding: 34px 0 40px; border-bottom: 1px solid var(--rule-soft);
}
.person:last-child { border-bottom-color: var(--rule); }
.portrait {
  aspect-ratio: 4 / 5; background: #efefec;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: #9b9b98; letter-spacing: 0.1em;
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.person h3 { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; }
.person h3 .en { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-2); margin-left: 8px; }
.role { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.timeline { margin-top: 26px; border-top: 1px solid var(--rule-soft); }
/* 시기별 묶음: 왼쪽에 기간, 오른쪽에 제목 한 줄과 세부 줄 */
.timeline > li {
  display: grid; grid-template-columns: 84px 1fr; gap: 0 16px;
  padding: 14px 0 15px; border-bottom: 1px solid var(--rule-soft);
  font-size: 16px; line-height: 1.6;
}
.timeline time { font-family: var(--mono); font-size: 14px; color: var(--ink-2); padding-top: 2px; }
.timeline .era { font-weight: 600; }
.timeline .era-items { margin-top: 3px; }
.timeline .era-items li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.timeline .now time { color: var(--seal); font-family: var(--sans); font-weight: 700; }
.timeline .now .era { font-weight: 700; }
/* 성과: 한 번의 사건을 연도와 함께 모음 */
.timeline .feats time { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.timeline .feats .era-items { margin-top: 0; }
.timeline .feats .y { font-family: var(--mono); font-size: 13px; margin-right: 10px; }

.note { margin-top: 24px; max-width: 640px; color: var(--ink-2); }
.edu { margin-top: 14px; font-size: 14px; line-height: 1.7; }
.person .arrow-link { margin-top: 16px; }

/* Cases */
.cases { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; }
.case { padding: 34px 40px 40px 0; }
.case + .case { padding: 34px 0 40px 40px; border-left: 1px solid var(--rule-soft); }
.case h3 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.25; letter-spacing: -0.03em; }
.case header p { margin-top: 4px; color: var(--ink-2); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); }
.shots figcaption { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.spec { margin: 24px 0; border-top: 1px solid var(--rule-soft); }
.spec div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px;
}
.spec dt { color: var(--ink-2); }
.spec dd { font-family: var(--mono); font-size: 14px; text-align: right; }
.case > p { color: var(--ink-2); font-size: 16px; }

/* Contact */
.contact { margin-top: 120px; padding: 104px 0 96px; background: var(--ink); color: var(--paper); }
.contact h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.28; letter-spacing: -0.045em;
}
.contact-lead { margin-top: 24px; color: #b4b4b0; font-size: 18px; }
.contact-list { margin-top: 56px; border-top: 1px solid #55585e; max-width: 760px; }
.contact-list li {
  display: grid; grid-template-columns: 160px 1fr; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid #55585e;
}
.contact-list span { font-family: var(--mono); font-size: 13px; color: #b4b4b0; letter-spacing: 0.04em; }
.contact-list a {
  font-size: clamp(19px, 2.4vw, 26px); font-weight: 600;
  text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px;
}
.contact-list a::after { content: " \2192"; }
.contact-list a:hover { color: #ff7a63; }

/* Footer */
.site-footer { background: var(--ink); color: #8e8e8a; font-family: var(--mono); font-size: 12px; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #333;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { padding: 10px 0; text-underline-offset: 4px; }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .label { position: static; margin-bottom: 0; padding-bottom: 14px; border-top: 0; color: var(--seal); }
  .voices li:first-child { padding-top: 26px; }
  .figure-row { grid-template-columns: 1fr 1fr; }
  .figure-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure-row > div:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 56px; }
  .kicker { margin-bottom: 24px; font-size: 12px; }
  .br-m { display: inline; }
  .lead { margin-top: 28px; font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  /* 좁은 화면에서는 숫자 설명의 둘째 줄을 숨겨 네 칸의 높이를 맞춤 */
  .figure-row dt .more { display: none; }
  .figure-row > div { padding-top: 22px; padding-bottom: 20px; }
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
  .block { padding-top: 72px; }
  .menu-row, .person { grid-template-columns: 1fr; gap: 14px 0; }
  .portrait { max-width: 180px; }
  .cases { grid-template-columns: 1fr; }
  .case, .case + .case { padding: 28px 0 32px; border-left: 0; }
  .case + .case { border-top: 1px solid var(--rule-soft); }
  .contact { margin-top: 80px; padding: 72px 0 64px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .rates dt { white-space: normal; }
}
