.design-studio {
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding-block: 112px;
}

.design-studio__intro {
  width: min(100%, 1152px);
  margin-inline: auto;
  padding-inline: 24px;
}

.design-studio__intro-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.design-studio__copy {
  max-width: 672px;
}

.design-studio__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 4px 12px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.design-studio__eyebrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.design-studio h2 {
  max-width: 672px;
  margin-top: 20px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  text-wrap: balance;
}

.design-studio__body {
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.625;
  text-wrap: pretty;
}

.design-studio__cta {
  display: inline-flex;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  padding-inline: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.design-studio__cta:hover {
  background: var(--secondary);
}

.design-studio__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.design-studio__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-top: 48px;
  padding: 0 max(24px, calc((100vw - 1104px) / 2)) 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.design-studio__track::-webkit-scrollbar {
  display: none;
}

.model-card {
  position: relative;
  width: 256px;
  height: 320px;
  flex: 0 0 256px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--secondary);
  box-shadow: 0 1px 3px rgb(15 18 29 / .1), 0 1px 2px -1px rgb(15 18 29 / .1);
  scroll-snap-align: start;
  transition: transform 150ms ease;
}

.model-card:hover {
  transform: translateY(-4px);
}

.model-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.model-card:hover > img {
  transform: scale(1.05);
}

.model-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .85), rgb(0 0 0 / .25) 50%, transparent 100%);
}

.model-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.model-card__type,
.model-card__new {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 16px;
}

.model-card__type {
  background: rgb(255 255 255 / .15);
  color: #fff;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.model-card__new {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.model-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / .15);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: color 150ms ease, background-color 150ms ease;
}

.model-card:hover .model-card__arrow {
  background: #fff;
  color: var(--foreground);
}

.model-card__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.model-card__content strong {
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 24px;
}

.model-card__content > span {
  margin-top: 4px;
  color: rgb(255 255 255 / .75);
  font-size: 14px;
  line-height: 1.375;
}

@media (max-width: 767px) {
  .design-studio {
    padding-block: 80px;
  }

  .design-studio__intro {
    padding-inline: 16px;
  }

  .design-studio__intro-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-studio h2 {
    font-size: 36px;
    letter-spacing: -.9px;
  }

  .design-studio__track {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-card:hover,
  .model-card:hover > img {
    transform: none;
  }
}
