/* ═══════════════════════════════════════════
   VEXAFAB — Premium light design system
   ═══════════════════════════════════════════ */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #101114;
  --ink-soft: #2A2C33;
  --muted: #6B6E76;
  --faint: #9B9EA6;
  --line: #E7E5DF;
  --line-strong: #D8D6CF;
  --accent: #1E4E9D;
  --accent-soft: #E8EEF8;
  --accent-bright: #4C74C9;
  --brand-red: #C8102E;
  --green: #14915B;
  --green-soft: #E7F5EE;
  --red: #C8102E;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16,17,20,.04), 0 2px 8px rgba(16,17,20,.04);
  --shadow-md: 0 2px 6px rgba(16,17,20,.05), 0 12px 32px rgba(16,17,20,.08);
  --shadow-lg: 0 4px 12px rgba(16,17,20,.06), 0 24px 64px rgba(16,17,20,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; }
.section-alt { background: var(--bg-alt); }
.desktop-br { display: inline; }

/* ── Typography ── */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
  margin-bottom: 24px;
}
.h2 em, .hero-title em, .cta-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(17px, 2vw, 20px); color: var(--muted);
  max-width: 640px; line-height: 1.65; margin-bottom: 8px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 550; text-decoration: none; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #000; }
.btn-ghost { color: var(--ink); }
.btn-ghost .arrow { transition: transform .3s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.btn-outline { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px;
}
.badge-live { background: var(--green-soft); color: var(--green); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  display: inline-block; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(20,145,91,.35); }
  50% { box-shadow: 0 0 0 6px rgba(20,145,91,0); }
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(250,250,247,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo {
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }
.lw-red { color: var(--brand-red); }
.lw-blue { color: var(--accent); }
.logo-dot { color: var(--brand-red); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-burger { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 32px 28px;
  background: rgba(250,250,247,.97); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-mobile a { padding: 12px 0; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.nav-mobile .btn { justify-content: center; margin-top: 12px; }
.nav-mobile.open { display: flex; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; padding: 200px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  opacity: .5;
}
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(33,64,154,.09), transparent);
}
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 550; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 8px 18px; margin-bottom: 36px; background: rgba(255,255,255,.6);
}
.hero-title {
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 650; letter-spacing: -0.04em; line-height: 1.02;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--muted);
  line-height: 1.6; margin: 0 auto 40px; max-width: 680px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 96px; }

/* hero floating dashboard */
.hero-visual { position: relative; max-width: 760px; margin: 0 auto; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  text-align: left;
}
.hc-main { padding: 28px 32px; position: relative; z-index: 2; }
.hc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hc-title { font-weight: 600; font-size: 15px; }
.hc-stages { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hc-stage {
  font-size: 12.5px; font-weight: 550; color: var(--faint);
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.hc-stage.done { color: var(--green); border-color: transparent; background: var(--green-soft); }
.hc-stage.active { color: var(--accent); border-color: transparent; background: var(--accent-soft); animation: softblink 2.4s infinite; }
@keyframes softblink { 50% { opacity: .65; } }
.hc-check { font-size: 10px; }
.hc-bar { height: 6px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.hc-bar-fill, .po-fill {
  height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transition: width 1.4s var(--ease) .3s;
}
.in-view .hc-bar-fill, .in-view .po-fill { width: var(--w); }
.hc-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hc-float { position: absolute; padding: 18px 22px; z-index: 3; }
.hc-quality { top: -46px; right: -56px; display: flex; flex-direction: column; gap: 3px; animation: floaty 6s ease-in-out infinite; }
.hc-update { bottom: -40px; left: -64px; display: flex; gap: 13px; align-items: center; animation: floaty 7s ease-in-out 1s infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hc-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); display: block; }
.hc-big { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; }
.hc-trend { font-size: 12px; font-weight: 550; }
.hc-trend.up { color: var(--green); }
.hc-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hc-text { font-size: 13.5px; font-weight: 500; display: block; }

/* ═══════════ STRIP ═══════════ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-top: 48px; padding-bottom: 48px;
}
.strip-item { display: flex; flex-direction: column; gap: 6px; }
.strip-num { font-size: 40px; font-weight: 650; letter-spacing: -0.03em; }
.strip-label { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ═══════════ STORY ═══════════ */
.story .container { display: flex; flex-direction: column; gap: 120px; }
.chaos { margin-top: 56px; position: relative; text-align: center; padding: 24px 0 0; }
.chaos-node {
  display: inline-block; font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff; padding: 12px 28px; border-radius: 100px;
  position: relative; z-index: 2;
}
.chaos-orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; position: relative; }
.chaos-orbit::before {
  content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 24px;
  background: var(--line-strong);
}
.chaos-item {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 100px; padding: 9px 20px;
  background: var(--surface);
  animation: wobble 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
@keyframes wobble { 33% { transform: translateY(-5px) rotate(-1deg); } 66% { transform: translateY(3px) rotate(1deg); } }
.chaos-caption { margin-top: 28px; font-size: 14.5px; color: var(--faint); font-style: italic; font-family: var(--serif); font-size: 17px; }

.solution-line {
  display: flex; align-items: center; gap: 0; margin-top: 56px; max-width: 720px;
}
.sl-node {
  font-size: 14px; font-weight: 600; padding: 11px 24px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: var(--surface); white-space: nowrap;
}
.sl-vexa { background: var(--ink); color: #fff; border-color: var(--ink); letter-spacing: -0.02em; }
.sl-track { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.sl-progress {
  position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%);
}
.in-view .sl-progress { animation: slide 1.2s var(--ease) forwards; }
.in-view .sl-progress.d2 { animation-delay: .9s; }
@keyframes slide { to { transform: translateX(0); } }

/* ═══════════ PROCESS TIMELINE ═══════════ */
.process .container:first-child { margin-bottom: 24px; }
.timeline-wrap { position: relative; margin: 56px 0 40px; }
.timeline-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--line); z-index: 1;
}
.timeline-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s ease-out; }
.timeline {
  display: flex; gap: 16px; overflow-x: auto; padding: 40px 32px 24px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.timeline::-webkit-scrollbar { display: none; }
.tl-step {
  scroll-snap-align: start;
  flex: 0 0 258px; text-align: left; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  display: flex; flex-direction: column; gap: 10px;
}
.tl-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tl-step.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.tl-num { font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--faint); }
.tl-step.active .tl-num { color: var(--accent); }
.tl-icon { width: 40px; height: 40px; color: var(--ink-soft); }
.tl-icon svg { width: 100%; height: 100%; }
.tl-step.active .tl-icon { color: var(--accent); }
.tl-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.tl-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.tl-detail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 44px; box-shadow: var(--shadow-sm); margin-top: 12px;
}
.tl-detail-inner { max-width: 720px; }
.tl-detail h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.tl-detail p { color: var(--muted); font-size: 16.5px; }
.tl-detail-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tl-detail-tags li {
  font-size: 12.5px; font-weight: 550; color: var(--accent);
  background: var(--accent-soft); border-radius: 100px; padding: 5px 14px;
}
.tl-fade { animation: tlfade .45s var(--ease); }
@keyframes tlfade { from { opacity: 0; transform: translateY(8px); } }

/* ═══════════ DASHBOARD ═══════════ */
.dash-frame-wrap { margin-top: 64px; perspective: 1600px; }
.dash-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotateX(4deg) scale(.985); transform-origin: top center;
  transition: transform 1s var(--ease);
}
.dash-frame-wrap.in-view .dash-frame { transform: rotateX(0) scale(1); }
.dash-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.dc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.dc-url {
  margin-left: 14px; font-size: 12.5px; color: var(--faint);
  background: var(--surface); border: 1px solid var(--line);
  padding: 5px 16px; border-radius: 8px; flex: 1; max-width: 320px; text-align: center;
}
.dash-body { display: flex; min-height: 480px; }
.dash-side {
  width: 190px; flex-shrink: 0; border-right: 1px solid var(--line);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 3px; background: var(--bg);
}
.ds-logo { font-weight: 700; font-size: 16px; letter-spacing: -0.03em; padding: 0 12px 18px; }
.ds-item { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 8px; }
.ds-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dash-main { flex: 1; padding: 24px 28px; min-width: 0; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dt-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.kpi-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.kpi-val { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.kpi-sub { font-size: 11.5px; color: var(--muted); }
.kpi-up { color: var(--green); }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
.dash-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.dash-card-title { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 14px; }
.po-row { display: grid; grid-template-columns: 58px 1fr 90px 64px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.po-row:first-of-type { border-top: 0; }
.po-id { font-size: 12px; font-weight: 650; color: var(--accent); }
.po-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-bar { height: 5px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.po-stage { font-size: 11px; font-weight: 550; color: var(--muted); text-align: right; }
.feed-item { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; }
.feed-time { font-size: 11px; font-weight: 600; color: var(--faint); flex-shrink: 0; width: 56px; }
.feed-text { font-size: 12.5px; line-height: 1.45; }
.feed-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.feed-photos span {
  aspect-ratio: 1; border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-alt), var(--line));
}
.ms { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; font-weight: 500; }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.ms-dot.done { background: var(--green); }
.ms-dot.active { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ms-date { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.dash-points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px;
}
.point h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.point p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ═══════════ CAPABILITIES ═══════════ */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px;
}
.cap-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cap-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(33,64,154,.055), transparent 60%);
  transition: opacity .4s; pointer-events: none;
}
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cap-card:hover::after { opacity: 1; }
.cap-icon {
  display: inline-flex; width: 46px; height: 46px; padding: 11px;
  border-radius: 12px; background: var(--bg-alt); color: var(--ink-soft);
  margin-bottom: 20px; transition: background .3s, color .3s;
}
.cap-card:hover .cap-icon { background: var(--accent-soft); color: var(--accent); }
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.cap-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ═══════════ SAMPLING ═══════════ */
.sample-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0; align-items: stretch; margin-top: 72px;
}
.sf-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sf-stage:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sf-final { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sf-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 650;
  margin-bottom: 18px;
}
.sf-final .sf-badge { background: var(--accent); }
.sf-stage h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.sf-stage p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.sf-connector {
  display: flex; align-items: center; justify-content: center; padding: 0 6px; position: relative;
}
.sf-connector::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.sf-loop {
  position: relative; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--faint); background: var(--bg);
  padding: 4px 8px; white-space: nowrap; transform: rotate(-90deg);
}

/* ═══════════ QUALITY ═══════════ */
.q-gates {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin: 72px 0 56px; position: relative; padding-top: 36px;
}
.q-line {
  position: absolute; top: 0; left: 6%; right: 6%; height: 2px;
  background: var(--line-strong); border-radius: 2px; overflow: hidden;
}
.q-line-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width 2s var(--ease) .3s; }
.in-view .q-line-fill { width: 100%; }
.q-gate {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.q-gate:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.q-gate::before {
  content: ""; position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft);
}
.q-marker { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); display: block; margin-bottom: 14px; }
.q-gate h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.q-gate p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.q-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.q-check {
  border-top: 2px solid var(--ink); padding-top: 18px;
}
.q-check h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.q-check p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ═══════════ COMPARISON ═══════════ */
.cmp-table {
  margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.cmp-head {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.cmp-head span { padding: 22px 36px; font-weight: 650; font-size: 16px; }
.cmp-col-old { color: var(--faint); }
.cmp-col-new { background: var(--ink); color: #fff; letter-spacing: -0.02em; font-size: 18px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-old, .cmp-new { padding: 20px 36px; font-size: 15.5px; display: flex; align-items: center; gap: 14px; }
.cmp-old { color: var(--muted); }
.cmp-new { background: #FCFCFA; font-weight: 550; }
.x { color: var(--red); font-size: 13px; opacity: .8; }
.tick { color: var(--green); font-weight: 700; font-size: 14px; }

/* ═══════════ FACILITY ═══════════ */
.fac-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px;
}
.fac-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fac-lg { grid-column: span 2; aspect-ratio: 16/9; }
.fac-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(16,17,20,.015) 14px 28px),
    linear-gradient(160deg, var(--bg-alt), #ECEAE4);
  color: var(--faint);
}
.fac-ph svg { width: 44px; height: 44px; opacity: .55; }
.fac-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.fac-card:hover img { transform: scale(1.04); }
.fac-card figcaption {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.fac-note { margin-top: 28px; font-size: 13.5px; color: var(--faint); text-align: center; font-style: italic; }

/* ═══════════ INDUSTRIES ═══════════ */
.industries { padding-bottom: 100px; }
.ind-marquee {
  margin-top: 56px; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ind-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.ind-marquee:hover .ind-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ind-chip {
  font-size: 15.5px; font-weight: 550; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 100px; padding: 13px 30px;
  transition: border-color .3s, color .3s;
}
.ind-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════ TESTIMONIALS ═══════════ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-metric { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; }
.testi-metric-label {
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.testi-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; flex: 1; }
.testi-who { margin-top: 22px; font-size: 13px; font-weight: 550; color: var(--faint); }

/* ═══════════ FAQ ═══════════ */
.faq-container { max-width: 820px; }
.faq-list { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease);
}
.faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-item p {
  padding: 0 40px 28px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7;
  animation: tlfade .4s var(--ease);
}

/* ═══════════ CTA ═══════════ */
.cta {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  margin: 0 24px 24px; padding: 130px 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 880px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(74,107,196,.25), transparent);
}
.cta-inner { text-align: center; position: relative; }
.cta-title {
  font-size: clamp(38px, 6vw, 68px); font-weight: 650;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px;
}
.cta-sub { font-size: clamp(17px, 2.2vw, 21px); color: rgba(255,255,255,.65); margin-bottom: 44px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-direct { margin-top: 36px; }
.cta-direct .btn { padding: 12px 26px; font-size: 14.5px; }
.cta-note { margin-top: 32px; font-size: 14px; color: rgba(255,255,255,.45); }

/* contact form */
.cta-form {
  max-width: 640px; margin: 0 auto; text-align: left;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 40px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cf-field label {
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.cf-field input, .cf-field textarea {
  font: inherit; color: #fff; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 13px 16px; transition: border-color .25s, background .25s;
  resize: vertical;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(255,255,255,.35); }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--accent-bright); background: rgba(255,255,255,.09);
}
.cf-submit { width: 100%; justify-content: center; margin-top: 6px; }
.cf-status { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); text-align: center; min-height: 1em; }

/* ═══════════ FOOTER ═══════════ */
.footer { padding: 72px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr 1.3fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--line);
}
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--faint); transition: color .25s; }
.footer-social:hover svg { color: #0A66C2; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer-tagline {
  display: block; margin-top: 10px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-head { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer-col a { font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--ink); }
.footer-muted { font-size: 14.5px; color: var(--faint); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px 32px; font-size: 13px; color: var(--faint);
}

/* ═══════════ ENGINEERING / TECH PACK ═══════════ */
.engineering { background: #F6F5F2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eng-cta { margin-top: 36px; }
.eng-wrap { margin-top: 72px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tp-sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.tp-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 32px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.tp-head-left { display: flex; align-items: center; gap: 14px; }
.tp-head-left .logo-mark { width: 30px; height: 30px; }
.tp-title { display: block; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.tp-meta { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* tabs */
.tp-tabs {
  display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; background: var(--surface);
}
.tp-tabs::-webkit-scrollbar { display: none; }
.tp-tab {
  padding: 16px 16px 14px; font-size: 13.5px; font-weight: 550; color: var(--muted);
  white-space: nowrap; position: relative; transition: color .25s;
}
.tp-tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease);
}
.tp-tab:hover { color: var(--ink); }
.tp-tab.active { color: var(--accent); }
.tp-tab.active::after { transform: scaleX(1); }

/* panels */
.tp-panel { display: none; padding: 44px 40px; }
.tp-panel.active { display: block; animation: tpfade .5s var(--ease); }
@keyframes tpfade { from { opacity: 0; transform: translateY(12px); } }
.tp-h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.tp-p { font-size: 15px; color: var(--muted); max-width: 620px; margin-bottom: 30px; line-height: 1.65; }

/* ── technical sketch ── */
.ts-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.ts-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ts-fig-label {
  display: block; font-size: 11px; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px; text-align: center;
}
.ts-svg-wrap { position: relative; }
.ts-svg { width: 100%; height: auto; display: block; }
.ts-img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--line); background: #fff;
}
.flat .body { fill: #FDFDFC; stroke: #23252B; stroke-width: 1.4; stroke-linejoin: round; }
.flat .line { fill: none; stroke: #23252B; stroke-width: 1.3; }
.flat .stitch { fill: none; stroke: #8A8D95; stroke-width: 1; stroke-dasharray: 3.5 2.5; }
.flat .fold { stroke: #C9CCD3; stroke-width: .9; stroke-dasharray: 7 5; }
.flat .grain, .flat .pull { fill: #23252B; }
.flat .grainline { stroke: #23252B; stroke-width: 1; }
.flat .gather line { stroke: #8A8D95; stroke-width: .9; }
.faint-flat .body, .faint-flat .line { stroke: #B9BCC4; }
.faint-flat .body { fill: #FCFCFB; }

/* hotspots */
.hs {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-red); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(200,16,46,.35);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.hs::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(200,16,46,.45);
  opacity: 0; transform: scale(.7); transition: all .3s var(--ease);
}
.hs:hover { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 4px 14px rgba(200,16,46,.45); }
.hs:hover::before, .hs.active::before { opacity: 1; transform: scale(1); animation: hspulse 2s infinite; }
.hs.active { background: var(--accent); box-shadow: 0 2px 10px rgba(30,78,157,.45); }
.hs.active::before { border-color: rgba(30,78,157,.45); }
@keyframes hspulse { 50% { transform: scale(1.25); opacity: .4; } }

/* info panel */
.ts-panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: sticky; top: 100px;
}
.ts-panel-eyebrow {
  font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.ts-panel-body h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 16px; }
.ts-panel-body ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.ts-panel-body li {
  font-size: 14px; color: var(--ink-soft); padding-left: 22px; position: relative; line-height: 1.5;
}
.ts-panel-body li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  background: var(--accent-soft); border-radius: 3px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path d="M3 6.2l2 2 4-4.4" fill="none" stroke="%231E4E9D" stroke-width="1.6"/></svg>');
}
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-chips span {
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 100px; padding: 5px 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.ts-chips svg { width: 12px; height: 12px; }
.ts-panel-nav { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.ts-hint { font-size: 12.5px; color: var(--faint); font-style: italic; font-family: var(--serif); font-size: 14px; }
.hs-fade { animation: tpfade .4s var(--ease); }

/* ── measurement chart ── */
.mc-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mc-table th, .mc-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.mc-table th {
  font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.mc-table td:first-child, .mc-table th:first-child { text-align: left; }
.mc-table td:first-child { font-weight: 550; }
.mc-table .base { background: var(--accent-soft); font-weight: 650; color: var(--accent); }
.mc-table tbody tr { transition: background .2s; cursor: default; }
.mc-table tbody tr:hover { background: var(--bg); }
.mc-table tbody tr.hot { background: #FDF1F2; }
.pom-key {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px; border-radius: 50%; margin-right: 10px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 650;
}
.mc-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); }
.pom line { stroke: var(--accent); stroke-width: 1.4; marker-start: none; opacity: .55; transition: opacity .25s, stroke .25s; }
.pom text { font-size: 11px; font-weight: 700; fill: var(--accent); opacity: .7; transition: opacity .25s, fill .25s; }
.pom.hot line { stroke: var(--brand-red); stroke-width: 2.4; opacity: 1; }
.pom.hot text { fill: var(--brand-red); opacity: 1; }

/* ── grading ── */
.gr-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; }
.gr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.gr-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px; background: var(--bg);
}
.gr-label { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.gr-val { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.gr-sub { font-size: 12px; color: var(--muted); }
.gr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gr-table th, .gr-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.gr-table th { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.gr-table td:last-child { font-weight: 650; color: var(--accent); }
.gr-nest-wrap { text-align: center; }
.gr-nest .n {
  fill: none; stroke-width: 1.3;
  transform-origin: 110px 185px;
  opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.gr-nest .n-xs { stroke: #C9CCD3; transform: scale(.9); }
.gr-nest .n-s  { stroke: #A6ABB5; transform: scale(.95); }
.gr-nest .n-m  { stroke: var(--accent); stroke-width: 2; transform: scale(1); }
.gr-nest .n-l  { stroke: #A6ABB5; transform: scale(1.05); }
.gr-nest .n-xl { stroke: var(--brand-red); transform: scale(1.1); }
.gr-nest.animate .n { opacity: 1; }
.gr-nest.animate .n-xs { transition-delay: .05s; }
.gr-nest.animate .n-s { transition-delay: .2s; }
.gr-nest.animate .n-m { transition-delay: .35s; }
.gr-nest.animate .n-l { transition-delay: .5s; }
.gr-nest.animate .n-xl { transition-delay: .65s; }
.gr-legend { display: flex; justify-content: center; gap: 16px; margin-top: 16px; font-size: 12px; font-weight: 550; color: var(--muted); flex-wrap: wrap; }
.gr-legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sw-xs { background: #C9CCD3; } .sw-s { background: #A6ABB5; } .sw-m { background: var(--accent); }
.sw-l { background: #A6ABB5; } .sw-xl { background: var(--brand-red); }

/* ── BOM ── */
.bom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.bom-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.bom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); background: var(--surface); }
.bom-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 100px; padding: 3px 10px;
  display: inline-block; margin-bottom: 12px;
}
.bom-card h4 { font-size: 15.5px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.bom-spec { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.bom-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; }
.bom-meta span:last-child { font-weight: 650; color: var(--ink-soft); }

/* ── cost sheet ── */
.cs-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.cs-rows { display: flex; flex-direction: column; }
.cs-row {
  display: grid; grid-template-columns: 130px 1fr 64px; gap: 16px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.cs-name { font-weight: 550; }
.cs-bar { height: 8px; background: var(--bg-alt); border-radius: 100px; overflow: hidden; }
.cs-bar i {
  display: block; height: 100%; border-radius: 100px; background: var(--c);
  width: 0; transition: width 1.1s var(--ease);
}
.tp-panel.animate .cs-bar i { width: var(--w); }
.cs-amt { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.cs-total {
  display: flex; justify-content: space-between; padding: 16px 0 0; margin-top: 4px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
}
.cs-total span:last-child { color: var(--accent); }
.cs-donut-wrap { max-width: 260px; margin: 0 auto 24px; }
.cs-donut { width: 100%; height: auto; transform: rotate(-90deg); }
.cs-donut .dseg { fill: none; stroke-width: 26; stroke: var(--c); transition: stroke-dashoffset 1.2s var(--ease); }
.cs-donut text { transform: rotate(90deg); transform-origin: 90px 90px; }
.d-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; fill: var(--ink); }
.d-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; fill: var(--faint); }
.cs-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-chip { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.cs-chip-val { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.cs-chip-label { font-size: 11.5px; color: var(--muted); }

/* ── quality engineering ── */
.qe-flow { list-style: none; max-width: 720px; position: relative; }
.qe-flow::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: var(--line-strong);
}
.qe-step {
  display: flex; gap: 22px; padding: 14px 18px; border-radius: 14px; position: relative;
  transition: background .3s, transform .3s var(--ease);
}
.qe-step:hover { background: var(--bg); transform: translateX(6px); }
.qe-num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--muted); position: relative; z-index: 1;
  transition: border-color .3s, color .3s, background .3s;
}
.qe-step:hover .qe-num { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.qe-step h4 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; margin: 8px 0 4px; }
.qe-step p {
  font-size: 13.5px; color: var(--muted); line-height: 1.55; max-height: 0; opacity: 0;
  overflow: hidden; transition: max-height .45s var(--ease), opacity .4s;
}
.qe-step:hover p, .qe-step:focus-within p { max-height: 90px; opacity: 1; }

/* ── operation bulletin ── */
.ob-table-wrap { overflow-x: auto; }
.ob-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.ob-table th, .ob-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.ob-table th { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ob-table td:first-child { font-weight: 650; color: var(--faint); font-variant-numeric: tabular-nums; }
.ob-table td:nth-child(4) { font-variant-numeric: tabular-nums; font-weight: 550; }
.ob-table tbody tr { transition: background .2s; }
.ob-table tbody tr:hover { background: var(--bg); }
.skill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 700;
}
.sa { background: var(--accent-soft); color: var(--accent); }
.sb { background: var(--green-soft); color: var(--green); }
.sc { background: var(--bg-alt); color: var(--muted); }
.ob-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.ob-stat { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--bg); }
.ob-val { display: block; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.ob-label { font-size: 12px; color: var(--muted); }

/* ── ERP tab ── */
.erp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.erp-grid .dash-card { background: var(--bg); }

/* ── closing ── */
.eng-close { margin-top: 80px; text-align: center; }
.eng-quote {
  font-family: var(--serif); font-size: clamp(22px, 3.2vw, 32px); line-height: 1.35;
  color: var(--ink-soft); max-width: 760px; margin: 0 auto 40px; letter-spacing: -0.01em;
}
.eng-quote em { color: var(--accent); font-style: italic; }

/* ═══════════ STICKY CTA ═══════════ */
.sticky-cta {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom, 22px));
  transform: translate(-50%, 90px);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  white-space: nowrap; max-width: calc(100vw - 32px);
  padding: 14px 28px; border-radius: 100px;
  box-shadow: 0 8px 28px rgba(16,17,20,.28), 0 2px 8px rgba(16,17,20,.18);
  opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s, background .25s, box-shadow .3s;
}
.sticky-cta.show {
  transform: translate(-50%, 0);
  opacity: 1; pointer-events: auto;
}
.sticky-cta:hover {
  background: #000;
  transform: translate(-50%, -3px);
  box-shadow: 0 12px 36px rgba(16,17,20,.34), 0 3px 10px rgba(16,17,20,.2);
}
.sticky-cta .arrow { transition: transform .3s var(--ease); }
.sticky-cta:hover .arrow { transform: translateX(4px); }

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════ ACCESSIBILITY ═══════════ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .in-view .hc-bar-fill, .in-view .po-fill { width: var(--w); }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ts-split { grid-template-columns: 1fr; }
  .ts-panel { position: static; }
  .mc-split, .gr-split, .cs-split { grid-template-columns: 1fr; gap: 36px; }
  .mc-diagram, .gr-nest-wrap { max-width: 420px; margin: 0 auto; }
  .erp-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-milestones { grid-column: span 2; }
  .sample-flow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sf-connector { display: none; }
  .fac-grid { grid-template-columns: repeat(3, 1fr); }
  .fac-lg { grid-column: span 3; aspect-ratio: 21/9; }
  .hc-quality { right: -12px; }
  .hc-update { left: -12px; }
}
@media (max-width: 860px) {
  .section { padding: 96px 0; }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 150px 0 90px; }
  .hero-actions { margin-bottom: 72px; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .dash-side { display: none; }
  .tp-panel { padding: 30px 22px; }
  .tp-head { padding: 20px 22px; }
  .ts-figures { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gr-cards { grid-template-columns: 1fr; }
  .ob-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-row { grid-template-columns: 105px 1fr 58px; gap: 10px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-milestones { grid-column: auto; }
  .dash-points { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .q-gates { grid-template-columns: 1fr; padding-top: 0; gap: 20px; }
  .q-line { display: none; }
  .q-gate::before { display: none; }
  .q-checks { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .cmp-head span, .cmp-old, .cmp-new { padding: 18px 22px; font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .fac-lg { grid-column: span 2; }
  .desktop-br { display: none; }
  .hc-quality { position: static; margin-top: 14px; animation: none; }
  .hc-update { position: static; margin-top: 14px; animation: none; }
  .hero-visual { display: flex; flex-direction: column; }
  .cta { margin: 0 12px 12px; padding: 90px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .cap-grid { grid-template-columns: 1fr; }
  .sample-flow { grid-template-columns: 1fr; }
  .q-checks { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .strip-num { font-size: 32px; }
  .btn-lg { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .sticky-cta { font-size: 13.5px; padding: 13px 22px; gap: 8px; }
  .cmp-head span, .cmp-old, .cmp-new { padding: 14px 12px; font-size: 12px; line-height: 1.45; }
  .cmp-old, .cmp-new { gap: 8px; align-items: flex-start; }
  .x, .tick { margin-top: 1px; }
  .cmp-col-new { font-size: 13.5px; }
  .fac-grid { grid-template-columns: 1fr; }
  .fac-lg { grid-column: span 1; }
  .timeline { padding: 40px 22px 24px; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .cta-form { padding: 28px 22px; }
}
