/* =========================================================
   site.css — 레이아웃·컴포넌트 (A안)
   색·크기는 theme.css 토큰만 사용. 개별 조정은 맨 아래 구역에.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-weight: var(--fw-body);
  font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-family: var(--font-heading); font-weight: var(--fw-heading); font-size: var(--fs-h3); line-height: 1.4; }

.container { width: 100%; max-width: var(--container); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x); border-radius: var(--radius-btn);
  font: 600 var(--fs-body)/1 var(--font-body); text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, color .2s; }
.btn--primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn--primary:hover { background: color-mix(in srgb, var(--color-primary) 85%, #000); }
.btn--line { color: inherit; border-color: currentColor; background: transparent; }
.btn--line:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- 헤더 ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--color-dark) 92%, transparent); backdrop-filter: blur(10px); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--color-accent); font: 700 15px/1 var(--font-digit); letter-spacing: .02em; color: #fff; }
.nav { display: none; gap: 32px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--color-dark-text); }
.nav a:hover { color: #fff; }
.header .btn { padding: 11px 20px; font-size: 15px; }
@media (min-width: 980px) { .nav { display: flex; } }

/* ---------- 히어로 ---------- */
.hero { background: var(--color-dark); color: #fff; overflow: hidden; }
.hero .container { display: grid; gap: 56px; align-items: center; padding-block: 72px 96px; }
@media (min-width: 980px) { .hero .container { grid-template-columns: 1.1fr .9fr; padding-block: 96px 120px; } }
.hero h1 { font-size: var(--fs-hero); line-height: 1.15; }
.hero-sub { margin-top: 28px; max-width: 34em; color: var(--color-dark-text); font-size: 18px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-actions .text-link { color: #fff; }

/* 계량기 문자판 */
.meter { justify-self: center; width: min(100%, 440px); aspect-ratio: 1; max-width: 100%; position: relative; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #E7C982 0%, var(--color-accent) 38%, #6E5220 72%, #3E2E12 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 -10px 30px rgba(0,0,0,.35); padding: 7%; }
.meter-face { position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #1E2A30, #070C0F 75%);
  box-shadow: inset 0 0 0 3px #2B2215, inset 0 8px 30px rgba(0,0,0,.8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.meter-brand { font: 600 12px/1 var(--font-body); color: #9FA9AC; letter-spacing: .12em; }
.register { display: flex; gap: 3px; padding: 6px; background: #000; border-radius: 4px; box-shadow: inset 0 0 0 1px #333; }
.wheel { width: clamp(22px, 5.4vw, 34px); height: clamp(34px, 8vw, 50px); overflow: hidden; border-radius: 2px;
  background: linear-gradient(#111, #2a2a2a 50%, #111); }
.wheel--red { background: linear-gradient(#5a0f0b, var(--color-signal) 50%, #5a0f0b); }
.wheel-strip { display: flex; flex-direction: column; transition: transform 2.4s cubic-bezier(.2,.8,.2,1); }
.wheel-strip span { height: clamp(34px, 8vw, 50px); display: grid; place-items: center;
  font: 600 clamp(24px, 5.6vw, 36px)/1 var(--font-digit); color: #F2F2EE; font-variant-numeric: tabular-nums; }
.meter-unit { font: 600 14px/1 var(--font-digit); color: #C9D3D1; letter-spacing: .06em; }
.meter-sub { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); width: 18%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #3a4246; display: grid; place-items: center; }
.meter-needle { width: 2px; height: 42%; background: var(--color-signal); transform-origin: 50% 100%; translate: 0 -50%;
  animation: needle 6s linear infinite; }
@keyframes needle { to { rotate: 360deg; } }
.meter-caption { margin-top: 18px; text-align: center; font-size: var(--fs-small); color: var(--color-dark-text); }
@media (prefers-reduced-motion: reduce) { .meter-needle { animation: none; } .wheel-strip { transition: none; } }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: var(--space-section-mobile); }
@media (min-width: 768px) { .section { padding-block: var(--space-section); } }
.section--alt { background: var(--color-surface); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section h2 { font-size: var(--fs-h2); line-height: 1.25; }
.lead { margin-top: 20px; color: var(--color-muted); font-size: 18px; max-width: 38em; }

/* ---------- 데이터 흐름 (실제 순서) ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step;
  border-top: 2px solid var(--color-text); }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--color-border); counter-increment: step; }
@media (min-width: 900px) { .flow li { border-bottom: 0; border-right: 1px solid var(--color-border); padding-left: 24px; }
  .flow li:first-child { padding-left: 0; } .flow li:last-child { border-right: 0; } }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 15px/1 var(--font-digit);
  color: var(--color-accent); margin-bottom: 20px; }
.flow h3 { margin-bottom: 10px; }
.flow p { color: var(--color-muted); font-size: 15px; line-height: 1.7; }

/* ---------- 사업분야 (타이포 리스트) ---------- */
.biz { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.biz li { display: grid; gap: 8px 40px; padding: 32px 0; border-bottom: 1px solid var(--color-border); }
@media (min-width: 900px) { .biz li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; } }
.biz h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; }
.biz p { color: var(--color-muted); font-size: 16px; }
.biz .tag { font-size: 13px; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 12px; white-space: nowrap; justify-self: start; }

/* ---------- 생산 규모 ---------- */
.scale { display: grid; gap: 48px; align-items: end; }
@media (min-width: 900px) { .scale { grid-template-columns: 1fr 1fr; } }
.scale > * { min-width: 0; }
.figures { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--color-text); }
.figure { padding: 24px 0 0; min-width: 0; }
.figure + .figure { margin-top: 24px; border-top: 1px solid var(--color-border); }
@media (min-width: 560px) { .figures { grid-template-columns: 1fr 1fr; }
  .figure { padding-right: 24px; } .figure + .figure { margin-top: 0; border-top: 0; padding-left: 24px; border-left: 1px solid var(--color-border); } }
.figure strong { display: block; font: 600 clamp(44px, 5.4vw, 72px)/1 var(--font-digit); white-space: nowrap; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.figure strong small { font-size: .38em; margin-left: 4px; color: var(--color-muted); }
.figure span { display: block; margin-top: 12px; color: var(--color-muted); font-size: 15px; }

/* ---------- 신뢰 요소 ---------- */
.creds { display: grid; gap: 0; border-top: 1px solid var(--color-border); }
@media (min-width: 768px) { .creds { grid-template-columns: repeat(2, 1fr); } }
.cred { padding: 24px 0; border-bottom: 1px solid var(--color-border); display: flex; gap: 16px; align-items: baseline; }
@media (min-width: 768px) { .cred:nth-child(odd) { padding-right: 32px; } .cred:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--color-border); } }
.cred b { font-weight: 600; min-width: 0; }
.cred span { color: var(--color-muted); font-size: 15px; }

/* ---------- 영상 ---------- */
.media { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .media { grid-template-columns: 5fr 7fr; } }
.video-link { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; max-width: 100%; border-radius: var(--radius-card);
  background: var(--color-dark); color: #fff; text-decoration: none; overflow: hidden; }
.video-link::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.04) 46px 47px); }
.play { position: relative; width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--color-accent); display: grid; place-items: center; }
.play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 6px; }
.video-link .note { position: absolute; left: 20px; bottom: 16px; font-size: 13px; color: var(--color-dark-text); }

/* ---------- 문의 ---------- */
.contact { background: var(--color-dark); color: #fff; }
.contact .container { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact .container { grid-template-columns: 1fr 1fr; align-items: end; } }
.contact h2 { color: #fff; }
.contact .lead { color: var(--color-dark-text); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-list li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list b { font-weight: 400; color: var(--color-dark-text); font-size: 15px; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact .btn--line { color: #fff; }

/* ---------- 푸터 ---------- */
.footer { background: #071015; color: #8E9A9D; padding-block: 40px; font-size: 13px; line-height: 1.8; }
.footer p { margin: 0; }
.tbd { background: #FFF1C2; color: #6B4E00; padding: 0 6px; border-radius: 3px; font-size: .85em; }

/* =========================================================
   === 요소별 개별 조정 ===
   디자인 변경요청서의 B·D 항목은 여기에만 추가합니다.
   ========================================================= */
