/* ── OPTIMIZE SECTION ── */
.optimize-section {
  background: #fff;
  padding: 0;
}

.optimize-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

/* ── CONTENT ── */
.optimize-content {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.optimize-content .section-title {
  margin-bottom: .85rem;
}

.optimize-content p {
  font-size: .9rem;
  color: #3d4f63;
  line-height: 1.7;
  font-weight: 300;
  max-width: 520px;
}

.optimize-content p + p {
  margin-top: .85rem;
}

.optimize-content a {
  color: #0096D6;
  text-decoration: none;
}

.optimize-content a:hover {
  text-decoration: underline;
}

/* ── IMAGE PANEL ── */
/* At full width: capped at 400px. Below 1200px: shrinks as 1/3 of screen. */
.optimize-image-panel {
  flex: 1 1 0;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}

.optimize-image-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.optimize-image-wrap:last-child {
  margin-bottom: 0;
}

.optimize-image-wrap img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.optimize-image-caption {
  font-size: .8rem;
  color: #5a7a8e;
  line-height: 1.4;
  margin-top: .5rem;
  font-style: italic;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE: below 1200px images shrink naturally with flex ── */
@media (max-width: 1200px) {
  .optimize-image-panel {
    max-width: none;
  }
}

/* ── RESPONSIVE: mobile — stack images under text ── */
@media (max-width: 700px) {
  .optimize-inner {
    flex-direction: column;
  }
  .optimize-image-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
}
