@import url("../photo-to-3d-basketball/case-study.css");

.hero h1 {
  max-width: 640px;
  font-size: clamp(3rem, 3.9vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

html[lang="zh-Hant"] .hero h1 {
  max-width: 620px;
  font-size: clamp(2.8rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-heading h2,
.skill-grid h2,
.qa-copy h2 {
  font-size: clamp(2.25rem, 3.5vw, 4rem);
}

html[lang="zh-Hant"] .section-heading h2,
html[lang="zh-Hant"] .skill-grid h2,
html[lang="zh-Hant"] .qa-copy h2 {
  font-size: clamp(2.15rem, 3.2vw, 3.625rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.closing {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
}

.closing > div {
  max-width: none;
}

.closing h2 {
  max-width: 680px;
  font-size: clamp(2.25rem, 2.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

html[lang="zh-Hant"] .closing h2 {
  max-width: 620px;
  font-size: clamp(2.1rem, 2.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (max-width: 1120px) {
  .hero-grid,
  .closing {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-media img,
.wide-proof img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media img {
  aspect-ratio: 1.53125;
  object-fit: cover;
}

.pipeline {
  grid-template-columns: repeat(4, 1fr);
}

.evidence-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
}

.evidence-grid article,
.boundary-grid article {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-grid article:nth-child(3n),
.boundary-grid article:last-child {
  border-right: 0;
}

.evidence-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.evidence-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1;
}

.evidence-grid span,
.boundary-grid p {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.boundary-grid strong {
  font-size: 1.35rem;
}

.wide-proof {
  margin: 56px 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.wide-proof figcaption {
  padding: 18px 22px;
  color: #b8c4d4;
  background: #101722;
}

@media (max-width: 980px) {
  .pipeline,
  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline article:nth-child(2n),
  .evidence-grid article:nth-child(2n) {
    border-right: 0;
  }

  .evidence-grid article:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .evidence-grid article:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .evidence-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 3.35rem);
    line-height: 1;
  }

  html[lang="zh-Hant"] .hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3rem);
    line-height: 1.1;
  }

  .closing h2 {
    font-size: clamp(1.85rem, 9vw, 2.15rem);
  }

  html[lang="zh-Hant"] .closing h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.05rem);
  }

  .pipeline,
  .evidence-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .pipeline article,
  .evidence-grid article,
  .boundary-grid article {
    min-height: auto;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .pipeline article:last-child,
  .evidence-grid article:last-child,
  .boundary-grid article:last-child {
    border-bottom: 0 !important;
  }
}
