/* Homepage composition */

.hero {
	padding: 4.5rem 0 0;
}

.hero-layout {
  display: grid;
  /* grid-template-columns: calc(max(0px, (100vw - 1400px) / 2) + 700px) minmax(0, 1fr); */
    grid-template-columns:
    calc(max(0px, (100vw - 1400px) / 2) + clamp(520px, 50vw, 700px))
    minmax(0, 1fr);
}

.hero-content-wrap {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding: var(--spacing-base) 2rem var(--spacing-base) max(var(--spacing-base), calc((100vw - 1400px) / 2 + var(--spacing-base)));
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background-image: url("/assets/img/cddevhero.png");
  background-image: image-set(
    url("/assets/img/cddevhero.avif") type("image/avif") 1x,
    url("/assets/img/cddevhero.webp") type("image/webp") 1x,
    url("/assets/img/cddevhero.png") type("image/png") 1x
  );
  background-repeat: no-repeat;
  background-position: left 0 bottom -6rem;
  background-size: min(160%, 960px) auto;
}

.hero-content {
  max-width: 820px;
}

.hero-name,
.audience-label {
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 680;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero-content > p:not(.hero-name) {
  max-width: 620px;
  font-size: 1.35rem;
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.audience-section,
.capabilities-section,
.experience-section,
.work-section {
  padding: 4.5rem 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-path {
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
}

.audience-path:first-child {
  padding-left: 0;
  border-right: 1px solid var(--color-border);
}

.audience-path:last-child {
  padding-right: 0;
}

.audience-path h2 {
  max-width: 19ch;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 650;
}

.audience-path > p:not(.audience-label) {
  max-width: 50ch;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.audience-path a {
  font-size: 1.25rem;
  margin-top: auto;
}

.audience-path a,
.work-heading a {
  font-weight: 650;
  text-decoration: none;
}

.audience-path a:hover,
.work-heading a:hover {
  text-decoration: underline;
}

.capabilities-section > .container > h2,
.work-heading h2 {
  margin-bottom: 2.5rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 650;
}

.capability-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 5rem;
}

.capability-index article {
  display: block;
  padding: 1.75rem 0;
  border-top: 1px solid var(--color-border);
}

.capability-index h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 650;
}

.capability-index p {
  max-width: 42ch;
  margin-bottom: 0;
  font-size: 1.25rem;
}

.container.experience {
  display: block;
}

.experience-copy {
  display: flex;
  flex-direction: column;
}

.experience-copy h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 650;
}

.experience-copy p {
  max-width: 62ch;
  font-size: 1.25rem;
}

.experience-copy .btn-primary {
  display: inline-block;
  margin-top: 0.75rem;
}

.work-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.work-heading h2 {
  margin-bottom: 2.5rem;
}

.project-index {
  border-top: 1px solid var(--color-border);
}

.project-row {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-row:hover,
.project-row:focus-visible {
  color: inherit;
  text-decoration: none;
}

.project-row article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.project-row:hover article h3,
.project-row:focus-visible article h3 {
  color: var(--primary-accent);
}

.project-row h3 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 650;
  transition: color 0.15s ease;
}

.project-row p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.25rem;
}

.project-row article > span {
  color: var(--primary-accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.final-cta {
  padding: 3.25rem 0;
  background: var(--background-fill-light);
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
}

.final-cta .btn-primary {
  display: inline-block;
  margin-top: 0.75rem;
}

@media (min-width: 1200px) {
  .capability-index {
    column-gap: 8rem;
  }
  .experience-copy {
    display: flex;
    flex-direction: row;
  }
}

@media (max-width: 1023px) {
  .hero-layout {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 0;
  }

  .hero-content-wrap {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-visual {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 14vw, 5rem);
  }

  .audience-grid,
  .capability-index {
    grid-template-columns: 1fr;
  }

  .audience-path,
  .audience-path:first-child,
  .audience-path:last-child {
    padding: 0 0 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .audience-path + .audience-path {
    padding-top: 2.5rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .work-heading {
    display: block;
  }

  .work-heading a {
    display: inline-block;
    margin-bottom: 1.5rem;
  }

  .project-row article {
    align-items: flex-start;
  }
}

@media (max-width: 580px) {
.hero-visual {
	min-height: 80vw;
}
}
