/* ═══════════════════════════════════════════════
   DIEN BREAD · BREAD i — 회사 홈페이지
   디자인 소스: ../DESIGN.md (CI 팔레트 기준)
   ═══════════════════════════════════════════════ */

:root {
  --bg: #FFFFFF;
  --surface: #F2F4F7;
  --text: #0B1D3A;
  --muted: #5B6B82;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #FF8A00;
  --navy: #0B1D3A;
  --navy-soft: #12294D;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --footer-text: #B8C4D6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --pill: 9999px;

  --container: 1200px;

  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 640ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 1px 2px rgba(11, 29, 58, 0.05), 0 8px 24px rgba(11, 29, 58, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(11, 29, 58, 0.06), 0 16px 40px rgba(11, 29, 58, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* 고정 헤더에 앵커 대상이 가리지 않도록 */
section[id] { scroll-margin-top: 72px; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ── 공통 타이포 ─────────────────────────── */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: 0.22em;
}
.eyebrow-light { color: #7EA4F5; }

.section { padding: 112px 0; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── 버튼 ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary { background: var(--navy); color: #FFFFFF !important; }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-1px); }

.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 0.875rem; }

/* ── 헤더 ─────────────────────────────────── */
/* 히어로 위에서는 투명하게 얹히고, 스크롤하면 흰 바로 굳는다 */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(11, 29, 58, 0.06);
}

/* 투명 상태 = 어두운 사진 위 → 흰 글자 */
.site-header:not(.is-scrolled) .brand-mark { color: #FFFFFF; }
.site-header:not(.is-scrolled) .brand-mark em { color: #8FB4FF; }
.site-header:not(.is-scrolled) .gnb > a:not(.btn) { color: rgba(255, 255, 255, 0.92); }
.site-header:not(.is-scrolled) .gnb > a:not(.btn):hover { color: #FFFFFF; }
.site-header:not(.is-scrolled) .gnb .btn-primary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}
.site-header:not(.is-scrolled) .gnb .btn-primary:hover { background: rgba(255, 255, 255, 0.24); }
.site-header:not(.is-scrolled) .nav-toggle span { background: #FFFFFF; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { text-decoration: none; }

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-mark em {
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--primary);
}

.gnb {
  display: flex;
  align-items: center;
  gap: 34px;
}
.gnb > a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.gnb > a:not(.btn):hover { color: var(--primary); }
.gnb > a:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

/* ── 히어로 ───────────────────────────────── */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  /* flex 로 두면 .container 가 콘텐츠 폭으로 축소돼 좌측 정렬선이 어긋난다 */
  display: grid;
  align-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 스톡 사진을 브랜드 톤으로 묶는다 — 채도를 낮추고 네이비로 살짝 물들임 */
  filter: saturate(0.55) contrast(1.05) brightness(0.82);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 29, 58, 0.94) 0%, rgba(11, 29, 58, 0.78) 42%, rgba(11, 29, 58, 0.34) 100%),
    linear-gradient(180deg, rgba(11, 29, 58, 0.5) 0%, transparent 30%);
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: 132px;
  padding-bottom: 150px;
}

.hero-copy { max-width: 680px; }

.hero .eyebrow { color: #8FB4FF; }
.hero .eyebrow::before { background: var(--accent); }

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(11, 29, 58, 0.4);
}
.hero-title em {
  font-style: normal;
  color: #FFB55C;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(11, 29, 58, 0.5);
}

.hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pill);
  padding: 6px 15px;
  backdrop-filter: blur(6px);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero .btn-primary { background: #FFFFFF; color: var(--navy) !important; }
.hero .btn-primary:hover { background: #EAF0FA; }
.hero .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

/* 스크롤 유도 — 얇은 세로선이 반복해 흘러내린다 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  width: 22px;
  height: 44px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ── Proof 스트립 ─────────────────────────── */
.proof { background: var(--bg); }

.proof-grid {
  position: relative;
  z-index: 2;
  margin-top: -68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(11, 29, 58, 0.06), 0 24px 60px rgba(11, 29, 58, 0.16);
  padding: 40px 24px;
}

.proof-item {
  text-align: center;
  position: relative;
}
.proof-item + .proof-item::before {
  content: "";
  position: absolute;
  left: 0; top: 14%;
  height: 72%;
  width: 1px;
  background: var(--border);
}

.proof-num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.proof-label {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── 솔루션 (사진 타일) ───────────────────── */
.solutions { background: var(--bg); }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sol-tile {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
}

.sol-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.9);
  transition: transform var(--dur-slow) var(--ease);
}
.sol-tile:hover .sol-photo { transform: scale(1.05); }

/* 하단으로 갈수록 짙어지는 스크림 — 흰 카드 없이 글자를 읽히게 한다 */
.sol-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(11, 29, 58, 0.1) 0%,
    rgba(11, 29, 58, 0.62) 52%,
    rgba(11, 29, 58, 0.93) 100%);
}

.sol-body { padding: 28px 26px 30px; color: #FFFFFF; }

.sol-index {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.sol-tile h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.sol-refs {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #A9C6FF;
  margin-bottom: 6px;
}

.sol-desc { font-size: 0.9063rem; color: rgba(255, 255, 255, 0.78); }

/* ── 프로젝트 ─────────────────────────────── */
.prj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.prj-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  background: var(--bg);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.prj-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.prj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.prj-domain {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--pill);
}
.prj-card[data-domain="tax"] .prj-domain { color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.prj-card[data-domain="factory"] .prj-domain { color: #C56A00; background: rgba(255, 138, 0, 0.12); }
.prj-card[data-domain="data"] .prj-domain { color: var(--navy); background: rgba(11, 29, 58, 0.08); }

.prj-period { font-size: 0.8125rem; color: var(--muted); }

.prj-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.prj-desc {
  font-size: 0.9688rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.prj-points {
  list-style: none;
  margin-bottom: 20px;
}
.prj-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9063rem;
  margin-bottom: 6px;
}
.prj-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.prj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.prj-stack span {
  font-size: 0.7813rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--pill);
  padding: 4px 12px;
}

/* ── 일하는 방식 (다크 밴드) ───────────────── */
.process {
  position: relative;
  color: #FFFFFF;
  overflow: hidden;
  background: var(--navy);
}

.process-bg {
  position: absolute;
  inset: 0;
  background: url("../img/process-team.jpg") center / cover no-repeat;
  opacity: 0.1;
  filter: saturate(0.3);
}
.process-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.35) 0%, rgba(11, 29, 58, 0.75) 100%);
}

.process-inner { position: relative; }

.process .section-title { color: #FFFFFF; }
.process .section-sub { color: #B8C4D6; }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  margin-bottom: 56px;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  backdrop-filter: blur(4px);
}
.step + .step::before {
  content: "→";
  position: absolute;
  left: -17px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.step-num {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p { font-size: 0.9063rem; color: #C9D4E4; }

.principle {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
}
.principle p {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.5;
  color: #E8EEF7;
}
.principle strong { color: #FFFFFF; font-weight: 700; }

/* ── 기술 ─────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-col {
  border-top: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px 26px 28px;
}
.tech-col:nth-child(2) { border-top-color: var(--accent); }
.tech-col:nth-child(3) { border-top-color: var(--navy); }
.tech-col:nth-child(4) { border-top-color: var(--border-strong); }

.tech-col h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tech-col ul { list-style: none; }
.tech-col li {
  font-size: 0.9375rem;
  color: var(--muted);
  padding: 4px 0;
}

.tech-note {
  margin-top: 36px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tech-note .arrow { color: var(--accent); margin: 0 6px; }

/* ── 문의 (풀블리드 사진 밴드) ─────────────── */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 140px 0;
}

.contact-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  filter: saturate(0.32) brightness(0.62);
}

.contact-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 29, 58, 0.96) 0%, rgba(11, 29, 58, 0.86) 48%, rgba(11, 29, 58, 0.66) 100%);
}

.contact-inner {
  position: relative;
  display: block;
}

.contact-copy { max-width: 620px; }

.contact .eyebrow { color: #8FB4FF; }
.contact .section-title { color: #FFFFFF; }
.contact .section-sub { color: rgba(255, 255, 255, 0.8); margin-bottom: 36px; }

.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.contact .btn-primary { background: #FFFFFF; color: var(--navy) !important; }
.contact .btn-primary:hover { background: #EAF0FA; }
.contact .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.contact .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }

.contact-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ── 푸터 ─────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--footer-text);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.footer-bi { color: var(--accent); font-weight: 700; }

.footer-brand p, .footer-meta p { font-size: 0.875rem; }

.footer-meta { text-align: right; }
.footer-meta p + p { margin-top: 6px; }

/* ── 문의 드로어 ──────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 29, 58, 0.45);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 210;
  width: min(480px, 100vw);
  background: var(--bg);
  box-shadow: -24px 0 60px rgba(11, 29, 58, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 32px 36px 40px;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-base) var(--ease);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.drawer-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.drawer-sub { font-size: 0.9063rem; color: var(--muted); }

.drawer-close {
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.drawer-close:hover { background: var(--surface); border-color: var(--border-strong); }
.drawer-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.consult-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.field label em { color: var(--accent); font-style: normal; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA8BC; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-suffix { position: relative; }
.input-suffix input {
  width: 100%;
  padding-right: 42px;
}
.input-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
}

.field-hint {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

fieldset.field { border: none; }

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-group label { cursor: pointer; }
.pill-group input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.pill-group span {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 8px 16px;
  transition: all var(--dur-fast) var(--ease);
}
.pill-group input:checked + span {
  color: #FFFFFF;
  background: var(--navy);
  border-color: var(--navy);
}
.pill-group input:focus-visible + span {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8438rem;
  color: var(--muted);
  cursor: pointer;
}
.field-consent input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form-error {
  font-size: 0.875rem;
  font-weight: 600;
  color: #D64500;
}

.btn-block { width: 100%; }

.consult-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 12px;
}
.done-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}
.consult-done h3 { font-size: 1.25rem; font-weight: 700; }
.consult-done p { font-size: 0.9063rem; color: var(--muted); }

body.drawer-lock { overflow: hidden; }

/* ── 리빌 모션 (기본 보임 + JS 보조) ───────── */
.reveal { opacity: 1; transform: none; }

html.js-anim .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 780ms var(--ease) var(--stagger, 0ms),
    transform 780ms var(--ease) var(--stagger, 0ms);
  will-change: opacity, transform;
}
html.js-anim .reveal[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
html.js-anim .reveal[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
html.js-anim .reveal[data-reveal="scale"] { transform: translate3d(0, 30px, 0) scale(0.965); }
html.js-anim .reveal[data-reveal="fade"]  { transform: none; }

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

/* 히어로 진입 애니메이션 */
html.js-anim .intro {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 820ms var(--ease) var(--stagger, 0ms),
    transform 820ms var(--ease) var(--stagger, 0ms);
}
html.js-anim.is-loaded .intro {
  opacity: 1;
  transform: none;
}

/* 스크롤 진행률 바 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 히어로 카피는 스크롤에 따라 JS가 opacity/transform을 제어 */
html.js-anim .hero-copy { will-change: transform, opacity; }

/* 포인터 추적 하이라이트 */
.sol-tile, .pf-card, .prj-card { --mx: 50%; --my: 50%; }
.sol-tile::before, .pf-card::after, .prj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(37, 99, 235, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}
.sol-tile::before { background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(255, 255, 255, 0.16), transparent 60%); }
.sol-tile:hover::before, .pf-card:hover::after, .prj-card:hover::after { opacity: 1; }
.pf-card, .prj-card { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-progress { display: none; }
  .hero-photo, .contact-photo, .sub-hero-photo, .process-bg { transform: none !important; }
  .hero-copy { transform: none !important; opacity: 1 !important; }
  html.js-anim .intro { opacity: 1; transform: none; transition: none; }
  .btn, .sol-tile, .prj-card { transition: none; }
  .drawer, .drawer-overlay { transition: none; }
  .hero-scroll span::after { animation: none; }
  .sol-tile::before, .pf-card::after, .prj-card::after { display: none; }
}

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 1024px) {
  .section { padding: 84px 0; }

  .hero { min-height: auto; }
  .hero-inner { padding-top: 104px; padding-bottom: 120px; }

  .sol-grid { grid-template-columns: 1fr; }
  .sol-tile { min-height: 300px; }
  .prj-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step + .step::before { display: none; }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .contact { padding: 104px 0; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .gnb {
    position: fixed;
    top: 72px; left: 0; right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(11, 29, 58, 0.1);
    padding: 12px 24px 20px;
    display: none;
  }
  .gnb.is-open { display: flex; }

  /* 스크롤 최상단(투명 헤더) 상태에서도 열린 모바일 패널은 밝은 배경이다.
     투명 상태용 흰 글자 규칙이 그대로 적용되면 흰 배경 위 흰 글자가 되어 안 보인다. */
  .site-header:not(.is-scrolled) .gnb.is-open > a:not(.btn) { color: var(--text); }
  .site-header:not(.is-scrolled) .gnb.is-open > a:not(.btn):hover { color: var(--primary); }
  .site-header:not(.is-scrolled) .gnb.is-open .btn-primary {
    background: var(--navy);
    border: 1px solid transparent;
    color: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header:not(.is-scrolled) .gnb.is-open .btn-primary:hover { background: var(--navy-soft); }
  .gnb > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--surface); }
  .gnb > .btn { margin-top: 14px; }

  .hero-inner { padding-top: 76px; padding-bottom: 96px; }
  .hero-scroll { display: none; }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 12px;
    margin-top: -44px;
    padding: 32px 16px;
  }
  .proof-item + .proof-item::before { display: none; }

  .steps { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }

  .drawer { padding: 24px 20px 32px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   서브페이지 (프로젝트 등 하위 페이지)
   ═══════════════════════════════════════════════ */

/* 서브페이지에서는 헤더를 처음부터 흰 바로 고정한다
   (메인은 히어로 위 투명 오버레이) */
body.subpage .site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
body.subpage .site-header .brand-mark { color: var(--navy); }
body.subpage .site-header .brand-mark em { color: var(--primary); }
body.subpage .site-header .gnb > a:not(.btn) { color: var(--text); }
body.subpage .site-header .gnb .btn-primary {
  background: var(--navy);
  border: none;
  color: #FFFFFF;
}
body.subpage .site-header .nav-toggle span { background: var(--text); }

/* ── 서브비주얼 (패턴 ①: 배너 + 타이틀 + breadcrumb) ── */
.sub-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 152px 0 64px;
}

.sub-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.66);
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 29, 58, 0.94) 0%, rgba(11, 29, 58, 0.8) 46%, rgba(11, 29, 58, 0.5) 100%);
}

.sub-hero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.breadcrumb a:hover { color: #FFFFFF; }
.breadcrumb li { list-style: none; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.36); }
.breadcrumb [aria-current] { color: #FFFFFF; font-weight: 600; }

.sub-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.sub-lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
}

.sub-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.sub-metrics span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--pill);
  padding: 7px 16px;
  backdrop-filter: blur(6px);
}
.sub-metrics b { color: #FFB55C; font-weight: 700; }

/* ── 하단 CTA 밴드 ─────────────────────────── */
.cta-band {
  background: var(--navy);
  color: #FFFFFF;
  padding: 84px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.cta-band p { color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; }
.cta-band .btn-primary { background: #FFFFFF; color: var(--navy) !important; }
.cta-band .btn-primary:hover { background: #EAF0FA; }
.cta-band .btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .sub-hero { padding: 128px 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
}

/* ── 포트폴리오 페이지 ─────────────────────── */
/* 도메인 바로가기 (서브비주얼 아래 고정 스트립) */
.pf-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.pf-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.pf-nav-inner::-webkit-scrollbar { display: none; }
.pf-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.pf-nav a:hover { border-color: var(--navy); background: var(--surface); }
.pf-nav a em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

/* 도메인 그룹 */
.pf-group { scroll-margin-top: 132px; }
.pf-group + .pf-group { margin-top: 84px; }

.pf-group-head { margin-bottom: 28px; }
.pf-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 13px;
  border-radius: var(--pill);
  margin-bottom: 14px;
}
.pf-badge[data-domain="tax"]     { color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.pf-badge[data-domain="factory"] { color: #C56A00; background: rgba(255, 138, 0, 0.12); }
.pf-badge[data-domain="data"]    { color: var(--navy); background: rgba(11, 29, 58, 0.08); }

.pf-group-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.pf-group-head p { font-size: 1rem; color: var(--muted); max-width: 640px; }

/* 프로젝트 카드 */
.pf-list { display: grid; gap: 18px; }

.pf-card {
  position: relative;
  padding: 30px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.pf-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card-hover); }
/* 도메인 색 액센트 — 카드 높이 전체를 따라가야 카드의 일부처럼 읽힌다.
   위아래를 들여쓰면 끝이 잘려 붕 뜬 느낌이 난다 */
.pf-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: width var(--dur-base) var(--ease);
}
.pf-card:hover::before { width: 7px; }
.pf-card[data-domain="tax"]::before     { background: var(--primary); }
.pf-card[data-domain="factory"]::before { background: var(--accent); }
.pf-card[data-domain="data"]::before    { background: var(--navy); }

.pf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.pf-head h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.pf-period { font-size: 0.8125rem; color: var(--muted); }

.pf-metric {
  flex: none;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.pf-metric strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pf-metric span { font-size: 0.75rem; color: var(--muted); }

.pf-sub { font-size: 0.9688rem; color: var(--muted); margin-bottom: 16px; }

.pf-points { list-style: none; margin-bottom: 20px; }
.pf-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}
.pf-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1024px) {
  .pf-nav { top: 72px; }
  .pf-group + .pf-group { margin-top: 60px; }
  .pf-card { padding: 26px 24px; }
  .pf-head { flex-direction: column; gap: 12px; }
  .pf-metric {
    text-align: left;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .pf-metric strong { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-nav a { transition: none; }
}

/* ── 메인: 프로젝트 요약 스트립 ─────────────── */
.pf-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.pf-strip li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.pf-strip-dom {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 4px 10px;
  border-radius: var(--pill);
}
.pf-strip li[data-domain="tax"] .pf-strip-dom     { color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.pf-strip li[data-domain="factory"] .pf-strip-dom { color: #C56A00; background: rgba(255, 138, 0, 0.12); }
.pf-strip li[data-domain="data"] .pf-strip-dom    { color: var(--navy); background: rgba(11, 29, 58, 0.08); }
.pf-strip strong { font-size: 1rem; font-weight: 700; }
.pf-strip-meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: right;
}

.pf-more {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pf-more span { font-size: 0.9063rem; color: var(--muted); }

@media (max-width: 1024px) {
  .pf-strip { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pf-strip li { flex-wrap: wrap; gap: 8px 12px; }
  .pf-strip-meta { margin-left: 0; width: 100%; text-align: left; }
}

/* ── 약관 모달 ─────────────────────────────── */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 29, 58, 0.5);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.legal-overlay.is-open { opacity: 1; }

.legal-modal {
  position: fixed;
  z-index: 310;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 880px);
  transform: translate(-50%, -46%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(11, 29, 58, 0.28);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.legal-modal.is-open { transform: translate(-50%, -50%); opacity: 1; }

.legal-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.legal-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-close {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.legal-close:hover { background: var(--surface); border-color: var(--border-strong); }
.legal-close:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.legal-body {
  overflow-y: auto;
  padding: 26px 28px 34px;
  -webkit-overflow-scrolling: touch;
}
.legal-body:focus-visible { outline: none; }
.legal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 26px 0 10px;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-body strong { color: var(--text); font-weight: 700; }
.legal-body ul {
  list-style: none;
  margin: 0 0 14px;
}
.legal-body li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 6px;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}
.legal-body mark {
  background: rgba(255, 138, 0, 0.16);
  color: #A85A00;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}
.legal-note, .legal-meta {
  font-size: 0.8438rem !important;
  color: var(--muted);
}
.legal-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 푸터 약관 링크 */
.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}
.footer-legal a {
  font-size: 0.8438rem;
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer-legal a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 3px; }
.footer-legal li + li { position: relative; }
.footer-legal li + li::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 11px;
  background: rgba(184, 196, 214, 0.4);
}

@media (max-width: 720px) {
  .legal-modal { max-height: 88vh; }
  .legal-head { padding: 20px 20px; }
  .legal-body { padding: 22px 20px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .legal-modal, .legal-overlay { transition: none; }
}

/* ── 패럴랙스 사이징 (반드시 파일 끝에 위치) ──
   .sub-hero-photo 등 개별 규칙의 height:100% 를 이겨야 하므로
   선언 순서상 마지막에 둔다. 위아래 14% 여유로 빈 띠를 막는다 */
.hero-photo, .contact-photo, .sub-hero-photo, .process-bg {
  top: -14%;
  height: 128%;
  will-change: transform;
  backface-visibility: hidden;
}
/* 히어로는 마우스 움직임에도 반응하므로 좌우 여유까지 확보한다.
   전역 `img { max-width: 100% }` 가 폭 확장을 막으므로 해제해야 한다 */
.hero-photo {
  left: -6%;
  width: 112%;
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .contact-photo, .sub-hero-photo, .process-bg {
    top: 0;
    height: 100%;
    transform: none !important;
  }
  .hero-photo { left: 0; width: 100%; max-width: 100%; }
}

/* ═══════════════════════════════════════════════
   창의 스크롤 효과
   ═══════════════════════════════════════════════ */

/* ── 숫자 오도미터 ── */
.odo {
  display: inline-flex;
  vertical-align: baseline;
  line-height: 1;
}
.odo-col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.odo-reel {
  display: block;
  transform: translateY(0);   /* 첫 칸(숫자 0)에서 출발 */
  transition: transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}
.odo-reel > span {
  display: block;
  height: 1em;
  line-height: 1;
}

/* ── 헤드라인 라인별 마스크 리빌 ── */
.split .ln {
  display: block;
  overflow: hidden;
}
html.js-anim .split .ln-in {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0ms);
}
html.js-anim .split.ln-on .ln-in { transform: none; }

/* 헤드라인이 이미 리빌 대상이면 이중 애니메이션이 되므로 라인 연출만 남긴다 */
html.js-anim .reveal.split { opacity: 1; transform: none; }

/* ── 카드 3D 기울임 ── */
.tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 380ms var(--ease);
}
.sol-tile.tilt:hover { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(6px); }

/* ── 일하는 방식: 스크롤 연동 단계 점등 ── */
/* 카드 위쪽에 진행 레일을 둔다 (카드를 관통하지 않도록) */
.steps {
  --flow: 0;
  position: relative;
  padding-top: 30px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px rgba(255, 138, 0, 0.45);
  transform: scaleX(var(--flow));
  transform-origin: 0 50%;
  transition: transform 220ms linear;
}
.step { position: relative; z-index: 1; }
html.js-anim .step {
  border-color: rgba(255, 255, 255, 0.1);
  transition: border-color 420ms var(--ease), background 420ms var(--ease),
              transform 420ms var(--ease);
}
html.js-anim .step.is-lit {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
html.js-anim .step .step-num { transition: color 420ms var(--ease); color: rgba(255, 255, 255, 0.4); }
html.js-anim .step.is-lit .step-num { color: var(--accent); }

/* ── 자석 버튼 ── */
.hero-actions .btn, .cta-actions .btn, .contact-links .btn {
  transition: transform 380ms var(--ease), background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hero-actions .btn:hover, .cta-actions .btn:hover, .contact-links .btn:hover {
  transform: none;  /* JS 인라인 transform 이 우선 */
}

@media (prefers-reduced-motion: reduce) {
  .odo-reel { transition: none; }
  html.js-anim .split .ln-in { transform: none; transition: none; }
  .tilt { transform: none !important; transition: none; }
  .steps::after { display: none; }
  html.js-anim .step, html.js-anim .step.is-lit { transform: none; transition: none; }
  .hero-actions .btn, .cta-actions .btn, .contact-links .btn { transform: none !important; }
}

@media (max-width: 720px) {
  /* 모바일은 터치라 기울임·자석 효과를 끈다 */
  .tilt { transform: none !important; }
  .steps::before, .steps::after { display: none; }
}

/* ── 프로젝트 카드 내 실서비스 화면 ───────────── */
.pf-shot {
  margin: 4px 0 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 29, 58, 0.05), 0 10px 26px rgba(11, 29, 58, 0.08);
}
.pf-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-slow) var(--ease);
}
.pf-card:hover .pf-shot img { transform: scale(1.02); }

/* 넓은 화면에서는 카드를 2열로 배치해 페이지가 지나치게 길어지지 않게 한다.
   카드 안에서는 화면을 상단 전체 폭으로 둔다 — 좌우 분할은 화면과 텍스트의
   높이가 달라 카드 중앙에 빈 공간이 생긴다 */
@media (min-width: 1024px) {
  .pf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-card { display: flex; flex-direction: column; }
  .prj-stack { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-shot img { transition: none; }
  .pf-card::before { transition: none; }
  .pf-card:hover::before { width: 5px; }
  .pf-card:hover .pf-shot img { transform: none; }
}
