/* FACTORY — page-specific styles */

/* Inline contextual links — same recipe as #studynlearn-ai .eco-subheading a */
.factory-section-head p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.30);
}
.factory-section-head p a:hover {
  border-bottom-color: var(--primary);
}

/* Factory photo strip — infinite auto-scrolling marquee (replaces */
.factory-strip {
  overflow: hidden;
  background: var(--bg);
  padding: 10px 0 20px;
}
/* Top padding tightened to 2px across the whole stacked hero range */
@media (max-width: 1300px) {
  .factory-strip { padding-top: 2px; }
}
.factory-strip-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: scrollLeft 38s linear infinite;
}
.factory-strip-item {
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
}
.factory-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 599px) {
  /* Top cut to 0 (down from several earlier intermediate values) */
  .factory-strip { padding-top: 0; padding-bottom: 6px; }
  .factory-strip-item { width: 190px; height: 122px; }
}

@media (min-width: 901px) {
  /* Owner feedback (2026-08-21): the strip read too small next to the */
  .factory-strip { margin-top: 6px; }
  .factory-strip-track { gap: 20px; }
  .factory-strip-item { width: 320px; height: 208px; }
}

/* "Visit Our Factory" — photo left, embedded Google Map + address */
.factory-visit {
  background: var(--bg);
  padding: var(--space-section) var(--site-pad-x);
}
.factory-visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--site-max-w);
  margin: 0 auto;
  align-items: stretch;
}
.factory-visit-media,
.factory-visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
}
.factory-visit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.factory-visit-map {
  position: relative;
}
.factory-visit-map iframe {
  position: absolute;
  border: 0;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
}
.factory-visit-address {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-card);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.18);
}
.factory-visit-address [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 1.8;
  flex-shrink: 0;
  margin-top: 2px;
}
.factory-visit-address p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--clr-text);
}

@media (max-width: 900px) {
  .factory-visit-layout { grid-template-columns: 1fr; }
  .factory-visit-media,
  .factory-visit-map { min-height: 280px; }
}
@media (max-width: 599px) {
  /* Top split from the 40px shared value down to 18px — owner asked to */
  .factory-visit { padding: 18px var(--site-pad-x) 40px; }
  .factory-visit-layout { gap: 16px; }
  .factory-visit-address { padding: 12px 14px; }
  .factory-visit-address p { font-size: 13px; }
}

/* "What Goes Into Every Device" — process cards */
#factory-devices {
  background: var(--surface);
  padding: var(--space-section) var(--site-pad-x);
}

.factory-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.factory-section-head h2 { margin-bottom: 14px; }
.factory-section-head p {
  color: var(--clr-muted);
  font-size: var(--text-body-sm, 15px);
  line-height: 1.7;
  margin: 0;
}

.factory-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--site-max-w);
  margin: 0 auto;
}
/* Light card variant — #factory-devices only. Same recipe as */
#factory-devices .dark-glass-card {
  background: var(--surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
}
/* No translateY lift here on purpose — moving the card's own hit-box on its own */
#factory-devices .dark-glass-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 36px rgba(var(--accent-rgb), 0.07);
  border-color: rgba(var(--accent-rgb), 0.14);
}
#factory-devices .dark-glass-card .card-body h3 {
  color: var(--clr-text);
  font-weight: 700;
}
#factory-devices .dark-glass-card .card-body p {
  color: var(--clr-muted);
}

/* Real product photo — base .card-img recipe (inset margin/radius, */
@media (max-width: 900px) {
  .factory-cards-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; }
}
@media (max-width: 599px) {
  .factory-section-head { margin-bottom: 32px; }
  #factory-devices .card-img img { height: 200px; }
}

/* MOBILE CARD CAROUSEL + LIQUID CARDS -- #factory-devices only, */
.factory-card-carousel { position: relative; }
.factory-carousel-controls { display: none; }

@media (max-width: 900px) {
  /* Outer wrapper clips at the true section edge; the viewport */
  .factory-card-carousel { overflow-x: clip; overflow-y: visible; }
  .factory-card-carousel .factory-carousel-viewport {
    overflow: visible;
    width: auto;
    padding: 10px 11%;
    margin: -10px 0;
  }
  .factory-card-carousel .factory-cards-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: none;
    margin: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .factory-card-carousel .factory-cards-grid > .dark-glass-card {
    flex: 0 0 calc(78% - 20px);
    margin: 0 10px;
  }
  .factory-card-carousel .factory-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -4px;
    right: -4px;
    transform: translateY(-50%);
    gap: 16px;
    pointer-events: none;
    z-index: 5;
  }
  .factory-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }
  .factory-carousel-btn [data-lucide] { width: 18px; height: 18px; transition: stroke 0.3s ease; }

  /* Liquid card shell: organic asymmetric radius replaces the */
  .liquid-card {
    position: relative;
    overflow: hidden;
    border-radius: 38px 20px 38px 20px / 26px 38px 26px 38px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  .liquid-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
  }
  .liquid-card > * { position: relative; z-index: 1; }
  .liquid-card.is-active { transform: scale(1.03); }
}

@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .liquid-card::before { animation: liquidDrift 10s ease-in-out infinite alternate; }
}
@keyframes liquidDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, 8%) scale(1.15); }
}

/* factory-devices liquid shell, tuned for a white card on a */
@media (max-width: 900px) {
  #factory-devices .liquid-card {
    border: none;
    box-shadow:
      0 0 0 1px rgba(226,232,240,0.8),
      0 10px 28px rgba(15,23,42,0.08),
      0 0 20px rgba(var(--accent-rgb), 0.08);
  }
  #factory-devices .liquid-card::before {
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, rgba(168,85,247,0.10) 45%, transparent 72%);
  }
  #factory-devices .liquid-card.is-active {
    box-shadow:
      0 0 0 1.5px rgba(var(--accent-rgb), 0.35),
      0 0 22px rgba(var(--accent-rgb), 0.16),
      0 12px 30px rgba(15,23,42,0.12);
  }
  #factory-devices .factory-carousel-btn {
    background: var(--surface-card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15,23,42,0.12);
    color: var(--primary-deep);
  }
  #factory-devices .factory-carousel-btn [data-lucide] { stroke: var(--primary-deep); }
  /* Light shade of white on hover instead of a solid cyan fill (owner */
  #factory-devices .factory-carousel-btn:hover {
    background: var(--surface);
    border-color: var(--border);
  }
}

@media (max-width: 599px) {
  .factory-card-carousel .factory-carousel-viewport { padding: 8px 0; }
  .factory-card-carousel .factory-cards-grid > .dark-glass-card {
    flex: 0 0 calc(100% - 20px);
    margin: 0 10px;
  }
}

/* OUR CERTIFICATIONS — 14 compliance marks (CE/RoHS/FCC/UL/GeM/CMMI */
.factory-certifications {
  padding: 0 var(--site-pad-x) var(--space-section);
  background: var(--bg);
}
.factory-certifications-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: var(--site-max-w);
  margin: 0 auto;
}
.factory-certifications-label {
  flex: 0 0 auto;
  max-width: 260px;
}
.factory-certifications-label h2 { margin: 6px 0 0; }

.factory-certifications-carousel {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.factory-certifications-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  will-change: transform;
  animation: scrollLeft 32s linear infinite;
}
.factory-cert-item {
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.factory-cert-item img {
  height: 100%;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .factory-certifications-inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .factory-certifications-label { max-width: none; text-align: center; }
  .factory-certifications-label h2 { margin-top: 2px; }
}
@media (max-width: 599px) {
  .factory-certifications { padding-bottom: 40px; }
  .factory-cert-item { height: 40px; }
  .factory-cert-item img { max-width: 96px; }
  .factory-certifications-track { gap: 28px; }
}

/* PRECISION AT EVERY LAYER — cross-section rail (sits directly */
.factory-crosssection {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-deep-rgb), 0.10) 55%, rgba(168,85,247,0.10) 100%),
    var(--bg);
  padding: var(--space-section) var(--site-pad-x);
  /* Local var: no --token exists for the violet used in the site's */
  --xsec-violet: #a855f7;
}

/* No color override needed here — .factory-section-head p (below) */
.factory-crosssection .crosssection-support {
  font-size: var(--text-body-lg);
  line-height: 1.75;
  max-width: 640px;
  margin: 18px auto 0;
}

/* Rail wrap — houses the 7-segment strip + axis labels. */
.crosssection-rail-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--site-max-w);
  margin: 44px auto 0;
  border-radius: var(--radius-sm);
}
.crosssection-rail-edge {
  flex: 0 0 auto;
  font-family: var(--h-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.crosssection-rail-edge--start { transform: rotate(180deg); }

.crosssection-rail {
  flex: 1 1 auto;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Each layer: 3-row grid (top gutter / segment / bottom gutter) so */
.rail-layer {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-rows: clamp(112px, 11vw, 140px) clamp(26px, 2.6vw, 36px) clamp(112px, 11vw, 140px);
}
.rail-layer:nth-child(odd) .rail-callout { grid-row: 1; align-self: end; }
.rail-layer:nth-child(even) .rail-callout { grid-row: 3; align-self: start; }
.rail-layer:nth-child(even) .rail-callout { flex-direction: column-reverse; }

.rail-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Light-card override — same recipe #factory-devices uses (base */
.crosssection-rail .dark-glass-card.rail-callout-card {
  background: var(--surface-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
  padding: 14px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 112px;
  max-width: 158px;
  text-align: center;
  margin: 0 6px;
}
.rail-callout-num {
  font-family: var(--h-font);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
}
.rail-callout-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.6;
}
.rail-callout-label {
  font-family: var(--h-font);
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--clr-text);
  margin: 0;
  line-height: 1.3;
}

/* Leader line — connects the callout card to its rail segment; dot */
.rail-leader {
  position: relative;
  width: 2px;
  height: 26px;
  align-self: center;
  background: linear-gradient(180deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
}
.rail-leader::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  /* rgba(0,212,255,*) below == var(--accent-cyan) (var(--accent)) at */
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.rail-layer:nth-child(even) .rail-leader::after { bottom: auto; top: 0; }

/* Pulsing connector dots — a second, more overt "precision */
@media (prefers-reduced-motion: no-preference) {
  .rail-leader::after {
    animation: railLeaderPulse 2.4s ease-in-out infinite;
  }
  .rail-layer:nth-child(1) .rail-leader::after { animation-delay: 0s; }
  .rail-layer:nth-child(2) .rail-leader::after { animation-delay: 0.12s; }
  .rail-layer:nth-child(3) .rail-leader::after { animation-delay: 0.24s; }
  .rail-layer:nth-child(4) .rail-leader::after { animation-delay: 0.36s; }
  .rail-layer:nth-child(5) .rail-leader::after { animation-delay: 0.48s; }
  .rail-layer:nth-child(6) .rail-leader::after { animation-delay: 0.6s; }
  .rail-layer:nth-child(7) .rail-leader::after { animation-delay: 0.72s; }
}
@keyframes railLeaderPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.32); }
}

/* Rail segment — the continuous "slice" itself; colour runs from */
.rail-segment {
  grid-row: 2;
  height: 100%;
  min-height: 26px;
  border-right: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.rail-layer:first-child .rail-segment { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.rail-layer:last-child .rail-segment { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-right: none; }

.rail-layer:nth-child(1) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent-cyan) 95%, transparent) 0%,
    color-mix(in srgb, var(--primary) 75%, transparent) 100%);
}
.rail-layer:nth-child(2) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 85%, transparent) 0%,
    color-mix(in srgb, var(--primary) 55%, transparent) 100%);
}
.rail-layer:nth-child(3) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 55%, transparent) 0%,
    color-mix(in srgb, var(--xsec-violet) 55%, transparent) 100%);
}
.rail-layer:nth-child(4) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--xsec-violet) 68%, transparent) 0%,
    color-mix(in srgb, var(--xsec-violet) 42%, transparent) 100%);
}
.rail-layer:nth-child(5) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--xsec-violet) 42%, transparent) 0%,
    color-mix(in srgb, var(--photo-tint) 58%, transparent) 100%);
}
.rail-layer:nth-child(6) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--photo-tint) 62%, transparent) 0%,
    color-mix(in srgb, var(--photo-tint) 82%, transparent) 100%);
}
.rail-layer:nth-child(7) .rail-segment {
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--photo-tint) 90%, transparent) 0%,
    rgba(1,4,16,0.96) 100%);
}

/* Reveal-on-scroll (JS-driven, opt-in only) */
.crosssection-animate .rail-layer {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.crosssection-animate .rail-layer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive <900px: same alternating-sides idea the desktop */
@media (max-width: 900px) {
  .crosssection-rail-edge { display: none; }
  .crosssection-rail-wrap {
    display: block;
    max-width: 440px;
    margin: 32px auto 0;
  }
  .crosssection-rail {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  .rail-layer {
    display: grid;
    grid-template-columns: 1fr 4px 1fr;
    grid-template-rows: none;
    align-items: stretch;
    flex: none;
    min-height: 92px;
  }
  /* Both parities named explicitly (not a plain `.rail-callout` */
  .rail-layer:nth-child(odd) .rail-callout {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    flex-direction: row;
  }
  .rail-layer:nth-child(even) .rail-callout {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    flex-direction: row-reverse;
  }
  .rail-callout {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  /* Leader flips from the desktop's vertical connector (line runs */
  .rail-leader {
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
  }
  .rail-layer:nth-child(even) .rail-leader {
    background: linear-gradient(270deg, rgba(26,27,29,0.35), rgba(26,27,29,0.04));
  }
  .rail-leader::after {
    left: auto; bottom: auto; top: 50%; right: 0;
    transform: translateY(-50%);
  }
  .rail-layer:nth-child(even) .rail-leader::after { right: auto; left: 0; }
  .rail-segment {
    grid-column: 2;
    grid-row: 1;
    width: 4px;
    height: 100%;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .rail-layer:first-child .rail-segment { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .rail-layer:last-child .rail-segment { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border-bottom: none; }
  .crosssection-rail .dark-glass-card.rail-callout-card {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    max-width: 190px;
    margin: 0;
    text-align: left;
    padding: 10px 12px;
  }
  .rail-callout-num { display: none; }
}

/* Responsive: 599px — tighter card padding/icon, matches the */
@media (max-width: 599px) {
  .crosssection-rail-wrap { margin-top: 24px; }
  .crosssection-rail { gap: 10px; }
  .crosssection-rail .dark-glass-card.rail-callout-card { padding: 12px 14px; }
  .rail-callout-icon [data-lucide] { width: 20px; height: 20px; }
  .crosssection-support { font-size: var(--text-body-sm); }
}

/* TESTED BEYOND THE EXPECTED -- validation cards in a split */
/* Dark register — same canonical dark-section fill token every */
.factory-testing {
  background: var(--grad-dark-section);
  padding: var(--space-section) var(--site-pad-x);
}
#factory-testing .factory-section-head h2 { color: #ffffff; }
#factory-testing .factory-section-head p { color: rgba(255,255,255,0.75); }

/* 3-column grid — media column stretches to match the card */
.testing-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  column-gap: 32px;
  align-items: center;
  max-width: var(--site-max-w);
  margin: 0 auto;
}
.testing-specs { display: flex; flex-direction: column; gap: 16px; }

/* Center — looping crossfade carousel of the testing floor (JS in */
.testing-media { position: relative; }
.testing-media-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15,23,42,0.16), 0 4px 16px rgba(15,23,42,0.08);
}
.testing-media-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease !important;
}
.testing-media-carousel img.is-active { opacity: 1; }

/* Dark glass cards — same recipe as the homepage's Support & Service */
.testing-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 22px;
  transition: border-color 0.25s ease, background 0.25s ease; /* no transform -- per the card-jitter lesson */
}
.testing-card:hover {
  border-color: rgba(var(--accent-rgb), 0.30);
  background: rgba(255,255,255,0.07);
}

.testing-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.testing-card-icon [data-lucide] { width: 32px; height: 32px; stroke: var(--primary); stroke-width: 1.6; }

.testing-card-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.testing-card-body h3 { margin: 0; font-family: var(--h-font); font-size: 20px; font-weight: 800; line-height: 1.15; }
.testing-card-body p { margin: 0; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); }

@media (max-width: 599px) {
  .testing-card { padding: 14px 16px; gap: 12px; }
  .testing-card-icon [data-lucide] { width: 24px; height: 24px; }
  .testing-card-body h3 { font-size: 17px; }
}

/* Mobile — Tested Beyond the Expected: carousel on top full-width, */
@media (max-width: 900px) {
  .testing-layout { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .testing-media { grid-column: 1 / -1; order: -1; margin-bottom: 8px; }
  .testing-specs { display: contents; }
}
/* Tap targets — 44 px carousel buttons */
@media (max-width: 767px), (pointer: coarse) {
  .factory-carousel-btn { min-width: 44px; min-height: 44px; }
}
