/* OEM page: "What we support" as four stations of one job.

   The same part travels through all four scenes: it is matched from an OE
   reference, examined as a sample, packed under the customer's label and
   written up as catalog data. The scenes are drawn in the site's own dark
   vocabulary: graphite panels, hairlines, the light blue used for links, one
   green for "passed", and the real product photograph lit on a pool of light.
   White is used once, for the label on the carton, because that is what a
   label is.

   Everything here is the finished state. oem-visual.js plays each scene in
   with GSAP when it scrolls into view; without GSAP or with reduced motion the
   scenes are simply shown complete. dark.css loads after this file, so rules
   that it also sets are written one class deeper here. */

.oem-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5, 24px);
}

.oem-cards .oem-card {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg, 28px);
  background: var(--surface, #171b20);
  box-shadow: 0 0 0 1px var(--hairline-soft, #262b31);
  transition: box-shadow 0.45s var(--ease-expo, ease), background 0.45s var(--ease-soft, ease);
}

.oem-cards .oem-card:hover {
  transform: none;
  background: #1a1f25;
  box-shadow: 0 0 0 1px var(--hairline, #3a4048), var(--shadow-md);
}

/* Hand-over between stations: a quiet chevron that turns blue once the scene
   before it has finished. */
.oem-cards .oem-card:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  /* Level with the middle of the scene, which is 62.5% of the card's width tall. */
  top: 86px;
  top: calc(31.25cqw - 14px);
  right: calc(var(--space-5, 24px) / -2 - 14px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--canvas, #0b0f13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5l4.5 4.5L6 12.5' fill='none' stroke='%238a9098' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 1px var(--hairline, #3a4048);
  transition: background-color 0.5s var(--ease-soft, ease), box-shadow 0.5s var(--ease-soft, ease);
}

.oem-cards .oem-card.is-done:not(:last-child)::after {
  background-color: var(--brand-fill, #0a63c4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5l4.5 4.5L6 12.5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 4px var(--canvas, #0b0f13);
}

.oem-scene {
  border-radius: var(--radius-lg, 28px) var(--radius-lg, 28px) 0 0;
  background: radial-gradient(110% 100% at 50% 0%, #1b2027 0%, #13171c 58%, #0f1317 100%);
  border-bottom: 1px solid var(--hairline-soft, #262b31);
  overflow: hidden;
}

.oem-scene svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 200;
}

.oem-card-text {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: var(--space-5, 24px);
}

.oem-cards .oem-num {
  color: var(--ink-faint, #8a9098);
  transition: color 0.5s var(--ease-soft, ease);
}

.oem-cards .oem-card.is-done .oem-num {
  color: var(--brand, #8cc6ff);
}

.oem-cards .oem-card h3 {
  margin: 0;
  font-size: var(--text-lg, 19px);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #fff;
}

.oem-cards .oem-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft, #c9cdd2);
}

.oem-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.oem-cards .oem-chips li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-tint, rgba(125, 185, 255, 0.13));
  font-size: 12px;
  font-weight: 560;
  color: var(--brand, #8cc6ff);
}

/* ---------------------------------------------------------------- paint */

.oem-scene .panel { fill: #20252b; stroke: #3a4048; stroke-width: 1; }
.oem-scene .panel-2 { fill: #161a1f; stroke: #2a2f36; stroke-width: 1; }
.oem-scene .well-dark { fill: #12161b; stroke: #2a2f36; stroke-width: 1; }
.oem-scene .well { fill: #eceef1; }
.oem-scene .hair { fill: none; stroke: #3a4048; stroke-width: 1; }
.oem-scene .hair-hi { fill: none; stroke: #59616b; stroke-width: 1; }
.oem-scene .ink { fill: #c9cdd2; }
.oem-scene .track { fill: #30363d; }
.oem-scene .bar { fill: #8cc6ff; }
.oem-scene .dot-blue { fill: #8cc6ff; }
.oem-scene .floor { fill: rgba(0, 0, 0, 0.35); }

.oem-scene .t-label { font: 650 10px var(--font-sans, sans-serif); letter-spacing: 0.03em; fill: #e6e9ec; }
.oem-scene .t-tiny { font: 600 8px var(--font-sans, sans-serif); letter-spacing: 0.07em; text-transform: uppercase; fill: #8a9098; }
.oem-scene .t-row { font: 600 7.5px var(--font-sans, sans-serif); letter-spacing: 0.06em; text-transform: uppercase; fill: #a8adb4; }
.oem-scene .t-head { font: 650 8.5px var(--font-sans, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; fill: #c9cdd2; }
.oem-scene .t-sku { font: 700 17px var(--font-sans, sans-serif); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; fill: #fff; }

/* Lines that are drawn in: pathLength="1" in the markup. */
.oem-scene .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* 01 matching */
.oem-scene .scan-line { fill: #8cc6ff; }
.oem-scene .scan-tail { fill: rgba(140, 198, 255, 0.1); }
.oem-scene .m-scan { opacity: 0; }
.oem-scene .link { fill: none; stroke: #8cc6ff; stroke-width: 1.25; }
/* Butt caps: a round cap would leave a dot where an undrawn line starts. */
.oem-scene .ring { fill: none; stroke: #8cc6ff; stroke-width: 1.25; }
.oem-scene .tick-marks path { fill: none; stroke: #8cc6ff; stroke-width: 1.25; stroke-linecap: round; }

/* "Passed" badge, shared by scenes 01 and 02. */
.oem-scene .ok-pill { fill: #12261d; stroke: #3fae7a; stroke-width: 1; }
.oem-scene .ok-tick { fill: none; stroke: #7fe3b2; stroke-width: 2; stroke-linejoin: round; }
.oem-scene .t-ok { font: 650 10px var(--font-sans, sans-serif); letter-spacing: 0.02em; fill: #a6efcb; }

/* 02 sample */
.oem-scene .orbit { fill: none; stroke: #8cc6ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.16 0.84; opacity: 0; }
.oem-scene .spot { fill: #fff; stroke: rgba(140, 198, 255, 0.35); stroke-width: 5; paint-order: stroke; }
.oem-scene .lead { fill: none; stroke: #c9cdd2; stroke-width: 1; stroke-linejoin: round; }

/* 03 packaging: a carton in the page's own greys, one white label. */
.oem-scene .flap { fill: #232930; stroke: #3a4048; stroke-width: 1; stroke-linejoin: round; }
.oem-scene .flap-r { fill: #1c2127; }
.oem-scene .inside { fill: #0c1014; }
.oem-scene .face-l { fill: #252b32; }
.oem-scene .face-r { fill: #1a1f25; }
.oem-scene .rim { fill: none; stroke: #6a727c; stroke-width: 1.25; stroke-linejoin: round; }
.oem-scene .edge { fill: none; stroke: #3a4048; stroke-width: 1; }
.oem-scene .arrows path { fill: none; stroke: #6a727c; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.oem-scene .tape { fill: rgba(255, 255, 255, 0.06); }
.oem-scene .label-paper { fill: #f2f4f6; }
.oem-scene .label-brand { fill: #0a63c4; }
.oem-scene .label-logo { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.oem-scene .label-line { fill: #cfd4da; }
.oem-scene .label-ink { fill: #1d2228; }
.oem-scene .t-brand { font: 750 5.6px var(--font-sans, sans-serif); letter-spacing: 0.02em; fill: #0b3b75; }
.oem-scene .t-labelsku { font: 650 6.4px var(--font-sans, sans-serif); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; fill: #3a4048; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .oem-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oem-cards .oem-card:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .oem-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .oem-cards .oem-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oem-cards .oem-card,
  .oem-cards .oem-card::after,
  .oem-cards .oem-num {
    transition: none;
  }
}
