/* Keep related content close, with a generous pause between sections. */
#future-field {
  min-height: 0;
  background:
    linear-gradient(rgba(10, 10, 10, 0.76), rgba(10, 10, 10, 0.76)),
    url('../images/optimized/adaptive-shell-1920.webp') center / cover no-repeat;
}

#future-field.has-reconstruction-motion {
  background: #0a0a0a;
}

#future-field .future-field__stage {
  position: relative;
  top: auto;
}

.hero#top {
  min-height: 0;
  padding-bottom: 128px;
}

.hero#top .hero-headline {
  margin-top: clamp(96px, 10vh, 144px);
}

.hero#top .hero-bottom {
  margin-top: 40px;
  gap: 28px;
}

.hero#top .hero-bottom .cta-button {
  margin-top: 0;
}

/* Compact desktop windows need a quieter lower edge, not a full-screen hero. */
@media (min-width: 981px) and (max-width: 1920px) {
  .hero#top {
    padding-bottom: clamp(144px, 20vh, 176px);
  }

  .hero#top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 48%, var(--paper) 100%);
  }

  .hero#top .hero-bottom .cta-button {
    background: var(--paper);
    isolation: isolate;
  }
}

.hero#top .hero-bottom .hero-method {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero#top .preview-hero-lede {
  gap: 0;
}

.motion-studies,
.services,
.gallery {
  padding-top: 96px;
  padding-bottom: 96px;
}

.statement {
  padding-top: 112px;
  padding-bottom: 112px;
}

.statement-meta {
  margin-top: 56px;
}

.cta {
  padding-top: 112px;
}

.services-header,
.motion-studies__header {
  gap: 24px;
}

.project-template .project-case-client {
  margin-top: 16px;
}

.project-template .project-case-title {
  margin-top: 8px;
}

/* One reading rhythm across all case studies, without page-specific squeezing. */
.project-template.project-case-page .project-case-description {
  max-width: 56ch;
  margin-top: 20px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  text-align: left;
}

.project-template.project-case-page .project-case-description p {
  margin: 0;
}

.project-template.project-case-page .project-case-description p + p {
  margin-top: clamp(20px, 1.6vw, 26px);
}

.project-template.project-case-page .project-case-info > .project-case-back {
  margin-top: 24px;
}

/* Titles and descriptions share baselines across each desktop service row. */
@media (min-width: 981px) {
  .services .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services .service-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
    align-items: start;
  }

  .services .service-card > div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
    margin-top: 24px;
  }
}

@media (max-width: 980px) {
  .hero#top {
    padding-bottom: 96px;
  }

  .hero#top .hero-meta {
    margin-bottom: 56px;
  }

  .hero#top .hero-headline {
    margin-top: 0;
  }

  .hero#top .hero-bottom {
    margin-top: 36px;
    gap: 28px;
  }

  .motion-studies,
  .services,
  .gallery,
  .statement {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .statement-meta {
    margin-top: 40px;
  }

  .cta {
    padding-top: 80px;
    padding-bottom: 56px;
  }

  .services h2 {
    text-wrap: balance;
  }

  .services h2 .line {
    display: inline;
  }

  .services .service-card > div {
    margin-top: 24px;
  }

  .contact-hero h1 {
    line-height: 1;
  }

  .contact-hero p {
    line-height: 1.4;
  }
}
