svg {
  vertical-align: middle;
  width: var(--size, 1em);
  height: var(--size, 1em);
}

.usp-grid {
  border: 1px solid var(--gray-800);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background-color: var(--gray-999_40);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.usp-grid h2 {
  font-size: var(--text-lg);
}

.usp-grid p {
  color: var(--gray-400);
}

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-hero .stack {
  width: 100%;
}

.roles {
  display: none;
}

.media-cover,
.about-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.media-cover--ratio-3x2 {
  aspect-ratio: 3 / 2;
}

.media-cover--ratio-square {
  aspect-ratio: 1 / 1;
}

.media-cover--ratio-2x3 {
  aspect-ratio: 2 / 3;
}

.about-hero > .about-hero__image {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
}

.content-grid {
  display: grid;
  gap: 2rem;
}

.content-block--with-background,
.content-grid--with-background {
  position: relative;
}

.content-block--with-background::before,
.content-grid--with-background::before {
  --hero-bg: var(--bg-image-subtle-2);
  content: "";
  position: absolute;
  pointer-events: none;
  left: 50%;
  width: 100vw;
  aspect-ratio: calc(2.25 / var(--bg-scale));
  top: 0;
  transform: translateY(-75%) translate(-50%);
  background:
    url(../assets/backgrounds/noise.png) top center/220px repeat,
    var(--hero-bg) center center / var(--bg-gradient-size) no-repeat,
    var(--gray-999);
  background-blend-mode: overlay, normal, normal, normal;
  mix-blend-mode: var(--bg-blend-mode);
  z-index: -1;
}

.content-grid--alt-background::before {
  --hero-bg: var(--bg-image-subtle-1);
}

.content-grid__header {
  justify-self: center;
  text-align: center;
  max-width: 50ch;
  font-size: var(--text-md);
  color: var(--gray-300);
}

.content-grid__header h3 {
  font-size: var(--text-2xl);
}

.faq-shell {
  position: relative;
  width: 100%;
  padding: 2.5rem 1.5rem 2rem;
  margin-inline: auto;
  display: flex;
  justify-content: center;
  border: 1px solid #1018280d;
  box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
}

.faq-shell__inner {
  padding-inline: 1.25rem;
  width: 100%;
  max-width: 42rem;
}

.faq-list {
  display: grid;
  margin: 2rem auto 0;
  max-width: 36rem;
}

.faq-list__row {
  padding-block: calc(var(--spacing) * 1.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item-card {
  border: 1px solid var(--gray-800);
  border-radius: 1rem;
  background: var(--gray-999);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--theme-transition);
  width: 100%;
}

.faq-item-card:hover {
  border-color: #8b5e3c;
  box-shadow: 0 6px 18px #00000020;
}

.faq-item-card:hover .faq-item-card__question,
.faq-item-card:hover .faq-item-card__icon {
  color: #8b5e3c;
}

.faq-item-card__button {
  width: 100%;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--theme-transition);
  text-align: left;
}

.faq-item-card__button:hover {
  background-color: var(--gray-900);
}

.faq-item-card__button:focus-visible {
  outline: 2px solid #a77957;
  outline-offset: -2px;
  box-shadow: 0 0 0 3px #fbf9f6;
}

.faq-item-card__question {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 500;
  color: #5a331d;
  flex: 1;
  margin-right: 1rem;
  line-height: 1.3;
}

.faq-item-card__icon {
  width: 1.75rem;
  height: 1.75rem;
  transition: transform var(--theme-transition);
  flex-shrink: 0;
  color: var(--gray-300);
}

.faq-item-card__answer {
  margin-top: 0.75rem;
  padding: 0 1.25rem 0.75rem;
  color: var(--gray-300);
  font-size: var(--text-md);
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item-card__answer p {
  margin: 0;
}

.faq-item-card.is-open .faq-item-card__icon {
  transform: rotate(180deg);
}

.faq-item-card__answer.is-open {
  opacity: 1;
}

.mention-card {
  display: flex;
  height: 7rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--gray-800);
  border-radius: 1.5rem;
  color: var(--gray-300);
  background: var(--gradient-subtle);
  box-shadow: var(--shadow-sm);
}

.text-brown-primary {
  color: #8b5e3c;
}

.text-brown-secondary {
  color: #a77957;
}

@media (min-width: 40rem) {
  .faq-shell {
    border-radius: 0.5rem;
    padding-inline: 2.5rem;
  }
}

@media (min-width: 50em) {
  .usp-grid {
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
  }

  .usp-grid h2 {
    font-size: var(--text-2xl);
  }

  .about-hero {
    display: grid;
    grid-template-columns: 6fr 4fr;
    padding-inline: 2.5rem;
    gap: 3.75rem;
  }

  .about-hero .stack {
    width: 100%;
  }

  .roles {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
  }

  .about-hero > .about-hero__image {
    border-radius: 4.5rem;
  }

  .content-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "header header header header"
      "gallery gallery gallery gallery";
  }

  .content-grid.content-grid--with-cta {
    grid-template-areas:
      "header header header cta"
      "gallery gallery gallery gallery";
  }

  .content-grid__header {
    grid-area: header;
    font-size: var(--text-lg);
  }

  .content-grid__header h3 {
    font-size: var(--text-4xl);
  }

  .content-grid--with-cta .content-grid__header {
    justify-self: flex-start;
    text-align: left;
  }

  .content-grid__gallery {
    grid-area: gallery;
  }

  .content-grid__cta {
    grid-area: cta;
  }

  .faq-item-card__button {
    padding: 1.25rem 1.75rem;
  }

  .faq-item-card__question {
    font-size: 1.6rem;
  }

  .faq-item-card__answer {
    padding: 0 1.5rem 1.25rem;
    font-size: var(--text-lg);
  }

  .mention-card {
    border-radius: 1.5rem;
    height: 9.5rem;
  }
}
