/* ==========================================================================
   온기 회사 소개 페이지 — 스타일시트
   구성: 1) 디자인 토큰  2) 기본/리셋  3) 공통 요소  4) 헤더  5) 히어로
        6) 섹션별  7) 푸터  8) 애니메이션  9) 반응형
   색상/폰트만 바꾸고 싶다면 1) 디자인 토큰 영역만 수정하면 됩니다.
   ========================================================================== */

/* ============ 1) 디자인 토큰 ============ */
:root {
  /* 브랜드 색 — 이 두 값만 바꾸면 전체 톤이 바뀝니다 */
  --brand:        #256e42;   /* 온기 그린 */
  --brand-dark:   #1a5230;
  --accent-warm:  #d98324;   /* 수확·햇살을 뜻하는 보조색 (강조용) */

  /* 라이트 모드 팔레트 — 살짝 따뜻한 무채색 */
  --bg:           #ffffff;
  --bg-alt:       #f6f8f4;
  --bg-elev:      #ffffff;
  --text:         #17201a;
  --text-soft:    #4f5a52;
  --text-faint:   #7e887f;
  --border:       #e3e8e2;
  --border-soft:  #eef1ec;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .05);

  /* 레이아웃 */
  --container: 1140px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --section-y: 104px;
  --header-h: 68px;

  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Malgun Gothic", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 다크 모드 — data-theme="dark" 일 때 토큰만 덮어씁니다 */
[data-theme="dark"] {
  --brand:        #6ec48d;   /* 어두운 배경에서는 밝게 올려야 읽힙니다 */
  --brand-dark:   #57ad76;
  --accent-warm:  #eba54a;

  --bg:           #10160f;
  --bg-alt:       #161d15;
  --bg-elev:      #1b241a;
  --text:         #eef3ec;
  --text-soft:    #adbaad;
  --text-faint:   #7f8c80;
  --border:       #2b382a;
  --border-soft:  #222d21;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
}

/* ============ 2) 기본 / 리셋 ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 앵커 이동 시 고정 헤더에 제목이 가리지 않도록 */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
a.underline { text-decoration: underline; text-underline-offset: 2px; }

ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; }

/* 키보드 포커스만 표시 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

/* 스크린리더 사용자용 본문 바로가기 */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ============ 3) 공통 요소 ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-desc { color: var(--text-soft); font-size: 1.03rem; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}

.accent { color: var(--brand); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .97rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text-faint); }

.btn-invert { background: #fff; color: #12181f; }
.btn-invert:hover { background: #eef2f8; color: #12181f; }

/* 아이콘 버튼 */
.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; color: var(--text-soft); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }

/* 테마에 따라 해/달 아이콘 교체 */
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ============ 4) 헤더 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* color-mix 미지원 브라우저 대비 */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-mark rect { fill: var(--brand); }
.logo-mark .stem { stroke: #fff; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.logo-mark .leaf-r { fill: #fff; }
.logo-mark .leaf-l { fill: #fff; opacity: .72; }
.logo-text { font-size: 1.14rem; letter-spacing: -.02em; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: .94rem; font-weight: 500;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav a.active { color: var(--brand); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* 모바일 햄버거 */
.nav-toggle {
  display: none;
  width: 38px; height: 38px; padding: 9px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 5) 히어로 ============ */
.hero { position: relative; padding-block: 96px 112px; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 82% 8%,  color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(620px 460px at 8%  92%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 72%);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .hero-bg { background: linear-gradient(160deg, var(--bg-alt), var(--bg)); }
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 64px;
}
.hero-copy { max-width: 580px; }
.lead { font-size: 1.11rem; color: var(--text-soft); margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 히어로 오른쪽 생산 이력 카드 (실제 상품 사진으로 교체해도 좋습니다) */
.hero-visual { display: flex; justify-content: center; }

.trace-card {
  width: 100%; max-width: 400px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.trace-head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.trace-badge {
  display: inline-block; margin-bottom: 8px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
}
.trace-head strong { display: block; font-size: 1.02rem; }

/* 세로 타임라인 — 점을 선으로 잇습니다 */
.trace-steps { padding: 26px 22px 28px; }
.trace-steps li {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 20px;
}
.trace-steps li:last-child { padding-bottom: 0; }
/* 점과 점 사이를 잇는 선 (마지막 항목 제외) */
.trace-steps li:not(:last-child)::before {
  content: ""; position: absolute;
  left: 5px; top: 16px; bottom: 4px; width: 2px;
  background: var(--border);
}
.ts-dot {
  flex: none; width: 12px; height: 12px; margin-top: 4px;
  border: 2px solid var(--border); border-radius: 50%;
  background: var(--bg-elev);
  position: relative; z-index: 1;
}
.trace-steps li.done .ts-dot { border-color: var(--brand); background: var(--brand); }
.trace-steps li div { font-size: .93rem; line-height: 1.5; }
.trace-steps small {
  display: block; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; color: var(--brand); margin-bottom: 2px;
}

/* ============ 6) 섹션별 ============ */

/* -- 회사소개 -- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  padding: 34px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.value-num {
  font-size: .82rem; font-weight: 900; letter-spacing: .1em;
  color: var(--brand); margin-bottom: 14px;
}
.value-card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* -- 서비스 -- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px 32px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .service-icon { background: var(--bg-alt); }
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card > p { color: var(--text-soft); font-size: .95rem; }

.service-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.service-list li {
  position: relative; padding-left: 20px;
  font-size: .9rem; color: var(--text-soft); line-height: 2;
}
.service-list li::before {
  content: ""; position: absolute; left: 2px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* -- 생산과정 (5단계 흐름) -- */
.process-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; counter-reset: step;
}
.process-flow li {
  position: relative;
  padding: 30px 20px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev);
  text-align: center;
}
/* 카드 사이를 잇는 가로 선 */
.process-flow li:not(:last-child)::after {
  content: ""; position: absolute;
  right: -21px; top: 50%; width: 22px; height: 2px;
  background: var(--border);
}
.pf-num {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: .95rem; font-weight: 900;
}
.process-flow h3 { font-size: 1rem; margin-bottom: 6px; }
.process-flow p { font-size: .87rem; color: var(--text-soft); margin: 0; }

/* -- 실적 -- */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden;
}
.stat { padding: 40px 24px; text-align: center; border-right: 1px solid var(--border-soft); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: .9rem; color: var(--text-soft); margin-bottom: 10px; }
.stat dd {
  margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900;
  letter-spacing: -.03em; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat .unit { font-size: .55em; margin-left: 3px; }

/* -- 고객사 & 후기 -- */
/* 거래처를 늘리거나 줄이면 열 개수(repeat 값)도 함께 맞춰 주세요 */
.client-logos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-bottom: 64px;
}
.client-logos li {
  display: grid; place-items: center; min-height: 76px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 700; font-size: .9rem; color: var(--text-faint);
  text-align: center;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.client-logos li:hover { color: var(--text); border-color: var(--text-faint); }

/* 후기가 1~2개일 때 기준. 개수를 더 늘리면 max-width 를 키우거나 없애세요 */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 760px; margin-inline: auto;
}
.testimonial {
  margin: 0; padding: 34px 30px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg);
}
.testimonial blockquote {
  margin: 0 0 22px; padding: 0;
  font-size: 1.02rem; line-height: 1.8;
}
.testimonial blockquote::before { content: "\201C"; color: var(--brand); font-weight: 900; margin-right: 2px; }
.testimonial blockquote::after  { content: "\201D"; color: var(--brand); font-weight: 900; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .88rem; }
.testimonial figcaption strong { font-size: .95rem; }
.testimonial figcaption span { color: var(--text-faint); }

/* -- 문의 -- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 64px; align-items: start;
}
.contact-info .section-desc { margin-bottom: 32px; }

.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-list .ci {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-alt); color: var(--brand);
}
.contact-list .ci svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list li > span:last-child { display: flex; flex-direction: column; font-size: .96rem; }
.contact-list small { font-size: .78rem; color: var(--text-faint); }

/* 폼 */
.contact-form {
  padding: 36px 32px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-elev); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: .89rem; font-weight: 700; }
.req { color: #e5484d; }

.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8797' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px; cursor: pointer;
}

.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.error { margin: 6px 0 0; font-size: .82rem; color: #e5484d; min-height: 0; }

.field-check { margin-top: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; font-size: .88rem; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin: 3px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }

.form-status { margin: 14px 0 0; font-size: .89rem; text-align: center; min-height: 1.4em; }
.form-status.ok   { color: #1a9e5f; font-weight: 700; }
.form-status.fail { color: #e5484d; font-weight: 700; }

/* -- 하단 CTA -- */
.cta-band { padding-block: 72px; background: var(--brand); color: #fff; }
/* 다크 모드에서는 --brand 가 밝아지므로 흰 글씨가 안 읽힙니다. 배경을 따로 지정 */
[data-theme="dark"] .cta-band { background: #1c5636; color: #eef3ec; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0; opacity: .9; }

/* ============ 7) 푸터 ============ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 48px; padding-block: 64px 48px;
}
.footer-brand p { margin-top: 14px; color: var(--text-soft); font-size: .93rem; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-nav h3 { font-size: .87rem; letter-spacing: .04em; margin-bottom: 14px; }
.footer-nav a { color: var(--text-soft); font-size: .91rem; line-height: 2.1; }
.footer-nav a:hover { color: var(--brand); }

.footer-bottom { padding-block: 26px 34px; border-top: 1px solid var(--border); }
.biz-info { font-size: .82rem; color: var(--text-faint); line-height: 1.9; }
.footer-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 14px;
}
.footer-meta p { margin: 0; font-size: .84rem; color: var(--text-faint); }
.footer-meta ul { display: flex; gap: 20px; }
.footer-meta a { font-size: .84rem; color: var(--text-soft); }

/* 맨 위로 버튼 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-elev); color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 8) 애니메이션 ============ */
/* 스크롤 진입 시 나타나는 요소 — JS가 .in 을 붙입니다 */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* 같은 그룹 안에서 순차 등장 */
.value-grid .reveal:nth-child(2),
.service-grid .reveal:nth-child(2),
.testimonials .reveal:nth-child(2) { transition-delay: .1s; }
.value-grid .reveal:nth-child(3),
.service-grid .reveal:nth-child(3) { transition-delay: .2s; }

.process-flow .reveal:nth-child(2) { transition-delay: .08s; }
.process-flow .reveal:nth-child(3) { transition-delay: .16s; }
.process-flow .reveal:nth-child(4) { transition-delay: .24s; }
.process-flow .reveal:nth-child(5) { transition-delay: .32s; }

.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero-visual { transition-delay: .2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 애니메이션을 원치 않는 사용자 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 9) 반응형 ============ */
@media (max-width: 1024px) {
  :root { --section-y: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  .hero-visual { order: -1; }
  .value-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  /* 5단계가 한 줄에 안 들어가면 자연스럽게 줄바꿈, 연결선은 숨김 */
  .process-flow { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .process-flow li:not(:last-child)::after { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  /* 모바일에서는 내비를 전체 화면 패널로 */
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0;
    padding: 28px var(--gutter);
    background: var(--bg);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 15px 12px; font-size: 1.05rem; border-radius: var(--radius-sm); }

  .service-grid, .testimonials { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; --section-y: 64px; }
  .hero { padding-block: 56px 76px; }
  .section-head { margin-bottom: 40px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }
  .value-card, .service-card, .testimonial { padding: 26px 22px; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }

  /* 모바일에서는 단계를 세로로 쌓고 번호를 왼쪽에 둡니다 */
  .process-flow { grid-template-columns: 1fr; gap: 12px; }
  .process-flow li {
    display: grid; grid-template-columns: 34px 1fr;
    align-items: start; gap: 4px 14px;
    padding: 18px 20px; text-align: left;
  }
  .pf-num { margin: 0; grid-row: span 2; }
  .process-flow h3 { margin: 4px 0 2px; }

  .btn { width: 100%; }
  .hero-btns { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; }
}

/* 인쇄용 — 불필요한 UI 제거 */
@media print {
  .site-header, .to-top, .cta-band, .contact-form, .hero-visual { display: none; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
