/* ============================================================
   PRODUCTS PREVIEW SECTION
   ============================================================ */

.tech-products {
  background-color: var(--color-background-alt);
  padding: var(--space-section) 0;
  overflow: hidden;
}

.tech-products__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-element);
}

/* --- Header Block --- */

.tech-products__header {
  max-width: 720px;
  margin-bottom: 48px;
}

.tech-products__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 12px 0;
}

.tech-products__headline {
  color: var(--color-primary);
  margin: 0;
}

/* --- Grid --- */

.tech-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Card --- */

.tech-products__card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.tech-products__card:hover {
  transform: translateY(-4px);
  color: inherit;
}

.tech-products__card-image {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.tech-products__card-image--rust {
  background-color: var(--color-accent);
}

.tech-products__card-image--rust-muted {
  background-color: #A84E2B;
}

.tech-products__card:hover .tech-products__card-image--rust {
  background-color: #b8532d;
}

.tech-products__card:hover .tech-products__card-image--rust-muted {
  background-color: #964626;
}

/* Image version */
.tech-products__card-image--has-img {
  position: relative;
  overflow: hidden;
  background-color: var(--color-background-alt);
}

.tech-products__card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.tech-products__card-image-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--color-text-inverse);
  opacity: 0.55;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 0 var(--space-small);
}

.tech-products__card-body {
  padding-top: 16px;
}

.tech-products__card-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
}

.tech-products__card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.7;
  margin: 6px 0 0 0;
}

/* --- GSAP initial state (all viewports) --- */
.tech-products__header,
.tech-products__card {
  opacity: 0;
}

/* ============================================================
   MOBILE (<768px)
   ============================================================ */
@media (max-width: 768px) {
  .tech-products {
    padding: calc(var(--space-section) * 0.67) 0;
  }

  .tech-products__header {
    margin-bottom: 40px;
  }

  .tech-products__grid {
    grid-template-columns: 1fr;
    gap: var(--space-block);
  }

  .tech-products__card-image {
    aspect-ratio: 16 / 9;
  }

  /* Stage 6: mobile animations now handled by GSAP */
}

/* ============================================================
   TABLET (~768–1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .tech-products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-element);
  }
}
