/* ── Custom properties ───────────────────────────────────────────────────── */
:root {
  --transition-base: 150ms ease;
  --transition-slow: 300ms ease;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-nav: 0 2px 16px rgba(0,0,0,0.10);
  --primary: #1A3A5C;
  --accent: #2E7CC6;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
#site-nav.nav-scrolled { box-shadow: var(--shadow-nav); }

#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

.nav-dropdown-wrap { position: relative; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: var(--shadow-nav);
  z-index: 100;
  min-width: 220px;
  overflow: hidden;
  white-space: nowrap;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown { display: block; }

.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: #334155;
  transition: background var(--transition-base);
  text-decoration: none;
}
.nav-dropdown a:hover { background: #eff6ff; color: var(--accent); }

.dropdown-section-label {
  padding: 8px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  cursor: default;
}
.dropdown-section-label:first-child { border-top: none; }

/* Mega-menu (Lines dropdown) */
.nav-mega {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-nav);
  z-index: 100;
  padding: 28px 0 20px;
}
.nav-dropdown-wrap:hover .nav-mega,
.nav-dropdown-wrap:focus-within .nav-mega { display: block; }

.nav-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.mega-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0 10px 8px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 6px;
}
.mega-col a {
  display: block;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #334155;
  border-radius: 6px;
  transition: background var(--transition-base);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.mega-col a:hover { background: #eff6ff; color: var(--accent); }

/* ── Search dropdown ─────────────────────────────────────────────────────── */
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition-base);
  border-bottom: 1px solid #f8fafc;
  text-decoration: none;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused { background: #eff6ff; }

.result-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 2px;
}
.result-type.type-line { background: #dbeafe; color: #1d4ed8; }
.result-type.type-machine { background: #dcfce7; color: #15803d; }
.result-type.type-die-part { background: #fef3c7; color: #b45309; }
.result-number { font-family: 'Courier New', monospace; font-size: 10px; font-weight: 700; color: #3b82f6; }
.result-model { color: #64748b; }
.result-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.result-cat { font-size: 11px; color: #94a3b8; }

/* ── Hero section ────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #F0F7FF 0%, #EBF4FF 40%, #F5F9FF 70%, #FAFCFF 100%);
}

#candy-canvas, .hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-video {
  object-fit: cover;
  z-index: 0;
}

/* Light veil over the video — heavier on the left so the dark hero text
   stays readable while the video shows through on the right. */
.hero-overlay {
  z-index: 1;
  background: linear-gradient(105deg,
    rgba(247,251,255,0.82) 0%,
    rgba(247,251,255,0.55) 42%,
    rgba(247,251,255,0.25) 72%,
    rgba(247,251,255,0.06) 100%);
}

@media (max-width: 1023px) {
  /* Narrow screens: text spans more width, so use a stronger even veil. */
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(247,251,255,0.86) 0%,
      rgba(247,251,255,0.78) 60%,
      rgba(247,251,255,0.68) 100%);
  }
}

.hero-gradient-text {
  background: linear-gradient(90deg, #1A3A5C 0%, #2E7CC6 55%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Category cards (home page) ──────────────────────────────────────────── */
.category-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.13);
}
.cat-card-cta {
  transition: all var(--transition-base);
}
.category-card:hover .cat-card-cta {
  filter: brightness(1.08);
}

/* ── Stats counter ───────────────────────────────────────────────────────── */
.stat-item { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stat-item.in-view { opacity: 1; transform: none; }
.stat-item:nth-child(2) { transition-delay: 0.1s; }
.stat-item:nth-child(3) { transition-delay: 0.2s; }
.stat-item:nth-child(4) { transition-delay: 0.3s; }

/* ── Line banner (line detail page) ─────────────────────────────────────── */
.line-banner-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  margin-bottom: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}

/* ── Line overview specs ─────────────────────────────────────────────────── */
.line-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.line-spec-row:last-child { border-bottom: none; }
.line-spec-label { color: #64748b; font-weight: 500; }
.line-spec-value { color: #1e293b; font-weight: 700; text-align: right; }

/* ── Step finder (catalog page) ──────────────────────────────────────────── */
.step-indicator { display: flex; align-items: center; margin-bottom: 28px; }
.step-indicator-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #94a3b8;
}
.step-indicator-item.active { color: var(--accent); }
.step-indicator-item.done { color: #22c55e; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.step-indicator-item.active .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-indicator-item.done .step-num { background: #22c55e; color: #fff; border-color: #22c55e; }
.step-divider { flex: 1; height: 2px; background: #e2e8f0; margin: 0 10px; min-width: 16px; }

.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border: 2px solid #e2e8f0;
  border-radius: 14px; background: #fff;
  cursor: pointer; transition: all var(--transition-base); text-align: center;
}
.cat-btn:hover { border-color: var(--accent); background: #eff6ff; }
.cat-btn.selected { border-color: var(--accent); background: #eff6ff; }

.rate-btn {
  padding: 12px 20px; border: 2px solid #e2e8f0;
  border-radius: 10px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #334155;
  transition: all var(--transition-base);
}
.rate-btn:hover { border-color: var(--accent); color: var(--accent); background: #eff6ff; }
.rate-btn.selected { border-color: var(--accent); background: #eff6ff; color: var(--accent); }

/* Rich line-select cards (Step 2 in catalog) */
.rate-btn.line-card-rich {
  padding: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border-width: 2px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 150ms ease;
}
.rate-btn.line-card-rich:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 14px 36px rgba(46,124,198,0.18);
  background: #fff;
}
.rate-btn.line-card-rich.selected {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46,124,198,0.14);
}
.line-card-accent {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.line-card-body {
  padding: 12px 14px 14px;
}

/* ── Line pipeline ───────────────────────────────────────────────────────── */
.pipeline-scroll { overflow-x: auto; padding-bottom: 16px; -webkit-overflow-scrolling: touch; }

.pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
  padding: 20px 24px 8px;
}

.pipeline-machine-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  width: 196px;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.pipeline-machine-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(46,124,198,0.14);
}
.pipeline-machine-card.in-cart { border-color: #22c55e; }

.pipeline-machine-img { height: 150px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; }
.pipeline-machine-img img { width: 100%; height: 100%; object-fit: contain; }

.pipeline-machine-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.pipeline-order { font-size: 10px; font-weight: 700; color: #94a3b8; margin-bottom: 2px; }
.pipeline-machine-num { font-family: 'Courier New', monospace; font-size: 10px; font-weight: 700; color: #3b82f6; }
.pipeline-machine-name { font-size: 13px; font-weight: 700; color: #1e293b; margin: 4px 0; line-height: 1.3; }
.pipeline-machine-func { font-size: 11px; color: #64748b; line-height: 1.4; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pipeline-machine-actions { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }

.pipeline-arrow {
  width: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1; align-self: center;
}

/* ── Specs table ─────────────────────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid #f1f5f9; transition: background 150ms ease; }
.specs-table tr:hover { background: #f8faff; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th {
  text-align: left; padding: 13px 16px 13px 16px;
  font-size: 0.78rem; font-weight: 600; color: #64748b; letter-spacing: 0.01em;
  width: 44%; vertical-align: top; line-height: 1.45; background: #fafbfc;
}
.specs-table td {
  padding: 13px 16px 13px 0;
  font-size: 0.85rem; color: #1e293b; line-height: 1.45; font-weight: 500;
}

/* ── Product card ────────────────────────────────────────────────────────── */
.product-card {
  transition: box-shadow 240ms ease, transform 240ms ease;
}
.product-card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,0.13);
  transform: translateY(-6px) scale(1.01);
}

/* Pipeline machine card hover popup */
.pipeline-machine-card {
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease !important;
}
.pipeline-machine-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 28px rgba(46,124,198,0.16) !important;
}

/* ── Part type badge ─────────────────────────────────────────────────────── */
.part-type-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 7px; border-radius: 4px; display: inline-block;
}
.part-type-badge.type-die { background: #fef3c7; color: #b45309; }
.part-type-badge.type-part { background: #dcfce7; color: #15803d; }

/* ── Qty buttons ─────────────────────────────────────────────────────────── */
.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid #e2e8f0; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 15px;
  color: #64748b; display: inline-flex; align-items: center;
  justify-content: center; transition: background var(--transition-base);
  line-height: 1;
}
.qty-btn:hover { background: #f1f5f9; color: #1e293b; }

/* ── Form field errors ───────────────────────────────────────────────────── */
.form-field.field-error input,
.form-field.field-error select,
.form-field.field-error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.10);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1e293b; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  z-index: 9999; opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none; max-width: 320px;
}
#toast.toast-visible { opacity: 1; transform: none; }

/* ── Skeleton loader ─────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #eff6ff; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .nav-mega-inner { grid-template-columns: 1fr 1fr; }
  .pipeline-machine-card { width: 168px; }
}

/* ── Typing animation ─────────────────────────────────────────────────────── */
.typing-cursor {
  display: inline-block;
  width: 2px;
  background: #2E7CC6;
  margin-left: 2px;
  border-radius: 1px;
  animation: cursor-blink 0.72s step-end infinite;
  vertical-align: middle;
  height: 0.85em;
  position: relative;
  top: -0.05em;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-typing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.hero-typing-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.1); }
}

/* ── How We Work – dark gradient process section ─────────────────────────── */
.process-wrap {
  background: linear-gradient(150deg, #0d2340 0%, #1A3A5C 45%, #1c4578 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.process-header-area {
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2.25rem 2rem 2.5rem;
}
@media (max-width: 900px) {
  .process-steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process-steps-grid { grid-template-columns: 1fr; }
}
.process-step-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 300ms ease, background 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.process-step-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-9px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.38);
  border-color: rgba(255,255,255,0.22);
}
.process-step-img {
  height: 136px;
  overflow: hidden;
  position: relative;
}
.process-step-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(1.02) saturate(1.05);
  transition: transform 500ms ease, filter 300ms ease;
}
.process-step-card:hover .process-step-img img {
  transform: scale(1.09);
  filter: brightness(1.1) saturate(1.12);
}
.process-step-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,35,64,0.4) 0%, rgba(26,58,92,0.08) 50%, transparent 100%);
}
.process-step-num-badge {
  position: absolute;
  top: 11px; left: 11px;
  width: 33px; height: 33px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  background: rgba(0,0,0,0.38);
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.process-step-body {
  padding: 1rem 1.1rem 1.2rem;
}
.process-step-body h4 {
  font-weight: 700; font-size: 0.9rem; color: #fff;
  margin-bottom: 0.35rem; line-height: 1.3;
}
.process-step-body p {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.53);
  line-height: 1.57;
}
.process-step-details { margin-top: 0.6rem; padding-top: 0.55rem; border-top: 1px solid rgba(255,255,255,0.07); }
.process-step-details li {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 0.68rem; color: rgba(255,255,255,0.4);
  line-height: 1.45; margin-top: 4px;
}
.process-step-check { color: #60a5fa; flex-shrink: 0; margin-top: 1px; }

/* ── Home category cards (real photo backgrounds) ─────────────────────────── */
.home-cat-photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  transition: transform 320ms ease, box-shadow 320ms ease;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.home-cat-photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 64px rgba(0,0,0,0.22);
}
.home-cat-photo-card .hc-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}
.home-cat-photo-card:hover .hc-bg { transform: scale(1.08); }
.home-cat-photo-card .hc-overlay {
  position: absolute; inset: 0;
}
.home-cat-photo-card .hc-content {
  position: relative; z-index: 1;
  padding: 1.75rem 1.75rem 1.5rem;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 45%, transparent 100%);
}
/* Centered flex layout for home category cards (3-up, trailing row centered) */
#home-categories-grid > * { width: 100%; }
@media (min-width: 768px) {
  #home-categories-grid > * { width: calc((100% - 1.5rem) / 2); }
}
@media (min-width: 1024px) {
  #home-categories-grid > * { width: calc((100% - 3rem) / 3); }
}

/* ── Catalog category photo buttons (Step 1) ─────────────────────────────── */
.cat-photo-btn {
  position: relative; overflow: hidden;
  border-radius: 18px; cursor: pointer;
  border: 2px solid #e2e8f0;
  transition: transform 260ms cubic-bezier(.22,.68,0,1.2), box-shadow 260ms ease, border-color 200ms ease;
  background: #0d1b2a; padding: 0; display: block; width: 100%; text-align: left;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}
.cat-photo-btn:focus { outline: none; }
.cat-photo-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0,0,0,0.28);
  border-color: #2E7CC6;
}
.cat-photo-btn.selected {
  border-color: #2E7CC6;
  box-shadow: 0 0 0 3px rgba(46,124,198,0.25), 0 14px 36px rgba(0,0,0,0.22);
}
.cat-photo-btn-inner {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cat-photo-btn img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 500ms ease, filter 300ms ease;
  filter: brightness(0.75) saturate(0.9);
}
.cat-photo-btn:hover img, .cat-photo-btn.selected img {
  transform: scale(1.09);
  filter: brightness(0.65) saturate(1.1);
}
.cat-photo-btn-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.92) 0%, rgba(20,40,80,0.45) 50%, rgba(0,0,0,0.05) 100%);
  transition: background 300ms ease;
}
.cat-photo-btn:hover .cat-photo-btn-overlay, .cat-photo-btn.selected .cat-photo-btn-overlay {
  background: linear-gradient(to top, rgba(10,30,60,0.96) 0%, rgba(30,70,160,0.55) 55%, rgba(30,90,200,0.1) 100%);
}
.cat-photo-btn-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1rem 0.9rem;
}
.cat-photo-btn-label h4 {
  font-weight: 700; font-size: 0.82rem; color: #fff;
  line-height: 1.25; margin: 0 0 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cat-photo-btn-label p { font-size: 0.68rem; color: rgba(255,255,255,0.55); margin: 0; }
.cat-photo-btn-check {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #2E7CC6; color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 2px 12px rgba(46,124,198,0.5);
}
.cat-photo-btn.selected .cat-photo-btn-check { display: flex; }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ── Why Choose Us premium cards ─────────────────────────────────────────── */
.why-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 18px rgba(0,0,0,0.06);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.15);
}
.why-card-hdr {
  height: 140px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.why-card-hdr-num {
  position: absolute;
  right: 12px; bottom: -14px;
  font-size: 6.5rem; font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1; user-select: none; pointer-events: none;
  font-family: 'Inter', sans-serif;
}
.why-card-hdr-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform 300ms ease, background 300ms ease;
}
.why-card:hover .why-card-hdr-icon {
  transform: scale(1.08);
  background: rgba(255,255,255,0.22);
}
.why-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.why-card-body h3 { font-size: 1.05rem; font-weight: 700; color: #1A3A5C; margin-bottom: 0.5rem; }
.why-card-body p { font-size: 0.8rem; color: #64748b; line-height: 1.65; }
.why-card-accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-col, #2E7CC6), transparent);
  margin: 0 1.75rem 1rem;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 300ms ease, transform 300ms ease;
}

/* ── Custom Quote Page ────────────────────────────────────────────────────── */

/* Moving gallery marquee */
.cq-marquee-wrap {
  overflow: hidden;
  position: relative;
  padding: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.cq-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cq-scroll-left 40s linear infinite;
}
.cq-marquee-track:hover { animation-play-state: paused; }
@keyframes cq-scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cq-marquee-item {
  width: 400px;
  height: 270px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.cq-marquee-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.cq-marquee-item:hover img { transform: scale(1.04); }
.cq-marquee-item-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 12px;
  background: linear-gradient(to top, rgba(10,20,40,0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Capability cards */
.cq-cap-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  transition: transform 280ms ease, box-shadow 280ms ease;
  position: relative;
  overflow: hidden;
}
.cq-cap-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #1A3A5C, #2E7CC6);
  opacity: 0;
  transition: opacity 280ms ease;
}
.cq-cap-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(26,58,92,0.14); }
.cq-cap-card:hover::before { opacity: 1; }
.cq-cap-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

/* Team / skill stat cards */
.cq-team-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 280ms ease, background 280ms ease;
}
.cq-team-stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.12);
}
.cq-team-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cq-team-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Skill bar */
.cq-skill-bar-wrap { margin-bottom: 1rem; }
.cq-skill-bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  margin-bottom: 6px;
}
.cq-skill-bar-track {
  height: 8px; background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden;
}
.cq-skill-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2E7CC6, #60b3f5);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Floating badge */
.cq-float-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(46,124,198,0.18);
  border: 1px solid rgba(46,124,198,0.35);
  color: #93c5fd;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Machine feature pill */
.cq-machine-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px 16px;
  transition: background 220ms ease;
}
.cq-machine-pill:hover { background: rgba(255,255,255,0.12); }
.cq-machine-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex-shrink: 0;
  animation: cq-pulse-dot 2s ease-in-out infinite;
}
@keyframes cq-pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #4ade80; }
  50% { box-shadow: 0 0 14px #4ade80, 0 0 28px #4ade8066; }
}

/* Quote form in custom-quote page */
.cq-form-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2.5rem;
}

/* Reveal on scroll */
[data-cq-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-cq-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-cq-reveal][data-cq-delay="1"] { transition-delay: 100ms; }
[data-cq-reveal][data-cq-delay="2"] { transition-delay: 200ms; }
[data-cq-reveal][data-cq-delay="3"] { transition-delay: 300ms; }
[data-cq-reveal][data-cq-delay="4"] { transition-delay: 400ms; }
[data-cq-reveal][data-cq-delay="5"] { transition-delay: 500ms; }
