/* SCAI case page — 2026 redesign, dark theme (matches home page) */

.scai-page {
  background: var(--bg);
}

.scai-container {
  padding: 0 var(--page-x);
  box-sizing: border-box;
}

/* ---- Hero ---- */

.scai-hero {
  display: flex;
  align-items: flex-end;
  gap: 80px;
  margin-top: 129px;
}

.scai-hero__visual {
  flex: none;
  width: 510px;
  height: 500px;
  overflow: hidden;
}

.scai-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scai-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex: none;
  width: 450px;
  height: 500px;
}


.scai-hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 450px;
}

.scai-hero__title {
  margin: 0;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.scai-hero__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.scai-hero__desc p {
  margin: 0;
}

.scai-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.scai-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scai-meta-label {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.scai-meta-value {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--white);
  text-align: right;
  white-space: nowrap;
}

.scai-explore {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  width: max-content;
}

.scai-explore:hover {
  border-bottom-color: var(--white);
}

.scai-explore img {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---- Generic full-width media block ---- */

.scai-media {
  margin-top: 100px;
  width: 100%;
  overflow: hidden;
}

.scai-media img {
  width: 100%;
  display: block;
}

/* ---- Challenge / Approach text block ---- */

.scai-text-block {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.scai-text-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scai-text-row h2 {
  margin: 0;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.scai-text-row p {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.scai-text-row strong {
  font-weight: 400;
  color: var(--white);
}

/* ---- Screens stack (32px gap between shots) ---- */

.scai-stack32 {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.scai-stack32 img {
  width: 100%;
  display: block;
}

/* ---- Section with heading + media (Design system / Landing page) ---- */

.scai-section {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ---- Flush-stacked images (0 gap) ---- */

.scai-flush-stack {
  display: flex;
  flex-direction: column;
}

.scai-flush-stack img {
  width: 100%;
  display: block;
}

/* ---- Result ---- */

.scai-result {
  margin-top: 100px;
}

/* ---- Footer ---- */

.scai-footer {
  margin-top: 100px;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.scai-footer p {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

/* ---- Fluid hero between mobile and large desktop ---- */

@media (min-width: 901px) {
  .scai-hero {
    gap: clamp(40px, 5.56vw, 80px);
  }

  .scai-hero__visual {
    flex: 510 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    aspect-ratio: 510 / 500;
  }

  .scai-hero__body {
    flex: 450 1 0;
    width: auto;
    height: auto;
    min-width: 0;
  }

  .scai-meta-label {
    white-space: nowrap;
  }

  .scai-meta-value {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .scai-container {
    padding: 0 16px;
  }

  .scai-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 56px;
  }

  .scai-hero__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .scai-hero__body {
    width: 100%;
    height: auto;
  }

  .scai-hero__content {
    max-width: none;
    width: 100%;
    gap: 24px;
  }

  .scai-hero__title,
  .scai-text-row h2 {
    font-size: 24px;
  }

  .scai-hero__desc,
  .scai-meta-label,
  .scai-meta-value,
  .scai-text-row p {
    font-size: 16px;
  }

  .scai-meta-label,
  .scai-meta-value {
    line-height: 1.3;
  }

  .scai-explore {
    margin-top: 8px;
    font-size: 16px;
  }

  .scai-media,
  .scai-text-block,
  .scai-stack32,
  .scai-section,
  .scai-result {
    margin-top: 56px;
  }

  .scai-stack32 {
    gap: 20px;
  }

  .scai-section {
    gap: 32px;
  }

  .scai-footer {
    margin-top: 56px;
    padding: 0 16px 16px;
  }

  .scai-footer p {
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }
}
