/* ============================================================
   K-AI MODELS — "페이퍼 & 네이비 잉크" (라이트) v3
   따뜻한 종이 위에 네이비 잉크 — 데이터(잉크 입자)가 모델(잉크 방울)로
   스며드는 서사. K-DATA(화이트+네이비)와 형제 브랜드 톤.
   토큰: bg-0 #F6F4EE(종이) / bg-1 #FFFFFF(카드) / navy #16326E(K-DATA)
         royal #1D4ED8(액센트) / ink #101D3E / ink-2 #5E6C8C
   (GSAP 모션·필 내비·마퀴·벤토·스포트라이트 구조는 v2 유지)
   ============================================================ */

:root {
  --bg-0: #FFFFFF;
  --bg-1: #FFFFFF;
  --navy: #16326E;
  --blue: #16326E;   /* 라벨·태그 (딥 네이비) */
  --cyan: #1D4ED8;   /* 수치·링크·액센트 (로열 블루) */
  --ink: #101D3E;
  --ink-2: #5E6C8C;
  --line: rgba(22, 50, 110, 0.14);
  --line-soft: rgba(22, 50, 110, 0.10);
  --grad: linear-gradient(120deg, #16326E, #1D4ED8);
  --font-sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-latin: "Unbounded", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --r-lg: 20px;
  --r-md: 16px;
  --shadow: 0 18px 50px rgba(22, 50, 110, 0.10);
  --container: 1160px;
  --header-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  /* hidden은 스크롤 컨테이너를 만들어 position:sticky(히어로 핀)를 깨뜨림 → clip */
  overflow-x: hidden;
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.latin { font-family: var(--font-latin); }
.num { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- 예시 배지 ---------- */
.ex-badge {
  display: inline-block; vertical-align: middle;
  font-style: normal; font-weight: 700; font-size: 10px; line-height: 1;
  color: var(--cyan); border: 1px solid rgba(29, 78, 216, 0.4);
  border-radius: 999px; padding: 3px 7px 2px; margin-left: 6px;
  letter-spacing: 0.08em;
}

/* ---------- header : full-width bar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  max-width: var(--container); margin: 0 auto;
  height: 72px; padding: 0 24px;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(22, 50, 110, 0.08);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  color: var(--navy); background: rgba(22, 50, 110, 0.06);
  border: 1px solid var(--line); border-radius: 50%;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.brand-txt i { font-style: normal; font-size: 10.5px; color: var(--ink-2); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav-list a:hover { color: var(--ink); background: rgba(22, 50, 110, 0.06); }

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

/* 언어 전환 (KO | EN) */
.lang-switch {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1;
}
.lang-switch a { padding: 8px 12px; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.lang-switch a:not(.on):hover { color: var(--ink); background: rgba(22, 50, 110, 0.05); }
.lang-switch a.on { background: var(--navy); color: #EDF2FF; font-weight: 600; }

/* 영어판 히어로 타이포 보정 (라틴 장문 대응) */
html[lang="en"] .hero-title { font-size: clamp(26px, 4.2vw, 56px); letter-spacing: -0.03em; }
html[lang="en"] .hero-copy { max-width: 680px; }

/* K-DATA 연결 요소 공통 — 네이비 칩 */
.kdata-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: #EDF2FF; background: var(--navy);
  border: 1px solid rgba(22, 50, 110, 0.4);
  border-radius: 999px; padding: 9px 15px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.kdata-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kdata-chip:hover { background: #1D3F8A; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(22, 50, 110, 0.3); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px 8px; }
.nav-toggle span { width: 21px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  border-radius: 12px; padding: 15px 26px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 24px rgba(22, 50, 110, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(29, 78, 216, 0.32); }
.btn-ghost {
  color: var(--ink); border: 1px solid rgba(22, 50, 110, 0.28);
  background: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(29, 78, 216, 0.05); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ---------- hero : 스크롤 스크럽 핀 (draw2cost 패턴 — sticky) ---------- */
.hero-pin { position: relative; }
/* hero.js가 .scrub을 붙이면 핀이 길어지고, 그 스크롤 양이 곧 신경망 형성 진행도 */
html.js .hero-pin.scrub { height: 260vh; }

.hero {
  position: sticky; top: 0;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  display: flex; align-items: center;
  background: var(--bg-0);
}
#heroCanvas, .hero-static { position: absolute; inset: 0; width: 100%; height: 100%; }
#heroCanvas { z-index: 1; }

/* 무JS·reduced-motion fallback — 완성된 신경망 정적 SVG */
.hero-static {
  z-index: 0; opacity: 1; transition: opacity 0.8s ease;
  display: flex; align-items: center; justify-content: flex-end;
  background: var(--bg-0);
}
.hero-static .static-net { width: 36%; max-height: 68%; margin-right: 10%; }
.hero.hero-live .hero-static { opacity: 0; }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 148px; padding-bottom: 96px;
}
.hero-copy { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--navy);
  background: rgba(22, 50, 110, 0.06);
  border: 1px solid rgba(22, 50, 110, 0.2);
  border-radius: 999px; padding: 8px 16px;
  margin-bottom: 26px;
}
.hero-eyebrow .sep { color: rgba(94, 108, 140, 0.6); }
.hero-eyebrow .eyebrow-tail { color: var(--ink-2); letter-spacing: 0.02em; }
@media (max-width: 430px) {
  /* 좁은 화면: 칩 두 줄 꺾임 방지 — 뒷부분 숨김 */
  .hero-eyebrow .sep, .hero-eyebrow .eyebrow-tail { display: none; }
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(29, 78, 216, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}

.hero-title {
  /* 한 줄 헤드라인("데이터가 모델이 됩니다.")이 카피 폭 안에 들어가는 크기 */
  font-size: clamp(27px, 4.5vw, 58px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.16;
  margin-bottom: 26px;
  white-space: nowrap;
}
.h-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h-line-in { display: inline-block; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 17.5px; color: var(--ink-2); max-width: 540px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

/* 데이터 출처 배지 (히어로·컨택트 공용) */
.src-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: rgba(22, 50, 110, 0.06);
  border: 1px solid rgba(22, 50, 110, 0.2);
  border-radius: 999px; padding: 9px 16px;
  transition: background 0.2s, border-color 0.2s;
}
.src-badge:hover { background: rgba(22, 50, 110, 0.1); border-color: rgba(22, 50, 110, 0.38); }
.src-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 2px rgba(29, 78, 216, 0.35);
}
.src-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-stats {
  display: flex; margin-top: 64px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.stat { flex: 1; padding: 22px 8px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 26px; }
.stat .num { display: block; font-size: 34px; color: var(--cyan); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-2); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  width: 22px; height: 34px; margin-left: -11px;
  border: 1.5px solid rgba(22, 50, 110, 0.35); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--cyan);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
}

/* ---------- field marquee band ---------- */
.field-band {
  position: relative; z-index: 3;
  display: flex; align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}
.band-label {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 26px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  color: #EDF2FF;
  background: var(--navy);
  border-right: 1px solid var(--line);
  transition: background 0.2s;
}
.band-label:hover { background: #1D3F8A; }
.band-label .num { font-size: 12px; color: #A8C6FF; }
.band-label svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.marquee {
  flex: 1; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; flex: none; align-items: center;
  min-width: 100%;
  animation: marqueeMove 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  position: relative;
  padding: 18px 32px;
  font-family: var(--font-mono);
  font-size: 13px; color: var(--ink-2); white-space: nowrap;
  letter-spacing: 0.04em;
}
.marquee-track li::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: rgba(29, 78, 216, 0.35);
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- sections ---------- */
.section { padding: 120px 0; position: relative; scroll-margin-top: 84px; }
.section-alt {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(22, 50, 110, 0.05), transparent 65%),
    linear-gradient(180deg, rgba(22, 50, 110, 0.035), rgba(22, 50, 110, 0.012));
}

.section-head { max-width: 680px; margin-bottom: 60px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--navy); margin-bottom: 18px;
}
.sec-tag .tick {
  width: 22px; height: 1.5px;
  background: linear-gradient(90deg, #16326E, #1D4ED8);
}
.sec-tag-center { justify-content: center; }
.section-head h2, .contact-panel h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.26;
  margin-bottom: 18px;
}
.sec-sub { font-size: 16.5px; color: var(--ink-2); max-width: 560px; }

.br-narrow { display: none; }

/* ---------- pipeline ---------- */
.pipe-flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.pipe-beam {
  position: absolute; left: 4%; right: 4%; top: 56px; z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, #16326E, #1D4ED8);
  box-shadow: 0 0 12px rgba(29, 78, 216, 0.25);
  transform-origin: left center;
}

.pipe-node {
  position: relative; z-index: 1;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px 22px 24px;
  box-shadow: 0 6px 22px rgba(22, 50, 110, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.pipe-node:hover { transform: translateY(-4px); border-color: rgba(29, 78, 216, 0.4); box-shadow: 0 14px 30px rgba(22, 50, 110, 0.1); }
.pipe-ico {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: 18px;
  color: var(--cyan);
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid var(--line); border-radius: 16px;
}
.pipe-ico svg { width: 28px; height: 28px; }
.pipe-step { display: block; font-size: 10.5px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 10px; }
.pipe-node h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.pipe-node p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* K-DATA 원천 노드 — 종이 위 단 하나의 네이비 카드 */
.pipe-src {
  background: linear-gradient(160deg, #16326E, #0F2450);
  border-color: rgba(22, 50, 110, 0.5);
  box-shadow: 0 14px 34px rgba(22, 50, 110, 0.3);
}
.pipe-src:hover { border-color: rgba(29, 78, 216, 0.6); box-shadow: 0 18px 42px rgba(22, 50, 110, 0.4); }
.pipe-src .pipe-ico { color: #C9D8FF; background: rgba(201, 216, 255, 0.12); border-color: rgba(201, 216, 255, 0.28); }
.pipe-src .pipe-step { color: #9FB8F5; }
.pipe-src h3 { color: #F4F7FF; }
.pipe-src p { color: #B9C8EC; }
.pipe-domain {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; font-size: 12.5px; font-weight: 700; color: #A8C6FF;
}
.pipe-domain svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- models : spotlight cards ---------- */
.model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.model-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px 24px 20px;
  box-shadow: 0 6px 22px rgba(22, 50, 110, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.model-card::before {
  /* spotlight: JS가 --mx/--my 갱신 (hover:fine 전용) */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(29, 78, 216, 0.07), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.model-card:hover::before { opacity: 1; }
.model-card > * { position: relative; z-index: 1; }
.model-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 78, 216, 0.42);
  box-shadow: 0 18px 40px rgba(22, 50, 110, 0.13);
}
.model-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.field-tag {
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  border: 1px solid rgba(22, 50, 110, 0.2); border-radius: 999px;
  padding: 4px 11px;
}
.model-code {
  display: block;
  font-family: var(--font-latin);
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 9px;
}
.model-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.42; margin-bottom: 10px; color: var(--navy); }
.model-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.model-spec { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.model-spec > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px dashed rgba(22, 50, 110, 0.18); padding-bottom: 8px;
}
.model-spec dt { font-size: 12.5px; color: var(--ink-2); }
.model-spec dd { font-size: 15px; color: var(--cyan); }
.model-src {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px; font-weight: 600; color: #4A66A8;
  transition: color 0.2s;
}
.model-src b { font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; color: rgba(74, 102, 168, 0.65); }
.model-src:hover { color: var(--cyan); }
.model-src svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.model-note { margin-top: 26px; font-size: 13px; color: var(--ink-2); opacity: 0.85; }

/* ---------- why : bento ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-wide { grid-column: span 2; }
.why-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.04), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  box-shadow: 0 6px 22px rgba(22, 50, 110, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover { transform: translateY(-4px); border-color: rgba(29, 78, 216, 0.4); box-shadow: 0 14px 30px rgba(22, 50, 110, 0.1); }
.why-key {
  display: block; font-size: 10px; font-weight: 600;
  color: rgba(29, 78, 216, 0.75); margin-bottom: 16px; letter-spacing: 0.18em;
}
.why-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.why-card p { font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 560px; }
.inline-link {
  color: var(--cyan); font-weight: 700;
  border-bottom: 1px solid rgba(29, 78, 216, 0.4);
  transition: border-color 0.2s;
}
.inline-link:hover { border-color: var(--cyan); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip-cloud li {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  border: 1px solid rgba(22, 50, 110, 0.16); border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, color 0.2s;
}
.chip-cloud li a { display: block; padding: 5px 12px; color: inherit; }
.chip-cloud li:hover { border-color: rgba(29, 78, 216, 0.45); color: var(--cyan); }
.chip-cloud .chip-more { color: var(--cyan); border-color: rgba(29, 78, 216, 0.35); }

/* ---------- contact ---------- */
.contact-panel {
  position: relative; overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% -10%, rgba(29, 78, 216, 0.08), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  padding: 76px 32px 66px;
  box-shadow: var(--shadow);
}
.contact-panel::before {
  /* dot grid */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(22, 50, 110, 0.14) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 0%, #000, transparent 72%);
  pointer-events: none;
}
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel .sec-sub { margin: 0 auto 42px; }
.contact-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-bottom: 30px;
}
.contact-panel .btn-primary { font-family: var(--font-mono); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: rgba(22, 50, 110, 0.03);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand b { font-size: 14px; letter-spacing: 0.06em; color: var(--navy); }
.footer-brand span { font-size: 13.5px; color: var(--ink-2); }
.footer-brand p { font-size: 13px; color: var(--ink-2); opacity: 0.85; line-height: 1.7; margin-top: 6px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline;
  padding-top: 22px;
}
.footer-copy { font-size: 12.5px; color: var(--ink-2); opacity: 0.8; }
.footer-note { font-size: 12px; color: var(--ink-2); opacity: 0.65; }

/* ---------- to-top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--ink); background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(22, 50, 110, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .pipe-flow { grid-template-columns: repeat(2, 1fr); }
  .pipe-beam { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .br-narrow { display: inline; }
  .br-wide { display: none; }
  .header-inner { height: 64px; padding: 0 18px; }
  .nav {
    position: fixed; left: 0; right: 0; top: 64px; z-index: 99;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 40px rgba(22, 50, 110, 0.14);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    margin-left: 0;
  }
  .nav.is-open { max-height: 330px; opacity: 1; }
  .nav-list { flex-direction: column; padding: 12px 14px 16px; }
  .nav-list a { padding: 12px 12px; font-size: 16px; border-radius: 12px; }
  .nav-toggle { display: flex; }
  .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); }
  .kdata-chip { display: none; }
  .band-label { padding: 15px 18px; }
}

@media (max-width: 680px) {
  html.js .hero-pin.scrub { height: 210vh; }
  .hero-inner { padding-top: 124px; padding-bottom: 84px; }
  .hero-static { align-items: flex-start; justify-content: center; }
  .hero-static .static-net { width: 92%; max-height: 42%; margin: 14% 0 0; }
  .hero-stats { margin-top: 46px; }
  .stat .num { font-size: 26px; }
  .stat + .stat { padding-left: 16px; }
  .stat { padding-right: 6px; }
  .field-band { flex-direction: column; align-items: stretch; }
  .band-label { justify-content: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-grid { grid-template-columns: 1fr; }
  .pipe-flow { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-panel { padding: 56px 22px 48px; }
  .contact-cta .btn { width: 100%; }
  .hero-scroll { display: none; }
}

@media (max-height: 720px) {
  .hero-inner { padding-top: 106px; padding-bottom: 56px; }
  .hero-stats { margin-top: 30px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .pipe-beam { transform: none !important; }
}
