#content.page-wrap {
  flex: 0 0 auto;
}

.home-preview {
  --frame: color-mix(in srgb, var(--sf-sand), var(--sf-ink) 15%);
  display: grid;
  gap: clamp(18px, 3vw, 36px);
  color: var(--sf-ink);
}

.home-preview .home-intro {
  padding: clamp(18px, 3.5vw, 42px);
  background: linear-gradient(135deg, var(--sf-sand), var(--sf-cream) 85%);
  border-radius: 16px;
}

.home-preview .home-intro h2 {
  max-width: 28ch;
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3.8vw, 2.8rem);
  line-height: 1.13;
  text-wrap: balance;
}

.home-preview .home-intro p {
  max-width: 66ch;
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.55;
}

.home-preview .home-intro p:last-child {
  margin-bottom: 0;
}

.home-preview .home-solutions h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.home-preview .home-options {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-preview .home-option {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: 12px;
  background: var(--sf-cream);
  color: var(--sf-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-preview .home-option:focus-visible {
  outline: 2px solid var(--sf-ink);
  outline-offset: 3px;
}

.home-preview .home-option:hover {
  border-color: var(--sf-accent);
  box-shadow: 0 0 0 1px var(--sf-accent);
}

.home-preview .home-option figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.home-preview .home-option img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-preview .home-option figcaption {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  color: var(--sf-ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.home-preview .home-option figcaption::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-preview .home-option:hover figcaption {
  text-decoration: underline;
}

.home-preview--cards .home-option figcaption {
  border-top: 3px solid var(--sf-accent);
}

.home-preview--split .home-options,
.home-preview--list .home-options {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.home-preview--split .home-option figure,
.home-preview--list .home-option figure {
  display: grid;
  grid-template-columns: clamp(88px, 23vw, 164px) minmax(0, 1fr);
}

.home-preview--split .home-option img,
.home-preview--list .home-option img {
  aspect-ratio: 2 / 1;
  height: 100%;
}

.home-preview--gallery .home-intro {
  text-align: center;
}

.home-preview--gallery .home-intro > * {
  margin-inline: auto;
}

.home-preview--gallery .home-option {
  position: relative;
}

.home-preview--gallery .home-option img {
  aspect-ratio: 4 / 3;
}

.home-preview--gallery .home-option figcaption {
  position: absolute;
  inset: auto 8px 8px;
  border-radius: 8px;
  background: var(--sf-cream);
}

.home-preview--list .home-option {
  border-radius: 0;
  border-width: 0 0 1px;
}

.home-preview--list .home-option img {
  border-radius: 8px;
}

@media (min-width: 850px) {
  .home-preview--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }

  .home-preview--split .home-solutions {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .home-preview--split .home-options {
    grid-auto-rows: minmax(0, 1fr);
  }

  .home-preview--split .home-option figure {
    grid-template-columns: min(32%, 164px) minmax(0, 1fr);
  }

  .home-preview--split .home-option img {
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-preview--feature .home-options {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .home-preview--feature .home-option:first-child {
    grid-row: span 2;
  }

  .home-preview--feature .home-option img {
    height: clamp(100px, 11vw, 142px);
  }

  .home-preview--feature .home-option:first-child img {
    min-height: 0;
    height: 0;
    flex: 1;
  }

  .home-preview--feature .home-option figcaption {
    flex: none;
  }

  .home-preview--list .home-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    column-gap: 28px;
  }

  .home-preview--list .home-intro h2 {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .home-preview--list .home-solutions {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 650px) {
  .home-preview .home-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
