/* =========================================================
   메인스(Maince) 스타일
   ---------------------------------------------------------
   1. 토큰
   2. 기본
   3. 레이아웃 · 공통 요소
   4. 상단 메뉴
   5. 홈 섹션
   6. 하위 페이지
   7. 하단 정보 영역
   8. 등장 효과
   9. 반응형
   ========================================================= */

/* ---------- 1. 토큰 ---------- */
:root {
  --charcoal: #202326;
  --red: #E34234;
  --ivory: #F4F1EA;
  --offwhite: #FCFBF8;
  --lime: #C8E64A;

  --charcoal-80: rgba(32, 35, 38, .8);
  --charcoal-60: rgba(32, 35, 38, .62);
  --charcoal-15: rgba(32, 35, 38, .14);
  --ivory-70: rgba(244, 241, 234, .72);
  --ivory-45: rgba(244, 241, 234, .45);
  --ivory-15: rgba(244, 241, 234, .14);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --header-h: 96px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1360px;
  --section-y: clamp(96px, 13vw, 200px);

  --fs-display: clamp(2.5rem, 6.6vw, 6.4rem);
  --fs-h1: clamp(2.2rem, 5.2vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 1.9rem);
  --fs-lead: clamp(1.1rem, 1.55vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--offwhite); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--charcoal); color: var(--offwhite);
  padding: 10px 16px; font-size: var(--fs-small);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 레이아웃 · 공통 요소 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; position: relative; }
.section--offwhite { background: var(--offwhite); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--charcoal); color: var(--ivory); }
.section--red { background: var(--red); color: var(--offwhite); }

/* 섹션 상단 표기: 번호 + 이름 */
.section-index {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  margin-bottom: clamp(40px, 6vw, 88px);
  padding-top: 18px; border-top: 1px solid var(--charcoal-15);
}
.section-index b { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.section--dark .section-index { border-top-color: var(--ivory-15); color: var(--ivory-70); }

.eyebrow {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  color: var(--red); margin-bottom: 24px;
}

.title-xl {
  font-size: var(--fs-h1); font-weight: 700; line-height: 1.2; letter-spacing: -.035em;
}
.title-lg {
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.24; letter-spacing: -.03em;
}
.lead {
  font-size: var(--fs-lead); line-height: 1.65; letter-spacing: -.01em; color: var(--charcoal-80);
}
.section--dark .lead { color: var(--ivory-70); }

.section-head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  align-items: end; margin-bottom: clamp(56px, 8vw, 120px);
}
.section-head .title-xl, .section-head .title-lg { grid-column: 1 / span 8; }
.section-head .lead { grid-column: 9 / span 4; }

/* 버튼 · 링크 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  font-size: 1rem; font-weight: 600; letter-spacing: -.005em;
  border: 1.5px solid currentColor; border-radius: 0;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--offwhite); }
.btn--dark:hover { background: transparent; color: var(--charcoal); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--offwhite); }
.btn--red:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn--line-light { color: var(--offwhite); }
.btn--line-light:hover { background: var(--offwhite); color: var(--charcoal); border-color: var(--offwhite); }
.btn--line-dark { color: var(--charcoal); }
.btn--line-dark:hover { background: var(--charcoal); color: var(--offwhite); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.text-link:hover { color: var(--red); }
.section--dark .text-link:hover { color: var(--red); }

.more-row { margin-top: clamp(48px, 6vw, 88px); }

/* 상태 표시 (라임은 이곳에만 제한적으로 사용) */
.status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; line-height: 1;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--charcoal-15); background: transparent; white-space: nowrap;
}
.status-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--charcoal-60);
}
.status-tag--active { background: var(--charcoal); color: var(--offwhite); border-color: var(--charcoal); }
.status-tag--active::before { background: var(--lime); }
.status-tag--muted::before { background: transparent; border: 1.5px solid var(--charcoal-60); width: 5px; height: 5px; }

/* ---------- 4. 상단 메뉴 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(252, 251, 248, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--charcoal-15); }
.header-inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 14px; height: 14px; background: var(--red); flex: none; }
.brand-name { font-size: 1.1875rem; letter-spacing: -.03em; }
.brand-en { font-size: .8125rem; font-weight: 600; color: var(--charcoal-60); letter-spacing: .01em; }

/* 공식 로고 (images/maince-logo.svg)
   - 로고 파일이 정상적으로 불러와지면 .brand 에 .has-logo 가 붙어
     [공식 로고 | 메인스] 구성으로 바뀝니다.
   - 불러오지 못하면 기존 텍스트 표기(■ 메인스 Maince)가 그대로 유지됩니다. */
.brand-logo { display: none; height: 76px; width: auto; flex: none; }
.brand.has-logo .brand-logo { display: block; }
.brand.has-logo .brand-mark,
.brand.has-logo .brand-en { display: none; }
.brand.has-logo { gap: 12px; }
.brand.has-logo .brand-name {
  font-size: 1rem; font-weight: 700; letter-spacing: -.02em;
  padding-left: 12px; border-left: 1px solid var(--charcoal-15); line-height: 1.2;
}
/* 하단(차콜 배경): 로고가 어두운 배경 위에 놓이지 않도록 아이보리 바탕 위에 표시 */
.brand--light.has-logo {
  background: var(--ivory); color: var(--charcoal);
  padding: 14px 20px; gap: 16px;
}
.brand--light.has-logo .brand-logo { height: 112px; }
.brand--light.has-logo .brand-name { font-size: 1.0625rem; padding-left: 16px; }

.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a {
  position: relative; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em;
  padding: 6px 0; transition: color .2s var(--ease);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav ul a:hover { color: var(--red); }
.site-nav ul a.is-active { color: var(--red); font-weight: 700; }
.site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav-mail { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

main { display: block; }
main:focus { outline: none; }

/* ---------- 5. 홈 섹션 ---------- */

/* 5-1 첫 화면 */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + clamp(48px, 9vh, 120px)) 0 clamp(28px, 4vh, 48px);
  background: var(--offwhite);
}
.hero .container { flex: 1; display: flex; flex-direction: column; }
.hero-label {
  font-size: var(--fs-small); font-weight: 600; color: var(--charcoal-60);
  display: flex; gap: 12px; align-items: center;
}
.hero-label::before { content: ""; width: 28px; height: 1.5px; background: var(--red); }
.hero-title {
  margin-top: auto; padding-top: 48px;
  font-size: var(--fs-display); font-weight: 800; line-height: 1.14; letter-spacing: -.045em;
  max-width: 15.5em;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-foot {
  margin-top: clamp(40px, 7vh, 88px);
  padding-top: 24px; border-top: 1px solid var(--charcoal-15);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero-sub { font-size: var(--fs-lead); line-height: 1.6; color: var(--charcoal-80); letter-spacing: -.01em; }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; color: var(--charcoal-60); flex: none;
}
.scroll-cue-line { width: 1.5px; height: 44px; background: var(--charcoal-15); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--red); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }

/* 5-2 우리가 생각하는 방식 */
.thinking-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(72px, 10vw, 150px); }
.thinking-head .title-xl { grid-column: 1 / span 7; }
.thinking-head .lead { grid-column: 8 / span 5; align-self: end; font-size: clamp(1.25rem, 2vw, 1.75rem); color: var(--ivory); font-weight: 500; line-height: 1.5; }

.principle-list { border-top: 1px solid var(--ivory-15); }
.principle {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(40px, 5.5vw, 80px) 0; border-bottom: 1px solid var(--ivory-15);
}
.principle-num {
  grid-column: 1 / span 3;
  font-size: clamp(3.5rem, 9vw, 8.5rem); font-weight: 800; line-height: .9; letter-spacing: -.05em;
  color: var(--red); font-variant-numeric: tabular-nums;
}
.principle-body { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(9, 1fr); gap: 24px; }
.principle-title { grid-column: 1 / span 5; font-size: var(--fs-h3); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.principle-text { grid-column: 6 / span 4; color: var(--ivory-70); }
.principle-text p + p { margin-top: .6em; }

/* 5-3 우리가 만드는 방식 */
.making { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.making-aside { grid-column: 1 / span 5; }
.making-aside-inner { position: sticky; top: calc(var(--header-h) + 48px); }
.making-aside .title-xl { margin-bottom: 56px; }
.making-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font-weight: 700; }
.making-flow li { display: inline-flex; align-items: baseline; gap: 6px; transition: color .3s var(--ease), opacity .3s var(--ease); color: var(--charcoal-60); }
.making-flow .flow-num { font-size: .75rem; font-variant-numeric: tabular-nums; }
.making-flow .flow-word { font-size: 1.25rem; letter-spacing: -.02em; }
.making-flow li.is-past { color: var(--charcoal); }
.making-flow li.is-active { color: var(--red); }
.making-flow .flow-arrow { color: var(--charcoal-15); font-weight: 400; }

.making-track { grid-column: 7 / span 6; position: relative; padding-left: clamp(36px, 4vw, 64px); }
.making-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--charcoal-15); }
.making-line-fill {
  position: absolute; inset: 0; background: var(--red);
  transform-origin: top; transform: scaleY(0);
}
.step {
  position: relative; min-height: 58vh;
  padding: 8px 0 clamp(64px, 9vw, 120px);
  display: flex; flex-direction: column; justify-content: flex-start;
  opacity: .32; transition: opacity .45s var(--ease);
}
.step:last-child { min-height: 0; padding-bottom: 8px; }
.step.is-active, .step.is-past { opacity: 1; }
.step.is-past { opacity: .55; }
.step-dot {
  position: absolute; left: calc(-1 * clamp(36px, 4vw, 64px) - 6px); top: 18px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--ivory); border: 1.5px solid var(--charcoal-60);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.step.is-active .step-dot, .step.is-past .step-dot { background: var(--red); border-color: var(--red); }
.step-num { font-size: var(--fs-small); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.step-word {
  font-size: clamp(3.5rem, 8.4vw, 8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.05em;
  margin: 10px 0 22px;
}
.step-text { font-size: var(--fs-lead); line-height: 1.6; max-width: 22em; color: var(--charcoal-80); }

/* 5-4 프로젝트 */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.project-card {
  display: flex; flex-direction: column;
  min-height: clamp(340px, 34vw, 480px);
  padding: clamp(28px, 3.2vw, 48px);
  background: var(--ivory); border: 1px solid var(--charcoal-15);
  transition: border-color .3s var(--ease);
}
.project-card:hover { border-color: var(--charcoal); }
.project-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.project-label { font-size: var(--fs-small); font-weight: 700; font-variant-numeric: tabular-nums; }
.project-name {
  margin-top: auto; padding-top: 56px;
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.15; letter-spacing: -.04em;
}
.project-placeholder { color: var(--charcoal-15); -webkit-text-stroke: 0; }
.project-body { margin-top: 20px; font-size: 1.0625rem; color: var(--charcoal-80); }
.project-summary { margin-top: 12px; font-weight: 600; }
.project-problem { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--charcoal-15); }
.project-problem span { font-size: .8125rem; font-weight: 700; color: var(--red); }
.project-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--charcoal-15); font-size: var(--fs-small); }
.project-note { color: var(--charcoal-60); }
.project-link { font-weight: 700; }
.project-link:hover { color: var(--red); }

/* 5-5 우리가 중요하게 생각하는 것 */
.values-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(56px, 8vw, 120px); }
.values-head .title-xl { grid-column: 1 / span 9; }
.value-list { border-top: 1px solid var(--ivory-15); }
.value {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(44px, 6vw, 96px) 0; border-bottom: 1px solid var(--ivory-15);
}
.value-num {
  grid-column: 1 / span 2; font-size: var(--fs-small); font-weight: 700; color: var(--red);
  font-variant-numeric: tabular-nums; padding-top: .9em;
}
.value-text {
  grid-column: 3 / span 10;
  font-size: clamp(1.75rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.3; letter-spacing: -.035em;
  color: var(--ivory);
}

/* 5-6 사람들 */
.people-lead-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.people-lead-row p { grid-column: 1 / span 8; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
.people-lead-row p::before { content: ""; display: inline-block; width: 28px; height: 1.5px; background: var(--red); vertical-align: middle; margin-right: 14px; }

.role-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--charcoal-15); border-left: 1px solid var(--charcoal-15);
}
.role {
  min-height: clamp(180px, 18vw, 260px); padding: clamp(24px, 2.6vw, 40px);
  border-right: 1px solid var(--charcoal-15); border-bottom: 1px solid var(--charcoal-15);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.role:hover { background: var(--charcoal); color: var(--ivory); }
.role:hover .role-num { color: var(--red); }
.role-num { font-size: var(--fs-small); font-weight: 700; color: var(--charcoal-60); font-variant-numeric: tabular-nums; }
.role-text { font-size: clamp(1.4rem, 2.3vw, 2.15rem); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }

.people-closing {
  margin-top: clamp(64px, 9vw, 140px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.people-closing p {
  grid-column: 3 / span 10;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.5; letter-spacing: -.025em;
}
.people-closing mark { background: none; color: var(--red); }

/* 구성원 카드 (향후 추가) */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.member-photo {
  aspect-ratio: 4 / 5; background: var(--ivory); border: 1px solid var(--charcoal-15);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 18px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initial { font-size: 4rem; font-weight: 800; color: var(--charcoal-15); }
.member-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.member-role { font-size: var(--fs-small); color: var(--red); font-weight: 600; margin-top: 4px; }
.member-intro { margin-top: 10px; font-size: .9375rem; color: var(--charcoal-80); }

/* 5-7 채용 */
.careers-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.careers-grid .title-xl { grid-column: 1 / span 6; }
.careers-grid .careers-panel { grid-column: 7 / span 6; }
.job-empty {
  padding: clamp(28px, 3.2vw, 48px); background: var(--ivory); border: 1px solid var(--charcoal-15);
}
.job-empty-title { margin: 28px 0 16px; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.025em; line-height: 1.35; }
.job-empty-text { color: var(--charcoal-80); margin-bottom: 32px; }

.job-list { border-top: 1px solid var(--charcoal); }
.job-card { border-bottom: 1px solid var(--charcoal-15); }
.job-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 28px 0;
}
.job-card summary::-webkit-details-marker { display: none; }
.job-title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.025em; flex: 1; }
.job-toggle { font-size: 1.75rem; font-weight: 300; transition: transform .25s var(--ease); }
.job-card details[open] .job-toggle { transform: rotate(45deg); color: var(--red); }
.job-detail { padding: 0 0 36px; display: grid; gap: 24px; max-width: 760px; }
.job-role { font-size: var(--fs-lead); }
.job-block h4 { font-size: var(--fs-small); color: var(--red); margin-bottom: 8px; }
.job-block ul li { position: relative; padding-left: 16px; }
.job-block ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1.5px; background: var(--charcoal); }

/* 5-8 마지막 메시지 */
.final { padding: clamp(120px, 16vw, 240px) 0; }
.final-title {
  font-size: var(--fs-display); font-weight: 800; line-height: 1.14; letter-spacing: -.045em;
  max-width: 14em;
}
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(48px, 6vw, 88px); }
.final .btn--dark:hover { background: var(--offwhite); color: var(--charcoal); border-color: var(--offwhite); }

/* ---------- 6. 하위 페이지 ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(72px, 12vw, 180px)) 0 clamp(72px, 9vw, 140px);
  background: var(--offwhite);
}
.page-hero--ivory { background: var(--ivory); }
.page-title {
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.18; letter-spacing: -.04em; max-width: 16em;
}
.page-lead { margin-top: clamp(28px, 3.5vw, 48px); font-size: var(--fs-lead); color: var(--charcoal-80); max-width: 36em; line-height: 1.65; }

/* 회사소개 */
.statement {
  font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.38; letter-spacing: -.03em; max-width: 22em;
}
.statement .accent { color: var(--red); }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.split-label { grid-column: 1 / span 4; font-size: var(--fs-small); font-weight: 700; padding-top: 6px; }
.split-label b { color: var(--red); margin-right: 10px; font-variant-numeric: tabular-nums; }
.split-body { grid-column: 5 / span 8; }
.split-body p + p { margin-top: 1.1em; }
.split-body .lead { color: inherit; }
.split + .split { margin-top: clamp(72px, 9vw, 140px); }

.about-forms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.about-forms li {
  font-size: 1rem; font-weight: 600; padding: 10px 18px; border: 1px solid var(--charcoal-15); border-radius: 999px;
}

.cycle-list { border-top: 1px solid var(--charcoal-15); }
.cycle-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--charcoal-15);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: -.02em;
}
.cycle-list b { color: var(--red); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

/* 다른 페이지로 이어지는 링크 묶음 */
.next-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--charcoal-15); }
.next-links a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 32px 28px 32px 0; border-bottom: 1px solid var(--charcoal-15);
  font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.025em;
  transition: color .2s var(--ease);
}
.next-links a + a { padding-left: 28px; border-left: 1px solid var(--charcoal-15); }
.next-links a span { font-size: var(--fs-small); color: var(--red); font-weight: 700; }
.next-links a:hover { color: var(--red); }

/* 리더십 */
.leader-list { border-top: 1px solid var(--charcoal-15); }
.leader-item {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--charcoal-15);
}
.leader-num { grid-column: 1 / span 2; font-size: var(--fs-small); font-weight: 700; color: var(--red); padding-top: .5em; }
.leader-item p { grid-column: 3 / span 10; font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.45; letter-spacing: -.025em; }
.section--dark .leader-list, .section--dark .leader-item { border-color: var(--ivory-15); }

.quote-block {
  margin-top: clamp(64px, 9vw, 140px);
  padding: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px);
  background: var(--red); color: var(--offwhite);
}
.quote-block p { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.32; letter-spacing: -.035em; max-width: 20em; }
.quote-label { display: block; font-size: var(--fs-small); font-weight: 700; margin-bottom: 28px; opacity: .85; }

/* 문의하기 */
.contact-block { border-top: 1px solid var(--charcoal); padding-top: clamp(32px, 4vw, 56px); }
.contact-label { font-size: var(--fs-small); font-weight: 700; color: var(--red); margin-bottom: 18px; }
.mail-link {
  display: inline-block; font-size: clamp(1.9rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1;
  border-bottom: 3px solid var(--charcoal); padding-bottom: 6px; word-break: break-all;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mail-link:hover { color: var(--red); border-color: var(--red); }
.contact-topics { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--charcoal-15); }
.contact-topics li { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--charcoal-15); font-weight: 600; font-size: 1.125rem; }
.contact-topics li span { display: block; font-size: .75rem; color: var(--charcoal-60); font-variant-numeric: tabular-nums; margin-bottom: 6px; }

/* 프로젝트 상세 */
.detail-status { margin: 32px 0; }
.detail-list { margin: 48px 0; border-top: 1px solid var(--charcoal-15); max-width: 900px; }
.detail-list div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--charcoal-15); }
.detail-list dt { font-size: var(--fs-small); font-weight: 700; color: var(--red); }

/* ---------- 7. 하단 정보 영역 ---------- */
.site-footer { background: var(--charcoal); color: var(--ivory); padding: clamp(72px, 9vw, 128px) 0 40px; }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.footer-brand { grid-column: 1 / span 6; }
.brand--light .brand-name { font-size: 1.5rem; }
.footer-vision { margin-top: 28px; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.55; letter-spacing: -.02em; color: var(--ivory); max-width: 22em; }
.footer-cols { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-heading { font-size: .8125rem; font-weight: 700; color: var(--ivory-45); margin-bottom: 18px; letter-spacing: .01em; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a, .footer-mail { font-size: .9375rem; color: var(--ivory); transition: color .2s var(--ease); }
.footer-menu a:hover, .footer-mail:hover { color: var(--red); }
.footer-mail { border-bottom: 1px solid var(--ivory-45); padding-bottom: 2px; }
.footer-bottom {
  margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--ivory-15);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--ivory-45);
}
/* 법인 정보: data.js 의 company 값이 채워지면 이 영역에 표시됩니다. */
.footer-company { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-company div { display: flex; gap: 6px; }
.footer-company dt::after { content: ""; }

/* ---------- 8. 등장 효과 (절제) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 9. 반응형 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--charcoal); color: var(--ivory);
    flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: 32px var(--gutter) 40px;
    visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--offwhite); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--ivory-15); }
  .site-nav ul a { display: block; padding: 18px 0; font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a.is-active { color: var(--red); }
  .site-nav-mail { display: inline-block; margin-top: 40px; font-size: 1rem; color: var(--ivory-70); border-bottom: 1px solid var(--ivory-45); align-self: flex-start; }
}

@media (max-width: 960px) {
  .section-head .title-xl, .section-head .title-lg, .section-head .lead,
  .thinking-head .title-xl, .thinking-head .lead,
  .values-head .title-xl, .people-lead-row p,
  .careers-grid .title-xl, .careers-grid .careers-panel,
  .split-label, .split-body, .footer-brand, .footer-cols { grid-column: 1 / -1; }

  .section-head { gap: 28px; }
  .thinking-head { gap: 32px; }
  .careers-grid { gap: 48px; }
  .split { gap: 20px; }

  .principle { grid-template-columns: 1fr; gap: 20px; }
  .principle-num, .principle-body { grid-column: 1 / -1; }
  .principle-body { grid-template-columns: 1fr; gap: 16px; }
  .principle-title, .principle-text { grid-column: 1 / -1; }

  .making { gap: 56px; }
  .making-aside, .making-track { grid-column: 1 / -1; }
  .making-aside-inner { position: static; }
  .making-aside .title-xl { margin-bottom: 32px; }
  .step { min-height: 0; padding-bottom: 72px; }

  .value { grid-template-columns: 1fr; gap: 14px; }
  .value-num, .value-text { grid-column: 1 / -1; padding-top: 0; }

  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .people-closing p { grid-column: 1 / -1; }

  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-item { grid-template-columns: 1fr; gap: 8px; }
  .leader-num, .leader-item p { grid-column: 1 / -1; padding-top: 0; }

  .contact-topics { grid-template-columns: repeat(2, 1fr); }
  .next-links { grid-template-columns: 1fr; }
  .next-links a, .next-links a + a { padding: 28px 0; border-left: 0; gap: 20px; }

  .footer-top { gap: 56px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; --fs-body: 1rem; }
  .brand-en { display: none; }
  .brand-logo { height: 30px; }
  .brand.has-logo { gap: 10px; }
  .brand.has-logo .brand-name { font-size: .9375rem; padding-left: 10px; }
  .brand--light.has-logo .brand-logo { height: 54px; }
  .hero-title br, .final-title br, .page-title br { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-sub br { display: none; }
  .scroll-cue { align-self: flex-start; flex-direction: row; }
  .scroll-cue-line { width: 44px; height: 1.5px; }
  .scroll-cue-line::after { width: 40%; height: 100%; animation-name: cue-x; }
  @keyframes cue-x { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(260%); } }

  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 300px; }
  .role-grid { grid-template-columns: 1fr; }
  .role { min-height: 0; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 20px; padding: 24px 20px; }
  .final-actions .btn { flex: 1 1 100%; }
  .contact-topics { grid-template-columns: 1fr 1fr; }
  .detail-list div { grid-template-columns: 1fr; gap: 6px; }
  .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .member-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
