/**
 * NPT 메인 스타일시트 (neopwr.co.kr)
 * 의존: css/npt-tokens.css (CSS 변수)
 * 패턴: X-NEO style.css 차용 + NPT 단순 톤
 */

/* ─── 1. Reset / Base ───────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--c-brand); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 { letter-spacing: -0.018em; margin: 0; }

*:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ─── 2. Container ───────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}


/* ─── 3. Site Header ───────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(12, 14, 20, 0.08);
  box-shadow: 0 1px 0 rgba(12, 14, 20, 0.04), 0 8px 24px rgba(12, 14, 20, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 12px 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header__logo img {
  height: 36px;
  width: auto;
}
.site-header__wordmark {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--c-text);
}

.site-nav {
  display: flex;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}
.site-nav a {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:hover { background: var(--c-bg-alt); color: var(--c-brand); }
.site-nav a.active { color: var(--c-accent); font-weight: var(--fw-semibold); }
.site-nav a[data-external]::after {
  content: '↗';
  font-size: 0.85em;
  opacity: 0.6;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.site-header__cta:hover {
  background: var(--c-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 104, 179, 0.20);
}

.site-header__burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--c-text);
}

@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .site-header__burger { display: inline-flex; }
}


/* ─── 4. Buttons ───────────────── */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 44px;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 104, 179, 0.22);
}
.btn-secondary {
  background: #fff;
  color: var(--c-brand);
  border-color: var(--c-border-strong);
}
.btn-secondary:hover { background: var(--c-bg-alt); }
.btn-ghost {
  background: transparent;
  color: var(--c-text);
}
.btn-ghost:hover { color: var(--c-accent); }


/* ─── 5. Hero ───────────────── */
.hero {
  position: relative;
  background: var(--gradient-brand);
  color: #fff;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}
/* 오로라 글로우 (블루 메시) */
.hero::before {
  content: '';
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 50% 60% at 12% 18%, rgba(0, 163, 224, 0.30), transparent 60%),
    radial-gradient(ellipse 60% 55% at 88% 28%, rgba(0, 104, 179, 0.24), transparent 62%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}
/* 측정 그리드 (우상단 마스크) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 95% 85% at 78% 8%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 78% 8%, #000 18%, transparent 78%);
  z-index: 0;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

/* 인터널 히어로 eyebrow 점 강조 */
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.20);
  flex-shrink: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  font-weight: var(--fw-black);
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-3);
}
.hero p {
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  opacity: 0.88;
  max-width: 640px;
  margin: 0 0 var(--space-5);
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}


/* ─── 6. Section ───────────────── */
section {
  padding: var(--space-8) 0;
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.section-title {
  font-size: var(--fs-2xl);
  color: var(--c-brand);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.018em;
}
.section-subtitle {
  color: var(--c-text-muted);
  font-size: var(--fs-md);
  max-width: 720px;
  margin: 0 auto;
}


/* ─── 7. Cards ───────────────── */
.card,
.business-card,
.product-card {
  background: var(--c-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--c-border);
  transition:
    transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s cubic-bezier(.16, 1, .3, 1),
    border-color var(--transition-fast);
}
.card:hover,
.business-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(12, 14, 20, 0.10);
  border-color: var(--c-accent);
}


/* ─── 8. 사업부 그리드 (홈) ───────────────── */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.business-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.business-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.business-card__badge.is-external::before {
  content: '↗';
  font-size: 1em;
  color: var(--c-accent);
}
.business-card__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--c-brand);
  margin: 0 0 var(--space-2);
  line-height: var(--lh-snug);
}
.business-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  flex: 1;
}
.business-card__cta {
  margin-top: var(--space-4);
  color: var(--c-accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}


/* ─── 9. 제품 그리드 (계측기 카테고리) ───────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
}
.product-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--c-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.product-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-card__brand {
  font-size: var(--fs-2xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text-light);
  font-weight: var(--fw-semibold);
}
.product-card__model {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--c-brand);
}


/* ─── 10. 카테고리 인덱스 그리드 ──────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}
.category-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--c-text);
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.category-card:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.category-card__count {
  font-size: var(--fs-xs);
  color: var(--c-text-light);
}


/* ─── 11. Forms ───────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }

label {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--c-text);
}
label .req { color: var(--c-danger); }

input, textarea, select {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 11px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
  color: var(--c-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0, 104, 179, 0.20);
}
textarea { min-height: 140px; resize: vertical; }


/* ─── 12. Trust Bar ───────────────── */
.trust-bar {
  background: var(--c-bg-alt);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
  text-align: center;
}
.trust-item {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item::before {
  content: '✓';
  color: var(--c-success);
  font-weight: var(--fw-bold);
}


/* ─── 13. Site Footer ───────────────── */
.site-footer {
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  padding: var(--space-7) 0 var(--space-3);
  margin-top: var(--space-8);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-5);
}
@media (max-width: 1100px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer__brand img { height: 36px; }
.site-footer__brand p {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}
.site-footer h4 {
  color: var(--c-accent);
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
  font-weight: var(--fw-bold);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  display: inline-block;
  padding: 2px 0;
  transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--c-accent); }
.site-footer__info p {
  margin: 0 0 4px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
}
.site-footer__copyright {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .site-footer__brand { grid-column: 1 / -1; }
}


/* ─── 14. 모바일 하단 탭 ───────────────── */
.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-tabs-h);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  display: none;
  z-index: var(--z-bottom-tabs);
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--c-text-muted);
  font-size: var(--fs-2xs);
  gap: 2px;
}
.bottom-tab.active { color: var(--c-accent); }

@media (max-width: 880px) {
  .bottom-tabs { display: flex; }
  body { padding-bottom: var(--bottom-tabs-h); }
}


/* ─── 15. Utility ───────────────── */
.text-center { text-align: center; }
.muted { color: var(--c-text-muted); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }


/* ─── 16. Print ───────────────── */
@media print {
  .site-header, .site-footer, .bottom-tabs { display: none !important; }
  body { background: white; color: black; }
}


/* ════════════════════════════════════════════════════════════
   17. 트렌드 컴포넌트 (2026 — Bento · Marquee · Aurora · Tilt)
   ════════════════════════════════════════════════════════════ */

/* 17-1. Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #0068B3 0%, #00A3E0 50%, #6FB4E8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.gradient-text-warm {
  background: linear-gradient(135deg, #00A3E0 0%, #6FB4E8 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 17-2. Aurora Hero (트렌디 그라데이션 메시 + 노이즈) */
.aurora-hero {
  position: relative;
  background: #0C0E14;
  color: #fff;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
  isolation: isolate;
}
.aurora-hero::before {
  /* 오로라 메시 그라데이션 */
  content: '';
  position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(0, 104, 179, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 163, 224, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(26, 53, 84, 0.4), transparent 60%);
  filter: blur(40px);
  z-index: -2;
  animation: aurora-shift 18s ease-in-out infinite alternate;
}
.aurora-hero::after {
  /* 미세 노이즈 그레인 (SVG 데이터 URI) */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.45'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}
@keyframes aurora-shift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-3%, 2%) rotate(2deg); }
  100% { transform: translate(2%, -3%) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-hero::before { animation: none; }
}

.aurora-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 880px) {
  .aurora-hero__inner { grid-template-columns: 1fr; }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  margin-bottom: var(--space-4);
}
.eyebrow-pill__dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #00A3E0;
  box-shadow: 0 0 0 3px rgba(0,163,224,0.20);
}

.display-hero {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  font-weight: var(--fw-black);
  letter-spacing: -0.028em;
  margin: 0 0 var(--space-4);
}

.aurora-side {
  position: relative;
  height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,104,179,0.4), rgba(26,53,84,0.6)),
    radial-gradient(circle at 30% 30%, rgba(0,163,224,0.5), transparent 60%);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.aurora-side__chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  backdrop-filter: blur(8px);
}
.aurora-side__chip strong {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: #fff;
  letter-spacing: -0.022em;
  line-height: 1;
}
.aurora-side__chip span {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Hero 사업부 링크 칩 (탭형 — 클릭 시 각 사이트로 이동) */
.hero-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: var(--space-2);
}
.hero-chips__label {
  font-size: var(--fs-xs); letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-right: 2px;
}
.hero-link-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  text-decoration: none; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-link-chip::after {
  content: '↗'; font-size: 0.9em; opacity: 0.65; margin-left: 2px;
}
.hero-link-chip:hover,
.hero-link-chip:focus-visible {
  background: rgba(0,163,224,0.22);
  border-color: rgba(0,163,224,0.55);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,104,179,0.28);
}
.hero-link-chip:hover::after,
.hero-link-chip:focus-visible::after { opacity: 1; }
.hero-link-chip__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.12); font-size: 13px; line-height: 1;
}

/* 17-3. Marquee (무한 스크롤) */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  padding: var(--space-4) 0;
  --duration: 30s;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--c-bg), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--c-bg), transparent); }

.marquee__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: marquee-scroll var(--duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
}
.marquee__item-icon {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* 17-4. Bento Grid (사업부 카드 + 보조 셀) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.bento__cell {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    box-shadow .45s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bento__cell:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 60px rgba(12,14,20,0.18);
}
.bento__cell--lg { grid-column: span 2; grid-row: span 2; min-height: 380px; padding: var(--space-7); }
.bento__cell--md { grid-column: span 2; grid-row: span 2; min-height: 380px; padding: var(--space-7); }
.bento__cell--sm { grid-column: span 2; min-height: 180px; }
.bento__cell--accent {
  background: linear-gradient(135deg, #0C0E14 0%, #1A3554 70%, #0068B3 100%);
  color: #fff;
}
.bento__cell--soft {
  background: linear-gradient(135deg, #1A3554 0%, #0068B3 100%);
  color: #fff;
}
.bento__cell--white {
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.bento__cell--dark {
  background: #0C0E14;
  color: #fff;
}
.bento__cell::before {
  /* 노이즈 그레인 */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.bento__cell > * { position: relative; z-index: 1; }
@media (max-width: 880px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--lg, .bento__cell--md { grid-column: 1 / -1; }
}

.bento__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}
.bento__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-black);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
}
.bento__cell--lg .bento__title { font-size: clamp(32px, 3.5vw, 48px); }
.bento__sub {
  font-size: var(--fs-md);
  opacity: 0.88;
  margin: 0 0 var(--space-4);
  max-width: 34ch;
}
.bento__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.bento__tag {
  font-size: var(--fs-xs);
  padding: 4px 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
}
.bento__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
}
.bento__cta::after {
  content: '→';
  transition: transform var(--transition);
}
.bento__cell:hover .bento__cta::after { transform: translateX(6px); }

.bento__cell--sm .bento__title { font-size: var(--fs-lg); }
.bento__cell--sm .bento__sub { font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.bento__cell--white .bento__cta { color: var(--c-accent); }

.bento__big-num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: -0.028em;
  background: linear-gradient(135deg, #00A3E0, #6FB4E8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

/* 17-5. Stats Strip */
.stats-strip {
  background: var(--c-bg-alt);
  padding: var(--space-7) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}
.stat {
  text-align: center;
}
.stat__num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--c-brand);
  margin-bottom: var(--space-2);
}
.stat__num .unit {
  font-size: 0.5em;
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  vertical-align: super;
  margin-left: 2px;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  letter-spacing: 0.5px;
}

/* 17-5b. Stat 클릭 가능 (a.stat--link) */
a.stat--link {
  display: block;
  position: relative;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: inherit;
  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    box-shadow .35s cubic-bezier(.16,1,.3,1),
    border-color .25s ease;
}
a.stat--link:hover,
a.stat--link:focus-visible {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 18px 36px rgba(12,14,20,0.10);
  color: inherit;
}
a.stat--link::after {
  content: '↗';
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all .25s ease;
}
a.stat--link:hover::after,
a.stat--link:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
/* 스무스 스크롤 — 같은 페이지 앵커도 자연스럽게 */
html { scroll-behavior: smooth; }

/* 17-6. CTA 풀 너비 (오로라) */
.cta-full {
  position: relative;
  background: linear-gradient(135deg, #0C0E14 0%, #1A3554 50%, #0068B3 100%);
  color: #fff;
  padding: var(--space-9) 0;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.cta-full::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,163,224,0.3), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0,104,179,0.25), transparent 50%);
  filter: blur(60px);
  z-index: -1;
}
.cta-full h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--fw-black);
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
}
.cta-full p {
  font-size: var(--fs-md);
  opacity: 0.82;
  margin-bottom: var(--space-5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* ════════════════════════════════════════════════════════════
   18. 메인홈 신규 컴포넌트 (Skip · Value · Process · Channels · Location · BackToTop)
   ════════════════════════════════════════════════════════════ */

/* 18-1. Skip Link (접근성) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--c-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  z-index: var(--z-toast);
  transition: top 0.25s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* 18-2. Value Proposition (왜 우리?) */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 880px) {
  .value-props { grid-template-columns: 1fr; }
}
.value-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.value-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(12,14,20,0.08);
}
.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,104,179,0.10), rgba(0,163,224,0.08));
  color: var(--c-accent);
  font-size: 26px;
  margin-bottom: var(--space-3);
}
.value-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-brand);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.018em;
}
.value-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* 18-3. Process (4단계) */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  position: relative;
}
.process::before {
  /* 4 단계 연결 점선 */
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--c-border) 0,
    var(--c-border) 6px,
    transparent 6px,
    transparent 12px
  );
  z-index: 0;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3) var(--space-2);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-3);
}
.process-step__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-brand);
  margin: 0 0 6px;
}
.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin: 0;
}

/* 18-4. Contact Channels (전화·이메일·블로그) */
.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 720px) {
  .channels { grid-template-columns: 1fr; }
}
.channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}
.channel:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-2px);
}
.channel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
  font-size: 22px;
  flex-shrink: 0;
}
.channel__body { flex: 1; min-width: 0; }
.channel__label {
  display: block;
  font-size: var(--fs-2xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}
.channel__value {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 18-5. Location mini (Footer 위) */
.location-mini {
  background: var(--c-bg-alt);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--c-border);
}
.location-mini__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.location-mini__addr {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.location-mini__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}
.location-mini__addr strong {
  display: block;
  color: var(--c-brand);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
}
.location-mini__links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.location-mini__links a {
  font-size: var(--fs-sm);
  color: var(--c-accent);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: #fff;
  transition: all .15s ease;
}
.location-mini__links a:hover {
  border-color: var(--c-accent);
  background: rgba(0,104,179,0.06);
}

/* 18-6. Back to Top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottom-tabs-h) + 16px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12,14,20,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: var(--z-fab);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-accent); }

@media (min-width: 880px) {
  .back-to-top { bottom: 24px; }
}

/* 18-7. sr-only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ════════════════════════════════════════════════════════════
   19. Precision in Motion — 모션·인터랙션 레이어
   ════════════════════════════════════════════════════════════ */

/* 19-1. Scroll Reveal — html.js 스코프 (JS 미동작 시 콘텐츠 항상 표시) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s cubic-bezier(.16,1,.3,1),
    transform .7s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 19-2. 오실로스코프 패널 (Hero 우측) */
.scope-panel {
  position: relative;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, rgba(0,163,224,0.18), transparent 60%),
    linear-gradient(160deg, #0A0C12 0%, #10141F 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 30px 60px rgba(0,0,0,0.4);
}
/* 상단 상태바 (인스트루먼트 헤더) */
.scope-header {
  position: absolute; top: 0; left: 0; right: 0; height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 3;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,0.42); text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.scope-header .live { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.65); }
.scope-header .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #2BD576; box-shadow: 0 0 8px #2BD576;
  animation: blink 1.6s ease-in-out infinite;
}

/* 2×2 인스트루먼트 클러스터 */
.scope-grid-4 {
  position: absolute; left: 14px; right: 14px; bottom: 14px; top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 10px; z-index: 1;
}
.quad {
  position: relative; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 100% at 50% 0%, rgba(0,163,224,0.10), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08);
}
.quad__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(0,163,224,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,163,224,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.quad__label {
  position: absolute; top: 8px; left: 10px; z-index: 4;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5); text-transform: uppercase; line-height: 1.35;
}
.quad__label b { display: block; color: #00A3E0; font-weight: 700; font-size: 11px; letter-spacing: 0; }
.quad .scope-trace { z-index: 2; }

/* Q3 예측 — 열화상 (서멀 LUT) */
.quad--thermal .thermal {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 38% 62%, rgba(255,210,80,0.55) 0%, transparent 32%),
    radial-gradient(circle at 62% 44%, #FFFFFF 0%, #FFE25A 12%, #FF9D2E 26%, #FF3B2F 42%, #C21A6B 60%, #3A2C8F 80%, #0E1B43 100%);
  opacity: 0; animation: fill-in 1.2s ease 1.4s forwards;
}

/* Q2 전력분석기 — 전압(V)·전류(I) */
.trace-volt, .trace-curr {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.trace-volt {
  stroke: url(#voltGrad); stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgba(245,158,11,0.5));
  animation: trace-draw 2s cubic-bezier(.16,1,.3,1) .6s forwards;
}
.trace-curr {
  stroke: url(#waveGrad); stroke-width: 1.8; opacity: 0.85;
  filter: drop-shadow(0 0 5px rgba(0,163,224,0.5));
  animation: trace-draw 2s cubic-bezier(.16,1,.3,1) .85s forwards;
}
.scope-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-wave, .trace-peaks {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; /* pathLength=1 정규화 */
}
/* 시그널 애널라이저 — 스펙트럼 라인 (포스포 인광 글로우) */
.spectrum-line {
  fill: none; stroke: url(#waveGrad); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter:
    drop-shadow(0 0 2px rgba(0,212,255,0.9))
    drop-shadow(0 0 7px rgba(0,163,224,0.55))
    drop-shadow(0 0 15px rgba(0,104,179,0.30));
  animation: trace-draw 2.4s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.spectrum-fill {
  fill: url(#peakFill); stroke: none;
  opacity: 0; animation: fill-in 1s ease 2.2s forwards;
}
/* 피크 마커 (스펙트럼 애널라이저 시그니처) */
.spectrum-marker {
  position: absolute; top: 4px; transform: translateX(-50%);
  z-index: 3; color: #00D4FF;
  font-size: 13px; line-height: 1; text-align: center;
  filter: drop-shadow(0 0 5px rgba(0,212,255,0.85));
  opacity: 0; animation: marker-pop .45s ease 2.5s forwards;
}
.spectrum-marker small {
  display: block; font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 1px; color: rgba(0,212,255,0.8);
}
@keyframes marker-pop {
  from { opacity: 0; transform: translate(-50%, -5px); }
  to   { opacity: 1; transform: translateX(-50%); }
}
.trace-peaks {
  stroke: url(#peakGrad); stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0,163,224,0.5));
  animation: trace-draw 2.6s cubic-bezier(.16,1,.3,1) 1.1s forwards;
}
.trace-peaks-fill {
  fill: url(#peakFill); stroke: none;
  opacity: 0; animation: fill-in .9s ease 2.6s forwards;
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { opacity: 1; } }

/* 스캔라인 (좌→우 스윕) */
.scope-panel__scan {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0,163,224,0.9), transparent);
  box-shadow: 0 0 16px rgba(0,163,224,0.8);
  animation: scan-sweep 4s linear 3.2s infinite;
  opacity: 0;
}
@keyframes scan-sweep {
  0%   { left: 0;    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 리드아웃 라벨 */
.scope-panel__readout {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(0,163,224,0.85);
  text-transform: uppercase;
}
.scope-panel__readout .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7);
}
.scope-panel__readout .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #2BD576;
  box-shadow: 0 0 8px #2BD576;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  .spectrum-line, .trace-peaks, .trace-volt, .trace-curr { animation: none; stroke-dashoffset: 0; }
  .spectrum-fill, .trace-peaks-fill, .quad--thermal .thermal { animation: none; opacity: 1; }
  .spectrum-marker { animation: none; opacity: 1; }
  .scope-panel__scan { display: none; }
  .scope-header .live::before { animation: none; }
}
@media (max-width: 880px) {
  .scope-panel { height: 320px; }
  .quad__label { font-size: 8px; }
  .quad__label b { font-size: 10px; }
}

/* 19-3. Bento 스포트라이트 (커서 추적 글로우) */
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    rgba(255,255,255,0.10), transparent 60%
  );
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 2;
}
[data-spotlight]:hover::after { opacity: 1; }

/* 19-4. Magnetic 버튼 */
[data-magnetic] {
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* 19-5. 모바일 드로어 */
@media (max-width: 880px) {
  .site-nav.drawer-ready {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-3) var(--container-pad) var(--space-4);
    gap: 4px;
    transform: translateY(-120%);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-mega-menu);
  }
  body.nav-open .site-nav.drawer-ready { transform: translateY(0); }
  .site-nav.drawer-ready a { padding: 12px 8px; border-radius: var(--radius-sm); }
}

/* 19-6. 부드러운 헤더 wordmark 그라데이션 (브랜드 강조) */
.site-header__wordmark {
  background: linear-gradient(135deg, var(--c-text) 60%, var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
