/* ============================================================
   STORY PREVIEW SECTION
   ============================================================ */

.tech-story {
  background-color: var(--color-primary);
  padding: var(--space-section) 0 calc(var(--space-section) + 24px);
  overflow: hidden;
}

.tech-story__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-element);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Eyebrow --- */

.tech-story__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  text-align: center;
  margin: 0 0 var(--space-element) 0;
}

/* --- Headline --- */

.tech-story__headline {
  color: var(--color-text-inverse);
  text-align: center;
  max-width: 720px;
  margin: 0;
}

.tech-story__headline em {
  font-style: italic;
}

/* --- Body Copy --- */

.tech-story__body {
  max-width: 620px;
  margin-top: var(--space-block);
}

.tech-story__body p {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-inverse);
  opacity: 0.85;
  margin: 0 0 20px 0;
}

.tech-story__body p:last-child {
  margin-bottom: 0;
}

/* --- Imagery --- */

.tech-story__imagery {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
}

.tech-story__imagery-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--color-text-inverse);
  opacity: 0.6;
}

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

.tech-story__imagery-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-width: 100%;
  min-height: 100%;
}

/* --- CTA --- */

.tech-story__cta {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 0.2s ease, color 0.2s ease;
}

.tech-story__cta:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}

/* --- GSAP initial state (all viewports) --- */
.tech-story__eyebrow,
.tech-story__headline,
.tech-story__body,
.tech-story__imagery,
.tech-story__cta {
  opacity: 0;
}

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

  .tech-story__body {
    max-width: none;
  }

  .tech-story__imagery {
    margin: 32px 0;
  }

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

/* ============================================================
   TABLET (~768–1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .tech-story__headline {
    max-width: 600px;
  }

  .tech-story__body {
    max-width: 540px;
  }

  .tech-story__imagery {
    max-width: 600px;
  }
}
